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.
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.
\(\displaystyle\int 2x(x^2 + 1)^5\,dx\)
- 1Spot an inner function whose derivative is also present: inside the power is \(x^2 + 1\), and its derivative \(2x\) is right there.
- 2Let \(u = x^2 + 1\). Then \(du = 2x\,dx\), and the integral becomes \(\displaystyle\int u^5\,du = \frac{u^6}{6} + C\).
- 3Return to \(x\).
“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 for | Try u = |
|---|---|
| A power of an expression | the expression inside the power |
| An expression under a root | the expression under the root |
| \(e^{\text{something}}\) | the exponent |
| \(\sin\), \(\cos\) of something | the inside of the trig function |
| A factor of \(\frac1x\) next to \(\ln x\) | \(\ln x\) |
\(\displaystyle\int x\sqrt{x^2 + 4}\,dx\)
- 1\(u = x^2 + 4\), \(du = 2x\,dx\). Only \(x\,dx\) is present, so \(x\,dx = \frac12\,du\).
- 2\(\displaystyle\frac12\int u^{1/2}\,du = \frac12 \cdot \frac23u^{3/2} = \frac13u^{3/2}\).
\(\displaystyle\int \cos(3x)\,dx\)
- 1\(u = 3x\), \(du = 3\,dx\), so \(dx = \frac13\,du\).
- 2\(\displaystyle\frac13\int\cos u\,du = \frac13\sin u\).
\(\displaystyle\int xe^{x^2}\,dx\) and \(\displaystyle\int \frac{\ln x}{x}\,dx\)
- 1First: \(u = x^2\), \(x\,dx = \frac12du\): \(\frac12\int e^u\,du = \frac12e^{x^2} + C\).
- 2Second: \(u = \ln x\), \(du = \frac1x\,dx\): \(\int u\,du = \frac{u^2}{2} = \frac{(\ln x)^2}{2} + C\).
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\)).
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
\(\displaystyle\int_0^2 x(x^2 + 1)^3\,dx\)
- 1\(u = x^2 + 1\), \(x\,dx = \frac12du\). New limits: \(x = 0 \Rightarrow u = 1\); \(x = 2 \Rightarrow u = 5\).
- 2\(\displaystyle\frac12\int_1^5 u^3\,du = \frac12\left[\frac{u^4}{4}\right]_1^5 = \frac18(625 - 1) = 78\).
- 3No need to return to x: the limits are already in terms of u.
\(\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
\(\displaystyle\int \tan x\,dx\)
- 1Write \(\tan x = \dfrac{\sin x}{\cos x}\). Let \(u = \cos x\), \(du = -\sin x\,dx\).
- 2\(\displaystyle\int \frac{\sin x}{\cos x}\,dx = -\int\frac{du}{u} = -\ln|u|\).
Quick reference
| Step | Action |
|---|---|
| 1 | Choose u = the inside function |
| 2 | Compute du; match it to what is in the integral (fix constants) |
| 3 | Rewrite everything in u; integrate |
| 4 | Indefinite: return to x and add C. Definite: use u-limits |
| Check | Differentiate the answer |