Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 6.2

Approximating Areas with Riemann Sums

How do we find the area under a curve, or the total of a changing rate, when geometry is not enough?

What you will learn

  • Understand how left, right, midpoint and trapezoidal sums are built from a partition.
  • Know which sums over- or underestimate for increasing, decreasing, concave up and concave down functions, and why.
  • Understand that unequal gaps in a table need a width for each term.

You must be able to

  1. Calculate left, right, midpoint and trapezoidal sums from a table with unequal widths.
  2. Explain whether a sum is an overestimate or underestimate, naming the shape of the function.
  3. Choose the values a midpoint sum needs from a table.
  4. Interpret a sum in context with units.
  5. Set up the sum term by term when a calculator is used.

In the exam. Section I multiple choice: a table of values with a left, right, midpoint or trapezoidal sum to calculate, or a statement about whether a sum is too big or too small. Section II free response: a table of a rate at unequal times, "use a trapezoidal sum with the four subintervals indicated to approximate ...", with units and a sentence of meaning. Questions about over and under estimates are among the most common justification tasks.

1Subintervals and the width of each

A partition of [a,b][a, b] is a list of points a=x0<x1<⋯<xn=ba = x_0 < x_1 < \dots < x_n = b. They cut the interval into nn subintervals [xi−1,xi][x_{i-1}, x_i].

Width of the iith subinterval = Δxi=xi−xi−1\Delta x_i = x_i - x_{i-1}.

  • With uniform (equal) subintervals, every width is Δx=b−an\Delta x = \dfrac{b - a}{n}.
  • With a nonuniform partition, each width is its own. Tables of data often have unequal gaps, and the exam uses them.

Every Riemann sum has the same shape: a sum of products.

∑(value of f in a subinterval)×(width of that subinterval) \sum (\text{value of } f \text{ in a subinterval}) \times (\text{width of that subinterval})

The word "value of ff" is the only thing that changes between a left, right and midpoint sum.

2Left and right sums

Left Riemann sum = each rectangle's height is ff at the left end of its subinterval.

Right Riemann sum = each rectangle's height is ff at the right end.

Example (invented): f(x)=x2f(x) = x^2 on [0,4][0, 4] with n=4n = 4 equal subintervals, so Δx=1\Delta x = 1. Figure 1 shows both sums.

Two panels showing the function f of x equal to x squared on the interval from 0 to 4 with four equal subintervals. On the left the rectangles use left endpoints and lie under the curve. On the right they use right endpoints and reach above it (a) Left sum: too small 1 2 3 4 4 8 12 16 0 f(x) x Two panels showing the function f of x equal to x squared on the interval from 0 to 4 with four equal subintervals. On the left the rectangles use left endpoints and lie under the curve. On the right they use right endpoints and reach above it (b) Right sum: too big 1 2 3 4 4 8 12 16 0 f(x) x
Figure 1 · Left and right Riemann sums for f(x) = x squared from 0 to 4 with four subintervals
  • Left sum: 1 [f(0)+f(1)+f(2)+f(3)]=0+1+4+9=141\,[f(0) + f(1) + f(2) + f(3)] = 0 + 1 + 4 + 9 = 14.
  • Right sum: 1 [f(1)+f(2)+f(3)+f(4)]=1+4+9+16=301\,[f(1) + f(2) + f(3) + f(4)] = 1 + 4 + 9 + 16 = 30.

The true area is ∫04x2 dx=643≈21.33\int_0^4 x^2\,dx = \tfrac{64}{3} \approx 21.33. Here ff is increasing, so each left rectangle sits under the curve and each right rectangle reaches over it, and 14 is too small while 30 is too big.

3Midpoint sums

Midpoint Riemann sum = each rectangle's height is ff at the middle of its subinterval.

For f(x)=x2f(x) = x^2 on [0,4][0, 4] with n=4n = 4, the midpoints are 0.5, 1.5, 2.5, 3.5.

1 [0.25+2.25+6.25+12.25]=21 1\,[0.25 + 2.25 + 6.25 + 12.25] = 21

That is much closer to 21.33 than 14 or 30. The part of each rectangle that overshoots the curve on one side roughly makes up for the part that falls short on the other.

