University · Integration
Build an integral with rectangles
Refine a right-endpoint sum and measure its error against an exact integral.
Predict what will happen, press Play, then pause and explain what changed. Every control also works without playback.
Watch the relationship
PausedHD animation studio
From experiment to screen.
Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.
Understand what you are seeing
The idea behind the motion.
Accumulation can be approximated by adding narrow rectangular strips. For the increasing function f(x) = x² on [0, b], right-endpoint rectangles lie above the curve and overestimate the integral. More equal-width rectangles reduce this error, while every finite displayed sum is still an approximation.
A relationship to keep
Rₙ = Σ (ib/n)²(b/n); ∫₀ᵇ x² dx = b³/3
Read the symbols alongside the explanation. A diagram shows the relationship; the assumptions tell you when it applies.
- STEP 1
Divide the interval
The interval [0, b] is divided into n equal pieces, each with width b/n. Playback starts with one rectangle and increases to your selected final count.
- STEP 2
Sample the right edge
Each amber rectangle takes its height from the curve at the right endpoint of its piece. Since x² increases on this interval, the top-right corner touches the curve and the rectangle covers excess area.
- STEP 3
Measure the approximation error
Compare the sum with the exact value b³/3 beneath the animation. Increasing n decreases the excess area. The limit as n tends to infinity is the integral, not any one finite frame.
Your turn to explain
Make a prediction. Test your reasoning.
For b = 2 and n = 2, find the right-endpoint sum and the exact integral.
Use the values specified in the question. Reset restores the initial values for this investigation.
Compare your explanation
The width is 1 and the heights are 1² and 2², so R₂ = 5. The exact integral is 8/3, leaving an overestimate of 7/3.
Work through a full lesson
Connect the animation to a worked example and practice questions.
Undergraduate · Calculus
Construct an integral from finite measurement strips
Evaluate a right-endpoint Riemann-sum limit explicitly.
Intermediate · Calculus
Can three readings estimate the total flow?
Compare trapezoidal and Simpson estimates while distinguishing a numerical estimate from a proven error bound.