Unit 6: Integration & Accumulation of Change
Riemann Sums & the Trapezoidal Rule
Approximating area under a curve using Riemann sums and the trapezoidal rule.
Approximating Area from Rectangles
The area under a curve isn't a rectangle or triangle with a ready-made formula — but it can be approximated by shapes that do have one. Before reading on: if you sliced the region under a curve into several thin rectangles, would using the left edge, the right edge, or the midpoint of each slice to set the rectangle's height make a genuine difference in the total?
Definition — Riemann Sum
Worked Example — Comparing Four Approximation Methods
Worked Example — The Trapezoidal Rule from Unevenly Spaced Data
Integral Visualizer
Integration bounds
Animate b (the play button above) to watch the shaded area — and the accumulation curve below — grow.
Approximation method
f(x), with the region between a and b shaded
Accumulation function A(x) = ∫ₐˣ f(t) dt — linked to the graph above; panning or zooming either moves both
What the Fundamental Theorem of Calculus tells us
- A(x) = ∫ from a to x of f(t) dt is the accumulation function. At x = b ≈ 2, A(b) ≈ 2.67 — the signed area under f from a ≈ 0 to b.
- The Fundamental Theorem of Calculus says A'(x) = f(x): differentiating the accumulation function gives the original function back.
- Confirmed numerically here: differentiating the accumulation curve gives A'(b) ≈ 4, matching f(b) ≈ 4.
Numerical approximation comparison
| Method | Estimate |
|---|---|
| Left Riemann sum | 2.28 |
| Right Riemann sum | 3.08 |
| Midpoint Riemann sum | 2.66 |
| Trapezoidal Rule | 2.68 |
| Simpson's Rule | 2.66667 |
| Exact (high-resolution reference) | 2.66667 |
Analysis of f(x)
- y-intercept
- (0, 0)
- x-intercepts
- (0, 0)
- Extrema
- local min at (0, 0)
- Inflection points
- none found in view
- Vertical asymptotes
- none found in view
- Horizontal asymptotes
- none found
- Domain
- all real numbers in view
- Range (estimated)
- approximately [0, 100]
Tip
Common Mistakes
Using a subinterval's full width when the data points are unevenly spaced, instead of that subinterval's own Δt.
Each trapezoid in an unevenly-spaced trapezoidal sum uses its own width — [2,5] has width 3, not the same width as [0,2]'s width of 2 — mixing up the widths gives a wrong weighted total.
Assuming the midpoint sum is always the most accurate Riemann sum, for any function.
The midpoint sum's strong accuracy specifically comes from concave functions' errors partially cancelling within each rectangle — it's a reliably good approximation, not a universally exact one, and the trapezoidal rule can occasionally outperform it depending on the function's shape.
Key Takeaways
- Left, right, midpoint, and trapezoidal sums approximate area under a curve using rectangles or trapezoids of a chosen width.
- Monotonicity determines whether left/right sums overestimate or underestimate; concavity determines the same for the trapezoidal and midpoint sums.
- The trapezoidal rule extends directly to unevenly spaced data, weighting each subinterval by its own actual width.
Summary
Riemann sums approximate area with a finite number of rectangles. The next lesson takes the number of rectangles to infinity, defining the definite integral exactly.
Sign in to track your progress and mark this lesson complete.
Track your progress