AP Calculus AB and BC
Riemann Sums: Left, Right, Midpoint, and Trapezoidal
A Riemann sum estimates a definite integral by adding rectangle or trapezoid areas; the left, right, midpoint, and trapezoidal rules differ only in where each strip takes its height. For an increasing function the left sum underestimates and the right overestimates; concavity decides midpoint and trapezoidal.
When a Riemann sum is the right tool
Reach for a Riemann sum whenever you need the area under a curve, or the total accumulated by a rate, but an exact antiderivative is out of reach: a table of measured data, a graph with no formula, or a function whose antiderivative you are not expected to find. This is Topics 6.2 and 6.3 in the CED, and it is where the definite integral is born. The plan never changes. Cut the interval into thin subintervals, build a rectangle or trapezoid over each one, and add the pieces. Narrower strips give a closer estimate.
Every Riemann sum is a sum of products, and each product is one strip's height (a function value) times that strip's width. Once you see that structure you can build any of the four sums the exam asks for. The Riemann sum slider at /interactives/riemann-sum-slider lets you drag the number of subintervals up and watch the estimate tighten toward the true area, and the calculator at /calculators/riemann-sum-visualizer draws the strips for a function you type in, so you can check a hand computation against the picture.
Four rules, one difference: where the height comes from
Fix a partition of into subintervals with a uniform width and grid points . All four methods multiply widths by heights and add. They disagree only about which height each strip uses.
- Left sum: the height is the function value at the left edge of each strip.
- Right sum: the height is the value at the right edge.
- Midpoint sum: the height is the value at the middle of each strip.
- Trapezoidal sum: no single height. Each strip is a trapezoid whose two parallel sides are the left and right function values, so its area uses their average.
The trapezoidal formula is not a new idea; it is the average of the left and right sums, . That is why every interior grid point carries a coefficient of 2: each one is the right edge of one strip and the left edge of the next, so it gets counted twice. When a table hands you unequal widths, drop the single and multiply each height, or each averaged pair, by its own strip width.
Over or underestimate: the question the exam always asks
Topic 6.2 leans hard on one skill: deciding, without computing the true value, whether an approximation is too big or too small. Two features of the function settle it, and each governs a different pair of methods. Monotonicity, whether the function is increasing or decreasing, controls the left and right sums. Concavity, whether the graph bends up or down, controls the midpoint and trapezoidal sums.
For a rising function the left edge of every strip is its shortest side, so left rectangles sit under the curve and the left sum underestimates, while the right edges are tallest and the right sum overestimates. Flip both for a falling function. For concavity, picture the straight chord the trapezoid draws between two points on the curve: when the graph is concave up, that chord lies above the curve, so the trapezoidal sum overestimates. The midpoint rectangle behaves the opposite way: it has the same area as the trapezoid you would get from the tangent line at the midpoint, and for a concave-up curve that tangent line runs below the curve, so the midpoint sum underestimates.
| Method | Underestimate when | Overestimate when |
|---|---|---|
| Left sum | increasing | decreasing |
| Right sum | decreasing | increasing |
| Trapezoidal | concave down | concave up |
| Midpoint | concave up | concave down |
Exam shortcut
For a function with a single concavity across the whole interval, the midpoint and trapezoidal errors point in opposite directions, so the exact integral is trapped between and . That fact alone can answer a multiple-choice question without any arithmetic.
Summation notation and the jump to the definite integral
Topic 6.3 packs the whole construction into one symbol. A general Riemann sum is written as a sum of products over the subintervals of a partition.
Here is the width of the th subinterval and is any sample point inside it: its left end gives a left sum, its right end a right sum, its middle a midpoint sum. With a uniform width , the definite integral is defined as the limit of these sums as the strips shrink to nothing.
For a continuous function the choice of sample point stops mattering in the limit, which is why left, right, and midpoint sums all converge to the same number (Topic 6.3). Worked Example 3 runs this limit by hand so you can watch the definite integral emerge from pure algebra, no antiderivative required.
Mistakes that cost points
- Miscounting grid points. subintervals need grid points. The left sum uses the first of them and drops the last; the right sum drops the first and keeps the last.
- Forcing one width onto a table. Data with unequal spacing has no single . Multiply each strip by its own width, or the arithmetic quietly smears.
- Forgetting the 2's in the trapezoidal formula. Every interior grid point is shared by two trapezoids, so it appears twice; only the two outer endpoints carry a coefficient of 1.
- Swapping the over/under rules. Increasing versus decreasing decides left and right sums. Concavity decides midpoint and trapezoidal. Judging a left sum by concavity is a classic trap.
- Calling a fine partition exact. More strips shrink the error but never erase it. Only the limit as gives the exact integral.
Worked examples
Worked example
Left and right sums for a power function
Estimate using left and right Riemann sums with four subintervals of equal width, then decide whether each is an over- or underestimate.
- The interval is with , so . The grid points are , , , , , and .
- Evaluate at every grid point: , , , , .
- The left sum uses the left endpoints through : .
- The right sum uses the right endpoints through : .
- Classify with monotonicity. Since on , the function is increasing, so the left sum underestimates and the right sum overestimates. As a check, the antiderivative gives . This evaluates to , or about , which sits between and .
(underestimate) and (overestimate); the exact value lies between them.
Worked example
Trapezoidal sum from a table with unequal widths
Water flows into a tank at a rate liters per minute, measured at these times: , , , , and . Use a trapezoidal sum with the four subintervals given by the table to approximate , and state what the result represents.
- The partition is , giving four subintervals of widths , , , and minutes. Because the widths differ, handle each trapezoid separately instead of factoring out one .
- Each trapezoid area is the width times the average of its two heights: .
- Compute each piece. On : . On : . On : . On : .
- Add the four trapezoids: .
About liters flow into the tank during the first minutes, since integrating a rate in liters per minute over minutes accumulates a total amount in liters.
Worked example
From a right Riemann sum to the definite integral
Write the right Riemann sum for with equal subintervals, then take the limit as to evaluate the integral straight from the definition.
- With equal strips on , the width is and the right endpoints are for .
- Build the sum: .
- Simplify the general term: , so .
- Apply the sum-of-squares formula . Substituting gives , which simplifies to .
- Expand the numerator to get . Dividing each term by gives .
- Let . The terms and vanish, so , which is .
, matching the antiderivative check .
Frequently asked questions
Does the left or right Riemann sum overestimate?
It depends on whether the function is increasing or decreasing, not on which sum you pick. For an increasing function the right sum overestimates and the left sum underestimates; for a decreasing function it is the reverse. If the function turns around inside the interval, split it at the turning point and judge each piece separately.
Is a midpoint Riemann sum an over- or underestimate?
Concavity decides it. Where the graph is concave up, the midpoint sum underestimates; where it is concave down, the midpoint sum overestimates. This is the opposite of the trapezoidal rule, which overestimates when concave up and underestimates when concave down.
What is the difference between a Riemann sum and a definite integral?
A Riemann sum is a finite estimate: a fixed number of strips whose areas you add. The definite integral is the exact value those sums approach as the strips get infinitely thin, . Every Riemann sum stays an approximation until you take the limit.
Why is the trapezoidal rule usually more accurate than left or right sums?
A trapezoid follows the straight line between two points on the curve, while a rectangle uses only one endpoint's height, so the trapezoid tracks a sloped function much more closely. For the same number of subintervals it is the average of the left and right sums, , which cancels much of the error the one-sided sums carry in opposite directions.