Dove's LibraryDove's Library

6.2 - Approximating Areas with Riemann Sums

Introduction

When a curve doesn’t form a nice geometric shape, we can’t use basic area formulas. Instead we approximate the area with rectangles or trapezoids.
To approximate area on [a,b][a, b] using nn sub-intervals:
Δx=b−an\boxed{\Delta x = \frac{b - a}{n}}
where Δx\Delta x is the width of each sub-interval.
More sub-intervals means a better approximation.
6.2 - Approximating Areas with Riemann Sums

Riemann Sums

A Riemann sum approximates area by adding up the areas of multiple rectangles. It’s named after the German mathematician Bernhard Riemann.
For all four examples below, we’ll use the same function:
f(x)=4x−12x2on [2,8],n=3f(x) = 4x - \tfrac{1}{2}x^2 \quad \text{on } [2, 8], \quad n = 3
Width: Δx=8−23=2\Delta x = \frac{8 - 2}{3} = 2
Sub-intervals: [2,4][2, 4], [4,6][4, 6], [6,8][6, 8]
Useful values: f(2)=6f(2) = 6, f(4)=8f(4) = 8, f(6)=6f(6) = 6, f(8)=0f(8) = 0

Left Riemann Sum

Use the left endpoint of each sub-interval for the rectangle height.
6.2 - Approximating Areas with Riemann Sums
Left Sum=Δx[f(2)+f(4)+f(6)]=2[6+8+6]=2(20)=40\text{Left Sum} = \Delta x [f(2) + f(4) + f(6)] = 2[6 + 8 + 6] = 2(20) = 40
The left Riemann sum approximation is 40 square units.

Right Riemann Sum

Use the right endpoint of each sub-interval for the height.
6.2 - Approximating Areas with Riemann Sums
Right Sum=2[f(4)+f(6)+f(8)]=2[8+6+0]=2(14)=28\text{Right Sum} = 2[f(4) + f(6) + f(8)] = 2[8 + 6 + 0] = 2(14) = 28
The right Riemann sum approximation is 28 square units. Note that f(8)=0f(8) = 0, so the third rectangle has zero height.

Midpoint Riemann Sum

Use the midpoint of each sub-interval for the height. The midpoints here are 33, 55, and 77.
6.2 - Approximating Areas with Riemann Sums
f(3)=4(3)−12(9)=12−4.5=7.5f(3) = 4(3) - \tfrac{1}{2}(9) = 12 - 4.5 = 7.5f(5)=4(5)−12(25)=20−12.5=7.5f(5) = 4(5) - \tfrac{1}{2}(25) = 20 - 12.5 = 7.5f(7)=4(7)−12(49)=28−24.5=3.5f(7) = 4(7) - \tfrac{1}{2}(49) = 28 - 24.5 = 3.5Midpoint Sum=2[7.5+7.5+3.5]=2(18.5)=37\text{Midpoint Sum} = 2[7.5 + 7.5 + 3.5] = 2(18.5) = 37
The midpoint approximation is 37 square units, which lands between the left sum (40) and the right sum (28).

Trapezoidal Sum

Use trapezoids instead of rectangles by connecting consecutive function values. A trapezoid has two different heights (the left and right endpoints).
Trapezoid area=Δx⋅f(xleft)+f(xright)2\boxed{\text{Trapezoid area} = \Delta x \cdot \frac{f(x_{\text{left}}) + f(x_{\text{right}})}{2}}
That’s the width times the average of the two heights.
6.2 - Approximating Areas with Riemann Sums
Trap Sum=2[6+82+8+62+6+02]=2[7+7+3]=2(17)=34\text{Trap Sum} = 2\left[\frac{6 + 8}{2} + \frac{8 + 6}{2} + \frac{6 + 0}{2}\right] = 2[7 + 7 + 3] = 2(17) = 34
The trapezoidal approximation is 34 square units. The exact area is 36, so here the midpoint sum (37, off by 1) is actually closer than the trapezoidal sum (34, off by 2).

Over-estimates vs. Under-estimates

Whether a Riemann sum is over or under depends on two things: whether the function is increasing or decreasing, and which method you use.
For increasing functions
6.2 - Approximating Areas with Riemann Sums
Method
Estimate Type
Left Riemann Sum
Under-estimate
Right Riemann Sum
Over-estimate
For decreasing functions
6.2 - Approximating Areas with Riemann Sums
Method
Estimate Type
Left Riemann Sum
Over-estimate
Right Riemann Sum
Under-estimate
For trapezoidal sums, it depends on concavity.
6.2 - Approximating Areas with Riemann Sums
Concavity
Trapezoidal Estimate
Concave up
Over-estimate
Concave down
Under-estimate
Linear (no concavity)
Exact
For midpoint sums, it also depends on concavity, but the rule is the opposite of trapezoids.
6.2 - Approximating Areas with Riemann Sums
Concavity
Midpoint Estimate
Concave up
Under-estimate
Concave down
Over-estimate
Linear (no concavity)
Exact
Why? Tilt the top of a midpoint rectangle until it lines up with the tangent line at the midpoint. The area doesn’t change, because the small triangle you cut off on one side is the same size as the one you add on the other. A concave up curve sits above its tangent lines, so the rectangle comes out too small. Concave down is the reverse.
Check with the example above: f(x)=4x−12x2f(x) = 4x - \tfrac{1}{2}x^2 has f′′(x)=−1f''(x) = -1, so it’s concave down. The midpoint sum (37) is over the exact area (36), and the trapezoidal sum (34) is under it, just like the tables say.
Memory aid: just sketch a quick picture to figure out over vs. under.

Riemann Sums with Tables of Values

When you’re given a table instead of an equation, use the table values directly.
Example: rate problem with a table
Water is pumped out of a tank at rate R(t)R(t) in gallons per minute. Approximate the total water pumped in 12 minutes.
tt (min)
0
3
6
9
12
R(t)R(t) (gal/min)
7
13
18
23
27
Note that R(t)R(t) is increasing throughout.
Right Riemann sum (4 sub-intervals)
Sub-intervals [0,3],[3,6],[6,9],[9,12][0,3], [3,6], [6,9], [9,12], each with Δt=3\Delta t = 3:
Right Sum=3[13+18+23+27]=3(81)=243 gallons\text{Right Sum} = 3[13 + 18 + 23 + 27] = 3(81) = 243 \text{ gallons}
Justification: this is an over-estimate because it’s a right Riemann sum on an increasing function.
Left Riemann sum (4 sub-intervals)
Left Sum=3[7+13+18+23]=3(61)=183 gallons\text{Left Sum} = 3[7 + 13 + 18 + 23] = 3(61) = 183 \text{ gallons}
Justification: this is an under-estimate because it’s a left Riemann sum on an increasing function.
Midpoint Riemann sum (2 sub-intervals)
Important: you can only use values that appear in the table, so you have to pick sub-intervals whose midpoints are actually there.
Sub-intervals [0,6][0, 6] and [6,12][6, 12], each with Δt=6\Delta t = 6. Midpoints are t=3t = 3 and t=9t = 9, both in the table.
Midpoint Sum=6[13+23]=6(36)=216 gallons\text{Midpoint Sum} = 6[13 + 23] = 6(36) = 216 \text{ gallons}
You couldn’t use sub-intervals like [0,3][0,3] here, because the midpoint t=1.5t = 1.5 isn’t in the table.
Trapezoidal sum (4 sub-intervals)
Trap Sum=3[7+132+13+182+18+232+23+272]\text{Trap Sum} = 3\left[\frac{7+13}{2} + \frac{13+18}{2} + \frac{18+23}{2} + \frac{23+27}{2}\right]=3[10+15.5+20.5+25]=3(71)=213 gallons= 3[10 + 15.5 + 20.5 + 25] = 3(71) = 213 \text{ gallons}
Comparison
Method
Approximation
Type
Left Sum
183 gallons
Under
Right Sum
243 gallons
Over
Midpoint Sum
216 gallons
Between
Trapezoidal Sum
213 gallons
Between

General Formulas

Left Riemann sum
Ln=Δx[f(x0)+f(x1)+f(x2)+⋯+f(xn−1)]L_n = \Delta x [f(x_0) + f(x_1) + f(x_2) + \cdots + f(x_{n-1})]
Right Riemann sum
Rn=Δx[f(x1)+f(x2)+f(x3)+⋯+f(xn)]R_n = \Delta x [f(x_1) + f(x_2) + f(x_3) + \cdots + f(x_n)]
Midpoint Riemann sum
Mn=Δx[f(xˉ1)+f(xˉ2)+⋯+f(xˉn)]M_n = \Delta x [f(\bar{x}_1) + f(\bar{x}_2) + \cdots + f(\bar{x}_n)]
where xˉi\bar{x}_i is the midpoint of the ii-th sub-interval.
Trapezoidal sum
Tn=Δx[f(x0)+f(x1)2+f(x1)+f(x2)2+⋯+f(xn−1)+f(xn)2]T_n = \Delta x \left[\frac{f(x_0) + f(x_1)}{2} + \frac{f(x_1) + f(x_2)}{2} + \cdots + \frac{f(x_{n-1}) + f(x_n)}{2}\right]
Or in the compact form:
Tn=Δx2[f(x0)+2f(x1)+2f(x2)+⋯+2f(xn−1)+f(xn)]T_n = \frac{\Delta x}{2}[f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n)]

Riemann Sums with Unequal Sub-intervals

Everything above used equal widths, but sub-intervals don’t have to be the same size, and tables on the AP exam often have uneven gaps. The rule doesn’t change: each rectangle or trapezoid uses its own width. You just can’t factor out one Δx\Delta x, and the compact trapezoid formula above doesn’t apply.
Example: a hose fills a pool at a rate of H(t)H(t) gallons per minute, where HH is increasing. Approximate the water that flows into the pool from t=0t = 0 to t=10t = 10 minutes.
tt (min)
0
2
5
6
10
H(t)H(t) (gal/min)
12
15
20
21
25
The widths are 2, 3, 1, and 4 minutes.
Left Riemann sum
Left Sum=2(12)+3(15)+1(20)+4(21)=24+45+20+84=173 gallons\text{Left Sum} = 2(12) + 3(15) + 1(20) + 4(21) = 24 + 45 + 20 + 84 = 173 \text{ gallons}
Right Riemann sum
Right Sum=2(15)+3(20)+1(21)+4(25)=30+60+21+100=211 gallons\text{Right Sum} = 2(15) + 3(20) + 1(21) + 4(25) = 30 + 60 + 21 + 100 = 211 \text{ gallons}
Trapezoidal sum
Trap Sum=2⋅12+152+3⋅15+202+1⋅20+212+4⋅21+252\text{Trap Sum} = 2 \cdot \frac{12 + 15}{2} + 3 \cdot \frac{15 + 20}{2} + 1 \cdot \frac{20 + 21}{2} + 4 \cdot \frac{21 + 25}{2}=27+52.5+20.5+92=192 gallons= 27 + 52.5 + 20.5 + 92 = 192 \text{ gallons}
Since HH is increasing, the left sum is an under-estimate and the right sum is an over-estimate, so the actual amount is between 173 and 211 gallons.

Key Takeaways

  • Width formula: Δx=b−an\Delta x = \frac{b-a}{n}, where nn is the number of sub-intervals
  • More sub-intervals means a better approximation (and more work)
  • Left sum: left endpoint of each sub-interval for the height
  • Right sum: right endpoint for the height
  • Midpoint sum: midpoint for the height
  • Trapezoidal sum: average the two endpoint heights
  • Increasing function: left is under, right is over
  • Decreasing function: left is over, right is under
  • Trapezoids: concave up is over, concave down is under
  • Midpoints: concave up is under, concave down is over (the opposite of trapezoids)
  • Tables: you can only use the values given, so choose sub-intervals carefully for midpoints
  • Unequal widths: multiply each height by the width of its own sub-interval
  • Midpoint and trapezoidal sums are usually more accurate than left or right sums for the same number of sub-intervals
  • Justification: state both the method AND the function’s behavior (increasing/decreasing or concavity)
  • Units from a rate: the area gives the accumulation when you start with a rate of change

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.