impera Open Impera

AP Calculus BC · Integration and accumulation of change

Riemann sums

1Accumulation as area

If a car travels at a constant 60 km/h for 2 hours, it covers $60 \times 2 = 120$ km. On a velocity–time graph, that distance is the area of the rectangle under the line $v = 60$.

When velocity changes, the distance is still the area under the velocity curve. In general, the area under a rate-of-change graph gives the accumulated change in the quantity.

  • Area under a velocity graph = displacement.
  • Area under a flow-rate graph (litres per minute) = total litres.

To find areas under curves, we approximate with rectangles.

Check yourself

What does the area under a velocity–time graph represent?

  • The acceleration of the object

  • The average velocity over the interval

  • The speed of the object at the end

  • The displacement (change in position)

Show the answer

The displacement (change in position)

Rate × time = amount.

2Left, right and midpoint sums

Divide $[a, b]$ into $n$ subintervals of width $\Delta x = \frac{b - a}{n}$. On each, build a rectangle whose height is the function value at a chosen point:

  • Left Riemann sum $L_n$: height at the left endpoint of each subinterval.
  • Right Riemann sum $R_n$: height at the right endpoint.
  • Midpoint sum $M_n$: height at the midpoint.
Worked example

approximate the area under $f(x) = x^2$ on $[0, 2]$ with $n = 4$.

  1. $\Delta x = \frac{2 - 0}{4} = 0.5$. Points: $0, 0.5, 1, 1.5, 2$.
  2. Left: $0.5[f(0) + f(0.5) + f(1) + f(1.5)] = 0.5[0 + 0.25 + 1 + 2.25] = 1.75$.
  3. Right: $0.5[f(0.5) + f(1) + f(1.5) + f(2)] = 0.5[0.25 + 1 + 2.25 + 4] = 3.75$.
  4. Midpoint: $0.5[f(0.25) + f(0.75) + f(1.25) + f(1.75)] = 0.5[0.0625 + 0.5625 + 1.5625 + 3.0625] = 2.625$.

The exact area is $\frac{8}{3} \approx 2.667$.

Right rectangles overestimate and left rectangles underestimate the area under an increasing curve

Check yourself

For f(x) = x on [0, 4] with n = 2, the right Riemann sum is:

  • 4

  • 6

  • 8

  • 12

Show the answer

12

Δx = 2; 2[f(2) + f(4)] = 2(6).

3The trapezoidal rule

Instead of rectangles, use trapezoids, joining the function values at each pair of endpoints with a straight line. The area of one trapezoid is $\frac{\Delta x}{2}[f(x_{i-1}) + f(x_i)]$, so

$$T_n = \frac{\Delta x}{2}\left[f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n)\right]$$

The trapezoidal sum is the average of the left and right sums: $T_n = \frac{L_n + R_n}{2}$.

Example

for $x^2$ on $[0, 2]$ with $n = 4$, $T_4 = \frac{1.75 + 3.75}{2} = 2.75$.

On the AP exam, subintervals in a table may have unequal widths. Then compute each rectangle or trapezoid separately with its own width.

Check yourself

The trapezoidal sum equals:

  • The exact area always

  • The midpoint sum

  • The sum of the left and right sums

  • The average of the left and right Riemann sums

Show the answer

The average of the left and right Riemann sums

(L + R)/2.

4Over- and underestimates

  • If $f$ is increasing, left sums underestimate and right sums overestimate.
  • If $f$ is decreasing, the reverse.
  • If $f$ is concave up, the trapezoidal sum overestimates (the chords lie above the curve) and the midpoint sum underestimates.
  • If $f$ is concave down, the trapezoidal sum underestimates and the midpoint sum overestimates.

More subintervals give better approximations.

Check yourself

f is decreasing on [a, b]. The left Riemann sum is:

  • An overestimate

  • Zero

  • Exact

  • An underestimate

Show the answer

An overestimate

Left heights are the tallest on each piece.

5Sums from tables in context

Worked example

water flows into a tank at rate $r(t)$ litres per minute.

  • $r(0) = 10$, $r(2) = 14$, $r(5) = 20$, $r(6) = 18$.

Estimate the total water added from $t = 0$ to $t = 6$ with a right Riemann sum.

  1. Widths: $2$, $3$, $1$.
  2. $R = 2(14) + 3(20) + 1(18) = 28 + 60 + 18 = 106$ litres.

With trapezoids: $\frac{2}{2}(10 + 14) + \frac{3}{2}(14 + 20) + \frac{1}{2}(20 + 18) = 24 + 51 + 19 = 94$ litres.

Check yourself

Why must you be careful with widths when using a table?

  • The subintervals may have different widths

  • The table values are always wrong

  • Tables only allow left sums

  • Width is always 1

Show the answer

The subintervals may have different widths

Multiply each height by its own width.

6Going deeper: sums from tables with unequal widths, and whether they over- or underestimate

