A car's speedometer tells you how fast it is going; its trip meter tells you how far it has gone. The trip meter adds up the speed moment by moment: in each short moment the car covers its speed times that moment, and the little distances add up to the trip. That adding, done exactly, is called integration. When the car backs up, its speed counts as negative and takes away from how far it ends up from the start. The same adding turns any rate into a total.
A car's speed, added up
The trip meter and the area under the speed
Slide the time, or drag along the graph, and watch the shaded area, the car and its trip meter.
- time
- 3 s
- speed now
- 1.5 m/s
- area under the speed so far
- 9.9 m
- trip meter
- 9.9 m
Notice
The trip meter always reads the shaded area. It grows fast while the speed is high, and barely at all near four seconds.
In each moment the car covers its speed times that moment: meters per second times seconds is meters. On the graph that is a thin strip, as tall as the speed and as wide as the moment, and the strips side by side fill the region under the speed. So the distance is the area under the speed's graph. The trip meter was reading an area all along.
Adding up a rate over a stretch like this is called integrating it, and the total is the integral, written . The long S stands for sum, is the rate, is a thin slice of time, and and are where the adding starts and stops. For this car it is 40 m.
What is inside it: rectangles
Rectangles under the speed
Add rectangles with the slider, then switch where each height is taken: left ends, middles or right ends.
a rectangle: speed held steady for one slicecounted too muchmissed
- rectangles
- 4
- each slice
- 2.5 s
- sum of the rectangles
- 35.63 m
- exact area
- 40 m
- sum minus exact
- -4.375 m
Notice
Each rule over-counts some bits and misses others. As the rectangles thin, both shrink, and every rule's sum closes in on 40 m.
A rectangle treats the speed as steady for one slice: its height is the speed at one point of the slice, its width is the slice, and its area is a distance. Adding the rectangles gives an estimate, which is called a Riemann sum. With four wide rectangles taken at their left ends the sum is about 35.6 m; with a hundred thin ones it is about 39.7 m.
The integral is the number the sums close in on as the rectangles get thinner without end, whichever point sets their heights. That closing in is called a limit, and it is how the integral is defined.
The integral of from to is close to the sum of the rectangles, each height times the width , and is the number that sum closes in on.
When the rate goes negative
Up the driveway and back down
Slide the time past four seconds, when the car stops and starts to roll back, and watch both meters.
above the axis addsbelow the axis takes away
- time
- 3 s
- velocity now
- 1.5 m/s
- area above the axis
- 11.25 m
- area below the axis
- 0 m
- up the driveway from the bottom
- 11.25 m
- trip meter
- 11.25 m
Notice
Past the stop the velocity is negative and area grows below the axis: it takes away from how far up the car is. The trip meter keeps adding.
Velocity is speed with a direction: up the driveway counts positive, back down counts negative. Area below the axis counts as negative, so the integral is the area above minus the area below. That difference is the net change: here, how far up the driveway the car ends up.
At eight seconds the two areas are equal, 12 m each, so the integral is zero: the car is back at the bottom, though it has rolled 24 m. The trip meter adds both areas as positive. That is the total distance: the integral of the speed, which is the velocity with its sign dropped.
Net change: the area above the axis minus the area below. Where the car ends up, measured from where it started.
Total distance: both areas counted positive. What the trip meter reads.
Get its number: the running total
The running total and its slope
Slide the end of the shading, or drag either graph. Then move the start too, and compare the shaded area with the rise of D.
- shaded area
- 14.4 m
- rise of D
- 14.4 m
- speed at the end
- 2.4 m/s
- slope of D at the end
- 2.4 m/s
Notice
The slope of D at the end always equals the speed there, and the shaded area always equals how much D rises between the two ends.
The lower graph is the running total: , the distance so far, the area from the start up to . It climbs steeply where the speed is high and almost levels off near four seconds, because how fast a total grows is its rate. In symbols, the derivative of is : .
So an integral's number needs no rectangles. Find a function whose slope is the rate, which is called an antiderivative, and the area between two ends is how much it rises between them. This is the fundamental theorem of calculus.
The area under from to is the rise of , any function whose slope is .
For this car, , and has exactly that slope. So the whole trip is m: the number the rectangles closed in on, with no rectangle at all.
Where it shows up: a tank filling
A tank that already held water
Slide the time and watch the tap, the water in the tank and the shaded area under the flow.
- time
- 4 min
- flow now
- 16 L/min
- water at the start
- 40 L
- water added
- 37.33 L
- in the tank
- 77.33 L
Notice
The shaded area is the water added, never the water held: the level is the 40 L that was there plus the area.
The flow is a rate in liters per minute, and liters per minute times minutes is liters, so the area under it is water. But the area is a change, not an amount. The tank ends with what it started with plus the integral: 40 L plus 144 L is 184 L. This is the net change theorem.
The water at the end is the water at the start plus the integral of the flow, , over the twelve minutes.
Anything that arrives as a rate becomes a total the same way: a speed into a distance, a flow into a volume, a power into energy, a force pushed along a distance into work.
Where it bites, and a check
"The integral is the area" is right only while the rate stays above the axis. Below it, area counts as negative: the car on the driveway had an integral of zero though it rolled 24 m. When a problem asks how far something went in all, add the sizes of the parts.
A definite integral, with two ends, is a number: . An indefinite integral, with no ends, is every antiderivative at once, a family of functions: . In the cancels, so any one of them gives the same number.
Left ends are not always too low. They come out low where the rate is rising and high where it is falling, and the car's speed does both. And the order matters: the end minus the start, .
Check: a ball is rolled up a long ramp at 4 m/s and slows by 1 m/s every second, so its velocity is . Predict when it turns around, how far up the ramp it is after six seconds, and how far it has rolled in all.
Answer: it turns around at 4 s, 8 m up, then rolls 2 m back down. After six seconds it is m up; with the antiderivative , the same number is . In all it has rolled m.
Words, symbols and units on this page
An estimate of an area made by adding up thin rectangles.
The value a quantity closes in on as something shrinks or grows without end.
Speed with a direction, positive one way and negative the other.
- net changenot written yet
The amount at the end is the amount at the start plus the integral of its rate.
How fast a function changes at each point, the slope of its graph.
A function whose slope is the given function, found by running the derivative backwards.
Why an integral is the rise of an antiderivative, tying integrals to derivatives.
Every antiderivative of a function at once, a family of functions that differ by a constant.