Kim’s Math NotesCourse index

Approximating Areas with Riemann Sums

How do left, right, midpoint, and trapezoidal sums estimate an integral?

Estimate an integral with left, right, midpoint and trapezoidal sums from a table or a formula, show the sum, and tell over or under from increasing or decreasing.

The number only, or one width for all

Common mistake ≈144, with no sum shown; or the same width 2.5 for every piece.

Correction Write width × height for each piece, with the widths from the table (2,3,4,1), then the number.

Idea 1: left and right Riemann sums

Here's the clipboard as a table. At times zero, two, three, and six hours, the snow is falling at one, two, four, and five inches per hour. Widths first: subtract each time from the next. Zero to two is a width of two. Two to three is a width of one.

Three to six is a width of three.

Watch this part of the concept lesson

Read the rest of this scene

What happened in between? Honestly, we don't know. It could be any smooth climb, like this one. Rate times time gives an amount. Inches per hour, times hours, gives inches.

So the snow is the area under this rate graph. We can't get that curved area exactly. So we cut it at the table's times and use flat-topped rectangles. Each piece has a left end and a right end. Left sum: on each piece, the left end sets the height.

Two times one is the first purple rectangle. One times two is the next. Three times four is the last. Two plus two plus twelve: sixteen inches. And the five? Six is never the left end of a piece, so five never gets picked.

Right sum: same three widths, but now the right end sets the height. Two times two is a pink rectangle. One times four is the next. Three times five is the last. Four plus four plus fifteen: twenty-three inches.

This time the starting height, one, gets left out. Hold on. Widths two, one, and three. They don't match. Is that allowed? Yes. Two, one, three: each term is one rectangle, and each rectangle uses its own width. So don't use a memorized six minus zero, over three, here.

That gives two for every piece, and the left sum comes out fourteen, not sixteen. The widths don't have to match. These are called the left Riemann sum and the right Riemann sum.

Idea 2: trapezoidal sum

Why keep the roof flat for three hours, when the rate climbs from four to five? Join the points with straight lines instead. Each piece becomes a trapezoid. No scary formula. Average the two heights, then multiply by the width.

One plus two, over two, times two: three.

Watch this part of the concept lesson

Read the rest of this scene

Two plus four, over two, times one: three. Four plus five, over two, times three: thirteen and a half. Three plus three plus thirteen and a half: nineteen and a half inches. This is the trapezoidal sum. Notice: nineteen and a half is exactly halfway between sixteen and twenty-three.

On each piece, the slanted top cuts the gap between its two rectangles in half. But that shortcut needs the left and right sums on the very same pieces, and a trapezoid question doesn't hand you those sums. So on your answer, write the trapezoid terms.

Idea 3: over or under

Now, is sixteen too big or too small? Careful: four rising numbers don't promise the curve kept rising in between. So the problem has to say it. Say it's given: s is increasing. Walking uphill, the left end of each piece is the lowest point.

So every purple rectangle stays under the curve, missing a little wedge. So the left sum, sixteen, is an underestimate. And the right end is the highest point on each piece.

Watch this part of the concept lesson

Read the rest of this scene

The pink rectangles poke out above the curve, so twenty-three is an overestimate. What if an increasing graph sits below the axis? Then the heights are negative, and we compare them as signed numbers. The left end is still the smallest value on each piece, like negative five is less than negative two. So the left sum is still an underestimate.

Decreasing? Then it flips: the left sum is over, the right sum is under. Up and then down? Then this reason alone can't decide it. Trapezoids care about something else: how the curve bends. Concave up, and the slanted top sits above the curve: an overestimate. Concave down, and it sits below: an underestimate.

Again, only when the problem gives it. On the exam, one sentence: s is increasing, so the left Riemann sum is an underestimate. Reason, then conclusion.

Idea 4: midpoint Riemann sum

There's a fourth way, and it shines when you have a formula. Take f of x equals x squared, from zero to four, in two equal pieces. Each piece has width two. Walk into the middle of each piece: x equals one, and x equals three. Two times one squared, the purple rectangle.

Plus two times three squared, two times nine, the pink one.

Watch this part of the concept lesson

Read the rest of this scene

Two plus eighteen: twenty. The middle height, piece by piece. This is the midpoint Riemann sum.

Example 1: right and trapezoidal sums from a table

Example one. Cars enter a parking garage at a rate of R of t cars per hour, from t equals zero to ten. Here's the table, and its points on the graph. In part a, find a right Riemann sum on the four subintervals in the table, that is, its four pieces. In part b, find a trapezoidal sum on the same pieces. Part a. The plan: widths from the table, then width times the right height on each piece.

And write every product.

