Chapter 0 Introduction: Section 0.1: Why Calculus?
Chapter 0 Introduction: Section 0.1: Why Calculus?
After one young moviestar’s first day at college, she wrote a friend: Time(s) Voltage(mv)
’My Calculus book is three inches thick. I can’t live through three .001 22
inches of calculus.’ .002 25
.003 31
Not a lot of mediastars in my class, but some students wonder: ’I’m .... ...
going to be a doctor. Why do I need calculus?’ Others ask, ’I’m .... ...
12.602 -4
gonna be an engineer: we use computers for everything. Why do I
Table 1: Raw Data
need this class?" We’ll start with the doctor, then the engineer, and Data, measured in volts, straight from
then get them working together. our secret experiment.
That’s what you do if you’re a doctor in the 1920’s. Here’s the origi-
nal set-up, in the picture below. The technique of EKG recording was
invented by a Dutch MD, Willem Einthoven, who received the 1924
Nobel Prize in Medicine or Physiology for his work.
Fortunately, you’re not in the 1920’s. Today you can buy a little cell-
phone style EKG unit, like the one in Figure 3. But besides the size,
and not-sticking your arm in salt water, something else happened.
Instead of drawing the graph on paper with little squares, and count-
ing squares, a microchip draws the graph on a LCD screen . . . and it
counts the squares, and it computes the beats-per-minute.
Figure 3: Modern EKG Recording
So . . . so say you’re the engineer programming the chip. You’re
EKG monitor about the size of a 2012-
working with the MD who also didn’t need calculus, and before era smartphone. Quantities like beats-
you can get the chip to count squares, it has to somehow ’see’ the per-minute are calculated by a mi-
crochip in the unit.
peaks. How does that happen? The first engineers to write software
to recognize heartbeats with a microchip were Jiapu Pan, with the
Department of Biophysics, Shanghai Second Medical College, and
Willis Tompkins, Department of Electrical and Computer Engineer-
ing, University of Wisconsin – our MD and our Engineer. They used
a technique called a derivative-based algorithm. Derivatives are calcu-
lus.
calculus sin frontera 3
For these, Pan-Tompkins has only a 25% accuracy! To deal with these
much more complex EKGs, the Army brought together a group: one
physiologist, from a famous medical school; one hot-shot program-
mer to write the software, two experienced electrical engineers to
build the recording devices and design the chip, and one out-of-place
mathematician.
Four people, with different backgrounds. The language they all
spoke was math, starting with calculus. All the team understood
the math, discussed it, argued about it: a strong understanding of
math was required for the job. MD, programmer, engineers and
mathematician.
In this story, the moral is that people who want to do serious work,
even if they’re "only" engineers or doctors, might want that extra
mathematics background. Now a different story.
4 kathy davis
The word calculus derives from the same stem as the word calculate.
Interesting, but . . . what is calculus calculating?
Calculus was born from a Renaissance meeting of world cultures,
when Western thinkers learned of Hindu-Persian arithmetic and tech-
niques of computing; of Arabic algebra for working with variables.
Another influence was Descartes’ invention of analytic geometry,
translating Greek geometry into algebra. This confluence marked the Figure 7: Rennaisance Physics
Cannonballs always hit you on the top
age of computation.
of your head.
Here’s a concrete example, from mid 1500’s Italy. Gunpowder had
recently been brought from China, and Italian city-states found it
useful in resolving trade and territory disputes. Build cannon, apply
gunpowder, end dispute.
Figure 7: shows Renaissance physics describing the motion of a can-
nonball. According to Aristotle, close to the surface of the earth,
objects move in a straight line. When they’re high enough, though,
they move under heavenly laws: in perfect circles. So the cannonball
turns down to the earth and back to moving in a straight line again.
This was the dominant model of physical motion at the beginning of
the Renaissance, and it is wrong. You only have to follow the path of
water from a fountain as in Figure 8 to see Figure 7 is wrong.
In contrast, Figure 9 is a page from the lab books of Galileo. He knew
Greek geometry, he knew algebra and if you look very closely at Fig-
ure 9, you can even read Hindu-Arabic numerals. He used algebra, Figure 8: Renaissance Fountain
geometry, and he computed. He described his work like this: The fountain at Villa Lante, mid 1500’s.
Compare the path of the water jet with
’Philosophy is written in this grand book, the universe, which stands that of the cannonball in Figure 7.
continually open to our gaze. But the book cannot be understood unless
one first learns to comprehend the language and read the characters in
which it is written. It is written in the language of mathematics, and
its characters are triangles, circles, and other geometric figures without
which it is humanly impossible to understand a single word of it; without
these one is wandering in a dark labyrinth.’
section.
6 kathy davis
Let’s revisit the cannon models in Section 0.2, thinking about abstrac- Figure 13: Abstraction:
Not Just For Breakfast
tion. First, Aristotle. His model was geometric; it tells the shape of
"An abstraction is a general model
the path of a cannonball: the path is composed of straight line pieces of something. It is a definition that
and circle pieces. It won’t tell you where the ball will land, or how includes only the general characteristics
hard it will hit. The only real information you get from the model is of an object without the details that
characterize the specific instances of the
that a cannonball will go up in the air and then go down again. Aris- object."
totle developed this model to explain not only how motion happens Gaddis et. al. C++ Early Objects
but why; it was part of a philosophy of all change. For the cannon-
ball, the model is too abstract to give detailed information.
Galileo’s model is both geometric and numerical: it tells us the path
of the ball is a parabola, but is very specific on how to get the exact
shape of the parabola: you can use it to discover where the ball hits
and how fast and how long it will take to get there. People of the
time even used it to find the best angle to shoot the cannon to make
the ball would travel furthest.
Back to our temple model. Yoko Kawaguchi, in Japanese Zen Gardens,
writes: "From the tenth century on, this longing for paradise had
been expressed in the form of temple gardens designed in the image
designed in the image of Amida Buddha’s paradise." That is to say, Figure 14: A Different Temple
The great Temple to Yahweh in
the actual Golden Pavilion is meant to be a model of a spiritual par-
Jerusalem, before its destruction by
adise. This is a common motif throughout across the world. Compare the Roman armies.
Exodus 25; Yahweh is instructing Moses: "Let them make me a sanc-
tuary that I may dwell among them. According to all that I show thee
... shall you make it"
Mircea Eliade, in History of Religious Ideas, remarks that this motif
f the temple as a reflection of the eternal temples of the gods long
pre-dates Platonic ideas that the world is a mere shadow of the world
of eternal forms. There’s a good deal of scholarly debate whether
Galileo was a Neoplatonist, but it certainly would help explain his
confidence in writing
gonna be at height zero. If the hand is above the board, we’ll record
the height of the hand as a positive length. Once the hand breaks
through the board, it’s below the board, and we’ll record that height
as a negative number.
So that’s not bad: we’ve got position, time, positive, negative. Begin-
ning in the Renaissance, these recordings get displayed as a graph, as
in Figure 3.
What you see is height plotted on the vertical axis, and time plot-
ted on the horizontal axis. As you move to the right, time goes on,
and the height decreases. Surprise: the hand is heading towards the Figure 2: Karateka Breaking Board
How do they do that? Does it hurt?
board. Eventually, the hand hits the board; the height is zero, and
you can see the curve wiggling around zero. The board bends and
moves; the hand gets very weird, and all this bouncing results in the
board breaking and the hand moving though.
What you see in Figure 3 is exactly what you’d see, if you had very
fast eyes, and you were watching the Karateka. Nothing new, just
what you see: not helping.
The next stage is also very old: star charts like MUL.APIN were used
to predict future positions of stars and planets – hence, events like
eclipses. The ancient astronomers noticed that at one time of year, it
might be 20 days between the rising and setting of a constellation; at
another, 15 days. Rising and setting is a change in position, ∆x; the Figure 4: Karate: Position
Compare this with Figure 8 below.
time of rising to time of setting is a change in time, ∆t. This was, at
least the beginning of, speed of motion: ∆x/∆t
We notice this too, with our toys. We push: the toy wasn’t moving
but now it is: we’ve given the toy a speed. Again, we’ll use positive
and negative numbers: motion away from us has positive speed;
motion towards us has negative speed. But, there’s a better way to
say it: if something is moving away from us, its position from us is
Figure 5: Karate: Velocity
increasing; if it moves towards us, its position is deceasing. So the
Compare this with Figure 4 above.
rule is:
increasing ↔ positive velocity,
decreasing ↔ negative velocity.
Figure 8 shows velocity for our Karate-guy; compare it with position
in Figure 4. The hand starts by moving down: that’s a decreasing
height, so in Figure 8, the velocity starts as negative. Next, the hand
bounces around on the board, and the board bounces, and so the
speeds wobble about zero.
There’s another way to think about the velocity, though: it’s the slope
of the position graph. In Figure 6, I’ve glued the position and velocity
graphs together, and I’ve marked three places in red. Figure 6: Velocity as Slope
On the top left, the red line shows that the position is almost a The velocity in the bottom graph is just
the slope of the top graph.
straight line moving down. The bottom left graph shows this as a
slope: constant, and negative. In the top middle, the hand moves
above and below the board, with an average position of zero, echoed
on the bottom by an average zero slope. Finally, on the top right,
the hand has broken the board, and again you see the hand moving
downward; the position is almost exactly a straight line, with con-
stant negative slope. And again you see that constant negative slope
as a fixed negative line on the bottom right.
calculus sin frontera 3
This was about as far as one could get, before Newton. A group of
philosopher-scientists such as Descartes tried to explain all physics
as we are explaining it: forces cause motion, by one object pushing
on another. But, try this: pick up a toy and drop it. It falls; I don’t
need to throw it down, or push it, or anything. By the way, if you’ve
ever watched a child sitting in a shopping cart, happily dropping
oranges out of the cart, you’re watching the little bu-bu try to figure
out exactly the same thing: how come it falls when I let go? It’s OK,
little one: Descartes couldn’t figure it out, either.
Figure 7: Mechanistic Universe
And then came Newton. Etching by Albrect Durer, showing the
mechanistic universe, with the planets
First idea: If an object experiences no force, it will move in a straight and stars on rotating wheels.
line, with constant velocity.
Second idea: If an object moves away from a straight line, or changes
velocity, it is experiencing a force.
Third idea: The force an object experiences can be measured: it is
proportional to the change in velocity (or, in geometric language, the
slope of the velocity curve).
So what you had was like a force detector. This annoyed some
philosopher-scientists a great deal, because Newton didn’t describe
why things moved; he only said how they moved. Not the Philosophi-
cal Way! Aristotle told us planets moved in circles because circles are
the perfect object. Newton said that if a planet is moving in a circle,
there must be a force shaping it into that circle.
Worse, forces were now these invisible – things – we can’t see them
with our eyes, only their effects. Newton was describing forces as
some kind of ghostly essence that made things move. Do the plan-
ets move in a circle because angels push them that way, like a child
pushing a toy? Why did it happen?
Newton, and Galileo before him, marked the end of the era of sci-
entist as philosopher. From that time on, it was clear that to really
understand the world, you needed to observe it, and compute with it.
And leave the ’why’ to the Supreme Being.
4 kathy davis
Figure 6: The compressed spring pushes; the force is in the direction of the right arrow.
Figure 7: The stretched spring pulls; the force is in the direction of the left arrow.
calculus sin frontera 3
The words ’push, pull’, are force words. We mentioned that force
cause changes in velocity; more precisely, force is proportional to
the derivative of velocity. So: let’s go back, think about velocity and
changes in velocity.
We can summarize:
negative if x > 0
force = positive if x < 0
zero if x = 0
But we can actually say more: if you’ve ever used a rubber band to
launch a paperclip or a wad of paper, you know that the more you
stretch the rubber band, the faster longer higher your projectile goes.
The technical way to say this is that force is proportional to − g( x );
here g has to get bigger as x gets bigger (or, to sound less silly: g is
an increasing function). Also, seeing as the force is zero when x = 0,
you’d have to have g(0) = 0.
There are many functions like this, but the simplest is a straight line.
This is pretty simple: for one thing, if you pull the rubber band out
five feet, it breaks instead of giving a huge force. So the line is really
only an approximation – actually, a tangent line approximation – and
it’s only good for small x.
4 kathy davis
Say you do move the box then let it go and do its spring thing. We
did a lot of work figuring out an equation to describe how the box
would move after you let go: if m is the mass of the box, and k is a
constant describing how hard the spring pushes or pulls, then
d2 x d2 x
m = − k2 x ↔ m + k2 x = 0
dt2 dt2
d2 x dx
a 2
+ b + cx = 0
dt dt
dx d2 x
x = ert ; = rert ; = r2 ert
dt dt2
Now the equation
d2 x dx
a 2
+ b + cx = 0
dt dt
becomes
a · r2 ert + b · rert + c · ert = 0
If we factor out the ert , we get a quadratic equation for r, which be-
comes ar2 + br + c = 0. Let’s try it with
d2 x
m + k2 x = 0
dt2
d2 d
a 2
[c1 s1 (t) + c2 s2 (t)] + b [c1 s1 (t) + c2 s2 (t)] + c [c1 s1 (t) + c2 s2 (t)]
dt dt
d2 s d2 s
ds ds
= c1 a 21 + c1 b 1 + c1 cs1 + c2 a 22 + c2 b 2 + c2 cs2
dt dt dt dt
2 2
d s ds d s ds
= c1 a 21 + b 1 + cs1 + c2 a 22 + b 2 + cs2
dt dt dt dt
= c1 [0] + c2 [0] = 0
Figure 3: Sine
The last equation holds because s1 (t), s2 (t) are two solutions, so they y = sin(2πx ), also for one period.
give zero when you put them in the equation.
We’re not quite done: so sine and cosine are solutions? Then, by
what we just said, so are A cos + B sin. Or, more properly,
r ! r !
k2 k2
x (t) = A cos t + B sin t
m m
There is one thing, though: we said "The box used up all its velocity,
compressing the spring as far as it can." That’s a metaphor, as though
our little friend boxy pushed as hard as it could but just couldn’t
push any more. Like I’ve said, we’re scientists and engineers; we
want computations, not metaphors.
Physicists think about problems like this by by talking about energy,
kinetic energy and potential energy. Kinetic energy is energy associ-
Figure 11: Large k
ated with motion and is proportional to v2 (the word ’kinetic’ comes
Cosine, but this time doing four oscilla-
from the Greek, meaning ’to move’). Potential energy is associated tions.
with compression and stretching of the spring. When I said "The
box used up all it’s velocity, compressing the spring as far as it can",
what I mean is that all the kinetic energy has been transferred to the
spring. When kinetic energy is zero, v2 = 0, so there’s no longer
any velocity. That’s physics: as the box moves back and forth, the
two kinds of energy trade off, and the oscillations record that trading
off. No energy is lost, so the oscillation continues – forever, I guess.
That’s another fact I get out, that I never thought I put in. q
k2
q
Figure 12: Small: m = 2π
2 A cosine, going through one oscillation.
At last, it’s time to come to terms with the km . Again, we’ll keep it
q
k2
simple by taking A = 1, B = 0, so that I get x (t) = cos m t.
Let’s fiddle with k. We called k the spring constant, and said it tells
us how springy our spring is. More precisely, k tells us how strongly
the spring pushes or pulls when q its compressed or stretched. We’ll
2
start as we did before, by taking km = 2π, or 8π. The motions
are compared in Figures 12 and 13. How would you describe the
difference between the two? If you keep k constant but increase m
to go from 8π to 2π, what would you expect to happen? What does q
k2
Figure 13: Large: m = 8π
happen? If you keep m constant but increase k to go from 2π to 8π,
Same cosine, but this time doing four
what would you expect to happen? What does happen? oscillations.