01 / 21

Riemann Sum
Approximations

Learn how to approximate the area under a curve using rectangles: the foundational idea behind definite integrals.

Calculus 1

What Is a Riemann Sum?

A Riemann sum is a method for approximating the total area under a curve \( f(x) \) over an interval \( [a, b] \). We divide the interval into \( n \) subintervals, build a rectangle on each one, and add up their areas.

Why Approximate Area?

Many real-world quantities: distance traveled, total accumulation, work done: are computed as the area under a rate function. Before we can evaluate exact integrals, we need a way to estimate these areas.

Foundation
Riemann sums are the building block of the definite integral \( \int_a^b f(x)\,dx \).
Accuracy
More rectangles (\( n \to \infty \)) means a better approximation that converges to the exact area.

Visual Intuition

\(x\)
\(y\)
\(0\)
\(1\)
\(2\)
\(3\)
\(4\)
\(5\)
\(6\)
\( f(x) \)
Left Riemann Sum, \(n = 6\)

Three Types of Sample Points

The choice of sample point \( x_i^* \) within each subinterval determines the type of Riemann sum:

Left Riemann Sum
\( x_i^* = a + (i-1)\Delta x \): use the left endpoint of each subinterval (for \(i=1, \dots, n\)).
Right Riemann Sum
\( x_i^* = a + i\,\Delta x \): use the right endpoint of each subinterval (for \(i=1, \dots, n\)).
Midpoint Riemann Sum
\( x_i^* = a + (i - \tfrac{1}{2})\Delta x \): use the midpoint of each subinterval (for \(i=1, \dots, n\)).

The Core Formula

Connection to the Definite Integral

The definite integral is defined as the limit of a Riemann sum as the number of rectangles approaches infinity:

Finite \( n \)
Approximation: rectangles leave gaps or overlaps with the curve.
\( n \to \infty \)
Exact area: the rectangles perfectly fill the region under the curve.

Left vs Right vs Midpoint

Left Sum Right Sum Midpoint Sum
Sample point Left endpoint Right endpoint Center of subinterval
If \( f \) is increasing Underestimate Overestimate More accurate
If \( f \) is decreasing Overestimate Underestimate More accurate
Typical accuracy Lower Lower Higher

How to Compute a Riemann Sum

1
Identify the interval and \( n \): Find \( a \), \( b \), and the number of subintervals \( n \).
2
Compute \( \Delta x \): Calculate \( \Delta x = \frac{b - a}{n} \).
3
List the sample points: Determine \( x_i^* \) for each subinterval (left, right, or midpoint).
4
Evaluate \( f(x_i^*) \): Plug each sample point into the function.
5
Sum the areas: Compute \( S_n = \sum f(x_i^*)\,\Delta x \).

Example 1: Left Sum of \( x^2 \)

Approximate \( \int_0^3 x^2\,dx \) using a left Riemann sum with \( n = 3 \).

\(0\)
\(1\)
\(2\)
\(3\)
\( f(x) = x^2 \)
\( f(0)=0 \)
\( f(1)=1 \)
\( f(2)=4 \)

Example 2: Right Sum of \( x^2 \)

Same integral: \( \int_0^3 x^2\,dx \), now using a right Riemann sum with \( n = 3 \).

\(0\)
\(1\)
\(2\)
\(3\)
\( f(x) = x^2 \)
\( f(1)=1 \)
\( f(2)=4 \)
\( f(3)=9 \)

Example 3: Midpoint Sum with \( n = 6 \)

Approximate \( \int_0^3 x^2\,dx \) using a midpoint Riemann sum with \( n = 6 \).

Effect of Increasing \( n \)

Watch how the approximation improves as we use more rectangles for \( \int_0^3 x^2\,dx = 9 \):

\( n \) Left \( L_n \) Right \( R_n \) Midpoint \( M_n \)
3 5.000 14.000 8.750
6 6.875 11.375 8.9375
12 7.906 10.156 8.984
100 8.865 9.135 8.99978
\( \infty \) 9 9 9

Writing Sums in Sigma Notation

Being fluent with sigma notation is essential. Here is the right Riemann sum for \( \int_1^5 \sqrt{x}\,dx \) with \( n \) subintervals:

Common Mistakes

✕ Mixing Up Endpoints
For a left sum, you must use the points \( x_0, x_1, \dots, x_{n-1} \). Accidentally using \( x_1, \dots, x_n \) calculates the right sum instead.
✕ Forgetting \( \Delta x \)
Adding up the function values \( f(x_i^*) \) without multiplying by \( \Delta x \). Each term in the sum is an area, not a height.
✕ Confusing Over/Under
Claiming a left sum always underestimates. It only underestimates when \( f \) is increasing; it overestimates when \( f \) is decreasing.

Summary Table

Concept Key Detail
Riemann Sum \( S_n = \sum f(x_i^*)\,\Delta x \)
Subinterval Width \( \Delta x = \frac{b - a}{n} \)
Left Sample Points \( x_0, x_1, \dots, x_{n-1} \)
Right Sample Points \( x_1, x_2, \dots, x_n \)
Midpoint Sample \( x_i^* = a + (i - \tfrac{1}{2})\Delta x \)
Definite Integral \( \int_a^b f(x)\,dx = \lim_{n\to\infty} S_n \)

Question 1 of 5

What is \( \Delta x \) for the interval \( [2, 8] \) with \( n = 3 \) subintervals?

Question 2 of 5

Using a left Riemann sum with \( n = 4 \) on \( [0, 4] \) for \( f(x) = 3x \), what are the sample points?

Question 3 of 5

Compute the right Riemann sum for \( \int_0^2 (x^2 + 1)\,dx \) with \( n = 2 \).

Question 4 of 5

If \( f(x) \) is decreasing on \( [a, b] \), which statement is true?

Question 5 of 5

Which expression represents \( \displaystyle\int_0^4 \sqrt{x}\,dx \) as the limit of a right Riemann sum?