Calculus I · Adding Up the Infinite

Substitution: the chain rule, run backward

Most antiderivatives aren’t in the table — but many can be transformed into ones that are, by the single most useful integration technique, and it is precisely the chain rule reversed. Recall the chain rule: ddxF(g(x))=F′(g(x))g′(x)\tfrac{d}{dx}F(g(x)) = F'(g(x))\,g'(x). Read that equation from right to left and it becomes an antiderivative rule:

Figure 10.5
Figure 10.5

∫F′(g(x))g′(x)dx=F(g(x))+C.\int F'(g(x))\,g'(x)\,dx = F(g(x)) + C.

In practice you spot an “inside function” g(x)g(x) whose derivative g′(x)g'(x) is also sitting in the integrand (up to a constant factor), and you rename: let u=g(x)u = g(x), so that du=g′(x)dxdu = g'(x)\,dx. The integral collapses into one in uu that you can do from the table.

Example. ∫2x(x2+1)5dx\displaystyle\int 2x(x^2+1)^5\,dx. The inside is g(x)=x2+1g(x) = x^2+1, and its derivative 2x2x is right there. Let u=x2+1u = x^2+1, du=2xdxdu = 2x\,dx: ∫2x(x2+1)5dx=∫u5du=u66+C=(x2+1)66+C.\int 2x(x^2+1)^5\,dx = \int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2+1)^6}{6} + C. Differentiate the answer (chain rule!) and you get 2x(x2+1)52x(x^2+1)^5 back — substitution and the chain rule are genuinely inverse moves.

Example. ∫xex2dx\displaystyle\int x\,e^{x^2}\,dx. Inside is x2x^2, derivative 2x2x — present up to the factor of 22. Let u=x2u = x^2, du=2xdxdu = 2x\,dx, so xdx=12dux\,dx = \tfrac12\,du: ∫xex2dx=∫eu⋅12du=12eu+C=12ex2+C.\int x\,e^{x^2}\,dx = \int e^u \cdot \tfrac12\,du = \tfrac12 e^u + C = \tfrac12 e^{x^2} + C.

Example — the logarithm pattern. ∫tan⁡xdx=∫sin⁡xcos⁡xdx\displaystyle\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx. The inside is cos⁡x\cos x, and its derivative −sin⁡x-\sin x is sitting on top (up to the minus sign). Let u=cos⁡xu = \cos x, du=−sin⁡xdxdu = -\sin x\,dx: ∫sin⁡xcos⁡xdx=∫−1udu=−ln⁡|u|+C=−ln⁡|cos⁡x|+C.\int \frac{\sin x}{\cos x}\,dx = \int \frac{-1}{u}\,du = -\ln|u| + C = -\ln|\cos x| + C. Whenever the top of a fraction is the derivative of the bottom, substitution turns the whole thing into a logarithm — a pattern worth knowing on sight: ∫g′(x)g(x)dx=ln⁡|g(x)|+C\displaystyle\int \frac{g'(x)}{g(x)}\,dx = \ln|g(x)| + C.

This is the mirror image of Chapter 4. There, the product rule and chain rule were tools for taking derivatives; here, reversed, they become tools for finding antiderivatives. (The product rule’s reverse — integration by parts — is the other great technique, and it arrives in Chapter 11 as a payoff of the Fundamental Theorem.) For now, substitution applies cleanly to indefinite integrals; using it on definite integrals, where the limits themselves transform, is a Chapter 11 refinement.

Toolkit: Substitution

  1. Find an inside function u=g(x)u = g(x) whose derivative g′(x)g'(x) appears in the integrand (up to a constant).
  2. Compute du=g′(x)dxdu = g'(x)\,dx and rewrite the entire integral in terms of uu — no xx may remain.
  3. Integrate in uu using the table, then substitute xx back.
  4. Always check by differentiating your answer. Substitution is the chain rule reversed, so the chain rule is your proofreader.

All 12 chapters of Calculus I · Foundations · All courses