6. Integration and Accumulation of Change

Approximating Areas With Riemann Sums

Approximating Areas with Riemann Sums

Introduction: Why approximation matters

students, imagine you are trying to find how much water flows through a pipe during one hour πŸ’§. The flow rate changes every minute, so using just one number will not be enough. In calculus, situations like this are common: a quantity changes over time, and we want the total accumulated amount. One powerful way to estimate that total is with a Riemann sum.

In this lesson, you will learn how Riemann sums approximate area under a curve and how they connect to accumulation of change. By the end, you should be able to explain the key ideas, compute basic sums, and understand why these approximations lead naturally to the definite integral and the Fundamental Theorem of Calculus.

Learning goals

  • Explain what a Riemann sum is and why it works.
  • Use rectangles to estimate area under a graph.
  • Compare left, right, and midpoint sums.
  • Connect Riemann sums to accumulated change in real situations.

What is a Riemann sum?

A Riemann sum is an estimate of the area under a curve by adding the areas of simple shapes, usually rectangles. If the graph of a function $f(x)$ is above the $x$-axis on an interval $[a,b]$, then the area under the curve can be approximated by splitting the interval into smaller pieces.

Suppose the interval $[a,b]$ is divided into $n$ subintervals of equal width. Each width is

$$

$\Delta x = \frac{b-a}{n}.$

$$

For each subinterval, choose a sample point and form a rectangle with height $f(x_i^*)$. Then the Riemann sum is

$$

$\sum_{i=1}^{n} f(x_i^*)\Delta x.$

$$

Here, $x_i^*$ is the chosen sample point in the $i$th subinterval. The rectangles give an estimate of the area because each rectangle covers part of the region under the curve. If the rectangles are narrow enough, the estimate becomes more accurate.

This is the basic idea behind numerical integration: replace a hard curved area with many easy rectangle areas. πŸ“¦

Left, right, and midpoint sums

There are several common ways to choose the sample point in each subinterval.

Left Riemann sum

For the left sum, use the left endpoint of each subinterval. If the subintervals are $[x_{0},x_{1}], [x_{1},x_{2}], \dots, [x_{n-1},x_n]$, then the left sum is

$$

$L_n = \sum_{i=1}^{n} f(x_{i-1})\Delta x.$

$$

Right Riemann sum

For the right sum, use the right endpoint of each subinterval:

$$

$R_n = \sum_{i=1}^{n} f(x_i)\Delta x.$

$$

Midpoint Riemann sum

For the midpoint sum, use the midpoint of each subinterval:

$$

$M_n = \sum_{i=1}^{n} f\left(\frac{x_{i-1}+x_i}{2}\right)\Delta x.$

$$

These methods can give different answers, especially when the function is changing quickly. If $f(x)$ is increasing on $[a,b]$, then the left sum usually underestimates the area and the right sum usually overestimates it. If $f(x)$ is decreasing, the opposite is often true. The midpoint sum is often more accurate because it balances the error from each side.

Real-world example

Suppose a car’s speed changes during a trip, and we want to estimate distance traveled. If speed is measured every $10$ minutes, a left sum uses the speed at the beginning of each interval, while a right sum uses the speed at the end. Both are approximations of the total distance. The smaller the time intervals, the better the estimate. πŸš—

Building a Riemann sum step by step

Let’s see how to set up a Riemann sum clearly.

Suppose we want to estimate the area under $f(x)=x^2$ from $x=0$ to $x=2$ using $4$ rectangles.

Step 1: Find the width

The interval length is $2-0=2$, so

$$

$\Delta x = \frac{2-0}{4} = \frac{1}{2}.$

$$

Step 2: List the partition points

The points are

$$

$0,\ \frac{1}{2},\ 1,\ \frac{3}{2},\ 2.$

$$

Step 3: Choose sample points

For a left sum, use

$$

$0,\ \frac{1}{2},\ 1,\ \frac{3}{2}.$

$$

Step 4: Evaluate the function

Since $f(x)=x^2$,

$$

f(0)=0,\quad f$\left($$\frac{1}{2}$$\right)$=$\frac{1}{4}$,\quad f(1)=1,\quad f$\left($$\frac{3}{2}$$\right)$=$\frac{9}{4}$.

$$

Step 5: Multiply and add

The left sum is

$$

$L_4 = \left(0+\frac{1}{4}+1+\frac{9}{4}\right)\left(\frac{1}{2}\right).$

$$

Simplify:

$$

$L_4 = \left(\frac{14}{4}\right)\left(\frac{1}{2}\right)=\frac{7}{4}.$

$$

So the estimated area is $\frac{7}{4}$ square units.

For comparison, the exact area under $f(x)=x^2$ from $0$ to $2$ is $\frac{8}{3}$, so this left sum is a reasonable estimate but not exact. The difference shows why refinement matters.

Why Riemann sums connect to accumulation of change

