Riemann Sums
When a rate graph is curved, you can’t find the area under it with triangles and rectangles exactly. But you can approximate it: slice the region into thin strips, approximate each strip with a rectangle or trapezoid, and add up the areas. These approximations are called Riemann sums, and they show up on almost every AP exam, often with a table of real data.
Key ideas
Section titled “Key ideas”Subintervals
Section titled “Subintervals”Split the interval into pieces called subintervals. If there are pieces of equal width, each has width
Subintervals don’t have to be equal. With data from a table, the widths are often different, so find each width separately.
Four kinds of sums
Section titled “Four kinds of sums”On each subinterval, build a shape and find its area:
| Sum | Height of each rectangle (or shape) |
|---|---|
| Left | the function value at the left end of the subinterval |
| Right | the function value at the right end |
| Midpoint | the function value at the middle of the subinterval |
| Trapezoidal | a trapezoid joining the values at both ends |
Each rectangle’s area is height × width. A trapezoid with parallel sides and and width has area
The trapezoidal sum is always the average of the left and right sums.
Overestimate or underestimate?
Section titled “Overestimate or underestimate?”For a function that is increasing on the interval:
- the left sum is an underestimate (each rectangle uses the smallest height on its strip);
- the right sum is an overestimate.
For a decreasing function, it’s the other way around: left over, right under.
Concavity tells you about trapezoids: if the graph is concave up, the trapezoids sit above the curve, so the trapezoidal sum is an overestimate (and the midpoint sum is an underestimate). If it’s concave down, the trapezoidal sum is an underestimate.
Units and context
Section titled “Units and context”A Riemann sum of a rate is an approximation of an accumulated change, so it has the same units as the area under a rate graph. With a table, you can only use the values you’re given: a midpoint sum needs a data value at the middle of each subinterval.
Worked examples
Section titled “Worked examples”Example 1: Four sums from a formula
Section titled “Example 1: Four sums from a formula”Approximate the area under from to using equal subintervals, with left, right, midpoint, and trapezoidal sums.
Solution. . The function values you need are:
Since is increasing on , is an underestimate and is an overestimate. The exact area turns out to be , which is between them.
Example 2: A table with uneven subintervals
Section titled “Example 2: A table with uneven subintervals”Water flows into a tank at the rate litres per minute. Some values are shown below.
| (min) | |||||
|---|---|---|---|---|---|
| (L/min) |
Use a right Riemann sum and a trapezoidal sum, with the four subintervals in the table, to approximate how much water flows in from to .
Solution. The widths are , , , and .
Right sum (use the value at the right end of each subinterval):
Trapezoidal sum:
About L (right sum) or L (trapezoidal sum) flows in. You can’t say whether these are over- or underestimates, because is neither always increasing nor always decreasing.
Example 3: Is it an overestimate?
Section titled “Example 3: Is it an overestimate?”Find the left Riemann sum for on with equal subintervals. Is it an overestimate or an underestimate?
Solution. , and the left endpoints are , , , :
Since is decreasing on , each left rectangle is as tall as the highest point of its strip. The left sum is an overestimate.
Example 4: A midpoint sum from a table
Section titled “Example 4: A midpoint sum from a table”A runner’s velocity , in m/s, is recorded every seconds.
| (s) | |||||
|---|---|---|---|---|---|
| (m/s) |
Use a midpoint sum with two subintervals of equal width to approximate the distance the runner covers from to .
Solution. Two equal subintervals are and , each s wide. Their midpoints are and , which are in the table:
The runner covers about m.
Common mistakes
Section titled “Common mistakes”Using the same width for uneven subintervals. In a table, check every gap. In Example 2 the widths are , , , and , not all .
Using too many or too few function values. With subintervals, a left sum uses the first values and a right sum uses the last . If you’ve added heights, something is wrong.
Making up values for a midpoint sum. With a table, you can only use a midpoint sum when the table gives the value at each midpoint. Don’t average neighbouring values and call it a midpoint sum.
Mixing up over and under. Picture it: for an increasing function, right rectangles poke above the curve, so the right sum is too big. Decide using whether is increasing or decreasing on the whole interval; if it changes direction, you usually can’t tell.
Forgetting units. A sum of (L/min) × (min) is in litres. AP free-response answers need units.
Practice
Section titled “Practice”1. (Warm-up) The interval is split into equal subintervals. What is , and what are the endpoints of the subintervals?
Solution
. The subintervals are , , and .
2. (Warm-up) Find the left Riemann sum for on with equal subintervals.
Solution
, and the left endpoints are , , :
3. (Warm-up) The function is increasing on . Is a left Riemann sum for on an overestimate or an underestimate of the area under ?
Solution
An underestimate. On each subinterval, the left endpoint gives the smallest value of , so each rectangle fits under the curve.
4. (Core) Find the right Riemann sum for on with equal subintervals. Is it an over- or underestimate?
Solution
, and the right endpoints are , , , :
is increasing on , so the right sum is an overestimate. (The exact area is .)
5. (Core) Use a trapezoidal sum with the three subintervals in the table to approximate the area under from to .
Solution
The widths are , , and :
6. (Core) Approximate the area under from to (radians) using a midpoint sum with equal subintervals. Give the exact value and a decimal to three places.
Solution
, and the midpoints are and :
(Remember: in calculus, trig functions use radians. The exact area is .)
7. (Core) During a rainstorm, rain falls at a rate millimetres per hour. is decreasing for .
| (h) | |||||
|---|---|---|---|---|---|
| (mm/h) |
- (a) Use a right Riemann sum with the four subintervals in the table to approximate the total rainfall from to . Include units.
- (b) Is your answer an overestimate or an underestimate? Explain.
Solution
(a) Widths , , , :
(b) An underestimate. is decreasing, so the right endpoint of each subinterval gives the smallest value of on that subinterval, and each rectangle is below the graph.
8. (Challenge) For on with equal subintervals, show that . How many subintervals do you need so that the right and left sums differ by less than ?
Solution
The right and left sums share all the middle heights. The right sum has that the left doesn’t, and the left has that the right doesn’t:
means , so you need at least subintervals.
9. (Challenge) A function is increasing and concave up on . Put these in order from smallest to largest: the left sum , the right sum , the midpoint sum , the trapezoidal sum , and the exact area (all with the same ).
Solution
Increasing means is too small and is too big. Concave up means is too big and is too small. Also, is the average of and , so it’s between them, and uses a height between the left and right heights, so .
You can check this against Example 1: .