01 / 20

Riemann Sums
& Notation

Master the foundations of integration: approximate area under curves with Riemann sums, express them in summation notation, and connect to the definite integral.

AP Calculus

What Is a Riemann Sum?

A Riemann sum approximates the area under a curve by dividing the region into thin rectangles, computing each rectangle's area, and adding them together. It is the fundamental building block of the definite integral.

Rectangles Under a Curve

x y 0 1 2 3 4 5
\(\Delta x = 1\)
\(f(x)\)

Key Vocabulary

\(\Delta x\)
Width of each subinterval: \(\Delta x = \frac{b - a}{n}\)
\(x_i^*\)
Sample point in the \(i\)-th subinterval used to evaluate \(f\)
\(n\)
Number of subintervals (more rectangles = better approximation)

Left, Right, and Midpoint Sums

Left Riemann Sum
\(x_i^* = a + (i-1)\Delta x\)
Uses the left edge of each subinterval
Right Riemann Sum
\(x_i^* = a + i\,\Delta x\)
Uses the right edge of each subinterval
Midpoint Sum
\(x_i^* = a + \left(i - \tfrac{1}{2}\right)\Delta x\)
Uses the center of each subinterval

Summation Notation: \(\Sigma\)

Sigma notation compactly expresses the sum of many terms. The general form is:

1
\(i\): the index variable (counter)
2
\(1\) (bottom): the starting value of \(i\)
3
\(n\) (top): the ending value of \(i\)
4
\(a_i\): the expression being summed for each \(i\)

The Riemann Sum Formula

This formula says: for each of the \(n\) rectangles, compute height \(\times\) width, then add them all up.

1
Partition \([a,b]\) into \(n\) equal subintervals of width \(\Delta x\)
2
Choose the sample point \(x_i^*\) in each subinterval
3
Evaluate \(f(x_i^*)\) to get each rectangle's height
4
Multiply & sum: \(\displaystyle \sum_{i=1}^{n} f(x_i^*)\,\Delta x\)

From Sums to the Definite Integral

As the number of rectangles \(n \to \infty\), the Riemann sum converges to the exact area. This limit is the definite integral:

\(\displaystyle\int\)
Elongated "S" for "sum": the integral sign
\(a\) and \(b\)
Lower and upper limits of integration
\(dx\)
Indicates integration with respect to \(x\); mirrors \(\Delta x\)

Riemann Sum vs. Definite Integral

Riemann Sum Definite Integral
Notation \(\displaystyle\sum_{i=1}^{n} f(x_i^*)\Delta x\) \(\displaystyle\int_a^b f(x)\,dx\)
Rectangles Finite number \(n\) Infinite (\(n\to\infty\))
Width \(\Delta x\) (finite) \(dx\) (infinitesimal)
Result Approximation Exact area
Type Discrete sum Continuous limit

Useful Summation Properties

1
Constant factor: \(\displaystyle\sum_{i=1}^{n} c\,a_i = c\sum_{i=1}^{n} a_i\)
2
Sum of sums: \(\displaystyle\sum_{i=1}^{n}(a_i + b_i) = \sum_{i=1}^{n}a_i + \sum_{i=1}^{n}b_i\)
3
Constant sum: \(\displaystyle\sum_{i=1}^{n} c = cn\)
4
Power sums: \(\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}\), \(\displaystyle\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}\)

How to Compute a Riemann Sum

1
Identify the function \(f(x)\), the interval \([a,b]\), and the number of subintervals \(n\)
2
Calculate \(\Delta x = \dfrac{b - a}{n}\)
3
Determine each sample point \(x_i^*\) (left, right, or midpoint)
4
Evaluate \(f(x_i^*)\) at each sample point
5
Sum: \(\displaystyle S_n = \sum_{i=1}^{n} f(x_i^*)\,\Delta x\)

Example 1: Right Sum for \(f(x) = x^2\)

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

0 1 2 3
\(1\)
\(4\)
\(9\)

Example 2: Writing in \(\Sigma\) Notation

Express the right Riemann sum for \(\displaystyle\int_1^5 \sqrt{x}\,dx\) with \(n\) subintervals in summation notation.

1
\(\Delta x = \dfrac{5 - 1}{n} = \dfrac{4}{n}\)
2
Right endpoints: \(x_i = 1 + i\,\Delta x = 1 + \dfrac{4i}{n}\)
3
\(f(x_i) = \sqrt{1 + \dfrac{4i}{n}}\)
4
Riemann sum: \(\displaystyle S_n = \sum_{i=1}^{n} \sqrt{1 + \frac{4i}{n}}\cdot\frac{4}{n}\)

Example 3: Evaluating the Limit

Use a Riemann sum to compute \(\displaystyle\int_0^2 3x\,dx\) exactly.

1
\(\Delta x = \dfrac{2}{n}\), right endpoints: \(x_i = \dfrac{2i}{n}\)
2
\(\displaystyle S_n = \sum_{i=1}^{n} 3\cdot\frac{2i}{n}\cdot\frac{2}{n} = \frac{12}{n^2}\sum_{i=1}^{n} i\)
3
Apply \(\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}\): \(S_n = \frac{12}{n^2}\cdot\frac{n(n+1)}{2} = \frac{6(n+1)}{n}\)
4
\(\displaystyle\lim_{n\to\infty}\frac{6(n+1)}{n} = \lim_{n\to\infty}6 + \frac{6}{n} = 6\)

Common Mistakes

✕ Forgetting \(\Delta x\)
Students sum \(f(x_i^*)\) values but forget to multiply by \(\Delta x\). Every rectangle has both height and width.
✕ Wrong sample points
Confusing the formulas for left vs. right endpoints. When summing from \(i=1\) to \(n\), use \(x_i^* = a + (i-1)\Delta x\) for left sums and \(x_i^* = a + i\Delta x\) for right sums.
✕ Mixing up \(n\) and \(\Delta x\)
Using \(n\) as the width instead of \(\Delta x = \frac{b-a}{n}\). They are inversely related.

Question 1 of 5

What does \(\Delta x\) represent in a Riemann sum on \([a,b]\) with \(n\) subintervals?

Question 2 of 5

Compute the right Riemann sum of \(f(x) = 2x\) on \([0, 4]\) with \(n = 4\).

Question 3 of 5

Which expression equals \(\displaystyle\sum_{i=1}^{4} i^2\)?

Question 4 of 5

The definite integral \(\displaystyle\int_a^b f(x)\,dx\) is defined as:

Question 5 of 5

For a decreasing function on \([a,b]\), which Riemann sum gives the largest approximation?