Lite / Engineering Complex Systems / Week 6
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.
Why should I care?
Distance from speed, energy from power, charge from current, water from a flow meter: every total is a sum of rate × small time. This is the second half of calculus and the basis of every numerical integrator, from a step counter to a spacecraft navigation computer.
- Estimate an accumulated quantity with left, right and midpoint Riemann sums.
- Explain why left and right sums bracket the true value for a monotonic rate.
- Describe the definite integral as the limit of Riemann sums.
Predict
A drone climbs at v(t) = 0.5t² + 1 m/s. A left Riemann sum with 4 one-second strips over 0–4 s gives 11 m. Is the true height gained more or less than 11 m?
- More
- Less
- Exactly 11 m
Guess first, then reveal
The rate is increasing, so the left edge of each strip is the lowest value in it: every rectangle sits under the curve. The true value is 14.67 m.
Discover
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?
What the interactive shows (text version)
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.
Watch (optional)
Watch for: Watch the first section: distance from a velocity graph by adding thin rectangles, and why thinner rectangles get closer.
Recovers distance from a velocity graph by adding thin rectangles, then shows why antiderivatives give the exact answer.
“Integration and the fundamental theorem of calculus | Chapter 8, Essence of calculus” by 3Blue1Brown (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
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.
Explain it another way
Intuitive
Fill the area under the curve with Lego bricks. Thinner bricks fit the curve more closely. With infinitely thin bricks there is no gap left: that is the integral.
Technical
Rₙ = Σᵢ f(tᵢ)·Δt with tᵢ in the i-th strip. For continuous f, Rₙ → ∫ₐᵇ f dt as n → ∞. Left/right error ≈ ½(b − a)·Δt·f′ on average; midpoint ≈ (b − a)·Δt²·f″/24.
Mathematical
∫ₐᵇ f(t) dt = lim (n→∞) Σ f(tᵢ*)Δt. Linearity: ∫(αf + βg) = α∫f + β∫g. Additivity: ∫ₐᵇ + ∫ᵇᶜ = ∫ₐᶜ.
Applied
A car's trip computer adds speed × time for every short interval to estimate distance; a smart meter adds power × time every few seconds to bill you in kilowatt-hours.
Worked example 1
Left, right and midpoint sums for v = 0.5t² + 1 on [0, 4] with n = 4.
Δ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.
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.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Record your speed every 10 s on a short walk or bike ride (a phone app or estimates). Estimate the distance with left and right sums. Compare with a map. Which sum is closer, and why?
Reflect
Why does the midpoint rule do so much better than the left and right rules for the same number of strips?
Write your answer on paper or in your own notes. Lite never stores what you write.
Go further
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online.