AP Calculus AB/BC

Part 6 · integration

The definite integral

An integral is a limit of sums. Watching the rectangles converge is the fastest way to believe that, and to see which rule converges fastest.

By the end of this chapter you can

  • Express an area as a Riemann sum and then as an integral
  • Compare left, right, midpoint and trapezoid approximations
  • Say which rules over- and under-estimate, and why
  • Interpret a definite integral as accumulated change

The derivative was a limit of slopes. The integral is a limit of sums, and the parallel is exact: both take a quantity you can compute for a finite step, and ask what it approaches as the step shrinks to nothing.

Slice the region under a curve into nn rectangles of width Δx=ban\Delta x = \tfrac{b-a}{n}, add their areas, and let nn grow:

abf(x)dx=limni=1nf(xi)Δx\int_a^b f(x)\,dx = \lim_{n \to \infty}\sum_{i=1}^{n} f(x_i)\,\Delta x

That is the definition. Everything else in this unit is a way of avoiding having to use it.

Watch it converge

Three things are worth doing with that before reading on.

Drag nn up on the left rule. The error shrinks, and roughly halves each time you double nn. Slow, steady, predictable.

Switch to right. On this increasing function the left rule undershoots and the right rule overshoots, so the true value is trapped between them. At n=4n = 4 they give 1.751.75 and 3.753.75 — and their average, 2.752.75, is exactly what the trapezoid rule gives. That is not a resemblance: averaging the two rules is algebraically identical to averaging each strip’s two edges.

Switch to midpoint and trapezoid at the same nn. Both are dramatically better. At n=4n = 4 the left rule is out by 0.920.92, the trapezoid by 0.0830.083, and the midpoint by 0.0420.042 — a factor of twenty for no extra work.

  • x2dx=x33\int x^{2}\, dx = \frac{x^{3}}{3}
  • 83=83\frac{8}{3} = \frac{8}{3}
checked by the build

The exact value is 83\tfrac83, and the widget’s error readout is measured against exactly that.

Which rules over- and under-estimate

This is a standard exam question, and it is decided by two properties of the function, not by memorising four cases.

increasing ff decreasing ff
left rule under over
right rule over under

For left and right it is about monotonicity: on an increasing function, the left edge of each strip is the lowest point in it, so every rectangle sits below the curve.

concave up concave down
trapezoid over under
midpoint under over

For trapezoid and midpoint it is about concavity: a chord across a concave-up curve lies above it, so the trapezoid overshoots. The midpoint rectangle’s error is subtler — the bit it misses on one side is more than made up on the other — and it lands on the opposite side, which is why midpoint and trapezoid errors have opposite signs.

It is not only area

Area is the picture, but it is not the meaning. A definite integral is accumulated change, and the units come from the product f(x)dxf(x)\,dx:

ff is xx is the integral is
velocity (m/s) time (s) displacement (m)
rate of flow (L/s) time (s) volume (L)
force (N) distance (m) work (J)
density (kg/m) length (m) mass (kg)

This is why the integral sign turns up throughout physics, and why the units question — “what does this integral represent?” — is answered by multiplying the units of the integrand by the units of the variable.

Signed area. Where ff is negative the product f(x)Δxf(x)\Delta x is negative, so the integral subtracts. A velocity that goes negative contributes backwards displacement, exactly as it should.

  • xdx=x22\int x\, dx = \frac{x^{2}}{2}
  • sin(x)dx=cos(x)\int \sin{\left(x \right)}\, dx = - \cos{\left(x \right)}
  • exdx=ex\int e^{x}\, dx = e^{x}
  • 1xdx=log(x)\int \frac{1}{x}\, dx = \log{\left(x \right)}
checked by the build