Riemann Sums, the Definite Integral, and Accumulation

AP Calculus BC · Unit 6 — Integration and Accumulation of Change

A sum that never stops refining

Chop $[a,b]$ into $n$ subintervals of width $\Delta x=\dfrac{b-a}{n}$, pick a sample point $x_k^{*}$ in each one, and add up the rectangles:

$$\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{k=1}^{n} f\!\left(x_k^{*}\right)\Delta x$$

Left, right and midpoint sums differ only in where $x_k^{*}$ sits; the trapezoidal sum averages the left and right heights. For a function that is increasing, a left sum underestimates and a right sum overestimates; for a function that is concave up, the trapezoidal sum overestimates and the midpoint sum underestimates. These four facts are decided by shape alone, so a question can ask for them with no formula in sight.

Reading a limit backwards

BC asks the reverse direction too: given $\displaystyle\lim_{n\to\infty}\sum_{k=1}^{n}\frac{b-a}{n}\,f\!\left(a+\frac{(b-a)k}{n}\right)$, name the integral. Match $\Delta x$ to the constant factor and $a+\frac{(b-a)k}{n}$ to the variable $x$; the endpoints fall out of that match.

Properties worth memorising

$$\int_a^b f=-\int_b^a f,\qquad \int_a^c f+\int_c^b f=\int_a^b f,\qquad \int_a^a f=0$$

The interpretation that carries the whole unit: if $f$ is a rate in units of $Q$ per unit time, then $\int_a^b f(t)\,dt$ is the net change in $Q$ over $[a,b]$ — not the final amount, and not the rate.

y = f(x) a x1 x2 x3 b each column's width is Δx = (b − a)/n, its height is f taken at the LEFT endpoint the white gap between the top of each column and the curve is the error of the Riemann sum
Why the left sum falls short for an increasing function. Each column takes its height at the left endpoint, that is, the smallest value of $f$ on that subinterval. The top of the column lies entirely under the curve, and the white part left over is exactly the amount that was missed. As $n$ grows, each white sliver gets thinner faster than the number of slivers grows, so the total error tends to $0$ — that is the whole reason the limit exists.

Worked example: turning a limit of a sum into an integral

Write $\displaystyle\lim_{n\to\infty}\sum_{k=1}^{n}\frac{2}{n}\,\ln\!\left(3+\frac{2k}{n}\right)$ as a definite integral.

Solution

Step 1 — identify $\Delta x$. The constant factor standing outside is $\frac2n$, so $\Delta x=\frac2n$ and $b-a=2$.

Step 2 — identify $x$. The expression containing $k$ is $3+\frac{2k}{n}$, that is, $x=3+\frac{2k}{n}$. With $k=0$ we get $x=3$, with $k=n$ we get $x=5$.

Step 3 — put it together.

$$\lim_{n\to\infty}\sum_{k=1}^{n}\frac{2}{n}\ln\!\left(3+\frac{2k}{n}\right)=\int_3^5 \ln x\,dx$$

A quick check: $b-a$ read from the right endpoint equals exactly $n\Delta x=2$. If these two numbers disagree, you surely dropped a coefficient in $\Delta x$.

Common mistake

The costliest trap when converting a limit of a sum into an integral is forgetting the factor in $\Delta x$: from $\sum\frac{3}{n}f\!\left(1+\frac{3k}{n}\right)$, writing $\int_0^1 f(1+3x)\,dx$ makes the result exactly three times too small. How to prevent it: after writing the integral, multiply out $n\Delta x$ and compare it with the length of the interval of integration — the two numbers must be equal. The second trap is using "the right sum is an overestimate" for a decreasing function; the condition is that the function is increasing, not that it is positive.

Key takeaway

A definite integral is the limit of the total area of the columns. The direction of the error is decided by monotonicity and concavity, not by the sign of the function. And the integral of a rate gives the net change; to get the final amount, you must add the initial amount.

← Optimisation and the Behaviour of Implicitly Defined Relations · All AP Calculus BC lessons · Practice AP Calculus BC questions (free, instant scoring) · The Fundamental Theorem and u-Substitution →