Show how the area approximation under y = x² from 0 to 4 converges as n increases from 4 to 100.
Explanation
The whole point of the integral is to take the limit of Riemann sums as the number of rectangles goes to infinity. This visualization makes the limit feel real: as you crank up n, the rectangles fill in the curve perfectly and the approximation converges to the exact value 64/3.
The Limit Definition
∫abf(x)dx=limn→∞∑i=1nf(xi∗)Δx
where Δx=(b−a)/n and xi∗ is any sample point in the i-th subinterval. As n→∞ the partition becomes so fine that the sum converges to a single number — the definite integral.
Step-by-Step Solution
Given:f(x)=x2, a=0, b=4. Find: how the right-endpoint Riemann sum behaves as n grows, and confirm the limit.
Step 1 — Use the closed-form for the right Riemann sum.
For the partition xi=i⋅n4, the right Riemann sum is:
Rn=∑i=1n(n4i)2⋅n4=n364∑i=1ni2
Step 2 — Apply the famous formula ∑i=1ni2=6n(n+1)(2n+1).
(In the limit, (n+1)/n→1 and (2n+1)/n→2, so the whole expression goes to 64⋅1⋅2/6=64/3.)
Step 5 — Verify using the antiderivative.
By the Fundamental Theorem of Calculus:
∫04x2dx=3x304=364−0=364≈21.333
Both methods agree. ✓
Answer: The Riemann sums for ∫04x2dx converge to 364≈21.333. The convergence rate for the right-endpoint sum is O(1/n) — error halves when you double n. The midpoint sum converges at O(1/n2) — much faster.
Try It
Slide n from 4 up to 100 — watch the error counter in the HUD shrink as the rectangles fill the area more snugly.
The bottom plot tracks the approximation against n — it homes in on the green dashed line at 64/3 as n grows.
At n=100, the sum is within ~1% of the exact value. At n=1000 it'd be within 0.1%.
Interactive Visualization
Parameters
16.00
right
Your turn
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.