Riemann sums estimate the area under a curve, or a definite integral, by adding the areas of rectangles or trapezoids. The four main types are left, right, midpoint, and trapezoidal sums, and you can build them from a graph, a table, an equation, or a verbal description. For AP Calculus, include units when the values come from a real context.
Riemann Sums Summary
For AP Calculus Topic 6.2, Riemann sums approximate a definite integral by breaking an interval into subintervals and adding simple areas. Left, right, and midpoint sums use rectangles; trapezoidal sums use trapezoids. The setup works from tables, graphs, formulas, or verbal descriptions.
The exam often tests two things at once: computing the approximation and explaining its error. Increasing/decreasing behavior decides whether left and right sums overestimate or underestimate, while concavity decides the direction of error for midpoint and trapezoidal sums.

Why This Matters for the AP Calculus Exam
Approximating definite integrals shows up across AP Calculus because real data often comes as a table of values, not a clean formula. You will be asked to set up and compute left, right, midpoint, and trapezoidal sums, then explain whether the result is an overestimate or underestimate. This skill connects directly to the idea that a definite integral is the limit of these sums as the rectangles get thinner, which is the foundation for everything that follows in integration and accumulation.
Approximation also matters because many functions do not have an easy antiderivative. When you cannot integrate exactly, a numerical approach (with or without a calculator) is how you get an answer. Being precise with units and setup is important for clear exam work, especially when a problem gives you data in context.
Key Takeaways
- A Riemann sum approximates the area under a curve by adding up areas of rectangles (left, right, midpoint) or trapezoids.
- Find the width of each subinterval with (b - a)/n for a uniform partition; partitions can also be nonuniform with different widths.
- Left sums underestimate increasing functions and overestimate decreasing functions; right sums do the opposite.
- For trapezoidal and midpoint sums, concavity decides the error: trapezoidal overestimates when concave up, midpoint underestimates when concave up.
- You can build any of these sums from a graph, a table of values, an equation, or a verbal description.
- As the number of subintervals grows and widths shrink toward 0, the Riemann sum approaches the exact value of the definite integral.
The Four Riemann Sums
As you move into integral calculus, the goal shifts from finding an instantaneous rate of change to finding the area under a curve. That area is hard to get exactly with geometry alone, so you approximate it with simple shapes. The more shapes you use, the closer your approximation gets to the true value.
There are four main types:
- Left Riemann sum
- Right Riemann sum
- Midpoint Riemann sum
- Trapezoidal sum
Left and Right Riemann Sums
Left and right refer to which point on each subinterval sets the height of the rectangle. A left Riemann sum uses the left endpoint of each subinterval for the height; a right Riemann sum uses the right endpoint.
Notation: the left Riemann sum is written and the right Riemann sum is written , where is the number of subintervals.
Subintervals (Partitions)
You also choose how wide each base is. A uniform partition uses equal widths; a nonuniform partition uses different widths. For a uniform partition over with subintervals, each width is:
The pieces you divide the interval into are called subintervals.
Overestimate vs Underestimate for Left and Right Sums
Whether a left or right sum is too high or too low depends on whether the function is increasing or decreasing:
- A left Riemann sum underestimates when a function is increasing.
- A right Riemann sum overestimates when a function is increasing.
- A left Riemann sum overestimates when a function is decreasing.
- A right Riemann sum underestimates when a function is decreasing.
A quick way to remember it: for an increasing function, the right endpoint is the tallest point in each strip, so right sums run high and left sums run low. Flip it for a decreasing function.
Trapezoidal and Midpoint Sums
Both of these aim to reduce error compared to plain left or right sums.
Trapezoidal sum: instead of flat-topped rectangles, you connect each pair of points with a straight line, forming trapezoids. The area of one trapezoid is:
where and are the two parallel side heights and is the width. The trapezoidal sum equals the average of the left and right sums, so . It is written .
Midpoint sum: use the height of the function at the middle of each subinterval as the rectangle's height. It is written .
Overestimate vs Underestimate for Trapezoidal and Midpoint Sums
Here concavity is what matters, not increasing/decreasing:
- A trapezoidal Riemann sum overestimates when a function is concave up.
- A trapezoidal Riemann sum underestimates when a function is concave down.
- A midpoint Riemann sum underestimates when a function is concave up.
- A midpoint Riemann sum overestimates when a function is concave down.
Because trapezoidal and midpoint sums err in opposite directions, the true value often sits between them.
Worked Example: Building Sums from an Equation
Given , find , , , and over the interval .
Start by finding the width of each subinterval:
Build a table of values at the endpoints:
| x | y (height) |
|---|---|
| 0 | 0 |
| 1 | 0.5 |
| 2 | 2 |
| 3 | 4.5 |
| 4 | 8 |
Left sum uses . Since the width is 1, sum the heights:
Right sum uses :
Trapezoidal sum averages each pair of adjacent heights times the width:
Notice this matches .
Midpoint sum uses the heights at :
| x | y (height) |
|---|---|
| 0.5 | 0.125 |
| 1.5 | 1.125 |
| 2.5 | 3.125 |
| 3.5 | 6.125 |
Are and over or underestimates? This function is concave up, so is an overestimate and is an underestimate. The true area lies between 10.5 and 11.
How to Use This on the AP Calculus Exam
Free Response
Many free-response problems give you a table of values for a rate function and ask for an approximation. Write out the full setup, not just the final number. For a trapezoidal estimate with unequal widths, keep each term separate so your work is clear. Always include units when the problem is in context, since the unit of the area is the rate's unit times the independent variable's unit.
MCQ
Multiple-choice questions often test the over/underestimate rules directly. Read whether the function is increasing/decreasing (for left and right sums) or concave up/down (for trapezoidal and midpoint sums) and apply the matching rule. Watch for nonuniform partitions where each subinterval has a different width.
Problem Solving
When data comes from a table, you do not need a formula. Match each subinterval to its width and the correct sample point (left endpoint, right endpoint, or midpoint). Factor out the width when it is constant to speed up the arithmetic, like .
Common Trap
A midpoint sum needs the function value at the middle x of each subinterval, not the average of the endpoint heights. The average-of-endpoints idea belongs to the trapezoidal sum.
Practice Problems
- Given over , calculate the right Riemann sum with .
- Given over , compute the left Riemann sum with .
- Given over , find and .
Solutions
Problem 1: Width is . Right endpoints are .
| x | y (height) |
|---|---|
| 2 | 5 |
| 3 | 7 |
| 4 | 9 |
| 5 | 11 |
Problem 2: Width is . Left endpoints start at .
| x | y (height) |
|---|---|
| 0 | 0 |
| 1/3 | 10/9 |
| 2/3 | 22/9 |
| 1 | 4 |
| 4/3 | 52/9 |
| 5/3 | 70/9 |
Factor out the width:
Problem 3: Width is .
For , use heights at every endpoint:
| x | y (height) |
|---|---|
| 2 | 8 |
| 2.5 | 14.75 |
| 3 | 23 |
| 3.5 | 32.75 |
| 4 | 44 |
| 4.5 | 56.75 |
| 5 | 71 |
| 5.5 | 86.75 |
| 6 | 104 |
| 6.5 | 122.75 |
| 7 | 143 |
| 7.5 | 164.75 |
| 8 | 188 |
Using the trapezoidal pattern (each interior height counts twice, endpoints once), this works out to:
For , use heights at the midpoint of each subinterval:
| x | y (height) |
|---|---|
| 2.25 | 11.1875 |
| 2.75 | 18.6875 |
| 3.25 | 27.6875 |
| 3.75 | 38.1875 |
| 4.25 | 50.1875 |
| 4.75 | 63.6875 |
| 5.25 | 78.6875 |
| 5.75 | 95.1875 |
| 6.25 | 113.1875 |
| 6.75 | 132.6875 |
| 7.25 | 153.6875 |
| 7.75 | 176.1875 |
Common Misconceptions
- A Riemann sum is exact. It is an approximation. It only approaches the true definite integral as the number of subintervals grows and the widths shrink toward 0.
- Left always underestimates and right always overestimates. That is only true for increasing functions. For decreasing functions the roles flip.
- The over/underestimate rule for trapezoidal and midpoint sums depends on increasing/decreasing. It depends on concavity, not direction. Trapezoidal overestimates when concave up; midpoint underestimates when concave up.
- Midpoint means averaging the two endpoint heights. Averaging endpoints gives the trapezoidal value. The midpoint sum uses the function value at the middle x of each subinterval.
- All partitions must be uniform. Subintervals can have different widths. With a nonuniform partition, multiply each height by its own width before adding.
- You always need a formula. When a problem gives a table, you can approximate directly from the listed values without ever knowing the underlying function.
Related AP Calculus Guides
- Unit 6 Overview: Integration and Accumulation of Change
- 6.11 Integrating Using Integration by Parts
- 6.1 Integration and Accumulation of Change
- 6.12 Integrating Using Linear Partial Fractions
- 6.4 The Fundamental Theorem of Calculus and Accumulation Functions
- 6.5 Interpreting the Behavior of Accumulation Functions Involving Area
Vocabulary
The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.Term | Definition |
|---|---|
definite integral | The integral of a function over a specific interval [a, b], representing the net signed area between the curve and the x-axis. |
left Riemann sum | An approximation method for a definite integral using rectangles whose heights are determined by the function values at the left endpoints of subintervals. |
midpoint Riemann sum | An approximation method for a definite integral using rectangles whose heights are determined by the function values at the midpoints of subintervals. |
nonuniform partition | A division of an interval into subintervals of varying widths. |
numerical methods | Computational techniques used to approximate definite integrals when exact analytical solutions are difficult or impossible to obtain. |
overestimate | An approximation that is greater than the actual value of a function. |
right Riemann sum | An approximation method for a definite integral using rectangles whose heights are determined by the function values at the right endpoints of subintervals. |
trapezoidal sum | An approximation method for a definite integral using trapezoids to estimate the area under a curve. |
underestimate | An approximation that is less than the actual value of a function. |
uniform partition | A division of an interval into subintervals of equal width. |
Frequently Asked Questions
What is a Riemann sum in AP Calculus?
A Riemann sum approximates a definite integral by splitting an interval into subintervals and adding rectangle or trapezoid areas. It estimates the accumulated area under a curve.
How do you calculate a left Riemann sum?
Use the left endpoint of each subinterval as the rectangle height, multiply each height by its subinterval width, and add the products. For equal widths, factor out delta x.
What is the difference between left, right, and midpoint sums?
Left sums use left endpoints, right sums use right endpoints, and midpoint sums use the middle of each subinterval as the rectangle height.
What is a trapezoidal sum?
A trapezoidal sum approximates area by connecting adjacent function values with line segments and adding trapezoid areas. For equal subintervals, it is also the average of the left and right sums.
How do you know if a Riemann sum is an overestimate or underestimate?
For left and right sums, use whether the function is increasing or decreasing. For midpoint and trapezoidal sums, use concavity: concave up makes trapezoidal high and midpoint low; concave down reverses that.
What is a common mistake with midpoint and trapezoidal sums?
A common mistake is using the average of endpoint heights for a midpoint sum. The midpoint sum uses the actual function value at the middle of each subinterval; averaging endpoints is part of the trapezoidal method.