Riemann sums are not just about finding area in geometry. They also measure accumulation. In calculus, a definite integral represents total change built from many small pieces.

For example, if $v(t)$ is velocity, then the distance traveled from $t=a$ to $t=b$ is approximated by

$$

$\sum_{i=1}^{n} v(t_i^*)\Delta t.$

$$

This works because velocity tells how much distance is gained per unit time. Multiplying by $\Delta t$ gives an approximate change in distance over a small time interval, and adding them gives the total change.

The same idea works for many situations:

  • water flow rate to total volume,
  • population growth rate to total increase,
  • marginal cost to total cost,
  • temperature change rate to total change in temperature.

This is why Riemann sums are so important in AP Calculus AB: they are the bridge between rate and total accumulation. πŸŒ‰

How the approximation improves

A key idea is that more rectangles usually mean a better approximation. If we increase $n$, then each rectangle becomes thinner because

$$

$\Delta x = \frac{b-a}{n}$

$$

gets smaller.

As $n$ grows, the rectangles follow the curve more closely. In the limit, the Riemann sums approach the exact area, written as

$$

$\int_a^b f(x)\,dx.$

$$

This is the definite integral. It is defined as the limit of Riemann sums when the partition gets infinitely fine.

A simple way to remember this is:

  • small number of rectangles = rough estimate,
  • large number of rectangles = better estimate,
  • infinitely many infinitesimally thin rectangles = exact value.

This limit process is one of the central ideas of calculus.

Common AP Calculus AB skills with Riemann sums

On AP Calculus AB, you may be asked to do several kinds of tasks involving Riemann sums.

1. Write a sum from a graph or table

You may need to estimate an integral using data values. If a table gives function values at equally spaced points, then you can build a left, right, or midpoint sum by multiplying each value by $\Delta x$ and adding.

2. Interpret the meaning of the sum

You should know that each term of the form $f(x_i^*)\Delta x$ represents the area of one rectangle and, in applications, a small amount of accumulated change.

3. Identify overestimate or underestimate

If $f(x)$ is increasing, then:

  • $L_n$ tends to underestimate,
  • $R_n$ tends to overestimate.

If $f(x)$ is decreasing, the situation reverses. This is useful for checking whether an answer makes sense.

4. Use notation correctly

You may see sums such as

$$

$\sum_{i=1}^{n} f(x_i^*)\Delta x,$

$$

where the structure of the sum matters more than the exact choice of sample points. The notation shows how the interval is partitioned and how each rectangle contributes to the total.

Connection to the Fundamental Theorem of Calculus

Riemann sums lead directly to the definite integral, and the Fundamental Theorem of Calculus explains the link between the definite integral and antiderivatives.

If $F'(x)=f(x)$, then

$$

$\int_a^b f(x)\,dx = F(b)-F(a).$

$$

This is powerful because it turns a limit of many rectangles into a shortcut using antiderivatives. Still, the Riemann sum is the idea underneath the formula. Without the approximation process, the definite integral would just be a symbol with no geometric meaning.

So when you study Riemann sums, you are learning the foundation of integration. The definite integral is not separate from rectangle estimates; it is the exact result they approach.

Conclusion

students, Riemann sums are one of the most important ideas in AP Calculus AB because they show how a continuous quantity can be built from many small pieces. By dividing an interval into subintervals, choosing sample points, and adding rectangle areas, you can approximate area under a curve and total accumulated change. Left, right, and midpoint sums are practical tools, and increasing the number of rectangles improves the approximation. Most importantly, Riemann sums explain why definite integrals work and how calculus connects rates of change to totals. This makes them a key stepping stone in the larger study of integration and accumulation of change.

Study Notes

  • A Riemann sum approximates area by adding rectangle areas.
  • The general form is $\sum_{i=1}^{n} f(x_i^*)\Delta x$.
  • The interval width is $\Delta x=\frac{b-a}{n}$.
  • Left sums use left endpoints: $L_n=\sum_{i=1}^{n} f(x_{i-1})\Delta x$.
  • Right sums use right endpoints: $R_n=\sum_{i=1}^{n} f(x_i)\Delta x$.
  • Midpoint sums use midpoints: $M_n=\sum_{i=1}^{n} f\left(\frac{x_{i-1}+x_i}{2}\right)\Delta x$.
  • If $f(x)$ is increasing, $L_n$ usually underestimates and $R_n$ usually overestimates.
  • If $f(x)$ is decreasing, the opposite usually happens.
  • More rectangles usually mean a better approximation because $\Delta x$ gets smaller.
  • The exact area is given by the definite integral $\int_a^b f(x)\,dx$.
  • Riemann sums connect directly to accumulated change in real-world contexts like distance, volume, and cost.
  • The Fundamental Theorem of Calculus links $\int_a^b f(x)\,dx$ to antiderivatives through $F(b)-F(a)$.

Practice Quiz

5 questions to test your understanding