Lesson 3 of 8 · 18 min

Integration by substitution

Reverse the chain rule by choosing u=g(x)u = g(x), rewriting the whole integral in uu, and changing the limits of a definite integral.

What you will be able to do

  • Recognise an integrand of the form f(g(x))g′(x)f(g(x))g'(x) and choose u=g(x)u = g(x).
  • Rewrite an integral entirely in terms of uu and dudu, integrate, and substitute back.
  • Evaluate a definite integral by substitution, changing the limits to values of uu.

The chain rule says that ddx(x2+3)6=6(x2+3)5×2x\frac{d}{dx}(x^2 + 3)^6 = 6(x^2 + 3)^5 \times 2x. Read backwards, ∫12x(x2+3)5 dx=(x2+3)6+c\int 12x(x^2 + 3)^5\,dx = (x^2 + 3)^6 + c. The integrand has a recognisable shape: a function of an "inside" x2+3x^2 + 3, multiplied by the derivative of that inside, 2x2x.

Substitution turns that recognition into a method you can use on integrals you could never guess.

The shape to look for: a function of g(x)g(x), multiplied by g′(x)g'(x) (up to a constant).

Key idea

Substitution

If u=g(x)u = g(x), then dudx=g′(x)\frac{du}{dx} = g'(x), which we write as du=g′(x) dxdu = g'(x)\,dx. So

∫f(g(x)) g′(x) dx=∫f(u) du\int f(g(x))\,g'(x)\,dx = \int f(u)\,du

This is the chain rule in reverse: if F′=fF' = f, then ddxF(g(x))=f(g(x))g′(x)\frac{d}{dx}F(g(x)) = f(g(x))g'(x).

The method

  1. Choose uu

    Usually the "inside" function: the expression in brackets, under a root, in an index, or in the denominator.

  2. Find dudx\frac{du}{dx} and rearrange

    Write du=g′(x) dxdu = g'(x)\,dx, or solve for the piece of the integrand you need, e.g. x dx=12dux\,dx = \frac{1}{2}du.

  3. Rewrite everything in uu

    Replace the inside with uu and the leftover factor and dxdx with dudu. No xx may remain.

  4. Integrate in u

    It should now be a standard integral.

  5. Substitute back

    Replace uu with g(x)g(x), and add + c+\,c.

Worked example

Integrate x(x2+3)5x(x^2 + 3)^5 by substitution

  • Simple familiar
  • Technology free

Use the substitution u=x2+3u = x^2 + 3 to determine ∫x(x2+3)5 dx\int x(x^2 + 3)^5\,dx.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Let uu be the inside function and find dudu.

  2. Solve for the leftover factor times dxdx.

  3. Integrate in uu, then substitute back.

Watch out for

  • Writing (x2+3)66+c\frac{(x^2 + 3)^6}{6} + c, forgetting the 12\frac{1}{2} from x dx=12dux\,dx = \frac{1}{2}du.

  • Expanding (x2+3)5(x^2 + 3)^5, which works but takes far longer.

Use the substitution u=x3u = x^3 to determine ∫3x2ex3 dx\int 3x^2 e^{x^3}\,dx.

Reads asYour answer shows here as maths.

The inside does not have to be a polynomial. In ∫sin⁡3(x)cos⁡(x) dx\int \sin^3(x)\cos(x)\,dx the "inside" is sin⁡(x)\sin(x), since sin⁡3(x)=(sin⁡(x))3\sin^3(x) = (\sin(x))^3, and its derivative cos⁡(x)\cos(x) sits right beside it.

Determine ∫sin⁡3(x)cos⁡(x) dx\int \sin^3(x)\cos(x)\,dx.

Reads asYour answer shows here as maths.

Common mistake

Every x must go

Writing ∫u5⋅2x dx\int u^5 \cdot 2x\,dx and then integrating u5u^5 with respect to xx is wrong: you cannot integrate a mixture. Once you choose uu, replace the leftover factor and dxdx together using dudu. If an xx is still left over, either rewrite it in terms of uu or choose a different uu.

For a definite integral there is a shortcut: change the limits. The limits on ∫ab\int_a^b are values of xx. After substituting, the integral is in uu, so its limits must be values of uu: g(a)g(a) and g(b)g(b). Then you never return to xx.

Worked example

Evaluate ∫0π/3sin⁡(x)cos⁡3(x) dx\int_0^{\pi/3} \sin(x)\cos^3(x)\,dx by changing the limits

  • Complex familiar
  • Technology free

Use the substitution u=cos⁡(x)u = \cos(x) to evaluate ∫0π3sin⁡(x)cos⁡3(x) dx\int_0^{\frac{\pi}{3}} \sin(x)\cos^3(x)\,dx.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Choose uu and find dudu.

  2. Convert both limits to values of uu.

  3. Integrate in uu and evaluate. Do not substitute back.

Watch out for

  • Using the xx-limits 00 and π3\frac{\pi}{3} in the uu-integral.

  • Losing the minus sign from du=−sin⁡(x) dxdu = -\sin(x)\,dx. The integrand is positive on the interval, so a negative answer is a warning sign.

Using u=x2+1u = x^2 + 1, evaluate ∫012x(x2+1)3 dx\int_0^1 2x(x^2 + 1)^3\,dx.

Going further: when an x is left over

Sometimes a linear substitution leaves an xx behind, as in ∫xx+1 dx\int x\sqrt{x + 1}\,dx. With u=x+1u = x + 1, also write x=u−1x = u - 1:

∫xx+1 dx=∫(u−1)u12 du=∫(u32−u12)du=25(x+1)52−23(x+1)32+c\int x\sqrt{x + 1}\,dx = \int (u - 1)u^{\frac{1}{2}}\,du = \int \left(u^{\frac{3}{2}} - u^{\frac{1}{2}}\right)du = \frac{2}{5}(x + 1)^{\frac{5}{2}} - \frac{2}{3}(x + 1)^{\frac{3}{2}} + c

Exam questions that need this usually tell you the substitution.

Exam tip

When the question gives the substitution

"Using the substitution u=…u = \ldots" is an instruction. Write uu, dudx\frac{du}{dx}, the new limits and the integral in uu on separate lines: each one is typically worth a mark. A correct answer with no substitution shown may not get full marks.

Summary

  • Look for a function of an inside g(x)g(x), multiplied by g′(x)g'(x) or a constant multiple of it.

  • Let u=g(x)u = g(x), write du=g′(x) dxdu = g'(x)\,dx, and rewrite the whole integral in uu.

  • Integrate in uu, then substitute back and add + c+\,c.

  • For a definite integral, change the limits to u=g(a)u = g(a) and u=g(b)u = g(b) and stay in uu.

  • Substitution reverses the chain rule; check by differentiating.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 80% read

Save your progress with a free account