Integration by substitution

Integration by substitution

Spec 8.5 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Integration by substitution reverses the chain rule: ∫f(g(x)) g′(x) dx\int f(g(x))\,g'(x)\,dx becomes ∫f(u) du\int f(u)\,du with u=g(x)u=g(x).
  • Choose uu as a function of xx whose derivative (up to a constant) is also in the integrand.
  • Find dudx\dfrac{du}{dx}, replace dxdx, and write everything in terms of uu.
  • For a definite integral, change the limits to values of uu and never go back to xx.
  • Exam questions often give the substitution.

Reverse of the chain rule

Substitution turns ∫f(g(x)) g′(x) dx\int f(g(x))\,g'(x)\,dx into the simpler ∫f(u) du\int f(u)\,du with u=g(x)u=g(x).

The chain rule gives ddxF(g(x))=F′(g(x)) g′(x)\frac{d}{dx}F(g(x))=F'(g(x))\,g'(x). Reading it backwards is integration by substitution.

Differentiating your final answer must return the original integrand.

  1. 1

    Choose u

    Pick a function of x whose derivative is also in the integrand.

  2. 2

    Differentiate

    Find du/dx and replace dx.

  3. 3

    Rewrite

    Write everything in terms of u.

  4. 4

    Integrate

    Integrate with respect to u.

  5. 5

    Return

    Go back to x, or use new limits.

The substitution method

Worked example

Find ∫xx2+3 dx\int x\sqrt{x^2+3}\,dx.

What is ∫2x ex2 dx\int 2x\,e^{x^2}\,dx?

Choosing a substitution

Look for a function whose derivative, up to a constant, is also in the integrand.

For ∫x(x2+3)4dx\int x\left(x^2+3\right)^4dx the bracket x2+3x^2+3 has derivative 2x2x, so use u=x2+3u=x^2+3. Then x dx=12dux\,dx=\frac12du and the integral is 12∫u4 du=(x2+3)510+c\frac12\int u^4\,du=\frac{\left(x^2+3\right)^5}{10}+c.

Good first choices are an expression inside a power, root, exponential or trig function, or a denominator whose derivative is the numerator.

0.10.20.30.40.50.60.70.80.9150100150200250xy(1, 256)(1, 102.4)x(x² + 3)⁴(x² + 3)⁵ ÷ 10
The integrand x(x²+3)⁴ (solid) is the gradient of (x²+3)⁵/10 (dashed); u = x² + 3 finds it

Integrand

  • x(x2+3)4x(x^2+3)^4
  • (ln⁡x)3x\frac{(\ln x)^3}{x}
  • ex1+ex\frac{e^x}{1+e^x}
  • sin⁡xcos⁡2x\sin x\cos^2x

Try u =

  • x2+3x^2+3
  • ln⁡x\ln x
  • 1+ex1+e^x
  • cos⁡x\cos x

For ∫(ln⁡x)3x dx\int\frac{(\ln x)^3}{x}\,dx, which substitution works best?

Definite integrals

Change the limits to values of uu and do not return to xx.

Substitute the original xx-limits into u=g(x)u=g(x) to get the new limits.

For ∫0ln⁡2ex1+exdx\int_0^{\ln2}\frac{e^x}{1+e^x}dx with u=1+exu=1+e^x, du=ex dxdu=e^x\,dx. The limits x=0x=0 and x=ln⁡2x=\ln2 become u=2u=2 and u=3u=3, so the integral is ∫231u du=[ln⁡u]23=ln⁡32\int_2^3\frac1u\,du=\left[\ln u\right]_2^3=\ln\frac32.

−0.2−0.10.10.20.30.40.50.60.70.80.910.20.40.60.81xy(0, 0.5)y = eˣ/(1 + eˣ)
Area from x = 0 to x = ln 2 is ln(3/2) ≈ 0.405.

Evaluate ∫012x(x2+1)3dx\int_0^1 2x\left(x^2+1\right)^3dx.

When x remains

Rewrite xx in terms of uu from the substitution, and replace dxdx too.

For ∫04x2x+1dx\int_0^4\frac{x}{\sqrt{2x+1}}dx use u=2x+1u=2x+1, so x=u−12x=\frac{u-1}{2} and dx=12dudx=\frac12du. The limits become 11 and 99:

14∫19(u1/2−u−1/2)du=103.\frac14\int_1^9\left(u^{1/2}-u^{-1/2}\right)du=\frac{10}{3}. Using u=xu=\sqrt x gives x=u2x=u^2 and dx=2u dudx=2u\,du, turning ∫141x+xdx\int_1^4\frac{1}{x+\sqrt x}dx into ∫122u+1du=2ln⁡32\int_1^2\frac{2}{u+1}du=2\ln\frac32.

0.511.522.533.544.550.20.40.60.811.21.41.61.82xy(4, 4/3)y = x ÷ √(2x+1)
∫₀⁴ x ÷ √(2x+1) dx is the shaded area, and it equals 10/3
  • u=2x+1u=2x+1x=u−12x=\dfrac{u-1}{2}, dx=12dudx=\tfrac12du

Using u=2x+1u=2x+1, what is xx in terms of uu?

Trigonometric substitutions

With u=cos⁡xu=\cos x, du=−sin⁡x dxdu=-\sin x\,dx: keep the minus sign.

To integrate sin⁡3x\sin^3x, write sin⁡3x=sin⁡x(1−cos⁡2x)\sin^3x=\sin x\left(1-\cos^2x\right). With u=cos⁡xu=\cos x:

∫sin⁡3x dx=−∫(1−u2)du=−cos⁡x+cos⁡3x3+c.\int\sin^3x\,dx=-\int\left(1-u^2\right)du=-\cos x+\frac{\cos^3x}{3}+c. Over [0,π2]\left[0,\frac\pi2\right] the new limits are 11 and 00, giving 23\frac23. Swapping the limits removes the minus sign.

0.511.522.53−0.20.20.40.60.811.2x (radians)y(π/2, 1)y = sin³x
∫ sin³x dx over [0, π/2] is the shaded area, and it equals 2/3
  • u=cos⁡xu=\cos xdu=−sin⁡x dxdu=-\sin x\,dx

Worked example

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

If u=cos⁡xu=\cos x, what does sin⁡x dx\sin x\,dx become?

Try an exam question

Use the substitution u=x2+3u=x^2+3 to find the exact value of ∫01x(x2+3)3dx\int_0^1x\left(x^2+3\right)^3dx.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which substitution turns II into an integral involving only a power of uu?

1 mark, marked against the mark scheme

Revision notes