01 / 20

Riemann Sums
Approximating Accumulation

Learn to estimate definite integrals by summing the areas of rectangles beneath a curve: the foundation of integral calculus.

Business Calculus

Why Accumulation Matters

Many quantities in business and science are defined by rates of change. Revenue per day, production per hour, or population growth per year all describe how fast something changes. To find the total change over an interval, we need to accumulate those rates.

But what if we can't compute that integral exactly? That is where Riemann sums come in: they let us approximate the area using simple rectangles.

The Big Idea: Rectangles Under a Curve

\(x\) \(y\) \(\Delta x\) \(\Delta x\) \(\Delta x\) \(\Delta x\) \(a\) \(b\) \(f(x)\) height

Slice the interval \([a,b]\) into \( n \) equal subintervals of width \( \Delta x \). On each subinterval, draw a rectangle whose height equals the function value at a chosen sample point. The sum of rectangle areas approximates the area under the curve.

Key Vocabulary

\( n \)
Number of subintervals (rectangles) used in the approximation
\( \Delta x \)
Width of each subinterval: \( \Delta x = \frac{b - a}{n} \)
\( x_i^* \)
The sample point chosen in the \( i \)-th subinterval to determine rectangle height

The Riemann Sum Formula

1
Partition \([a,b]\) into \( n \) subintervals of equal width \( \Delta x \).
2
Choose a sample point \( x_i^* \) in each subinterval.
3
Evaluate \( f(x_i^*) \) to get each rectangle's height.
4
Multiply each height by \( \Delta x \) and sum the products.

Left, Right, and Midpoint Sums

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

Over- and Under-Estimates

Whether a Riemann sum overestimates or underestimates the true area depends on the monotonicity of the function and the type of sum.

Increasing \( f \) Decreasing \( f \)
Left Sum Underestimate Overestimate
Right Sum Overestimate Underestimate
Midpoint Sum Generally more accurate than left or right

How to Compute a Riemann Sum

1
Identify \( a \), \( b \), and \( n \) from the problem.
2
Calculate the subinterval width: \( \Delta x = \dfrac{b - a}{n} \).
3
List the sample points \( x_1^*, x_2^*, \ldots, x_n^* \) based on the type (left, right, or midpoint).
4
Evaluate \( f \) at each sample point.
5
Sum the products: \( S_n = \Delta x\bigl[f(x_1^*) + f(x_2^*) + \cdots + f(x_n^*)\bigr] \).

Example 1: Left Riemann Sum

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

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

Example 2: Right Riemann Sum

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

Left Sum
\( S_4 = 14 \) (underestimate)
Right Sum
\( S_4 = 30 \) (overestimate)
Exact Value
\( \frac{64}{3} \approx 21.33 \)

Example 3: Midpoint Sum

Use the midpoint Riemann sum to approximate \( \displaystyle\int_0^4 x^2\,dx \) with \( n = 4 \).

Method Approximation Error
Left Sum 14 7.33
Right Sum 30 8.67
Midpoint Sum 21 0.33
Exact 21.33 0

The midpoint sum with just 4 rectangles is remarkably close to the exact answer: only 0.33 off.

More Rectangles = Better Approximation

n = 4 n = 8

Doubling the number of rectangles from \( n = 4 \) to \( n = 8 \) fills in the gaps under the curve. As \( n \to \infty \), the rectangles perfectly fill the area and the Riemann sum converges to the definite integral.

Writing Sums in Sigma Notation

Sigma notation provides a compact way to write Riemann sums. Here are the three forms:

Left
$$ L_n = \sum_{i=0}^{n-1} f(a + i\,\Delta x)\,\Delta x $$
Right
$$ R_n = \sum_{i=1}^{n} f(a + i\,\Delta x)\,\Delta x $$
Midpoint
$$ M_n = \sum_{i=1}^{n} f\!\left(a + \bigl(i - \tfrac{1}{2}\bigr)\Delta x\right)\Delta x $$

Business Application

A company's marginal revenue is given by the table below. Use a left Riemann sum to estimate total revenue from selling 0 to 400 units.

Units \( q \) 0 100 200 300 400
\( R'(q) \) ($/unit) 50 42 35 28 20

Common Mistakes

✕ Wrong \( \Delta x \)
Forgetting to divide \( (b - a) \) by \( n \), or using \( n + 1 \) subintervals instead of \( n \).
✕ Index Confusion
Using left endpoints for a right sum, or starting the index at 1 when it should start at 0.
✕ Forgetting to Multiply
Summing the function values but forgetting to multiply by \( \Delta x \) at the end.

Question 1 of 5

Given \( f(x) = 3x \) on \([0,6]\) with \( n = 3 \), what is the left Riemann sum?

Question 2 of 5

If \( f \) is increasing on \([a,b]\), which Riemann sum gives an overestimate?

Question 3 of 5

What is \( \Delta x \) for \( \displaystyle\int_2^{10} f(x)\,dx \) with \( n = 4 \)?

Question 4 of 5

A company's marginal cost \( C'(q) \) at production levels \( q = 0, 50, 100, 150 \) is \( 20, 18, 15, 11 \) dollars per unit. Using a right sum with \( \Delta q = 50 \), estimate total cost from 0 to 150 units.

Question 5 of 5

As the number of rectangles \( n \) increases, the Riemann sum: