Riemann Sums: Building Area Out of Rectangles
Cover the region under a curve with skinny rectangles, add them up, and let their number soar — the total converges to the exact area.
The problem of curved area
Finding the area of a rectangle or triangle is easy. But what is the area under a curve — say beneath y = x² from x = 0 to x = 2, above the x-axis? No simple shape formula fits. The trick, going back to Archimedes, is to approximate the curved region with straight-sided pieces we can measure, then refine.
Slice into strips, cap with rectangles
Chop the interval [a, b] into n equal strips, each of width Δx = (b − a)⁄n. Over each strip, build a rectangle whose height is the function’s value at some point of that strip. Add up all the rectangle areas — height times Δx — and you have an estimate of the total area. This total is a Riemann sum.
Where do we sample the height?
The freedom is in where on each strip we read the height. A left sum uses the left edge of each strip, a right sum the right edge, and a midpoint sum the center. For a rising function, left edges sit below the curve (underestimate) and right edges above it (overestimate); the midpoint usually splits the difference and does better.
- Width: \( \Delta x = (2 - 0)/4 = 0.5 \). Right endpoints: x = 0.5, 1, 1.5, 2.
- Heights (square each): \( 0.25,\; 1,\; 2.25,\; 4 \).
- Sum of heights: \( 0.25 + 1 + 2.25 + 4 = 7.5 \).
- Multiply by the width: \( 7.5 \times 0.5 = 3.75 \).
Refine, then take the limit
The true area under y = x² on [0, 2] is exactly 8⁄3 ≈ 2.667. Our left sum for n = 4 gives 1.75 (too low) and the right sum gives 3.75 (too high) — the truth is trapped between. Doubling n narrows the gap; pushing n to infinity closes it entirely. That limit is the definite integral.
- Width \( \Delta x = 0.5 \). Left endpoints: x = 0, 0.5, 1, 1.5.
- Heights: \( 0,\; 0.25,\; 1,\; 2.25 \).
- Sum of heights: \( 0 + 0.25 + 1 + 2.25 = 3.5 \).
- Multiply by the width: \( 3.5 \times 0.5 = 1.75 \).
Check your understanding
- Area under a curve has no simple formula, so we approximate it with rectangles.
- A Riemann sum totals rectangle areas: each height f(xᵢ) times the width Δx = (b − a)/n.
- Sampling heights at left, right, or midpoints gives left, right, and midpoint sums.
- For a rising function the left sum underestimates and the right sum overestimates, bracketing the truth (e.g. 1.75 and 3.75 around 8/3 for x² on [0,2]).
- Trapezoidal and midpoint rules converge faster, but all methods share the same limit.
- As n → ∞ the rectangles become infinitely thin and the Riemann sum becomes the exact definite integral.