A Riemann sum approximates $\int_a^b f(x)\,dx$ by adding areas of rectangles (or trapezoids): Σ (height × width).

  • Left sum: height from the left endpoint of each subinterval.
  • Right sum: from the right endpoint.
  • Midpoint sum: from the midpoint.
  • Trapezoidal sum: average of the two endpoint heights × width: $\frac{f(x_{i-1}) + f(x_i)}{2}\,\Delta x_i$.

Tables often have unequal widths: compute each width separately.

Worked example

t = 0, 2, 5, 9 (seconds) and v(t) = 10, 14, 20, 18 (m/s). Estimate $\int_0^9 v(t)\,dt$.

  1. Widths: 2, 3, 4.
  2. Left: 2(10) + 3(14) + 4(20) = 20 + 42 + 80 = 142.
  3. Right: 2(14) + 3(20) + 4(18) = 28 + 60 + 72 = 160.
  4. Trapezoidal: $\frac{142 + 160}{2}$ = 151. (With unequal widths, compute each trapezoid: 2(12) + 3(17) + 4(19) = 24 + 51 + 76 = 151.)
  5. Meaning: the object travels about 151 meters in the 9 seconds. Units: (m/s) × s.

A midpoint sum needs the function's value at each midpoint, so with a table it uses double-width intervals: with t = 0, 2, 4, 6, 8 you can use two intervals of width 4 with midpoints 2 and 6.

Over- or underestimate?

  • f increasing: left sum underestimates; right sum overestimates.
  • f decreasing: left over; right under.
  • f concave up: trapezoidal over; midpoint under.
  • f concave down: trapezoidal under; midpoint over.

Justification wording: "Since v is increasing on [0, 5], the left Riemann sum is an underestimate of the integral on that interval."

Formula example: $f(x) = x^2$ on [0, 2], n = 4 (Δx = 0.5).

  1. Left: 0.5(0 + 0.25 + 1 + 2.25) = 1.75.
  2. Right: 0.5(0.25 + 1 + 2.25 + 4) = 3.75.
  3. Midpoint: 0.5(0.0625 + 0.5625 + 1.5625 + 3.0625) = 2.625.
  4. Trapezoidal: 2.75.
  5. Exact: $\frac{8}{3} = 2.667$. f is increasing and concave up: left under, right over, trapezoid over, midpoint under, as predicted.

The definite integral as a limit

$$\int_a^b f(x)\,dx = \lim_{n \to \infty}\sum_{i=1}^{n} f(x_i)\,\Delta x, \qquad \Delta x = \frac{b - a}{n},\; x_i = a + i\,\Delta x$$

Recognizing an integral from a sum: identify Δx and $x_i$.

Worked example

$\lim_{n \to \infty}\sum_{i=1}^{n}\left(1 + \frac{2i}{n}\right)^2\frac{2}{n}$.

  1. $\Delta x = \frac{2}{n}$, so b − a = 2.
  2. $x_i = 1 + \frac{2i}{n}$, so a = 1 and b = 3.
  3. The limit equals $\int_1^3 x^2\,dx$.

Signed area: where f is negative, the terms are negative. The integral is net area (above minus below).

Integrals from geometry: areas of triangles, rectangles, trapezoids and semicircles. $\int_{-3}^{3}\sqrt{9 - x^2}\,dx$ is half a circle of radius 3: $\frac{9\pi}{2}$.

Properties: $\int_a^a f = 0$; $\int_b^a f = -\int_a^b f$; $\int_a^b f + \int_b^c f = \int_a^c f$; constants factor out; integrals of sums add.

Common mistakes

  • Assuming equal widths in a table.
  • Using the wrong endpoint.
  • Averaging left and right sums when widths differ without checking (it works; but computing trapezoids directly is safer).
  • Deciding over or under from concavity for left and right sums (use increasing or decreasing).
  • Leaving out units.
Check yourself

A function is decreasing on [a, b]. A right Riemann sum for the integral of f over [a, b] will be:

  • Exact

  • An underestimate

  • An overestimate

  • Impossible to classify

Show the answer

An underestimate

Each rectangle's height is taken where the function is lowest on its subinterval.

7For top marks

  • Write the sum with numbers substituted, e.g. $2(14) + 3(20) + 1(18)$; the expression earns a mark on its own.
  • State units: the units of $f$ times the units of $x$ (litres per minute × minutes = litres).
  • Justify over/underestimates with increasing/decreasing (for left/right) or concavity (for trapezoid/midpoint).
  • Do not simplify long calculator arithmetic before writing the setup.
Example

"Since $r$ is increasing on $[0, 5]$, a left Riemann sum on that interval is an underestimate of the water added."

Check yourself

The units of a Riemann sum for a rate in metres per second over seconds are:

  • Metres per second

  • Seconds

  • Metres

  • Metres per second squared

Show the answer

Metres

Rate × time.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera