Riemann Sum — Right Endpoint Approximation
Problem
Approximate ∫₀⁴ x² dx using 8 right-endpoint rectangles.
Explanation
The right-endpoint Riemann sum uses the function value at the right side of each subinterval. For an increasing function like , this systematically overestimates the true area — every rectangle sticks above the curve.
The Setup
Same partition as the left sum, but we evaluate at the right endpoint for :
Step-by-Step Solution
Given: , , , .
Find: The right-endpoint Riemann sum .
Step 1 — Compute .
Step 2 — List the right endpoints.
Step 3 — Evaluate .
Step 4 — Sum the function values.
Step 5 — Multiply by .
Step 6 — Compare to the exact value.
The error is , or about 20% overestimation. The right sum is slightly worse than the left sum (which underestimated by 18%), because grows faster as grows — the error in the rightmost rectangle alone is huge.
Step 7 — Average the left and right sums (Trapezoidal Rule).
A neat observation: averaging and gives a much better estimate. This average is the Trapezoidal Rule:
That's only 0.167 away from the exact value — less than 1% error with the same number of subdivisions!
Answer: The right-endpoint Riemann sum with rectangles is
This overestimates the exact area by 4.17 square units (≈ 20% error). The trapezoidal average is almost exactly right.
Try It
- Adjust n — watch how both the left and right errors shrink toward the exact value .
- Toggle show exact area to see the true region in faint green.
- Notice how every rectangle's top-right corner touches the curve — that's the defining feature of a right Riemann sum.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.