AP Calculus AB/BC

Part 6 · integration

Substitution

The chain rule run backwards. Recognising when it applies is most of the skill; executing it is bookkeeping.

By the end of this chapter you can

  • Recognise an integrand that is a chain rule derivative
  • Carry out a u-substitution, including changing the limits
  • Choose u when several candidates present themselves
  • Say why a substitution sometimes fails

Every differentiation rule runs backwards into an integration technique. The chain rule runs backwards into substitution, which is the one technique AB needs and the foundation of every technique BC adds.

The chain rule says

ddxF(u(x))=F(u(x))u(x)\frac{d}{dx}F\big(u(x)\big) = F'\big(u(x)\big)\cdot u'(x)

Read right to left: anything of the form f(u)uf(u)\cdot u' integrates to F(u)F(u). The whole method is recognising that shape.

The shape to look for

An integrand that contains a function and its own derivative, up to a constant factor.

2xcos(x2)dx\int 2x\cos(x^2)\,dx

The inside is x2x^2; its derivative is 2x2x; and 2x2x is sitting right there. Substitute u=x2u = x^2, so du=2xdxdu = 2x\,dx, and the integral becomes cosudu=sinu=sin(x2)\int\cos u\,du = \sin u = \sin(x^2).

  • 2xcos(x2)dx=sin(x2)\int 2 x \cos{\left(x^{2} \right)}\, dx = \sin{\left(x^{2} \right)}
  • ddxsin(x2)=2xcos(x2)\frac{d}{d x} \sin{\left(x^{2} \right)} = 2 x \cos{\left(x^{2} \right)}
checked by the build

Both directions checked. The second line is the honest test of any integration: differentiate your answer and see whether you get the integrand back. That takes seconds and catches nearly every mistake, which makes skipping it inexcusable on an exam.

Working the bookkeeping

xex2dx\int x\,e^{x^2}\,dx

The derivative of x2x^2 is 2x2x and only xx is present — off by a constant, which is always fixable.

Let u=x2u = x^2, so du=2xdxdu = 2x\,dx, hence xdx=12dux\,dx = \tfrac12\,du:

xex2dx=12eudu=12eu=12ex2\int x e^{x^2}dx = \tfrac12\int e^u\,du = \tfrac12 e^u = \tfrac12 e^{x^2}

  • xex2dx=ex22\int x e^{x^{2}}\, dx = \frac{e^{x^{2}}}{2}
  • sin(x)cos(x)dx=sin2(x)2\int \sin{\left(x \right)} \cos{\left(x \right)}\, dx = \frac{\sin^{2}{\left(x \right)}}{2}
  • (2x+1)ex2+xdx=ex2+x\int \left(2 x + 1\right) e^{x^{2} + x}\, dx = e^{x^{2} + x}
checked by the build

Definite integrals: change the limits

With definite integrals there are two routes, and one is reliably safer.

Substitute the limits too. When u=x2u = x^2 and xx runs from 00 to 22, then uu runs from 00 to 44:

02xex2dx=1204eudu=12(e41)\int_0^2 x e^{x^2}dx = \tfrac12\int_0^4 e^u\,du = \tfrac12\left(e^4 - 1\right)

Or convert back to xx first, then use the original limits. Both are correct; the first is less error-prone, because forgetting to convert back is a standard way to evaluate the antiderivative at the wrong numbers.

  • eudu=eu\int e^{u}\, du = e^{u}
  • ddxex22=xex2\frac{d}{d x} \frac{e^{x^{2}}}{2} = x e^{x^{2}}
checked by the build

Choosing uu

When more than one candidate presents itself, these heuristics hold up:

  • The inside of a composition. In cos(x2)\cos(x^2), take u=x2u = x^2.
  • Whatever is under a root, inside a denominator, or in an exponent.
  • The thing whose derivative is also present, which is the real criterion — the others are shortcuts to it.

A quick test before committing: compute dudu and see whether the rest of the integrand is exactly dudu up to a constant. If a stray xx survives, that choice of uu is wrong. Trying the other candidate takes fifteen seconds.

  • 1xlog(x)dx=log(log(x))\int \frac{1}{x \log{\left(x \right)}}\, dx = \log{\left(\log{\left(x \right)} \right)}
  • tan(x)dx=log(cos(x))\int \tan{\left(x \right)}\, dx = - \log{\left(\cos{\left(x \right)} \right)}
  • xx2+1dx=log(x2+1)2\int \frac{x}{x^{2} + 1}\, dx = \frac{\log{\left(x^{2} + 1 \right)}}{2}
checked by the build

Those three are all the same move. In the first, u=lnxu = \ln x gives du=dxxdu = \tfrac{dx}{x}, which is exactly what remains. In the second, tanx=sinxcosx\tan x = \tfrac{\sin x}{\cos x} and u=cosxu = \cos x gives du=sinxdxdu = -\sin x\,dx. In the third, u=x2+1u = x^2 + 1 gives du=2xdxdu = 2x\,dx, off by the usual constant.

Once the pattern is visible, these stop being separate problems.

Practice