Math Core

Lesson 6.1 · Integration and Accumulation of Change

Riemann sums

Derivatives answer the question "how fast is something changing?" This unit asks the reverse question: if you know how fast something changes, how much does it change in total? The first tool for answering that is the Riemann sum, which adds up many small rectangles to estimate the area under a rate curve.

Area under a rate curve is accumulated change

Suppose a car drives at a constant 60 miles per hour for 3 hours. It travels 60×3=18060 \times 3 = 180 miles. On a graph of velocity against time, that product is the area of a rectangle with height 60 and width 3.

The same idea works when the rate is not constant. If r(t)r(t) is a rate of change, then the area between the graph of rr and the tt-axis over an interval equals the total change in the quantity over that interval. The units confirm it: the height has units like gallons per minute, the width has units of minutes, so the area has units of gallons.

The trouble is that curved regions don't have easy area formulas. So you slice the region into thin vertical strips, approximate each strip with a rectangle, and add up the rectangles.

Left and right Riemann sums

Split the interval [a,b][a, b] into subintervals. On each one, build a rectangle whose width is the length of the subinterval and whose height is a value of the function somewhere on it.

  • A left Riemann sum uses the function value at the left endpoint of each subinterval.
  • A right Riemann sum uses the function value at the right endpoint.

Definition

Riemann sum

A Riemann sum for ff on [a,b][a, b] is a sum of the form

f(x1∗) Δx1+f(x2∗) Δx2+⋯+f(xn∗) Δxn,f(x_1^*)\,\Delta x_1 + f(x_2^*)\,\Delta x_2 + \cdots + f(x_n^*)\,\Delta x_n,

where the interval is split into nn subintervals with widths Δx1,…,Δxn\Delta x_1, \ldots, \Delta x_n and each xk∗x_k^* is a point chosen in the kkth subinterval. The sum estimates the signed area between the graph of ff and the xx-axis.

Here is a left Riemann sum for f(x)=x22f(x) = \dfrac{x^2}{2} on [0,4][0, 4] with four subintervals of width 1. Each rectangle's height is the curve's height at the left edge.

Left Riemann sum for f(x) = x²/2 on [0, 4] with four rectangles. Each rectangle's height is f at its left edge, so every rectangle sits under the rising curve.Open in grapher →

Worked example: Left and right sums for a curve

Estimate the area under f(x)=x22f(x) = \dfrac{x^2}{2} on [0,4][0, 4] using four equal subintervals, first with a left sum and then with a right sum.

Each subinterval has width Δx=4−04=1\Delta x = \dfrac{4 - 0}{4} = 1. The endpoints are 0,1,2,3,40, 1, 2, 3, 4.

Left sum (use x=0,1,2,3x = 0, 1, 2, 3):

L4=1 [f(0)+f(1)+f(2)+f(3)]=0+0.5+2+4.5=7.L_4 = 1\,[f(0) + f(1) + f(2) + f(3)] = 0 + 0.5 + 2 + 4.5 = 7.

Right sum (use x=1,2,3,4x = 1, 2, 3, 4):

R4=1 [f(1)+f(2)+f(3)+f(4)]=0.5+2+4.5+8=15.R_4 = 1\,[f(1) + f(2) + f(3) + f(4)] = 0.5 + 2 + 4.5 + 8 = 15.

The true area is between 7 and 15. Because ff is increasing on [0,4][0, 4], the left rectangles fall short and the right rectangles overshoot.

Midpoint and trapezoidal sums

Two other estimates are usually much more accurate.

  • A midpoint sum uses the function value at the midpoint of each subinterval.
  • A trapezoidal sum replaces each rectangle with a trapezoid whose top connects the two endpoint heights. One trapezoid over a subinterval of width Δx\Delta x has area f(left)+f(right)2 Δx\dfrac{f(\text{left}) + f(\text{right})}{2}\,\Delta x.

For the same function, the midpoint sum is 1 [f(0.5)+f(1.5)+f(2.5)+f(3.5)]=0.125+1.125+3.125+6.125=10.51\,[f(0.5) + f(1.5) + f(2.5) + f(3.5)] = 0.125 + 1.125 + 3.125 + 6.125 = 10.5, and the trapezoidal sum is 0+0.52+0.5+22+2+4.52+4.5+82=11\dfrac{0 + 0.5}{2} + \dfrac{0.5 + 2}{2} + \dfrac{2 + 4.5}{2} + \dfrac{4.5 + 8}{2} = 11. The exact area turns out to be 323≈10.67\dfrac{32}{3} \approx 10.67, so both are close.