Watch this part of the concept lesson

Read the rest of this scene

One gap at a time: two, three, four, one. Uneven again. First piece: width two times the right height, fourteen. Then three times twenty, four times twelve, and one times eight. R of zero, ten, sits this one out. Zero is nobody's right end.

Twenty-eight, plus sixty, plus forty-eight, plus eight: one hundred forty-four. Units: cars per hour times hours gives cars. So about one hundred forty-four cars entered. If a question asks how many cars are in the garage, start with the cars already there, add the cars that came in, and subtract any that left. Part b. Same four widths.

The plan: on each piece, average the two heights, times the width. Ten plus fourteen, over two, times two: twenty-four. Fourteen plus twenty, over two, times three: fifty-one. Twenty plus twelve, over two, times four: sixty-four. Twelve plus eight, over two, times one: ten.

Twenty-four plus fifty-one plus sixty-four plus ten: one hundred forty-nine. About one hundred forty-nine cars. Your workbook has more uneven tables. Take each width from the table, and show the sum.

Common mistake: a number with no sum

Before we leave example one: two ways points disappear. One: just the number, about one forty-four, with no sum shown. On one real AP question, 2023 Question 1 part a, an answer of only the number earned neither the sum point nor the answer point. Two: ten hours over four pieces, two and a half, as the width of every piece. Fix both, one line at a time.

Show width times height for each piece, then the number.

Watch this part of the concept lesson

Read the rest of this scene

Take each width from the table: two, three, four, one. And even with a calculator, write the sum first.

Example 2: left sum, over or under

Example two. f is decreasing on one to seven, and we know four values, at x equals one, three, four, and seven. Those x-values cut the pieces. Part a asks for a left Riemann sum. Part b asks, over or under? Explain. Part a. The plan: widths first, then width times the left height.

Here are the four points, and one decreasing curve through them.

Watch this part of the concept lesson

Read the rest of this scene

One to three is two wide. Three to four is one. Four to seven is three. Left ends: two times twenty, plus one times twelve, plus three times nine. Forty plus twelve plus twenty-seven: seventy-nine.

f of seven, two, is left out. Seven is nobody's left end. So the integral from one to seven of f is approximately seventy-nine. Approximately, not equal. Part b. The plan: use the fact the problem gave us.

f is decreasing, and that's given. Walking downhill, on each piece the left end is the highest point. So every rectangle sticks out above the curve. Write it as one sentence: since f is decreasing on one to seven, the left Riemann sum, seventy-nine, is an overestimate. The given reason, and the conclusion.

The workbook asks for this reason again. Write it as one full sentence.

Example 3: a midpoint sum from a table

Example three, multiple choice. The table gives f at every whole number from zero to six. Find the midpoint Riemann sum on zero to six, with three subintervals of equal width. The plan: width first, then the middles, then the heights, then add. Here the problem says equal widths: six minus zero, over three, is two.

Pieces run zero to two, two to four, and four to six. Their middles are one, three, and five. They're in the table. So the heights are five, ten, and three. The values at zero, two, four, and six are not used.

Watch this part of the concept lesson

Read the rest of this scene

Two times five, plus two times ten, plus two times three: thirty-six. Every other choice is a trap. Eighteen forgot the width. Thirty-two used the right ends, and thirty-four used the left ends. So the answer is D, thirty-six.

One more midpoint sum is in your workbook. Find the width and the middles before any height.

Worked examples

Example 1

Cars enter a garage at a rate of R(t) cars per hour, 0≤t≤10.
(a) Estimate the number of cars that enter with a right Riemann sum, using the 4 subintervals in the table.
(b) Estimate the same number with a trapezoidal sum, same subintervals.
t (hours)025910
R(t) (cars/h)101420128
Hint

The widths come from the table: 2,3,4,1. Width times height for each piece, then add.

Answer and solution
  1. 144
  2. 149
  1. 2⋅14+3⋅20+4⋅12+1⋅8=28+60+48+8=144
  2. (a) About 144 cars.
  3. 12(10+14)⋅2+12(14+20)⋅3+12(20+12)⋅4+12(12+8)⋅1=24+51+64+10=149
  4. (b) About 149 cars.

Example 2

f is decreasing on [1,7]. f(1)=20,f(3)=12,f(4)=9,f(7)=2.
(a) Left Riemann sum, 3 subintervals, to approximate ∫17f(x)dx
(b) Overestimate or underestimate? Explain.
Hint

Decreasing: which end of each piece is the highest?

Answer and solution
  1. 79
  2. overestimate
  1. Widths 2,1,3.
  2. 2⋅20+1⋅12+3⋅9=40+12+27=79
  3. f is decreasing, so the left end is the highest on each piece: the rectangles are above the curve, and 79 is an overestimate.

