Integration by substitution

A level Maths (Edexcel) · Edexcel 9MA0 · P8.5a · Pure mathematics › Integration

5 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 10 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

Integration by substitution reverses the chain rule: you change the variable from \(x\) to a new variable \(u\), replace \(\mathrm{d}x\), change the limits and integrate in \(u\). Closely linked are integrals you can do 'by inspection', such as \(\int \dfrac{\mathrm{f}'(x)}{\mathrm{f}(x)}\,\mathrm{d}x = \ln|\mathrm{f}(x)| + c\). Expect 5 to 8 marks, usually with the substitution given.

Key facts

  • \(\int \dfrac{\mathrm{f}'(x)}{\mathrm{f}(x)}\,\mathrm{d}x = \ln|\mathrm{f}(x)| + c\)
  • \(\int \mathrm{f}'(x)[\mathrm{f}(x)]^n\,\mathrm{d}x = \dfrac{[\mathrm{f}(x)]^{n+1}}{n+1} + c\)⁠, \(n \neq -1\)
  • \(\int \mathrm{f}'(x)\mathrm{e}^{\mathrm{f}(x)}\,\mathrm{d}x = \mathrm{e}^{\mathrm{f}(x)} + c\)
  • Replace \(\mathrm{d}x\) using \(\dfrac{\mathrm{d}u}{\mathrm{d}x}\), e.g. \(\mathrm{d}x = \dfrac{\mathrm{d}u}{2x}\)
  • Definite integrals: change the limits to \(u\)-values
  • \(x = a\sin\theta\): \(\sqrt{a^2 - x^2} = a\cos\theta\), \(\mathrm{d}x = a\cos\theta\,\mathrm{d}\theta\)
  • \(\cos^2\theta = \dfrac{1}{2}(1 + \cos 2\theta)\), \(\sin^2\theta = \dfrac{1}{2}(1 - \cos 2\theta)\)

Notes

Integrating by inspection

  • \(\int \dfrac{\mathrm{f}'(x)}{\mathrm{f}(x)}\,\mathrm{d}x = \ln|\mathrm{f}(x)| + c\). For example, \(\int \dfrac{3x^2}{x^3 + 1}\,\mathrm{d}x = \ln|x^3 + 1| + c\), and \(\int \tan x\,\mathrm{d}x = -\ln|\cos x| + c = \ln|\sec x| + c\)
  • \(\int \mathrm{f}'(x)[\mathrm{f}(x)]^n\,\mathrm{d}x = \dfrac{[\mathrm{f}(x)]^{n+1}}{n+1} + c\) and \(\int \mathrm{f}'(x)\mathrm{e}^{\mathrm{f}(x)}\,\mathrm{d}x = \mathrm{e}^{\mathrm{f}(x)} + c\)
  • If the derivative is there apart from a constant factor, guess the answer, differentiate it, and adjust the constant.

The method of substitution

  • Given \(u = \mathrm{g}(x)\), find \(\dfrac{\mathrm{d}u}{\mathrm{d}x}\) and rearrange to replace \(\mathrm{d}x\), e.g. \(u = x^2 + 1 \Rightarrow \mathrm{d}x = \dfrac{\mathrm{d}u}{2x}\)
  • Replace every \(x\): write any leftover \(x\) in terms of \(u\) (e.g. \(u = x + 1 \Rightarrow x = u - 1\)). The integral must contain only \(u\)
  • Simplify, then integrate with respect to \(u\)
  • Indefinite integral: substitute back to give the answer in terms of \(x\). Definite integral: change the limits to \(u\)-values and do not substitute back.

Choosing a substitution Grade A or above only

diagram
  • Try \(u\) = the expression inside a root, a power or an exponent, or the denominator. For \(\sqrt{ax + b}\), \(u = \sqrt{ax + b}\) often works well: then \(u^2 = ax + b\) and \(2u\,\mathrm{d}u = a\,\mathrm{d}x\)
  • For \(\sqrt{a^2 - x^2}\), try \(x = a\sin\theta\), so \(\sqrt{a^2 - x^2} = a\cos\theta\) for \(0 \le \theta \le \dfrac{\pi}{2}\). The new limits are angles in radians.
  • 2x√(4 − x²)θ
    With \(x = 2\sin\theta\): \(\sin\theta = \dfrac{x}{2}\), and the third side is \(\sqrt{4 - x^2} = 2\cos\theta\)

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own, A1* = the solution must be fully correct, with every step shown.

Integrate by inspection (reverse chain rule)

2 marks eachGrade C
  1. Look for a function whose derivative (up to a constant) is also in the integrand.
  2. Write down the form of the answer: \(k\ln|\mathrm{f}(x)|\) or \(k[\mathrm{f}(x)]^{n+1}\)
  3. Differentiate your guess and choose \(k\) to match; add \(+\,c\)

Example. Find (a) \(\displaystyle\int \dfrac{4x}{x^2 + 3}\,\mathrm{d}x\), (b) \(\displaystyle\int x^2(x^3 + 2)^5\,\mathrm{d}x\)

Show the model answerHide the model answer
(a) \(\dfrac{\mathrm{d}}{\mathrm{d}x}(x^2 + 3) = 2x\), so the answer has the form \(k\ln(x^2 + 3)\) M1; \(\int \dfrac{4x}{x^2 + 3}\,\mathrm{d}x = 2\ln(x^2 + 3) + c\)
A1
(b) Try \((x^3 + 2)^6\): its derivative is \(18x^2(x^3 + 2)^5\) M1, so \(\int x^2(x^3 + 2)^5\,\mathrm{d}x = \dfrac{1}{18}(x^3 + 2)^6 + c\)
A1

Use a given substitution for a definite integral

6 marksGrade B
  1. Find \(\mathrm{d}x\) in terms of \(\mathrm{d}u\), and any leftover \(x\) in terms of \(u\)
  2. Change both limits to \(u\)-values.
  3. Write the whole integral in \(u\), simplify into powers of \(u\), then integrate and substitute the \(u\)-limits.

Example. Use the substitution \(u = x + 1\) to find the exact value of \(\displaystyle\int_0^3 x\sqrt{x + 1}\,\mathrm{d}x\)

Show the model answerHide the model answer
\(x = u - 1\) and \(\mathrm{d}x = \mathrm{d}u\)
B1
\(x = 0 \Rightarrow u = 1\), \(x = 3 \Rightarrow u = 4\)
B1
\(\int_1^4 (u - 1)u^{\frac{1}{2}}\,\mathrm{d}u = \int_1^4 \left(u^{\frac{3}{2}} - u^{\frac{1}{2}}\right)\mathrm{d}u\)
M1
\(= \left[\dfrac{2}{5}u^{\frac{5}{2}} - \dfrac{2}{3}u^{\frac{3}{2}}\right]_1^4\)
M1 A1
\[\begin{aligned}[b]&= \left(\frac{64}{5} - \frac{16}{3}\right) - \left(\frac{2}{5} - \frac{2}{3}\right) \\ &= \frac{112}{15} + \frac{4}{15} \\ &= \frac{116}{15}\end{aligned}\]
A1

Use a substitution for an indefinite integral

5 marksGrade A
  1. Differentiate the substitution and rearrange to replace \(\mathrm{d}x\)
  2. Write every remaining \(x\) (here \(\mathrm{e}^x\)) in terms of \(u\), and simplify.
  3. Integrate in \(u\), then substitute back to give the answer in terms of \(x\), with \(+\,c\)

Example. Use the substitution \(u = \mathrm{e}^x + 1\) to find \(\displaystyle\int \dfrac{\mathrm{e}^{2x}}{\mathrm{e}^x + 1}\,\mathrm{d}x\)

Show the model answerHide the model answer
\(\dfrac{\mathrm{d}u}{\mathrm{d}x} = \mathrm{e}^x\), so \(\mathrm{d}x = \dfrac{\mathrm{d}u}{\mathrm{e}^x}\), and \(\mathrm{e}^x = u - 1\)
M1
\(\int \dfrac{\mathrm{e}^x \times \mathrm{e}^x}{u} \times \dfrac{\mathrm{d}u}{\mathrm{e}^x} = \int \dfrac{u - 1}{u}\,\mathrm{d}u\)
A1
\(= \int \left(1 - \dfrac{1}{u}\right)\mathrm{d}u = u - \ln u + c\)
M1 A1
\(= \mathrm{e}^x + 1 - \ln(\mathrm{e}^x + 1) + c\)
A1
(the 1 can be absorbed into \(c\))

Use a trigonometric substitution

6 marksGrade A*
  1. Replace \(\mathrm{d}x\) and simplify the root with \(1 - \sin^2\theta = \cos^2\theta\)
  2. Change the limits to angles in radians.
  3. Use a double angle formula for \(\cos^2\theta\) or \(\sin^2\theta\), integrate and use exact values.

Example. Use the substitution \(x = 2\sin\theta\) to show that \(\displaystyle\int_0^{\sqrt{3}} \sqrt{4 - x^2}\,\mathrm{d}x = \dfrac{2\pi}{3} + \dfrac{\sqrt{3}}{2}\)

Show the model answerHide the model answer
\(\mathrm{d}x = 2\cos\theta\,\mathrm{d}\theta\)
B1
\(\sqrt{4 - 4\sin^2\theta} = 2\cos\theta\), so the integrand becomes \(2\cos\theta \times 2\cos\theta = 4\cos^2\theta\)
M1
\(x = 0 \Rightarrow \theta = 0\); \(x = \sqrt{3} \Rightarrow \sin\theta = \dfrac{\sqrt{3}}{2} \Rightarrow \theta = \dfrac{\pi}{3}\)
B1
\(\int_0^{\frac{\pi}{3}} 4\cos^2\theta\,\mathrm{d}\theta = \int_0^{\frac{\pi}{3}} (2 + 2\cos 2\theta)\,\mathrm{d}\theta\)
M1
\(= \left[2\theta + \sin 2\theta\right]_0^{\frac{\pi}{3}}\)
M1
\[\begin{aligned}[b]&= \frac{2\pi}{3} + \sin\frac{2\pi}{3} \\ &= \frac{2\pi}{3} + \frac{\sqrt{3}}{2}\end{aligned}\]
A1*

Don’t lose marks

  • Replacing the function but not \(\mathrm{d}x\), so the integral still mixes \(x\) and \(u\)
  • Keeping the \(x\)-limits after changing to \(u\), or substituting back to \(x\) and then using the \(u\)-limits.
  • Losing a constant factor when adjusting, e.g. \(\dfrac{1}{6}(x^3 + 2)^6\) instead of \(\dfrac{1}{18}(x^3 + 2)^6\)
  • Forgetting \(+\,c\), or leaving an indefinite integral in terms of \(u\)
  • Using degrees for the new limits in a trigonometric substitution.

More tips

Memory tricks

  • Spot the derivative: if the derivative of one part of the integrand is also there (up to a constant), integrate by inspection or let \(u\) be that part.
  • Differentiate your final answer to check it.
  • Write the new limits next to the integral sign straight away so you cannot forget them.
  • If an \(x\) is left over after replacing \(\mathrm{d}x\), rearrange the substitution to write \(x\) in terms of \(u\)

Exam technique

  • If the question says 'use the substitution…', you must use it: another method may score nothing.
  • Show the line where the integral is written entirely in \(u\) with the new limits: it carries method marks.
  • Simplify the \(u\)-integrand before integrating: most become powers of \(u\), \(\dfrac{1}{u}\) or a standard trigonometric function.
  • For a given answer, keep exact values throughout and write out the final substitution of the limits.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade C
    Integrate f′(x)/f(x) by inspectionWhen the numerator is a multiple of the derivative of the denominator, the answer is a multiple of \(\ln|\mathrm{f}(x)|\)
  2. Grade C
    Integrate f′(x)[f(x)]ⁿ by inspection\(\int \mathrm{f}'(x)[\mathrm{f}(x)]^n\,\mathrm{d}x = \dfrac{[\mathrm{f}(x)]^{n+1}}{n+1} + c\) for \(n \neq -1\); adjust the constant if only a multiple of the derivative is there.
  3. Grade B
    Use a given substitution to integrateReplace every \(x\) and \(\mathrm{d}x\) so that the integral is entirely in \(u\), then integrate.
  4. Grade B
    Change the limits for a definite integralConvert each \(x\)-limit to a \(u\)-limit so that you never need to go back to \(x\)
  5. Grade A
    Choose a suitable substitution yourselfLet \(u\) be the awkward part: the inside of a root, a bracket or an exponent, or the denominator.
  6. Grade A*
    Use trigonometric substitutions with identitiesFor example \(x = 2\sin\theta\) turns \(\sqrt{4 - x^2}\) into \(2\cos\theta\); then use a double angle formula.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy5 marks
Use the substitution \(u = x + 3\) to find
\[\int x\sqrt{x + 3}\,\mathrm{d}x\]
[5]
Show the answer and mark scheme
Answer: \(\frac{2}{5}(x + 3)^{\frac{5}{2}} - 2(x + 3)^{\frac{3}{2}} + c\)
  • B1 for \(\frac{\mathrm{d}u}{\mathrm{d}x} = 1\) or \(\mathrm{d}x = \mathrm{d}u\) oe
  • M1 for substituting fully to obtain an integral of the form \(k\int (u - 3)u^{\frac{1}{2}}\,\mathrm{d}u\)
  • A1 for a correct integral in \(u\), e.g. \(\int (u^{\frac{3}{2}} - 3u^{\frac{1}{2}})\,\mathrm{d}u\)
  • dM1 for integrating \(u^{p} \to u^{p + 1}\) on at least one term
  • A1 for \(\frac{2}{5}(x + 3)^{\frac{5}{2}} - 2(x + 3)^{\frac{3}{2}} + c\) oe, in terms of \(x\)

Worked solution: \(u = x + 3\), so \(\frac{\mathrm{d}u}{\mathrm{d}x} = 1\), \(\mathrm{d}x = \mathrm{d}u\) and \(x = u - 3\).
\(\int x\sqrt{x + 3}\,\mathrm{d}x = \int (u - 3)u^{\frac{1}{2}}\,\mathrm{d}u = \int (u^{\frac{3}{2}} - 3u^{\frac{1}{2}})\,\mathrm{d}u\)
\(= \frac{2}{5}u^{\frac{5}{2}} - 2u^{\frac{3}{2}} + c = \frac{2}{5}(x + 3)^{\frac{5}{2}} - 2(x + 3)^{\frac{3}{2}} + c\)

Question 2Medium4 marks
Solutions relying entirely on calculator technology are not acceptable.
A student was asked to find the exact value of \(\int_{0}^{2} x(x^{2} + 1)^{3}\,\mathrm{d}x\) using the substitution \(u = x^{2} + 1\).
The student’s working is shown below.
\(\mathrm{d}u = 2x\,\mathrm{d}x\)
\(\int_{0}^{2} x(x^{2} + 1)^{3}\,\mathrm{d}x = \frac{1}{2}\int_{0}^{2} u^{3}\,\mathrm{d}u = \frac{1}{2}\left[\frac{u^{4}}{4}\right]_{0}^{2} = \frac{1}{2} \times 4 = 2\)
(a) Identify the error made by the student.
[1]
(b) Using the substitution \(u = x^{2} + 1\), find the correct exact value of the integral.
[3]
Show the answer and mark scheme
(a) Answer: The limits \(0\) and \(2\) are \(x\)-values and were not changed to \(u\)-values (\(1\) and \(5\)).
  • B1 for stating that the limits were not changed: \(0\) and \(2\) are values of \(x\), but the integral is in \(u\), so the limits should be \(u = 1\) and \(u = 5\) (or the answer should be written in terms of \(x\) before using \(0\) and \(2\))

Worked solution: When \(x = 0\), \(u = 1\) and when \(x = 2\), \(u = 5\). The student integrated with respect to \(u\) but used the \(x\)-limits.

(b) Answer: \(78\)
  • B1 for limits \(1\) and \(5\)
  • M1 for \(\frac{1}{2}\left[\frac{u^{4}}{4}\right]\) evaluated with their \(u\)-limits
  • A1 for \(78\)

Worked solution: \(\frac{1}{2}\int_{1}^{5} u^{3}\,\mathrm{d}u = \frac{1}{2}\left[\frac{u^{4}}{4}\right]_{1}^{5} = \frac{1}{8}(625 - 1) = 78\)

Question 3Hard6 marks
\[I = \int_{\frac{1}{3}}^{3} \frac{1}{(1 + x)\sqrt{x}}\,\mathrm{d}x\]
(a) Use the substitution \(u = \sqrt{x}\) to show that
\[I = 2\int_{\frac{\sqrt{3}}{3}}^{\sqrt{3}} \frac{1}{1 + u^{2}}\,\mathrm{d}u\]
[3]
(b) Hence, using the substitution \(u = \tan\theta\), find the exact value of \(I\).
[3]
Show the answer and mark scheme
(a) Answer: Shown
  • M1 for \(x = u^{2}\) and \(\mathrm{d}x = 2u\,\mathrm{d}u\) oe
  • B1 for limits \(\frac{1}{\sqrt{3}}\) (or \(\frac{\sqrt{3}}{3}\)) and \(\sqrt{3}\)
  • A1* for the given result with no errors seen (cso)

Worked solution: \(u = \sqrt{x}\), so \(x = u^{2}\) and \(\mathrm{d}x = 2u\,\mathrm{d}u\). When \(x = \frac{1}{3}\), \(u = \frac{1}{\sqrt{3}} = \frac{\sqrt{3}}{3}\); when \(x = 3\), \(u = \sqrt{3}\).
\(I = \int_{\frac{\sqrt{3}}{3}}^{\sqrt{3}} \frac{2u}{(1 + u^{2})u}\,\mathrm{d}u = 2\int_{\frac{\sqrt{3}}{3}}^{\sqrt{3}} \frac{1}{1 + u^{2}}\,\mathrm{d}u\)

(b) Answer: \(I = \frac{\pi}{3}\)
  • M1 for \(\mathrm{d}u = \sec^{2}\theta\,\mathrm{d}\theta\) and \(1 + \tan^{2}\theta = \sec^{2}\theta\), giving \(2\int 1\,\mathrm{d}\theta\)
  • B1 for limits \(\frac{\pi}{6}\) and \(\frac{\pi}{3}\)
  • A1 for \(I = \frac{\pi}{3}\)

Worked solution: \(u = \tan\theta\), \(\mathrm{d}u = \sec^{2}\theta\,\mathrm{d}\theta\). When \(u = \frac{\sqrt{3}}{3}\), \(\theta = \frac{\pi}{6}\); when \(u = \sqrt{3}\), \(\theta = \frac{\pi}{3}\).
\(I = 2\int_{\frac{\pi}{6}}^{\frac{\pi}{3}} \frac{\sec^{2}\theta}{1 + \tan^{2}\theta}\,\mathrm{d}\theta = 2\int_{\frac{\pi}{6}}^{\frac{\pi}{3}} 1\,\mathrm{d}\theta = 2\left(\frac{\pi}{3} - \frac{\pi}{6}\right) = \frac{\pi}{3}\)

More in Integration

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.