Calculus
Riemann Sum Challenge
When does a rectangle or trapezoid give too much signed area?
Start with four left-endpoint rectangles for x². Predict whether the sum is below, above, or equal to the integral, then check it.
Choose the integral
Rectangles and curve
Above the axis addsBelow the axis subtracts
Heights and signed contributions
| Interval | Height(s) | Contribution |
|---|
The signed integral
| Rule | Estimate | Signed error¹ |
|---|
¹Signed error is estimate minus exact integral. A positive error means the estimate is numerically greater, even when both values are negative.
Teaching notes and definitions
Partition the interval into n equal pieces of width Δx = (b − a)/n. Each rectangle contributes its sampled height times Δx. A trapezoid contributes the average of its two endpoint heights times Δx. A shape below zero contributes a negative amount.
For increasing functions, left sums underestimate and right sums overestimate. For decreasing functions the inequalities reverse. For concave-up functions, midpoint sums underestimate and trapezoidal sums overestimate. For concave-down functions the inequalities reverse. A linear function gives exact midpoint and trapezoidal sums.
Try x² on [−1, 1] to see both endpoint rules overestimate. Try x³ − 3x on [−2, 2] to see cancellation across the origin. An approximation may integrate the whole interval exactly even when individual shapes have errors.