1.08PureStretch

Integration by Substitution

Integrals like ∫2x(x2+1)5 dx\int 2x(x^{2} + 1)^{5}\,\mathrm{d}x or ∫x2x+1 dx\int \dfrac{x}{\sqrt{2x + 1}}\,\mathrm{d}x do not match any standard result. Integration by substitution\textbf{Integration by substitution} introduces a new variable that absorbs the awkward part, rewrites the whole integral in that variable, and leaves something standard. It is the reverse of the chain rule, and alongside integration by parts it is one of the two main techniques for non-standard integrals.

50 min Integration

The big picture

Every derivative rule has an integration counterpart. The chain rule gives substitution: if an integrand contains a function together with (a multiple of) its derivative, that inner function is the natural substitution. The method is mechanical once set up — choose uu, find dudx\dfrac{\mathrm{d}u}{\mathrm{d}x}, replace dx\mathrm{d}x, and rewrite every xx in terms of uu — but three things go wrong repeatedly: leaving stray xx terms, forgetting to change the limits in definite integrals, and choosing a substitution that makes things worse. Recognising the pattern ∫f′(x) g(f(x)) dx\int \mathrm{f}^{\prime}(x)\,\mathrm{g}(\mathrm{f}(x))\,\mathrm{d}x at sight, and knowing when to reach for parts instead, is what this lesson builds.

What you'll be able to do

  • Recognise integrals of the form ∫f′(x) [f(x)]n dx\int \mathrm{f}^{\prime}(x)\,[\mathrm{f}(x)]^{n}\,\mathrm{d}x and ∫f′(x)f(x) dx\int \dfrac{\mathrm{f}^{\prime}(x)}{\mathrm{f}(x)}\,\mathrm{d}x
  • Integrate using a given or chosen substitution
  • Change the limits when evaluating definite integrals by substitution
  • Decide between substitution and integration by parts
1

Integration by inspection

Differentiating [f(x)]n+1[\mathrm{f}(x)]^{n+1} gives (n+1)f′(x)[f(x)]n(n+1)\mathrm{f}^{\prime}(x)[\mathrm{f}(x)]^{n}. So when an integrand is a bracket to a power multiplied by the derivative of the inside, you can often write the answer directly and adjust the constant.

Similarly, ddxln⁡∣f(x)∣=f′(x)f(x)\dfrac{\mathrm{d}}{\mathrm{d}x}\ln|\mathrm{f}(x)| = \dfrac{\mathrm{f}^{\prime}(x)}{\mathrm{f}(x)}, so a fraction whose numerator is the derivative of its denominator integrates to a log.

∫f′(x)f(x) dx=ln⁡∣f(x)∣+c\int \dfrac{\mathrm{f}^{\prime}(x)}{\mathrm{f}(x)}\,\mathrm{d}x = \ln|\mathrm{f}(x)| + c
Derivative over function.
∫f′(x)[f(x)]n dx=[f(x)]n+1n+1+c\int \mathrm{f}^{\prime}(x)[\mathrm{f}(x)]^{n}\,\mathrm{d}x = \dfrac{[\mathrm{f}(x)]^{n+1}}{n+1} + c
Reverse chain rule, n≠−1n \neq -1.
Example 1Find ∫x2(x3−4)6 dx\int x^{2}(x^{3} - 4)^{6}\,\mathrm{d}x and ∫cos⁡x2+sin⁡x dx\int \dfrac{\cos x}{2 + \sin x}\,\mathrm{d}x.
1Try (x3−4)7(x^{3} - 4)^{7}: it differentiates to 21x2(x3−4)621x^{2}(x^{3} - 4)^{6}, so divide by 21.
2The numerator cos⁡x\cos x is the derivative of 2+sin⁡x2 + \sin x.
Answer121(x3−4)7+c\tfrac{1}{21}(x^{3} - 4)^{7} + c and ln⁡(2+sin⁡x)+c\ln(2 + \sin x) + c
Why this works

∫tan⁡x dx\int \tan x\,\mathrm{d}x looks non-standard, but tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} and the numerator is minus the derivative of the denominator, so the integral is −ln⁡∣cos⁡x∣+c=ln⁡∣sec⁡x∣+c-\ln|\cos x| + c = \ln|\sec x| + c.

2

The method of substitution

Step 1: choose uu (usually the awkward inner expression, or given in the question).

Step 2: differentiate to find dudx\dfrac{\mathrm{d}u}{\mathrm{d}x}, and rearrange to replace dx\mathrm{d}x.

