5F

Integration by substitution

Integration by substitution for indefinite and definite integrals, finding du, changing the limits, substitutions of the form u = x − a that need x written in terms of u, and substituting x as a function of u.

The reverse chain rule in 5E needs you to spot the answer. Substitution is the systematic version: you rename the awkward inside function $u$, and the integral turns into a simpler one in $u$. It also handles integrals the reverse chain rule cannot, such as $\displaystyle\int x\sqrt{x - 1}\,dx$.

The method

Why is this allowed? It is the chain rule again: if $u = f(x)$, then $\dfrac{du}{dx}\,dx$ behaves like $du$, so $\displaystyle\int g(f(x))f'(x)\,dx = \int g(u)\,du$.

Example 1●

Use $u = x^3 - 2$ to find $\displaystyle\int x^2(x^3 - 2)^5\,dx$.

$\dfrac{du}{dx} = 3x^2$, so $x^2\,dx = \tfrac13\,du$.
Differentiate u, then rearrange to match the x² dx in the integral.
$= \dfrac13\displaystyle\int u^5\,du = \dfrac13 \times \dfrac{u^6}{6} + C$
Every x is now gone.
$= \dfrac{(x^3 - 2)^6}{18} + C$
Put x back.

Changing the limits

Example 2●●

Use $u = x - 1$ to evaluate $\displaystyle\int_1^2 x\sqrt{x - 1}\,dx$.

$du = dx$ and $x = u + 1$.
du = dx, and the leftover x must also be written in terms of u: x = u + 1.
$= \displaystyle\int_0^1 (u + 1)\sqrt{u}\,du = \int_0^1 \left(u^{3/2} + u^{1/2}\right)du$
New limits: x = 1 gives u = 0, and x = 2 gives u = 1.
$= \left[\tfrac25 u^{5/2} + \tfrac23 u^{3/2}\right]_0^1 = \tfrac25 + \tfrac23 = \tfrac{16}{15}$

Substitutions of the form $x = g(u)$

Sometimes it is easier to say what $x$ is in terms of the new variable. Then $dx = g'(u)\,du$. This is how square roots of $x$ are removed.

Example 3●●●

Use $x = u^2$, with $u \ge 0$, to evaluate $\displaystyle\int_0^4 \frac{dx}{1 + \sqrt x}$.

$dx = 2u\,du$ and $\sqrt x = u$.
Differentiate x = u² with respect to u. Since u ≥ 0, √x = u.
$= \displaystyle\int_0^2 \frac{2u}{1 + u}\,du$
x = 0 gives u = 0, and x = 4 gives u = 2.
$= \displaystyle\int_0^2 \left(2 - \frac{2}{1 + u}\right)du = \Big[2u - 2\ln(1 + u)\Big]_0^2$
Rewrite the numerator: 2u = 2(1 + u) − 2.
$= 4 - 2\ln3 \approx 1.80$

Your turn

Use $u = \cos x$ to evaluate $\displaystyle\int_0^{\pi/2} \sin x\cos^2 x\,dx$.

Show the working

$du = -\sin x\,dx$. When $x = 0$, $u = 1$; when $x = \tfrac{\pi}{2}$, $u = 0$. So the integral is $\displaystyle\int_1^0 -u^2\,du = \int_0^1 u^2\,du = \tfrac13$. (Swapping the limits absorbs the minus sign.)

Flashcards
Definite integral by substitution
Change the limits to $u$ values, and never go back to $x$.
Substituting $u = x - a$
$du = dx$, and every leftover $x$ becomes $u + a$.
Practice
  1. Using $u = 3x - 1$, $\displaystyle\int (3x - 1)^5\,dx =$

  2. Use $u = x^2 + 1$ to evaluate $\displaystyle\int_0^1 x(x^2 + 1)^3\,dx$.

  3. With $u = x^2 + 1$, the limits $x = 0$ and $x = 2$ become:

  4. Use $u = x - 2$ to evaluate $\displaystyle\int_2^3 x\sqrt{x - 2}\,dx$, correct to $2$ decimal places.

  5. Use $u = x - 1$ to evaluate $\displaystyle\int_2^5 \frac{x}{\sqrt{x - 1}}\,dx$, correct to $2$ decimal places.

  6. Use $x = u^2$ ($u \ge 0$) to evaluate $\displaystyle\int_0^9 \frac{dx}{1 + \sqrt x}$, correct to $2$ decimal places.

  7. Using $u = \ln x$, $\displaystyle\int \frac{dx}{x\ln x} =$

  8. Use $u = 1 + e^x$ to evaluate $\displaystyle\int_0^{\ln 2} \frac{e^x}{(1 + e^x)^2}\,dx$, correct to $2$ decimal places.

  9. Exam style: use $u = x + 1$ to evaluate $\displaystyle\int_0^3 \frac{x}{\sqrt{x + 1}}\,dx$, correct to $2$ decimal places.

  10. Exam style: use $x = \sin\theta$ to evaluate $\displaystyle\int_0^1 \frac{x^2}{\sqrt{1 - x^2}}\,dx$, correct to $2$ decimal places. (You will need $\sin^2\theta = \tfrac12(1 - \cos2\theta)$.)

Formula sheet