How to calculate left, right, and midpoint Riemann sums
We can estimate the area under a curve by breaking it into narrow rectangles. The width comes from the interval, and the height comes from where we sample the curve. Let’s use the same interval three ways to see what changes.
Choose the widths and the sample points
Divide into equal pieces of width . Within each piece, use the left endpoint, right endpoint, or midpoint. Add the sampled heights and multiply by the common width.
Compare three estimates on the same interval
For over with , each width is . The three sets of sample points give
| Sample points | Sum |
|---|---|
| (left) | |
| (midpoint) | |
| (right) |
The function is increasing, so the left rectangles give a lower estimate and the right rectangles give an upper estimate. The exact integral is . For a decreasing function, the left and right roles reverse. For a continuous function, the sums approach the definite integral as the width goes to zero.