Riemann sums & area
In the previous section, areas were easy to find because the regions were simple geometric shapes. Now suppose you want the area under a curved graph, like , from to . Before learning how to find the exact area, it helps to start with an approximation.
A common approach is to break the interval into smaller pieces, approximate the region with rectangles (or trapezoids), and add up their areas. This idea leads to Riemann sum approximations.
Riemann sums to estimate area
There are 3 main types of Riemann approximations: left, right, and midpoint Riemann sums. All three use rectangles.
Another common approximation is the Trapezoidal rule, which uses trapezoids. It isn’t technically a Riemann sum, but it follows the same “partition and add” process.
Here are the steps to finding a Riemann sum:
- Divide the interval into subintervals, where each subinterval has equal width :
-
On each subinterval, choose a point to evaluate the function (this choice depends on which type of Riemann sum you’re using).
-
Multiply the function value by the width to get the area of a rectangle.
For a trapezoid, is the height of each trapezoid while the function values are the bases.- Note: If the function value is negative, the rectangle lies below the -axis, so its contribution is negative. That’s expected here because we’re approximating net signed area, which accounts for both positive and negative values.
-
Add the areas together.
Examples
Estimate the area under with subintervals on the interval using a:
a) Right Riemann sum
b) Left Riemann sum
c) Midpoint Riemann sum
d) Trapezoidal sum
a) Right Riemann sum
- Divide the interval into subintervals, each with equal width:
This step is the same for all of the sums.
- Since and this is a right Riemann sum, use the right endpoint of each subinterval to set the rectangle height.
- The right endpoints are and the function values are:
- Then the right Riemann sum is
b) Left Riemann sum
- Just as in part a),
- For a left Riemann sum, use the left endpoint of each subinterval to set the rectangle height.
- The left endpoints are and the function values are:
- Then the left Riemann sum is
c) Midpoint Riemann sum
- Just as in the previous parts,
- The 4 rectangles correspond to these 4 subintervals:
- For a midpoint sum, the height of each rectangle is the function value at the midpoint of each subinterval.
The midpoint is found by averaging the endpoints. For example,
- Midpoint of
The midpoints of each subinterval in this example are and the function values are:
- Then the midpoint Riemann sum is
d) Trapezoidal sum
The area of a trapezoid is
Here, the trapezoids are oriented sideways:
- the height of each trapezoid is
- the parallel bases have lengths given by the function values at the endpoints of each subinterval
For the leftmost trapezoid, the lengths of the parallel bases are and .
For the trapezoid next to it, the parallel bases are and .
Notice that when you add the trapezoid areas, interior function values (like ) appear in two adjacent trapezoids, so they get counted twice. Only the endpoint values, and , are counted once.
Then
Unequal widths
On some AP exam problems, the subinterval widths aren’t all the same, so you can’t use a single . These problems are often given in a table.
The rate of water, in gallons per minute, flowing into a tank can be modeled by function , which is continuous and strictly increasing on the interval . Select values are given below:
a) Will a left or right Riemann sum underestimate the actual change in the amount of water?
b) Approximate the net change in the amount of water after 10 seconds using a left Riemann sum with the subintervals and . Include units.
c) Repeat part b) using a right Riemann sum with the same subintervals. Include units.
Solutions
a) Underestimation
Because is strictly increasing, the left-endpoint rectangles lie below the curve on each subinterval. That means a left Riemann sum gives an underestimate of the actual net change. A right Riemann sum uses right endpoints, so its rectangles lie above the curve, giving an overestimate.
b) Left Riemann sum
The rectangles can be made as shown in the image below. The units come from multiplying the units of by the units of , so the result is in gallons.
Use the left endpoint of each subinterval for the height, and use the subinterval length for the width:
- On : width , height
- On : width , height
- On : width , height
- On : width , height
So the approximate net change is:
c) Right Riemann sum
Now use the right endpoint of each subinterval for the height:
The approximate net change is:





