Riemann Sums Formula

The Formula

\int_a^b f(x)\,dx \approx \sum_{i=1}^{n} f(x_i^*)\,\Delta x \quad \text{where } \Delta x = \frac{b-a}{n}
x_i^* is the sample point (left, right, or midpoint) in each subinterval.

When to use: Imagine filling the area under a curve with thin rectangles. The more rectangles you use, the better the approximation. In the limit of infinitely many infinitely thin rectangles, you get the exact area—which is the definite integral.

Quick Example

Approximate \int_0^2 x^2\,dx using 4 right-endpoint rectangles:
\Delta x = 0.5, \quad \sum = 0.5[0.25 + 1 + 2.25 + 4] = 0.5 \times 7.5 = 3.75
Exact value: \frac{8}{3} \approx 2.667. The overestimate is because x^2 is increasing.

Notation

L_n = left Riemann sum, R_n = right Riemann sum, M_n = midpoint sum, T_n = trapezoidal sum.

What This Formula Means

A method of approximating the definite integral \int_a^b f(x)\,dx by dividing the interval [a, b] into subintervals and summing the areas of rectangles (or trapezoids) whose heights are determined by the function.

Imagine filling the area under a curve with thin rectangles. The more rectangles you use, the better the approximation. In the limit of infinitely many infinitely thin rectangles, you get the exact area—which is the definite integral.

Formal View

Let P = \{x_0, x_1, \ldots, x_n\} be a partition of [a,b] with \Delta x_i = x_i - x_{i-1} and x_i^* \in [x_{i-1}, x_i]. The Riemann sum is S(P, f) = \sum_{i=1}^{n} f(x_i^*) \Delta x_i. Then \int_a^b f(x)\,dx = \lim_{\|P\| \to 0} S(P, f) where \|P\| = \max_i \Delta x_i.

Worked Examples

Example 1

easy
Approximate \int_0^2 x^2\,dx using a left Riemann sum with n = 4 equal subintervals.

Solution

  1. 1
    \Delta x = 0.5. Left endpoints: x = 0, 0.5, 1, 1.5.
  2. 2
    f(0)=0,\; f(0.5)=0.25,\; f(1)=1,\; f(1.5)=2.25.
  3. 3
    L_4 = 0.5(0+0.25+1+2.25) = 0.5 \times 3.5 = 1.75.
  4. 4
    Exact value: \frac{8}{3} \approx 2.667. The left sum underestimates because f is increasing.

Answer

L_4 = 1.75 (underestimate; exact = \frac{8}{3})
For an increasing function, left endpoints give the minimum in each subinterval, so the left Riemann sum underestimates. More subintervals improve accuracy.

Example 2

medium
Approximate \int_1^3 \frac{1}{x}\,dx using a right Riemann sum with n = 4 subintervals and classify the estimate.

Common Mistakes

  • Forgetting that \Delta x = \frac{b-a}{n}, not just \frac{1}{n}—the width depends on the interval length, not just the number of rectangles.
  • Confusing left and right sums: for a left sum, use f(x_{i-1}); for a right sum, use f(x_i). Drawing a picture helps enormously.
  • Assuming more rectangles always means more accuracy for a specific method—while this is true in the limit, for a fixed n, midpoint and trapezoidal methods often outperform left/right sums.

Why This Formula Matters

Riemann sums provide the conceptual foundation for the definite integral and are the basis for numerical integration methods used in engineering and computer science when exact antiderivatives don't exist.

Frequently Asked Questions

What is the Riemann Sums formula?

A method of approximating the definite integral \int_a^b f(x)\,dx by dividing the interval [a, b] into subintervals and summing the areas of rectangles (or trapezoids) whose heights are determined by the function.

How do you use the Riemann Sums formula?

Imagine filling the area under a curve with thin rectangles. The more rectangles you use, the better the approximation. In the limit of infinitely many infinitely thin rectangles, you get the exact area—which is the definite integral.

What do the symbols mean in the Riemann Sums formula?

L_n = left Riemann sum, R_n = right Riemann sum, M_n = midpoint sum, T_n = trapezoidal sum.

Why is the Riemann Sums formula important in Math?

Riemann sums provide the conceptual foundation for the definite integral and are the basis for numerical integration methods used in engineering and computer science when exact antiderivatives don't exist.

What do students get wrong about Riemann Sums?

For an increasing function, left sums underestimate and right sums overestimate. For a decreasing function, it's the opposite. Midpoint and trapezoidal sums are generally more accurate.

What should I learn before the Riemann Sums formula?

Before studying the Riemann Sums formula, you should understand: integral, definite integral.

Want the Full Guide?

This formula is covered in depth in our complete guide:

How to Integrate Rational Functions: Long Division and Partial Fractions →