Textbooks/The Mathematics of Machines/Chapter 7
7Accumulation and integrals
Version 1 · Technically checked (automated checks only) · 3 source lessons · 8 practice items
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.
Explanation
This chapter is built from 3 School lessons. Each part below is the lesson's own explanation; open the lesson for its predict-and-discover activities.
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.
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|.
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 full 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
Interactive figure (online). Description: 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
Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.
Equation Lab exploration
Equation Lab: Integrals
Increase the number of strips and record how the error shrinks each time you double them.
Open Equation Lab: Integrals →Studio
Code Lab
Integrate a logged power trace to find the energy used, and give the answer in joules and watt-hours.
Open Code Lab →
Guided practice
Answers are checked on the server; wrong answers get a hint and another try. Signed in, solved items also count towards the source lesson.
- 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. (m)
- Right Riemann sum of v = 0.5t² + 1 m/s on [0, 4] with 4 strips, in metres. (m)
- A tank drains with an outflow rate that decreases over time. A left Riemann sum of the outflow will…
- underestimate the water lost
- overestimate the water lost
- be exact
- Find the exact distance travelled (velocity in m/s) from t = 1 s to t = 5 s when v(t) = -1t² + 1t + 10. (m)
- Find ∫₀⁴ (0.5t² + 1) dt exactly, in metres (3 decimal places). (m)
- ∫₀⁶ v(t) dt = 0 for a robot's velocity. What can you conclude?
- The robot never moved
- The robot ended where it started
- The robot travelled 0 m in total
- A(x) = ∫₀ˣ 3t² dt. What is A′(2)?
- Which statement is the fundamental theorem (Part 1)?
- d/dx ∫ₐˣ f(t) dt = f(x)
- ∫ f′ = f′
- Every function has an integral equal to its area
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 verified videos. Nothing loads from YouTube until you press play.
- Integration and the fundamental theorem of calculus | Chapter 8, Essence of calculus (3Blue1Brown)
- What does area have to do with slope? | Chapter 9, Essence of calculus (3Blue1Brown)
Chapter 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.
- 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.
- 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.
Definitions from the 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
Keep your work in your Engineering Journal; it stays private unless you choose to share it.
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 source 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.
Publication record
- Version
- 1
- Status
- Technically checked (automated checks only)
- Technical review
- Automated checks only, last run 2026-11-29. No human, educator or mentor review is claimed.src/content/textbooks/textbooks.test.ts: schema, every lesson, diagram, practice item, video, Field Guide entry, lab and reference resolves; figure numbers recomputed; no practice answers in client payloads.
- Written by
- Compiled and written by the Tactiverge team with AI assistance, from Tactiverge School lessons that were themselves written with AI assistance.
- Licence
- All rights reserved by the founders unless a licence is approved.
- Corrections
- None recorded yet.Spotted a mistake? Use “Report a problem” on any chapter, or see the corrections page.