Step 3: rewrite the entire\textit{entire} integrand in terms of uu — no xx may remain.

Step 4: integrate with respect to uu, then substitute back to xx.

Example 1Use the substitution u=2x+1u = 2x + 1 to find ∫x2x+1 dx\int \dfrac{x}{\sqrt{2x + 1}}\,\mathrm{d}x.
1dudx=2\dfrac{\mathrm{d}u}{\mathrm{d}x} = 2, so dx=12du\mathrm{d}x = \tfrac12\mathrm{d}u. Also x=u−12x = \tfrac{u - 1}{2}.
2Integral becomes ∫(u−1)/2u1/2⋅12 du=14∫(u1/2−u−1/2) du\int \dfrac{(u - 1)/2}{u^{1/2}} \cdot \tfrac12\,\mathrm{d}u = \tfrac14\int (u^{1/2} - u^{-1/2})\,\mathrm{d}u.
3=14(23u3/2−2u1/2)+c=16u3/2−12u1/2+c= \tfrac14\left(\tfrac23u^{3/2} - 2u^{1/2}\right) + c = \tfrac16u^{3/2} - \tfrac12u^{1/2} + c.
Answer16(2x+1)3/2−12(2x+1)1/2+c\tfrac16(2x + 1)^{3/2} - \tfrac12(2x + 1)^{1/2} + c

Tip — If xx appears outside the substituted expression, rearrange u=…u = \dots to get xx in terms of uu. This step is the one most often skipped.

3

Definite integrals and changing limits

In a definite integral, change the limits to uu-values at the same time as changing the variable. Then evaluate directly in uu — no need to substitute back.

Write the new limits next to the old ones as you convert: when x=ax = a, u=…u = \dots; when x=bx = b, u=…u = \dots

Example 1Use u=1+x2u = 1 + x^{2} to evaluate ∫034x1+x2 dx\int_{0}^{\sqrt3} \dfrac{4x}{\sqrt{1 + x^{2}}}\,\mathrm{d}x.
1du=2x dx\mathrm{d}u = 2x\,\mathrm{d}x, so 4x dx=2 du4x\,\mathrm{d}x = 2\,\mathrm{d}u.
2Limits: x=0⇒u=1x = 0 \Rightarrow u = 1; x=3⇒u=4x = \sqrt3 \Rightarrow u = 4.
3∫142u−1/2 du=[4u1/2]14=8−4\int_{1}^{4} 2u^{-1/2}\,\mathrm{d}u = \big[4u^{1/2}\big]_{1}^{4} = 8 - 4.
Answer44
4

Substitution or parts?

Substitution suits a composite function multiplied by (roughly) the derivative of its inside. Integration by parts\textbf{Integration by parts} suits a product of two unrelated functions, such as xexx\mathrm{e}^{x} or xcos⁡xx\cos x, and comes from the product rule.

For parts, choose uu to be the function that gets simpler when differentiated (usually the polynomial, but ln⁡x\ln x takes priority) and dvdx\dfrac{\mathrm{d}v}{\mathrm{d}x} the part you can integrate.

∫udvdx dx=uv−∫vdudx dx\int u\dfrac{\mathrm{d}v}{\mathrm{d}x}\,\mathrm{d}x = uv - \int v\dfrac{\mathrm{d}u}{\mathrm{d}x}\,\mathrm{d}x
Integration by parts.
Example 1Find ∫xe2x dx\int x\mathrm{e}^{2x}\,\mathrm{d}x.
1No inner function with its derivative, so use parts: u=xu = x, dvdx=e2x\dfrac{\mathrm{d}v}{\mathrm{d}x} = \mathrm{e}^{2x}.
2dudx=1\dfrac{\mathrm{d}u}{\mathrm{d}x} = 1, v=12e2xv = \tfrac12\mathrm{e}^{2x}.
312xe2x−∫12e2x dx\tfrac12x\mathrm{e}^{2x} - \int \tfrac12\mathrm{e}^{2x}\,\mathrm{d}x.
Answer12xe2x−14e2x+c\tfrac12x\mathrm{e}^{2x} - \tfrac14\mathrm{e}^{2x} + c

Tip — A quick test: if differentiating one factor would produce the other (up to a constant), substitute. If not, and one factor is a polynomial, try parts.

Think like an examiner

  • Show dx\mathrm{d}x being replaced — "dx=12du\mathrm{d}x = \tfrac12\mathrm{d}u" — as a separate line.
  • Ensure no xx remains after substitution.
  • Change limits to uu-values in definite integrals, and state them.
  • Include + c+\,c and return to xx for indefinite integrals.

Common misconceptions

Replacing dx\mathrm{d}x with du\mathrm{d}u without the factor.
Use dudx\dfrac{\mathrm{d}u}{\mathrm{d}x} to convert: dx=dudu/dx\mathrm{d}x = \dfrac{\mathrm{d}u}{\mathrm{d}u/\mathrm{d}x}.
Using the original xx-limits after substituting.
Convert limits to uu, or substitute back before evaluating.
Leaving a stray xx inside a du\mathrm{d}u integral.
Express xx in terms of uu from the substitution.
Integrating xx2+1\dfrac{x}{x^{2} + 1} as ln⁡(x2+1)\ln(x^{2} + 1).
The numerator is half the derivative: 12ln⁡(x2+1)+c\tfrac12\ln(x^{2} + 1) + c.

Integration techniques

∫f′(x)f(x) dx=ln⁡∣f(x)∣+c\int \tfrac{\mathrm{f}^{\prime}(x)}{\mathrm{f}(x)}\,\mathrm{d}x = \ln|\mathrm{f}(x)| + c
Log form.
dx=dudu/dx\mathrm{d}x = \tfrac{\mathrm{d}u}{\mathrm{d}u/\mathrm{d}x}
Changing variable.
∫uv′ dx=uv−∫vu′ dx\int uv^{\prime}\,\mathrm{d}x = uv - \int vu^{\prime}\,\mathrm{d}x
By parts.

Stretch yourself

Use the substitution u=sin⁡xu = \sin x to show that ∫0π/2sin⁡2xcos⁡3x dx=215\int_{0}^{\pi/2} \sin^{2}x\cos^{3}x\,\mathrm{d}x = \dfrac{2}{15}.

Hint — Write cos⁡3x=cos⁡2x⋅cos⁡x=(1−sin⁡2x)cos⁡x\cos^{3}x = \cos^{2}x \cdot \cos x = (1 - \sin^{2}x)\cos x. The spare cos⁡x\cos x goes with dx\mathrm{d}x to make du\mathrm{d}u.

Reveal solution
SolutionWith u=sin⁡xu = \sin x, du=cos⁡x dx\mathrm{d}u = \cos x\,\mathrm{d}x. Limits: x=0⇒u=0x = 0 \Rightarrow u = 0 and x=π2⇒u=1x = \tfrac{\pi}{2} \Rightarrow u = 1. Rewrite the integrand: sin⁡2xcos⁡3x=sin⁡2x(1−sin⁡2x)cos⁡x\sin^{2}x\cos^{3}x = \sin^{2}x(1 - \sin^{2}x)\cos x. So the integral becomes ∫01u2(1−u2) du=∫01(u2−u4) du=[13u3−15u5]01=13−15=215\int_{0}^{1} u^{2}(1 - u^{2})\,\mathrm{d}u = \int_{0}^{1} (u^{2} - u^{4})\,\mathrm{d}u = \big[\tfrac13u^{3} - \tfrac15u^{5}\big]_{0}^{1} = \tfrac13 - \tfrac15 = \tfrac{2}{15}, as required. ■\blacksquare

Questions students ask

How do I choose a substitution?
Look for an inner function whose derivative also appears in the integrand, or a root of a linear expression. If one is given, use it.
Do I have to change the limits?
Either change them to uu-values, or substitute back to xx before using the original limits. Mixing the two is wrong.
When is integration by parts better?
For products of unrelated functions, like a polynomial times an exponential or trig function, or anything involving ln⁡x\ln x multiplied by a power.
Why does substitution work?
It is the chain rule in reverse: ∫g(f(x))f′(x) dx=∫g(u) du\int \mathrm{g}(\mathrm{f}(x))\mathrm{f}^{\prime}(x)\,\mathrm{d}x = \int \mathrm{g}(u)\,\mathrm{d}u with u=f(x)u = \mathrm{f}(x).

Key takeaways

  • Spot f′(x)[f(x)]n\mathrm{f}^{\prime}(x)[\mathrm{f}(x)]^{n} and f′(x)f(x)\tfrac{\mathrm{f}^{\prime}(x)}{\mathrm{f}(x)} to integrate by inspection.
  • Substitution: choose uu, convert dx\mathrm{d}x, rewrite everything in uu, integrate, return to xx.
  • In definite integrals, change the limits to uu-values.
  • Integration by parts handles products: ∫uv′=uv−∫vu′\int uv^{\prime} = uv - \int vu^{\prime}.
  • Choose the technique from the structure of the integrand.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 13 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.