01 / 21

Riemann Sums
& Notation

Master the connection between summation notation, Riemann sums, and the definite integral: the foundation of integral calculus.

Calculus 1

What Is a Riemann Sum?

A Riemann sum approximates the area under a curve by dividing a region into thin rectangles, computing each rectangle's area, and adding them all up. As we use more rectangles, the approximation gets better.

x y a b n = 6 rectangles

Why Riemann Sums Matter

Riemann sums are the bridge between discrete addition and continuous integration. They let us give a rigorous definition to "area under a curve," and they appear everywhere in applied mathematics, physics, and engineering.

Foundation
The definite integral is defined as the limit of Riemann sums as \(n \to \infty\).
Applications
Distance, work, volume, probability: all computed via integrals that start as Riemann sums.
Numerical Methods
When no antiderivative exists, Riemann sums (and refinements) are used by computers to estimate integrals.

Summation Notation: \(\sum\)

Sigma notation provides a compact way to write the sum of many terms. Instead of writing every term, we describe the pattern.

\(\sum_{i=1}^{4} i^2\)
\(= 1 + 4 + 9 + 16 = 30\)
\(\sum_{k=0}^{3} 2k\)
\(= 0 + 2 + 4 + 6 = 12\)

Anatomy of a Riemann Sum

1
Interval: we integrate over \([a, b]\).
2
Subinterval width: \(\Delta x = \dfrac{b - a}{n}\), where \(n\) is the number of rectangles.
3
Sample point: \(x_i^*\) is the point in the \(i\)-th subinterval where we evaluate \(f\).
4
Sum: add up all \(n\) rectangle areas \(f(x_i^*)\cdot \Delta x\).

Left, Right, and Midpoint Sums

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

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

The Definite Integral as a Limit

n = 4 n = 8 n → ∞ More rectangles → better approximation → exact area

Definite Integral Notation

Every part of the integral symbol \(\displaystyle\int_a^b f(x)\,dx\) corresponds to a piece of the Riemann sum.

1
\(\int\) : the integral sign, an elongated "S" for Summa (Latin for sum).
2
\(a\) and \(b\) : the lower and upper limits of integration (the interval endpoints).
3
\(f(x)\) : the integrand, the function whose area we compute.
4
\(dx\) : indicates the variable of integration, and reminds us of the infinitesimal width \(\Delta x \to 0\).

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\)
Number of rectangles Finite: \(n\) Infinite: \(n \to \infty\)
Width of each piece \(\Delta x = \frac{b-a}{n}\) \(dx\) (infinitesimal)
Result Approximation Exact area (signed)
Relationship Integral = limit of Riemann sums

How to Compute a Riemann Sum

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

Example 1: Right Riemann Sum

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

Example 1: Visualized

1 2 3 4 0 0.5 1 1.5 2 Right Riemann Sum: 4 rectangles

Example 2: Sigma to Integral

Express the following limit as a definite integral:

1
Identify \(\Delta x\): \(\Delta x = \dfrac{5}{n}\), so \(b - a = 5\).
2
Identify \(x_i\): \(x_i = 3 + i \cdot \dfrac{5}{n} = a + i\,\Delta x\), so \(a = 3\), thus \(b = 8\).
3
Identify \(f(x)\): \(f(x_i) = x_i^2\), so \(f(x) = x^2\).

Example 3: Left Sum with \(\sin x\)

Approximate \(\displaystyle\int_0^{\pi} \sin x\,dx\) using a left Riemann sum with \(n = 4\).

Common Mistakes to Avoid

✕ Wrong \(\Delta x\)
Using \(\frac{b}{n}\) instead of \(\frac{b-a}{n}\). Always subtract \(a\) from \(b\) first.
✕ Off-by-One Index
Left sums start at \(i = 0\) (or equivalently use \(x_{i-1}\)), right sums start at \(i = 1\). Mixing these up shifts every rectangle.
✕ Forgetting \(\Delta x\)
Summing \(f(x_i^*)\) alone gives the sum of heights, not areas. You must multiply by \(\Delta x\).

Summary: Connecting the Notation

Concept Discrete (Riemann Sum) Continuous (Integral)
Operator \(\sum\) \(\int\)
Width \(\Delta x\) \(dx\)
Index / Variable \(i = 1\) to \(n\) \(x\) from \(a\) to \(b\)
Value Approximation Exact
Connection \(\displaystyle\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^n f(x_i^*)\,\Delta x\)

Question 1 of 5

For \(\displaystyle\int_1^5 f(x)\,dx\) with \(n = 8\) subintervals, what is \(\Delta x\)?

Question 2 of 5

Which expression represents a right Riemann sum for \(\displaystyle\int_2^6 f(x)\,dx\) with \(n\) subintervals?

Question 3 of 5

The limit \(\displaystyle\lim_{n\to\infty}\sum_{i=1}^{n}\left(1+\frac{3i}{n}\right)^3\cdot\frac{3}{n}\) equals which definite integral?

Question 4 of 5

Using a left Riemann sum with \(n = 3\), approximate \(\displaystyle\int_0^3 (2x+1)\,dx\).

Question 5 of 5

What does \(\displaystyle\sum_{i=1}^{5} 2i\) evaluate to?