Example 3

The table gives values of f. The midpoint Riemann sum for f on [0,6] with three subintervals of equal width is
x0123456
f(x)25910631
  1. 18
  2. 32
  3. 34
  4. 36
Hint

Plan: width, middles in the table, add

Answer and solution

Answer D. 36

  1. width=6−03=2
  2. Pieces [0,2], [2,4], [4,6]: middles x=1, 3, 5, heights f(1)=5, f(3)=10, f(5)=3.
  3. 2⋅5+2⋅10+2⋅3=36
  4. So (D) 36.

Workbook

Problem 1

Oil is pumped into a tank at a rate of P(t) gallons per hour. Selected values are in the table. Use a left Riemann sum with the four subintervals of the table to estimate the gallons pumped in from t=0 to t=7.
t (hours)01347
P(t) (gal/h)691085
Hint

Each width comes from the table. A left sum uses the left value of each piece.

Answer and solution

Answer 58

  1. Widths 1,2,1,3; left heights 6,9,10,8.
  2. 1⋅6+2⋅9+1⋅10+3⋅8=6+18+10+24=58
  3. About 58 gallons.

Common mistake Using equal widths instead of the table's widths.

Watch the worked solution to Problem 1

Problem 2

Let f(x)=x2+1. What is the right Riemann sum for f on [0,3] with three subintervals of equal width?
  1. 8
  2. 11.75
  3. 12.5
  4. 17
Hint

Width 1; right ends 1, 2, 3.

Answer and solution

Answer D. 17

  1. width=3−03=1,right endsx=1,2,3
  2. 1⋅2+1⋅5+1⋅10=17
  3. Answer D.

Common mistake Using left ends instead of right ends.

Watch the worked solution to Problem 2

Problem 3

People enter a park at a rate of V(t) people per hour, 0≤t≤12. Selected values are in the table.
t (hours)024681012
V(t) (people/h)4060901201007030
  1. Estimate the number of people who enter, using a midpoint sum with three equal subintervals.
  2. Estimate the same number with a trapezoidal sum on the same subintervals.
Hint

Three equal pieces of width 4: the midpoints are 2, 6, 10.

Answer and solution
  1. 1000
  2. 900
  1. 4⋅60+4⋅120+4⋅70=1000
  2. 12(40+90)⋅4+12(90+100)⋅4+12(100+30)⋅4=900

Common mistake Using the table's points as midpoints.

Watch the worked solution to Problem 3

Problem 4

For which function is the left Riemann sum on [0,2], with any number of subintervals, an overestimate of the integral?
  1. x2
  2. e−x
  3. sin(πx2)
  4. ln(x+1)
Hint

A left sum overestimates when the function is decreasing.

Answer and solution

Answer B. e−x

  1. f decreasing ⇒ the left end is the highest on every piece ⇒ left sum over.
  2. e−x is decreasing. x2 and ln(x+1) increase (under); sinπx2 goes up, then down (cannot tell). Answer B.

Common mistake Choosing an increasing function.

Watch the worked solution to Problem 4

Problem 5

Water is pumped out of a tank at a rate of W(t) liters per minute, where W is increasing. Selected values are in the table.
t (min)035912
W(t) (L/min)4781315
  1. Estimate ∫012W(t)dt with a right Riemann sum.
  2. Is this estimate an overestimate or an underestimate? Explain.
  3. Find two numbers that ∫012W(t)dt must lie between.
Hint

Increasing: the right end is the highest on each piece. The left sum is the other bound.

Answer and solution
  1. 134
  2. overestimate
  3. 97 and 134
  1. 3⋅7+2⋅8+4⋅13+3⋅15=134
  2. W increasing -> the right end is the highest on each piece -> overestimate
  3. 3⋅4+2⋅7+4⋅8+3⋅13=97→97<∫012W(t)dt<134

Common mistake Saying underestimate: the right end is the highest value.

Watch the worked solution to Problem 5

Problem 6

Selected values of f are in the table. The trapezoidal sum for ∫07f(x)dx with the three subintervals of the table is 32. What is k?
x0237
f(x)3k64
  1. 4
  2. 6
  3. 8
  4. 12
Hint

Write the trapezoidal sum with the table widths 2, 1, 4, then solve for k.

Answer and solution

Answer A. 4

  1. 12(3+k)⋅2+12(k+6)⋅1+12(6+4)⋅4=32
  2. (3+k)+k+62+20=32→3k=12→k=4
  3. Answer A.

Common mistake Using width 1 for every piece.

Watch the worked solution to Problem 6