With a table, the midpoint sum needs the value at the middle of each subinterval. Example (invented): a table gives ff at x=0,2,4,6,8x = 0, 2, 4, 6, 8. To use a midpoint sum with two subintervals, [0,4][0, 4] and [4,8][4, 8], you need f(2)f(2) and f(6)f(6), and the sum is 4 [f(2)+f(6)]4\,[f(2) + f(6)]. A midpoint sum with the four subintervals of width 2 would need values at 1, 3, 5, 7, which the table does not have.

4Trapezoidal sums

Trapezoidal sum = each strip is a trapezoid whose two parallel sides are ff at the left and right ends.

The area of one trapezoid is its width times the average of its two heights.

12 [f(xi−1)+f(xi)] Δxi \tfrac{1}{2}\,[f(x_{i-1}) + f(x_i)]\,\Delta x_i

With equal widths, the trapezoidal sum is the average of the left and right sums. For f(x)=x2f(x) = x^2 above, 12(14+30)=22\tfrac{1}{2}(14 + 30) = 22.

With unequal widths, you work out each trapezoid and add.

5A table with unequal gaps

Example (invented): P(t)P(t) is the rate, in people per minute, at which people enter a stadium, tt minutes after the gates open.

tt (minutes)025910
P(t)P(t) (people per minute)35486

The subintervals have widths 2, 3, 4 and 1.

  • Left sum: 2(3)+3(5)+4(4)+1(8)=6+15+16+8=452(3) + 3(5) + 4(4) + 1(8) = 6 + 15 + 16 + 8 = 45.
  • Right sum: 2(5)+3(4)+4(8)+1(6)=10+12+32+6=602(5) + 3(4) + 4(8) + 1(6) = 10 + 12 + 32 + 6 = 60.
  • Trapezoidal: 3+52(2)+5+42(3)+4+82(4)+8+62(1)=8+13.5+24+7=52.5\tfrac{3 + 5}{2}(2) + \tfrac{5 + 4}{2}(3) + \tfrac{4 + 8}{2}(4) + \tfrac{8 + 6}{2}(1) = 8 + 13.5 + 24 + 7 = 52.5.

Each of these approximates ∫010P(t) dt\int_0^{10} P(t)\,dt, the number of people who entered in the first 10 minutes. The unit is people.

One mistake is very common here: using one width for every term. The widths are 2, 3, 4, 1, not all 2.5 and not all 1.

6Overestimate or underestimate?

The sum is too big or too small depending on the shape of ff on the interval. These facts are in the CED and are examined often.

Shape of ff on the intervalLeft sumRight sum
Increasingunderover
Decreasingoverunder
Shape of ff on the intervalMidpoint sumTrapezoidal sum
Concave up (f′′>0f'' > 0)underover
Concave down (f′′<0f'' < 0)overunder

For f(x)=x2f(x) = x^2, which is increasing and concave up on [0,4][0, 4], these match the numbers: left 14 and midpoint 21 are under 21.33, and right 30 and trapezoidal 22 are over it.

Why the rules work:

  • Left and right. If ff is increasing, the graph over each subinterval is lowest at the left end. A rectangle at that height sits under the curve, so it misses some area. At the right end the graph is highest, so the rectangle covers area that is not there.
  • Midpoint. Take the tangent line at the middle of a strip. The rectangle and the trapezoid under that tangent have the same area, because the tangent's height at the middle is the rectangle's height. A concave up curve bends above its tangent, so the true area is bigger and the midpoint sum is an underestimate.
  • Trapezoid. The top edge is a chord joining two points of the curve. A concave up curve lies below its chords, so the trapezoid is too big.

To use the table in an answer, name the function and the fact. A good sentence: "ff is increasing on [0,4][0, 4], so each left-endpoint rectangle lies below the graph, and the left sum is an underestimate."

Two warnings.

  • A left sum needs ff to be increasing or decreasing on the whole interval. If ff goes up and then down, you cannot say.
  • A table only gives a few values. It does not by itself prove that a function is increasing; a question will tell you, or give a graph.

7Meaning and units

A sum approximates a definite integral, and it carries the unit of the rate times the unit of the input.

Example (invented): r(t)r(t) is the rate, in liters per hour, at which a tank fills, and a sum approximates ∫06r(t) dt\int_0^{6} r(t)\,dt. Say: "approximates the number of liters that flow into the tank from t=0t = 0 to t=6t = 6 hours."

Name the quantity, the interval and the unit.

When the answer needs a calculator, as in a rate given by a formula, set up the sum first. A bare number with no setup does not earn the setup mark.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.