The integral as accumulation
P86.accumulation.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: The derivative as a rate of change
Where next?
Later in The Integral as Accumulation
P86.accumulation.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: The derivative as a rate of change
Later in The Integral as Accumulation
The previous pillar went from where something is to how fast it moves: the derivative is how fast something changes. The goal of this lesson is the opposite journey. Given a record of speeds, how far did you go? The answer is to cut the time into thin slices, add up what each slice contributes, and watch the total settle as the slices get thinner. That settled total is the integral, and it is also the area under a curve. You need the derivative as a rate of change, the limit of a sequence from the lesson The real line: sequences, limits and completeness, and school arithmetic.
At a steady speed, distance is speed times time: 12 metres per second for 10 seconds is 120 metres. Draw the speed against time and that steady speed is a flat line; the 120 metres is the area of the rectangle under it, 12 high and 10 wide. Hold on to that picture: distance is the area under the speed.
Real speeds do not stay steady. Here is a train leaving a station, its speed read off the cab's display every 10 seconds:
| Time (s) | Speed (m/s) |
|---|---|
| 0 | 0 |
| 10 | 4 |
| 20 | 7 |
| 30 | 9 |
| 40 | 10 |
| 50 | 11 |
| 60 | 12 |
How far did it travel in the minute? There is no single speed to multiply by. But over each 10-second slice the speed changes only a little, so treat it as steady within the slice, multiply, and add the six pieces.
Which speed should stand for a slice: the one at its start, or the one at its end? Try both. (Here × is plain multiplication of numbers, not the cross product of vectors.)
The train only ever sped up, so within every slice its true speed was at least the starting reading and at most the ending one. The left sum is therefore too small and the right sum too large: the true distance lies between 410 and 530 metres.
Look at what separates the two sums. They share the readings 4, 7, 9, 10 and 11; the right sum has the last reading, 12, where the left has the first, 0. So the gap is 10 × (12 − 0) = 120 m: one slice's width times the whole rise in speed. A log with readings every second instead of every ten would cut the gap ten times.
To see the gap close, use a speed given by a formula, so you can slice as thinly as you like. An apple dropped from a branch gains about 9.8 m/s of speed every second, so t seconds after letting go its speed is v(t) = 9.8 × t. The 9.8 m/s² is the gravitational acceleration, about 9.81 m/s² near the ground, rounded to one decimal place. Cut its first second into n equal slices of width 1/n and compute both sums:
| Slices n | Left sum (m) | Right sum (m) | Gap (m) |
|---|---|---|---|
| 10 | 4.41 | 5.39 | 0.98 |
| 100 | 4.851 | 4.949 | 0.098 |
| 1000 | 4.8951 | 4.9049 | 0.0098 |
The gap is 9.8/n, the train's rule again: width 1/n times the rise in speed, 9.8. Ten times the slices, a tenth of the gap. Both sums are closing in on one number, 4.9 metres, from below and from above. Python can do the left sums:
v = lambda t: 9.8 * t # the apple's speed, m/s
for n in (10, 100, 1000):
h = 1 / n # the width of a slice
left = sum(v(k * h) for k in range(n)) * h
print(n, round(left, 4))
# 10 4.41 · 100 4.851 · 1000 4.8951
The number both sums approach as the slices get thinner, their limit, is the integral of v from 0 to 1, written
∫₀¹ v(t) dt = 4.9
and read "the integral of v from 0 to 1". The tall ∫ is an old-fashioned long S, for sum; v(t) dt is one slice, a speed times a thin width of time dt; the 0 and 1 say where the adding starts and stops. In general, ∫ₐᵇ f(t) dt is the total that f accumulates from a to b.
For a speed that only increases, every left sum is at most the true distance and every right sum at least it. If two sequences of numbers squeeze a fixed number between them and their gap shrinks to 0, they can have only one limit, and it is that number: anything else would sit outside the squeeze once the gap is small enough. So the slice sums do not merely approximate the distance; their common limit is the distance.
Every slice in a sum is a thin rectangle: as tall as the speed, as wide as the slice. The left sum is a staircase of rectangles that stays under the graph of v; the right sum is a staircase that pokes above it. As the slices thin, both staircases hug the graph, and the integral is the area under the curve: the region between the graph and the time axis, from a to b.
The apple lets you check this. The graph of v(t) = 9.8 × t from 0 to 1 is a straight line, and the region under it is a triangle with base 1 and height 9.8. Its area is ½ × 1 × 9.8 = 4.9, exactly the number the sums closed in on. For a curved graph there is no triangle to fall back on, and the slices are the only way in: that is what makes the integral a new tool rather than old geometry.
A lift rises at 2 m/s for 10 seconds, waits for 5 seconds, then goes down at 1.5 m/s for 8 seconds. Count upward speeds as positive and downward ones as negative, so the velocity, a speed with a sign for its direction, is 2, then 0, then −1.5. Slice and add as before:
2 × 10 + 0 × 5 + (−1.5) × 8 = 20 + 0 − 12 = 8 m
The lift ends 8 metres above where it started: its displacement. Slices where the velocity is negative count as negative area, below the time axis, and they cancel some of the area above it; this is the signed area. The lift's distance travelled is a different question: count every slice as positive, 20 + 0 + 12 = 32 m. The integral of a velocity gives the displacement; the integral of the speed, its size without the sign, gives the distance travelled.
The derivative takes a position and returns a velocity. The integral takes a velocity and returns a change of position, the displacement. They look like opposite operations, and the next lesson proves that they are: the fundamental theorem of calculus. Physics uses the integral in exactly this way, adding up a velocity to get a displacement, and adding up a force along a path to get the work it does.
Fill each gap. Each one says why after you check.
Loading the exercise...
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Two coding rungs in your browser, in a little Python (functions, lists and loops); if that is new, Beginner Python teaches it. Run checks the visible tests; Submit grades against hidden tests, which try cases you have not seen.
Loading exercise…
Loading exercise…
Loading your notes...