AP Calculus BC · Study guide

Integrating Using Substitution

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

Integration by Substitution

Substitution is the chain rule run backward. This guide shows how to choose u, how to fix constant factors, and how to handle the limits of a definite integral.

The idea in one paragraph

If an integrand has the form \(f(g(x))\,g'(x)\), it came from the chain rule, and its antiderivative is \(F(g(x)) + C\). In practice: let \(u\) be the inner function \(g(x)\), replace \(g'(x)\,dx\) with \(du\), integrate in \(u\), then put \(x\) back. A missing constant factor is fine (divide by it); a missing variable factor is not. For definite integrals, convert the limits to \(u\)-values and skip the return to \(x\).

1The chain rule in reverse

Differentiating \(\frac{(x^2 + 1)^6}{6}\) gives \((x^2 + 1)^5 \cdot 2x\): the chain rule creates a factor that is the derivative of the inside. Substitution looks for that pattern and undoes it.

Worked Example 1 The basic move

\(\displaystyle\int 2x(x^2 + 1)^5\,dx\)

  1. 1
    Spot an inner function whose derivative is also present: inside the power is \(x^2 + 1\), and its derivative \(2x\) is right there.
  2. 2
    Let \(u = x^2 + 1\). Then \(du = 2x\,dx\), and the integral becomes \(\displaystyle\int u^5\,du = \frac{u^6}{6} + C\).
  3. 3
    Return to \(x\).
Answer: \(\dfrac{(x^2 + 1)^6}{6} + C\)
Write it like this

“Let \(u = x^2 + 1\), so \(du = 2x\,dx\). Then \(\displaystyle\int 2x(x^2 + 1)^5\,dx = \int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2 + 1)^6}{6} + C\).”

2Choosing u

Look forTry u =
A power of an expressionthe expression inside the power
An expression under a rootthe expression under the root
\(e^{\text{something}}\)the exponent
\(\sin\), \(\cos\) of somethingthe inside of the trig function
A factor of \(\frac1x\) next to \(\ln x\)\(\ln x\)
Worked Example 2 Fixing a constant

\(\displaystyle\int x\sqrt{x^2 + 4}\,dx\)

  1. 1
    \(u = x^2 + 4\), \(du = 2x\,dx\). Only \(x\,dx\) is present, so \(x\,dx = \frac12\,du\).
  2. 2
    \(\displaystyle\frac12\int u^{1/2}\,du = \frac12 \cdot \frac23u^{3/2} = \frac13u^{3/2}\).
Answer: \(\tfrac13(x^2 + 4)^{3/2} + C\)
Worked Example 3 Linear inside

\(\displaystyle\int \cos(3x)\,dx\)

  1. 1
    \(u = 3x\), \(du = 3\,dx\), so \(dx = \frac13\,du\).
  2. 2
    \(\displaystyle\frac13\int\cos u\,du = \frac13\sin u\).
Answer: \(\tfrac13\sin(3x) + C\). Check: the derivative is \(\tfrac13 \cdot 3\cos(3x) = \cos(3x)\).
Worked Example 4 Exponential and log

\(\displaystyle\int xe^{x^2}\,dx\) and \(\displaystyle\int \frac{\ln x}{x}\,dx\)

  1. 1
    First: \(u = x^2\), \(x\,dx = \frac12du\): \(\frac12\int e^u\,du = \frac12e^{x^2} + C\).
  2. 2
    Second: \(u = \ln x\), \(du = \frac1x\,dx\): \(\int u\,du = \frac{u^2}{2} = \frac{(\ln x)^2}{2} + C\).
Answer: \(\tfrac12e^{x^2} + C\) and \(\tfrac12(\ln x)^2 + C\)
Common Mistake 1 · Leaving some x behind

After substituting, the integral must contain only \(u\) and \(du\). If an \(x\) is left over that is not part of \(du\), the choice of \(u\) does not work (or you need to solve for \(x\) in terms of \(u\)).

Common Mistake 2 · Forgetting to adjust a constant

In Worked Example 2, \(du = 2x\,dx\) but the integral has only \(x\,dx\). Writing \(\int u^{1/2}\,du\) without the \(\frac12\) doubles the answer.

3Definite integrals

Worked Example 5 Definite integral: change the limits

\(\displaystyle\int_0^2 x(x^2 + 1)^3\,dx\)

  1. 1
    \(u = x^2 + 1\), \(x\,dx = \frac12du\). New limits: \(x = 0 \Rightarrow u = 1\); \(x = 2 \Rightarrow u = 5\).
  2. 2
    \(\displaystyle\frac12\int_1^5 u^3\,du = \frac12\left[\frac{u^4}{4}\right]_1^5 = \frac18(625 - 1) = 78\).
  3. 3
    No need to return to x: the limits are already in terms of u.
Answer: 78
Figure 1. With u = x², the integral of 2x·e^(x²) from x = 0 to 1 becomes the integral of eᵘ from u = 0 to 1. The regions look different, but their areas are equal: e − 1.
Common Mistake 3 · Mixing old limits with the new variable

\(\displaystyle\frac12\int_0^2 u^3\,du\) uses the x-limits with u: that integrates over the wrong interval. Either convert the limits (0 and 2 become 1 and 5) or return to \(x\) before evaluating.

4Recognizing hidden substitutions

Worked Example 6 A trig integral in disguise

\(\displaystyle\int \tan x\,dx\)

  1. 1
    Write \(\tan x = \dfrac{\sin x}{\cos x}\). Let \(u = \cos x\), \(du = -\sin x\,dx\).
  2. 2
    \(\displaystyle\int \frac{\sin x}{\cos x}\,dx = -\int\frac{du}{u} = -\ln|u|\).
Answer: \(-\ln|\cos x| + C\)

Quick reference

StepAction
1Choose u = the inside function
2Compute du; match it to what is in the integral (fix constants)
3Rewrite everything in u; integrate
4Indefinite: return to x and add C. Definite: use u-limits
CheckDifferentiate the answer