Riemann Sums
When an area under a curve is not a simple shape, slice it into thin strips and add up rectangles or trapezoids. This guide covers left, right, midpoint and trapezoidal sums, from formulas and from tables, and how to tell whether an estimate is high or low.
A Riemann sum estimates the area under \(y = f(x)\) by cutting \([a, b]\) into strips and adding (height × width) for each strip. The height can come from the left edge, the right edge or the middle of the strip. A trapezoidal sum uses the average of the two edge heights instead. Increasing functions make left sums low and right sums high; concave-up functions make trapezoids high and midpoints low (and the reverse for decreasing or concave-down functions).
1Slicing the area
| Sum | Height of each strip | Strip area |
|---|---|---|
| Left | f at the left edge | \(f(x_{i - 1})\,\Delta x\) |
| Right | f at the right edge | \(f(x_i)\,\Delta x\) |
| Midpoint | f at the middle | \(f\left(\frac{x_{i - 1} + x_i}{2}\right)\Delta x\) |
| Trapezoidal | Average of the two edges | \(\frac{f(x_{i - 1}) + f(x_i)}{2}\,\Delta x\) |
2Equal strips from a formula
\(f(x) = x^2\) on \([0, 4]\), four equal strips
- 1Width of each strip: \(\Delta x = \frac{4 - 0}{4} = 1\). Heights at the edges: \(f(0), f(1), f(2), f(3), f(4) = 0, 1, 4, 9, 16\).
- 2Left: \(1(0 + 1 + 4 + 9) = 14\). Right: \(1(1 + 4 + 9 + 16) = 30\).
- 3Midpoint: \(1(0.25 + 2.25 + 6.25 + 12.25) = 21\).
- 4Trapezoidal: the average of left and right for equal widths, \(\frac{14 + 30}{2} = 22\).
Four strips use four heights. A left sum on \([0, 4]\) uses \(f(0)\) through \(f(3)\); a right sum uses \(f(1)\) through \(f(4)\). Using all five values double-counts.
3Uneven strips from a table
Water flowing into a pond
Water flows into a pond at rate \(r(t)\) gallons per minute:
| \(t\) (min) | 0 | 2 | 5 | 9 | 10 |
|---|---|---|---|---|---|
| \(r(t)\) (gal/min) | 12 | 15 | 11 | 7 | 6 |
Approximate the water added from \(t = 0\) to \(t = 10\) with a left sum, a right sum and a trapezoidal sum.
- 1Widths: 2, 3, 4, 1.
- 2Left: \(2(12) + 3(15) + 4(11) + 1(7) = 120\). Right: \(2(15) + 3(11) + 4(7) + 1(6) = 97\).
- 3Trapezoidal: \(2 \cdot \frac{12 + 15}{2} + 3 \cdot \frac{15 + 11}{2} + 4 \cdot \frac{11 + 7}{2} + 1 \cdot \frac{7 + 6}{2} = 27 + 39 + 36 + 6.5 = 108.5\).
“Using a trapezoidal sum with the four subintervals in the table, the amount of water added from \(t = 0\) to \(t = 10\) minutes is approximately 108.5 gallons.”
Table intervals are often uneven. Multiply each height by its own width; a single \(\Delta x\) only works when the spacing is equal.
Only use the values you have
\(f\) has the values below. Approximate the area under \(f\) on \([0, 8]\) with a midpoint sum using two equal strips.
| \(x\) | 0 | 2 | 4 | 6 | 8 |
|---|---|---|---|---|---|
| \(f(x)\) | 3 | 5 | 9 | 14 | 20 |
- 1Two strips of width 4: \([0, 4]\) and \([4, 8]\). Their midpoints are 2 and 6, both in the table.
- 2\(4 \cdot f(2) + 4 \cdot f(6) = 4(5) + 4(14) = 76\).
A midpoint sum needs the function at each midpoint. With strips \([0, 2], [2, 4], \ldots\), the midpoints 1, 3, 5, 7 are not in the table, so that midpoint sum cannot be computed. Choose strips whose midpoints are given.
4Over or under?
Use the shape of the graph
For \(f(x) = x^2\) on \([0, 4]\), is each approximation an overestimate or an underestimate?
- 1\(f\) is increasing, so each left rectangle uses the lowest height in its strip: underestimate. Each right rectangle uses the highest: overestimate.
- 2\(f\) is concave up, so each trapezoid’s top edge lies above the curve: overestimate. Midpoint rectangles are an underestimate for concave-up functions.
- 3Check: \(14 \lt 21 \lt 21.33 \lt 22 \lt 30\).
| If f is… | Left | Right | Trapezoid | Midpoint |
|---|---|---|---|---|
| Increasing | under | over | ||
| Decreasing | over | under | ||
| Concave up | over | under | ||
| Concave down | under | over |
Quick reference
| Item | Formula |
|---|---|
| Strip width (equal) | \(\Delta x = \frac{b - a}{n}\) |
| Trapezoid | width × average of the two heights |
| Trapezoidal sum (equal widths) | Average of the left and right sums |
| Units | Height units × width units |