Lite / Textbooks / The Mathematics of Machines / Chapter 7
7. Accumulation and integrals
Introduction
If a derivative turns a total into a rate, an integral turns a rate back into a total: power into energy, flow into volume, speed into distance. This chapter adds up thin strips (Riemann sums), makes the sum exact with antiderivatives, and arrives at the fundamental theorem of calculus, which says the two operations undo each other.
Figure 7.1. Four strips under y = x^2 (described in words)
The curve y = x^2 from 0 to 2 with four right-endpoint rectangles of width 0.5 and heights 0.25, 1, 2.25 and 4. Their total area is 3.75, an overestimate of the exact area 8/3 ≈ 2.67.
Explanation
Built from 3 School lessons. Each part is the lesson's own explanation.
7.1 Riemann sums: adding up thin strips
A drone's climb rate changes every moment. How high has it gone after 4 seconds? Chop time into strips, pretend the rate is constant in each, and add.
Rate × width, added up
Split [a, b] into n strips of width Δt = (b − a)/n. In each, take one sample of the rate and multiply by Δt. Left uses the start of each strip, right the end, midpoint the middle. Each product has the units of the total: (m/s) × s = m.
Bracketing and error
For an increasing rate, left sums underestimate and right sums overestimate, so the truth lies between. Doubling n halves the left or right error (error ∝ Δt). The midpoint sum is far better: its error falls by about 4 each time n doubles (∝ Δt²).
The definite integral
As n → ∞ every rule converges to the same number, the definite integral ∫ₐᵇ f(t) dt: the exact accumulated quantity and the area under the curve (counting area below the axis as negative). The ∫ is a stretched S for 'sum' and dt recalls Δt.
Common mix-ups
The area under a velocity curve is a velocity.
✓ Area has units of height × width: (m/s) × s = metres. It is the distance.More strips always mean a different answer, so integrals are never exact.
✓ The sums converge to one exact limit: the definite integral.
Open the Lite lesson: Riemann sums: adding up thin strips
7.2 Definite integrals, exactly
A thousand thin strips give 14.666 m. A million give 14.6666… Is there a way to get the exact answer without adding forever?
Antiderivatives
F is an antiderivative of f if F′ = f. Reverse the power rule: ∫tⁿ dt = tⁿ⁺¹/(n + 1) + C for n ≠ −1. Constants and sums carry through: ∫(4t³ + 2t + 5) dt = t⁴ + t² + 5t + C. Also ∫e^(kt) dt = e^(kt)/k and ∫cos t dt = sin t.
Evaluating F(b) − F(a)
∫ₐᵇ f(t) dt = F(b) − F(a), written [F(t)]ₐᵇ. The constant C cancels. For the drone: ∫₀⁴ (0.5t² + 1) dt = [t³/6 + t]₀⁴ = 64/6 + 4 = 14.667 m, the exact limit of last lesson's sums.
Signed area
Area below the axis counts as negative. ∫ of a velocity that goes negative gives displacement (net change in position), not total distance travelled. For distance, integrate |v| by splitting at the zeros. Units still multiply: A × s = C, W × s = J.
Derivation: ∫₀ᴮ t² dt from a Riemann sum
Right sum with n strips: Δt = B/n and tᵢ = iB/n for i = 1 … n.
Sum: Σ (iB/n)²·(B/n) = (B³/n³)·Σ i².
Use the formula Σᵢ₌₁ⁿ i² = n(n + 1)(2n + 1)/6.
So the sum = (B³/6)·(n + 1)(2n + 1)/n² = (B³/6)·(2 + 3/n + 1/n²).
As n → ∞ the 1/n terms vanish: ∫₀ᴮ t² dt = B³/3. That matches the antiderivative t³/3 evaluated from 0 to B.
Common mix-ups
∫ t² dt = 2t.
✓ That is the derivative. The antiderivative raises the power: t³/3.The integral of velocity is always the distance travelled.
✓ It is the displacement. For distance, integrate the speed |v|.
Open the Lite lesson: Definite integrals, exactly
7.3 The fundamental theorem: slope of the total
Why should 'area under a curve' and 'slope of a curve' have anything to do with each other? The answer is the single most useful idea in calculus.
Accumulation functions
Fix a start a and let the end vary: A(x) = ∫ₐˣ f(t) dt is the total accumulated up to x. For a power trace, A(x) is the energy used so far; for a current, the charge delivered so far. A(a) = 0, and A grows wherever f is positive.
The theorem
Part 1: A′(x) = f(x). Adding a sliver from x to x + h adds about f(x)·h, so [A(x + h) − A(x)]/h → f(x). Part 2: if F is any antiderivative of f, then ∫ₐᵇ f = F(b) − F(a). Part 2 is what you used last lesson; Part 1 is why it works.
Reading graphs both ways
Where the rate f is large, the total A climbs steeply; where f = 0, A is flat (a stationary point); where f < 0, A falls. The total's slope is the rate, so every skill from week 3 (sketching f′) now runs in reverse: sketch the total from the rate.
Common mix-ups
The integral and the derivative are unrelated operations.
✓ They undo each other: d/dx ∫ₐˣ f = f, and ∫ₐᵇ f′ = f(b) − f(a).A running total is largest where the rate is largest.
✓ The total is growing fastest there; it is largest where the rate drops to zero (if the rate then goes negative).
Open the Lite lesson: The fundamental theorem: slope of the total
Worked examples
Riemann sums: adding up thin strips: example 1
Left, right and midpoint sums for v = 0.5t² + 1 on [0, 4] with n = 4.
Solution
Δt = 1. Left: v(0..3) = 1, 1.5, 3, 5.5 → 11 m. Right: v(1..4) = 1.5, 3, 5.5, 9 → 19 m. Midpoint: v(0.5, 1.5, 2.5, 3.5) = 1.125, 2.125, 4.125, 7.125 → 14.5 m. Exact: 14.67 m.
Definite integrals, exactly: example 1
A current I(t) = 2t + 1 A flows from t = 1 s to t = 3 s. How much charge passes?
Solution
Q = ∫₁³ (2t + 1) dt = [t² + t]₁³ = (9 + 3) − (1 + 1) = 10 C.
Definite integrals, exactly: example 2
v(t) = 4 − 2t m/s from 0 to 3 s. Find the displacement and the distance travelled.
Solution
Displacement = [4t − t²]₀³ = 12 − 9 = 3 m. v changes sign at t = 2: 0–2 s gives 4 m forward, 2–3 s gives −1 m. Distance = 4 + 1 = 5 m.
The fundamental theorem: slope of the total: example 1
A(x) = ∫₀ˣ 3t² dt. Find A(x) and A′(2).
Solution
A(x) = x³. A′(x) = 3x² (which is f(x), as the theorem says). A′(2) = 12.
Interactive figures, in words
Figure 7.2 from Riemann sums: adding up thin strips
Choose the drone climb rate, rule Left and n = 4. Read the estimate. Switch to Right and Midpoint. Then double n repeatedly: by what factor does the left-sum error shrink each time? What about the midpoint error?
The accumulator draws rectangles under the drone climb-rate curve. With 4 left strips the estimate is 11 m against an exact 14.67 m; right strips give 19 m; midpoint 14.5 m. Doubling the strips halves the left and right errors and quarters the midpoint error, as the readout's error ratio shows.
Laboratory
These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.
- Equation Lab: Integrals (Equation Lab exploration)
Increase the number of strips and record how the error shrinks each time you double them.
Open on the full site - Code Lab (Studio)
Integrate a logged power trace to find the energy used, and give the answer in joules and watt-hours.
Open on the full site
Practice
Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.
- A drone's climb rate is v(t) = 2t² + 0 m/s. Estimate the height gained from t = 0 to t = 4 s with a midpoint Riemann sum of 6 equal strips, in metres.
Answer it in “Riemann sums: adding up thin strips” - Right Riemann sum of v = 0.5t² + 1 m/s on [0, 4] with 4 strips, in metres.
Answer it in “Riemann sums: adding up thin strips” - A tank drains with an outflow rate that decreases over time. A left Riemann sum of the outflow will…
Answer it in “Riemann sums: adding up thin strips” - Find the exact distance travelled (velocity in m/s) from t = 1 s to t = 5 s when v(t) = -1t² + 1t + 10.
Answer it in “Definite integrals, exactly” - Find ∫₀⁴ (0.5t² + 1) dt exactly, in metres (3 decimal places).
Answer it in “Definite integrals, exactly” - ∫₀⁶ v(t) dt = 0 for a robot's velocity. What can you conclude?
Answer it in “Definite integrals, exactly” - A(x) = ∫₀ˣ 3t² dt. What is A′(2)?
Answer it in “The fundamental theorem: slope of the total” - Which statement is the fundamental theorem (Part 1)?
Answer it in “The fundamental theorem: slope of the total”
Engineering applications
Battery energy
A drone's battery monitor samples power several times a second. Summing power × time step gives the energy used so far, which is how the remaining flight time is estimated.
Charge from current
The charge delivered by a varying current is the integral of current over time. A current of 2 A for 30 minutes delivers 3600 C, which is 1 A·h.
Watch (optional)
Streaming video uses a lot of data. Everything you need is in the text.
- “Integration and the fundamental theorem of calculus | Chapter 8, Essence of calculus” by 3Blue1Brown
- “What does area have to do with slope? | Chapter 9, Essence of calculus” by 3Blue1Brown
Summary
- A Riemann sum adds rate × width over thin strips; left and right sums bracket the true value for a monotonic function.
- The definite integral is the limit of Riemann sums as the strips get thinner.
- If F′ = f, then the integral of f from a to b equals F(b) − F(a).
- Area below the axis counts as negative: the integral is signed.
Glossary
- Integral as accumulated area
- An integral adds up a rate over time: the area under a rate graph gives the total accumulated amount. Field Guide
- Work done by a force
- Work is the energy transferred when a force moves something: the force multiplied by the distance moved in the direction of the force. Field Guide
- Battery capacity and runtime
- A battery's capacity in ampere-hours says how long it can supply a current; multiplied by its voltage it gives stored energy in watt-hours. Field Guide
Project: An energy audit
Log (or take from a lesson) the power drawn by a device over a working cycle. Integrate it with the trapezoid rule, express the energy in joules and watt-hours, and estimate how long a stated battery would last.
Deliverables
- The power log with units
- The integration and result
- Battery-life estimate with its main assumptions
Write it up on paper or in your own notes. Lite never stores what you write.
References
- Gilbert Strang and Edwin Herman (2016). Calculus Volume 1. OpenStax. Link
- MIT OpenCourseWare (2010). 18.01SC Single Variable Calculus (Fall 2010). Massachusetts Institute of Technology. Link
Further reading from the lessons
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online. - MIT OpenCourseWare 18.01SC Single Variable Calculus
Free university course notes, lectures and problem sets for single-variable calculus.