The right way to begin a calculus book is with calculus. This chapter will jump directly into the two problems that the subject was invented to solve. You will see what the questions are, and you will see an important part of the answer. There are plenty of good things left for the other chapters, so why not get started?
The book begins with an example that is familiar to everybody who drives a car. It is calculus in action—the driver sees it happening. The example is the relation between the speedometer and the odometer. One measures the speed (or velocity); the other measures the distance traveled. We will write v for the velocity, and ƒ for how far the car has gone. The two instruments sit together on the dashboard:
[Fig. 1.1]
Notice that the units of measurement are different for v and f.The distance ƒ is measured in kilometers or miles (it is easier to say miles). The velocity v is measured in km/hr or miles per hour. A unit of time enters the velocity but not the distance. Every formula to compute v from ƒ will have f divided by time.
The central question of calculus is the relation between v and ƒ.
Can you find v if you know ƒ, and vice versa, and how? If we know the velocity over the whole history of the car, we should be able to compute the total distance traveled. In other words, if the speedometer record is complete but the odometer is missing, its information could be recovered. One way to do it (without calculus) is to put in a new odometer and drive the car all over again at the right speeds. That seems like a hard way; calculus may be easier. But the point is that the information is there. If we know everything about v, there must be a method to find ƒ.
What happens in the opposite direction, when ƒ is known? If you have a complete record of distance, could you recover the complete velocity? In principle you could drive the car, repeat the history, and read off the speed. Again there must be a better way.
The whole subject of calculus is built on the relation between v and ƒ. The question we are raising here is not some kind of joke, after which the book will get serious and the mathematics will get started. On the contrary, I am serious now-and the mathematics has already started. We need to know how to find the velocity from a record of the distance. (That is called differentiation, and it is the central idea of differential calculus.) We also want to compute the distance from a history of the velocity. (That is integration, and it is the goal of integral calculus.)
Differentiation goes from ƒ to v; integration goes from v to ƒ. We look first at examples in which these pairs can be computed and understood.
Suppose the velocity is fixed at v=60 (miles per hour). Then f increases at this constant rate. After two hours the distance is ƒ=120 (miles). After four hours f=240 and after t hours ƒ=60t. We say that ƒ increases linearly with time—its graph is a straight line.
[Fig. 1.2]
Notice that this example starts the car at full velocity. No time is spent picking up speed. (The velocity is a "step function".) Notice also that the distance starts at zero; the car is new. Those decisions make the graphs of v and f as neat as possible. One is the horizontal line v=60. The other is the sloping line ƒ=60t. This v, ƒ, t relation needs algebra but not calculus:
if v is constant and ƒ starts at zero then ƒ = vt.
The opposite is also true. When ƒ increases linearly, v is constant. The division by time gives the slope. The distance is ƒ1=120 miles when the time is t1=2 hours. Later ƒ2=240 at t2=4. At both points, the ratio ƒ/t is 60 miles/hour. Geometrically, the velocity is the slope of the distance graph:
slope = change in distance ⁄ change in time = vt ⁄ t = v.
[Fig. 1.3]
The slope of the ƒ-graph gives the v-graph. Figure 1.3 shows two more possibilities:
I don't think speedometers go below zero. But driving backwards, it's not that safe to watch. If you go fast enough, Toyota says they measure "absolute values"—the speedometer reads +30 when the velocity is -30. For the odometer, as far as I know it just stops. It should go backward.*1
How do you compute ƒ from v? The point of the question is to see ƒ = vt on the graphs. We want to start with the graph of v and discover the graph of ƒ. Amazingly, the opposite of slope is area.
The distance ƒ is the area under the v-graph. When v is constant, the region under the graph is a rectangle. Its height is v, its width is t, and its area is v times t. This is integration, to go from v to f by computing the area. We are glimpsing two of the central facts of calculus.
1A The slope of the ƒ-graph gives the velocity v. The area under the v-graph gives the distance ƒ.
That is certainly not obvious, and I hesitated a long time before I wrote it down in this first section. The best way to understand it is to look first at more examples. The whole point of calculus is to deal with velocities that are not constant, and from now on v has several values.
EXAMPLE (Forward and back) There is a motion that you will understand right away. The car goes forward with velocity V, and comes back at the same speed. To say it more correctly, the velocity in the second part is -V. If the forward part lasts until t = 3, and the backward part continues to t = 6, the car will come back where it started. The total distance after both parts will be ƒ = 0.
[Fig. 1.4]
The v-graph shows velocities +V and -V. The distance starts up with slope +V and reaches ƒ = 3V. Then the car starts backward. The distance goes down with slope -V and returns to ƒ = 0 at t = 6.
Notice what that means. The total area "under" the v-graph is zero! A negative velocity makes the distance graph go downward (negative slope). The car is moving backward. Area below the axis in the v-graph is counted as negative.
This forward-back example gives practice with a crucially important idea—the concept of a "function". We seize this golden opportunity to explain functions:
The number v(t) is the value of the function v at the time t.
The time t is the input to the function. The velocity v(t) at that time is the output. Most people say "v of t" when they read v(t). The number "v of 2" is the velocity when t = 2. The forward-back example has v(2) = +V and v(4) = -V. The function contains the whole history, like a memory bank that has a record of v at each t.
It is simple to convert forward-back motion into a formula. Here is v(t):
v(t)= | { | +V | if 0<t<3 |
? | if t=3 | ||
-V | if 3<t<6 |
The right side contains the instructions for finding v(t). The input t is converted into the output +V or -V. The velocity v(t) depends on t. In this case the function is "discontinuous," because the needle jumps at t = 3. The velocity is not defined at that instant. There is no v(3). (You might argue that v is zero at the jump, but that leads to trouble.) The graph of ƒ has a corner, and we can't give its slope.
The problem also involves a second function, namely the distance. The principle behind ƒ(t) is the same: ƒ(t) is the distance at time t. It is the net distance forward, and again the instructions change at t = 3. In the forward motion, ƒ(t) equals Vt as before. In the backward half, a calculation is built into the formula for ƒ(t):
ƒ(t)= | { | Vt | if 0≤t≤3 |
V(6-t) | if 3≤t≤6 |
At the switching time the right side gives two instructions (one on each line). This would be bad except that they agree: ƒ(3) = 3V *2. The distance function is "continuous." There is no jump in ƒ, even when there is a jump in v. After t = 3 the distance decreases because of -Vt. At t = 6 the second instruction correctly gives ƒ(6) = 0.
Notice something more. The functions were given by graphs before they were given by formulas. The graphs tell you ƒ and v at every time t—sometimes more clearly than the formulas. The values ƒ(t) and v(t) can also be given by tables or equations or a set of instructions. (In some way all functions are instructions—the function tells how to find ƒ at time t.) Part of knowing ƒ is knowing all its inputs and outputs—its domain and range:
The domain of a function is the set of inputs. The range is the set of outputs.
The domain of ƒ consists of all times 0≤t≤6. The range consists of all distances 0≤f(t)≤3V. (The range of v contains only the two velocities +V and -V.) We mention now, and repeat later, that every "linear" function has a formula ƒ(t) = vt + C. Its graph is a line and v is the slope. The constant C moves the line up and down. It adjusts the line to go through any desired starting point.
May I collect together the ideas brought out by this example? We had two functions v and ƒ. One was velocity, the other was distance. Each function had a domain, and a range, and most important a graph. For the ƒ-graph we studied the slope (which agreed with v). For the v-graph we studied the area (which agreed with ƒ). Calculus produces functions in pairs, and the best thing a book can do early is to show you more of them.
in | { | input t | → | function ƒ | → | output f(t) | } | in |
the | input 2 | → | function v | → | output v(2) | the | ||
domain | input 7 | → | ƒ(t)=2t+6 | → | ƒ(7)=20 | range |
Note about the definition of a function. The idea behind the symbol ƒ(t) is absolutely crucial to mathematics. Words don't do it justice! By definition, a function is a "rule" that assigns one member of the range to each member of the domain. Or, a function is a set of pairs (t, ƒ(t)) with no t appearing twice. (These are "ordered pairs" because we write t before ƒ(t).) Both of those definitions are correct—but somehow they are too passive.
In practice what matters is the active part. The number ƒ(t) is produced from the number t. We read a graph, plug into a formula, solve an equation, run a computer program. The input t is "mapped" to the output ƒ(t), which changes as t changes. Calculus is about the rate of change. This rate is our other function v.
[Fig. 1.5]
It is quite hard at the beginning, and not automatic, to see the difference between ƒ(t)-2 and ƒ(t-2). Those are both new functions, created out of the original ƒ(t). In ƒ(t)-2, we subtract 2 from all the distances. That moves the whole graph down. In ƒ(t-2), we subtract 2 from the time. That moves the graph over to the right. Figure 1.5 shows both movements, starting from ƒ(t) = 2t + 1. The formula to find ƒ(t-2) is 2(t-2) + 1, which is 2t-3.
A graphing calculator also moves the graph, when you change the viewing window. You can pick any rectangle A≤t≤B, C≤ƒ(t)≤D. The screen shows that part of the graph. But on the calculator, the function ƒ(t) remains the same. It is the axes that get renumbered. In our figures the axes stay the same and the function is changed.
There are two more basic ways to change a function. (We are always creating new functions—that is what mathematics is all about.) Instead of subtracting or adding, we can multiply the distance by 2. Figure 1.6 shows 2f(t). And instead of shifting the time, we can speed it up. The function becomes ƒ(2t). Everything happens twice as fast (and takes half as long). On the calculator those changes correspond to a "zoom"—on the ƒ axis or the t axis. We soon come back to zooms.
[Fig. 1.6]
Each section of the book contains read-through questions. They allow you to outline the section yourself-more actively than reading a summary. This is probably the best way to remember the important ideas.
Starting from ƒ(0) = 0 at constant velocity v, the distance function is ƒ(t) = a. When ƒ(t) = 55t the velocity is v = b. When ƒ(t) = 55t + 1000 the velocity is still c and the starting value is ƒ(0)= d. In each case v is the e of the graph of ƒ. When f is negative, the graph of g goes downward. In that case area in the v-graph counts as h.
Forward motion from ƒ(0) = 0 to ƒ(2) = 10 has v = i. Then backward motion to f(4) = 0 has v = j. The distance function is ƒ(t)= 5t for 0≤t≤2 and then ƒ(t) = k (not -5t). The slopes are l and m. The distance ƒ(3) = n. The area under the v-graph up to time 1.5 is o. The domain of ƒ is the time interval p, and the range is the distance interval q. The range of v(t) is only r.
The value of ƒ(t) = 3t + 1 at t = 2 is ƒ(2) = s. The value 19 equals ƒ(t). The difference ƒ(4) - ƒ(1) = u. That is the change in distance, when 4-1 is the change in v. The ratio of those changes equals w, which is the x of the graph. The formula for ƒ(t) + 2 is 3t + 3 whereas ƒ(t+2) equals y. Those functions have the same z as f: the graph of ƒ(t) + 2 is shifted A and ƒ(t+2) is shifted B. The formula for ƒ(5t) is C. The formula for 5ƒ(t) is D. The slope has jumped from 3 to E.
The set of inputs to a function is its F. The set of outputs is its G. The functions ƒ(t) = 7 + 3(t-2) and ƒ(t) = vt + C are H. Their graphs are I with slopes equal to J and K. They are the same function, if v = L and C = M.