Riemann Sum
Approximations
Learn how to approximate the area under a curve by partitioning intervals into rectangles: left, right, and midpoint sums.
What Is a Riemann Sum?
A Riemann sum is a method for approximating the total area between a function \( f(x) \) and the \( x \)-axis over an interval \( [a, b] \). We divide the interval into \( n \) subintervals, build rectangles on each one, and add up their areas.
Why Riemann Sums Matter
Visualizing the Area Problem
Consider the area under \( f(x) = x^2 \) from \( x = 0 \) to \( x = 3 \). The curve is not a simple shape, so we approximate with rectangles.
Three Types of Riemann Sums
Left vs Right Riemann Sums
The Formal Definition
Given a function \( f \) on \( [a, b] \), partition the interval into \( n \) equal subintervals of width \( \Delta x = \frac{b-a}{n} \). Then:
Over vs Under Estimation
| Scenario | Left Sum | Right Sum |
|---|---|---|
| \( f \) is increasing | Underestimate | Overestimate |
| \( f \) is decreasing | Overestimate | Underestimate |
| \( f \) is concave up | Midpoint underestimates | |
| \( f \) is concave down | Midpoint overestimates | |
How to Compute a Riemann Sum
Example 1: Left Sum of \( f(x) = x^2 \)
Approximate \( \int_0^2 x^2\,dx \) using a left Riemann sum with \( n = 4 \).
Example 2: Right Sum of \( f(x) = x^2 \)
Same setup: \( \int_0^2 x^2\,dx \), now with a right Riemann sum, \( n = 4 \).
Example 3: Midpoint Sum of \( f(x) = x^2 \)
Same integral, now with the midpoint Riemann sum, \( n = 4 \).
Visualizing the Midpoint Sum
More Rectangles = Better Accuracy
As we increase \( n \), the width \( \Delta x \) shrinks and the rectangles fit the curve more tightly. Let's see the left sum for \( \int_0^2 x^2\,dx \):
| \( n \) | \( L_n \) | \( R_n \) | \( M_n \) | Exact |
|---|---|---|---|---|
| 4 | 1.750 | 3.750 | 2.625 | 2.667 |
| 10 | 2.280 | 3.080 | 2.660 | 2.667 |
| 100 | 2.627 | 2.707 | 2.667 | 2.667 |
| 1000 | 2.663 | 2.671 | 2.667 | 2.667 |
Common Mistakes
Summary Comparison
| Property | Left | Right | Midpoint |
|---|---|---|---|
| Sample Point | Left endpoint | Right endpoint | Center of interval |
| Index Range | \( i = 1 \) to \( n \) | \( i = 1 \) to \( n \) | \( i = 1 \) to \( n \) |
| Accuracy | Least | Least | Best (for same \( n \)) |
| Relationship | \( L_n + R_n = 2 \cdot T_n \) (Trapezoidal) | Often closer to exact | |
Question 1 of 5
What is the left Riemann sum for \( f(x) = 3x \) on \( [0, 4] \) with \( n = 4 \)?
Question 2 of 5
For a decreasing function on \( [a, b] \), the left Riemann sum will always be:
Question 3 of 5
Compute the right Riemann sum for \( f(x) = x^2 + 1 \) on \( [0, 2] \) with \( n = 4 \).
Question 4 of 5
If \( L_n = 5.2 \) and \( R_n = 6.8 \) for some function on an interval, what is the Trapezoidal approximation \( T_n \)?
Question 5 of 5
Which Riemann sum type generally gives the most accurate approximation for a given \( n \)?