Riemann Sums Explained: Left, Right, Midpoint and Trapezoid
On this page
A Riemann sum estimates the area under a curve by splitting it into thin strips and adding up rectangles. The height of each rectangle comes from the function at the left end, right end or middle of its strip. As the strips get thinner, the sum approaches the exact integral.
Setting up
To approximate with strips, each strip has width
Worked example:
The exact area is .
Left sum, : , heights at :
This is too small, because is increasing, so left heights are the lowest in each strip.
Midpoint sum, : , heights at . The total is , already very close.
Comparing the methods
| Method | Heights from | Typical accuracy |
|---|---|---|
| Left | left ends | low |
| Right | right ends | low |
| Midpoint | middles | good |
| Trapezoid | average of both ends | good |
From sums to integrals
The definite integral is defined as the limit of Riemann sums:
That is why the integral symbol is a stretched S, for "sum".
Common mistakes
- Using rectangles instead of .
- Mixing up which end to use for left and right sums.
- Forgetting to multiply by .
Practice questions
- Find the right sum for on with .
- Find the trapezoid estimate for on with .
- Is a left sum of on an over- or underestimate?
Answers: 1) 2) (exact) 3) overestimate
Draw the rectangles yourself in the Riemann sum calculator, then compare with the exact value from the integral calculator. See also integration for beginners.
Frequently asked questions
Why is the midpoint rule more accurate?
Over each strip, the parts of the rectangle above and below the curve tend to cancel out.
Is the trapezoid rule a Riemann sum?
Strictly it is the average of the left and right sums, but it is used the same way to approximate integrals.
How many rectangles do I need?
More rectangles give a better estimate. For smooth functions, doubling n with the midpoint rule cuts the error by about four.
#calculus#integrals
