Integration by substitution

Integration by substitution

Spec H5 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Substitution reverses the chain rule: ∫f(g(x)) g′(x) dx=F(g(x))+c\int f(g(x))\,g'(x)\,dx=F(g(x))+c.
  • Choose uu, find du=g′(x) dxdu=g'(x)\,dx, replace every xx and dxdx.
  • A leftover xx must be rewritten in terms of uu.
  • For definite integrals change the limits to uu-values.
  • ∫f′(x)f(x)dx=ln⁡∣f(x)∣+c\int\frac{f'(x)}{f(x)}dx=\ln|f(x)|+c.

Reversing the chain rule

When the integrand holds a function and (a multiple of) its derivative, a new variable uu simplifies it.

The chain rule gives ddxF(g(x))=F′(g(x)) g′(x)\frac{d}{dx}F(g(x))=F'(g(x))\,g'(x). Reversing it, ∫f(g(x)) g′(x) dx=F(g(x))+c\int f(g(x))\,g'(x)\,dx=F(g(x))+c where F′=fF'=f.

In integration by substitution a new variable u=g(x)u=g(x) makes the integral ∫f(u) du\int f(u)\,du. The key link is du=g′(x) dxdu=g'(x)\,dx. It works when the integrand contains a function and (a multiple of) its derivative, such as 6x(x2+5)36x(x^2+5)^3, where x2+5x^2+5 has derivative 2x2x.

  1. 1

    Choose u = g(x)

    the inner function, whose derivative also appears

  2. 2

    Find du = g′(x) dx

    and replace every x and dx

  3. 3

    Integrate with respect to u

    ∫f(u) du

  4. 4

    Substitute back

    write the answer in terms of x

Integration by substitution
  • u=g(x)u=g(x)du=g′(x) dxdu=g'(x)\,dx
  • ∫f(g(x)) g′(x) dx\int f(g(x))\,g'(x)\,dx∫f(u) du\int f(u)\,du

Which substitution suits ∫6x(x2+5)3 dx\int 6x(x^2+5)^3\,dx?

Carrying out a substitution

Choose uu, differentiate, replace every xx and dxdx, integrate, then return to xx.

  1. Choose uu (often the inner function of a power, root or exponential, or one given in the question).
  2. Differentiate: dudx=…\frac{du}{dx}=\dots, so dx=du…dx=\frac{du}{\dots}.
  3. Replace every xx and dxdx by uu and dudu.
  4. Integrate in uu, then replace uu by its expression in xx for an indefinite integral.
  1. 1

    Choose u

    the inner function

  2. 2

    Differentiate

    find dudu in terms of dxdx

  3. 3

    Replace

    every xx and dxdx

  4. 4

    Integrate

    then put uu back in terms of xx

The four steps of substitution

Worked example

Find ∫6x(x2+5)3 dx\int6x(x^2+5)^3\,dx using u=x2+5u=x^2+5.

With u=x2+5u=x^2+5, what does 6x dx6x\,dx equal?

A leftover x

Rearrange u=g(x)u=g(x) to write the leftover xx in terms of uu.

Sometimes xx remains after substitution and must be written in terms of uu by rewriting xx from u=g(x)u=g(x).

For ∫xx+4dx\int\frac{x}{\sqrt{x+4}}dx with u=x+4u=x+4: du=dxdu=dx and x=u−4x=u-4. Split u−4u\frac{u-4}{\sqrt u} into separate powers of uu before integrating.

Similarly ∫e2x1+exdx\int\frac{e^{2x}}{1+e^x}dx with u=1+exu=1+e^x uses ex=u−1e^x=u-1 and du=ex dxdu=e^x\,dx to give ∫(1−1u)du\int\left(1-\frac1u\right)du.

  1. 1

    Let u = x + 4

    so du = dx

  2. 2

    Rewrite x

    x = u − 4

  3. 3

    Split into powers of u

    (u − 4) ÷ √u = u^½ − 4u^(−½)

  4. 4

    Integrate, then substitute back

    replace u with x + 4

Dealing with a leftover x in ∫ x ÷ √(x + 4) dx
  • u=x+4u=x+4x=u−4x=u-4 and du=dxdu=dx

Worked example

Find ∫xx+4dx\int\frac{x}{\sqrt{x+4}}dx using u=x+4u=x+4.

With u=x+4u=x+4, what is xx in terms of uu?

Definite integrals

Convert the limits to uu-values, so you never need to return to xx.

For a definite integral use u=g(x)u=g(x) to change the limits to uu-values. For ∫0π/2sin⁡xcos⁡3x dx\int_0^{\pi/2}\sin x\cos^3x\,dx with u=cos⁡xu=\cos x: x=0⇒u=1x=0\Rightarrow u=1 and x=π2⇒u=0x=\frac\pi2\Rightarrow u=0.

As du=−sin⁡x dxdu=-\sin x\,dx, the integral is −∫10u3du=∫01u3du=14-\int_1^0u^3du=\int_0^1u^3du=\frac14. Reversing the limits cancels the minus sign. Never put xx-limits on an integral in uu.

0.20.40.60.811.21.40.10.20.30.40.5xyy = sin x cos³x
The shaded area under y=sin⁡xcos⁡3xy=\sin x\cos^3x from 00 to π2\frac\pi2 is 14\frac14.

Worked example

Evaluate ∫0π/2sin⁡xcos⁡3x dx\int_0^{\pi/2}\sin x\cos^3x\,dx using u=cos⁡xu=\cos x.

For ∫02x(x2+1)2 dx\int_0^{2}x(x^2+1)^2\,dx with u=x2+1u=x^2+1, what are the new limits?

Standard forms and technique

∫f′(x)f(x)dx=ln⁡∣f(x)∣+c\int\frac{f'(x)}{f(x)}dx=\ln|f(x)|+c, and ∫f′(x)[f(x)]n dx=[f(x)]n+1n+1+c\int f'(x)[f(x)]^n\,dx=\frac{[f(x)]^{n+1}}{n+1}+c.

Two patterns are worth recognising. For example, with u=cos⁡xu=\cos x, ∫tan⁡x dx=−∫duu=−ln⁡∣cos⁡x∣+c\int\tan x\,dx=-\int\frac{du}{u}=-\ln|\cos x|+c, so ∫0π/3tan⁡x dx=−ln⁡12=ln⁡2\int_0^{\pi/3}\tan x\,dx=-\ln\frac12=\ln2.

At A Level only simple cases are tested and the substitution is often supplied. Show each step (dudu, new integrand, new limits) because marks are awarded for them. Check by differentiating the answer.

0.10.20.30.40.50.60.70.80.911.11.20.511.522.5xyy = tan x
The shaded area under y=tan⁡xy=\tan x from 00 to π3\frac\pi3 is ln⁡2≈0.693\ln2\approx0.693.
  • ∫f′(x)f(x)dx\int\frac{f'(x)}{f(x)}dxln⁡∣f(x)∣+c\ln|f(x)|+c
  • ∫f′(x)[f(x)]n dx\int f'(x)[f(x)]^n\,dx[f(x)]n+1n+1+c\frac{[f(x)]^{n+1}}{n+1}+c

Worked example

Evaluate ∫0π/3tan⁡x dx\int_0^{\pi/3}\tan x\,dx.

What is ∫2xx2+1 dx\int\frac{2x}{x^2+1}\,dx?

Try an exam question

Use the substitution u=x2u=x^2 to show that ∫016xex2 dx=3(e−1)\int_0^1 6xe^{x^2}\,dx=3(e-1).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which substitution is most suitable for finding II?

1 mark, marked against the mark scheme

Revision notes