Tip

Each trapezoid is the average of its left and right rectangles, so the trapezoidal sum is always the average of the left and right sums: T=L+R2T = \dfrac{L + R}{2}. Here, 7+152=11\dfrac{7 + 15}{2} = 11. This works even when the subintervals have different widths.

Riemann sums from a table

On the AP exam, the function is often given only as a table of values, and the subintervals are often unequal. Use the widths exactly as the table gives them, one subinterval at a time.

Worked example: Unequal subintervals from a table

Water flows into a tank at a rate of r(t)r(t) gallons per minute. Selected values are shown.

tt (minutes)025910
r(t)r(t) (gal/min)1215201814

Use a right Riemann sum and then a trapezoidal sum with the four subintervals in the table to estimate the total water that flows in from t=0t = 0 to t=10t = 10.

The widths are 2,3,4,12, 3, 4, 1.

R=15(2)+20(3)+18(4)+14(1)=30+60+72+14=176 gallonsL=12(2)+15(3)+20(4)+18(1)=24+45+80+18=167 gallonsT=176+1672=171.5 gallons\begin{aligned} R &= 15(2) + 20(3) + 18(4) + 14(1) = 30 + 60 + 72 + 14 = 176 \text{ gallons} \\ L &= 12(2) + 15(3) + 20(4) + 18(1) = 24 + 45 + 80 + 18 = 167 \text{ gallons} \\ T &= \frac{176 + 167}{2} = 171.5 \text{ gallons} \end{aligned}

About 171.5 gallons of water flow into the tank during the 10 minutes.

Common mistake

Don't assume the subintervals are equal. With a table like the one above, multiplying every height by the same width gives a wrong answer. Find each width from consecutive tt-values.

Overestimate or underestimate?

AP questions often ask whether an approximation is too large or too small. You can tell from the shape of the graph without computing the exact area.

Over or under

  • If ff is increasing, a left sum underestimates and a right sum overestimates. If ff is decreasing, it's the reverse.
  • If the graph of ff is concave up, a trapezoidal sum overestimates (the straight tops lie above the curve) and a midpoint sum underestimates. If ff is concave down, it's the reverse.

Worked example: Deciding without computing

A function gg is positive, decreasing and concave up on [1,6][1, 6]. Which of the left, right and trapezoidal sums overestimate the area under gg?

Since gg is decreasing, the left endpoint of each subinterval is the highest point on it, so the left sum overestimates and the right sum underestimates. Since gg is concave up, every trapezoid's slanted top lies above the curve, so the trapezoidal sum overestimates too. The left and trapezoidal sums are overestimates; the right sum is an underestimate.

Always state your reasoning in terms of the function's behavior ("because ff is increasing on the interval..."). A correct conclusion without a reason earns little credit on free-response questions.

Practice

Practice 1

Let f(x)=x2+1f(x) = x^2 + 1. Find the right Riemann sum for ff on [0,3][0, 3] using three subintervals of equal width.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

For the same function f(x)=x2+1f(x) = x^2 + 1 on [0,3][0, 3] with three equal subintervals, find the left Riemann sum.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Use a midpoint sum with two subintervals of equal width to estimate the area under y=x3y = x^3 on [0,4][0, 4].

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

The velocity of a cyclist, in feet per second, is recorded at selected times.

tt (seconds)04610
v(t)v(t) (ft/s)081420

Use a trapezoidal sum with the three subintervals in the table to estimate the distance, in feet, that the cyclist travels from t=0t = 0 to t=10t = 10.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A rate r(t)r(t) is measured in liters per hour, with tt in hours. A right Riemann sum for rr on 0≤t≤80 \le t \le 8 is computed. What does the sum approximate?

Practice 6

A function ff is positive, increasing and concave down on [a,b][a, b]. Let LL, RR and TT be the left, right and trapezoidal sums with the same subintervals, and let AA be the exact area under ff. Which ordering is correct?

Practice 7

Estimate the area under y=1xy = \dfrac{1}{x} on [1,3][1, 3] using a right Riemann sum with four subintervals of equal width. Give an exact fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.