AxoPrep

Mathematics: Analysis and Approaches

AHL 5.16 Integration by substitution and by parts

Substitution reverses the chain rule and integration by parts reverses the product rule, covering most integrals beyond the standard list. Study guide, 1 practice questions with markschemes and 0 flashcards. Free.

Choosing a substitution · Changing limits in definite integrals · Integration by parts · Repeated integration by parts · Cyclic by-parts integrals

Practise all 1 questions

Study guide

Integration by substitution

Substitution undoes the chain rule. Look for an inner function whose derivative also appears (up to a constant) in the integrand. Call the inner function \(u\), replace \(dx\) using \(\frac{du}{dx}\), and the integral becomes simpler.

Example. \(\int 2x(x^2 + 1)^5\,dx\). Let \(u = x^2 + 1\), so \(du = 2x\,dx\). Then
\[\int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2 + 1)^6}{6} + C.\]

Every \(x\) must disappear after substituting. If some \(x\) is left over, either express it in terms of \(u\) (for example, if \(u = x + 1\) then \(x = u - 1\)) or choose a different \(u\).

Definite integrals: change the limits

With a definite integral, convert the limits to \(u\)-values and never go back to \(x\).

Worked example. Evaluate \(\int_0^1 x e^{x^2}\,dx\).

Integration by parts

Parts undoes the product rule. Rearranging \(\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}\) and integrating gives

\[\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx.\]

The aim is to make the new integral easier. Choose \(u\) to be the factor that gets simpler when differentiated. A common priority order is: logarithms, then algebraic powers, then trig and exponentials (which stay about as complicated either way).

Example. \(\int x e^x\,dx\): take \(u = x\), \(\frac{dv}{dx} = e^x\), so \(\frac{du}{dx} = 1\), \(v = e^x\):
\[\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C.\]

Example. \(\int \ln x\,dx\): write it as \(\int 1 \cdot \ln x\,dx\) with \(u = \ln x\), \(\frac{dv}{dx} = 1\). Result: \(x\ln x - x + C\).

Example. \(\int x\cos x\,dx = x\sin x + \cos x + C\) (check by differentiating: \(\sin x + x\cos x - \sin x = x\cos x\)).

Repeated and cyclic parts

For \(\int x^2 e^x\,dx\), one round leaves \(\int 2x e^x\,dx\), which needs a second round. Result: \(e^x(x^2 - 2x + 2) + C\).

For \(I = \int e^x \sin x\,dx\), two rounds bring the original integral back: \(I = e^x\sin x - e^x\cos x - I\). Treat \(I\) as an unknown and solve: \(I = \frac{e^x(\sin x - \cos x)}{2} + C\). Keep the same type of choice for \(u\) in both rounds or the work will undo itself.

Common mistakes

Exam tips

Cheat sheet

MethodRule
Substitution\(\int f(g(x))\,g'(x)\,dx = \int f(u)\,du\), \(u = g(x)\)
By parts\(\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx\)
Choosing \(u\)log > algebraic > trig/exp
IntegralResult
\(\int x e^x\,dx\)\((x - 1)e^x + C\)
\(\int \ln x\,dx\)\(x\ln x - x + C\)
\(\int x\cos x\,dx\)\(x\sin x + \cos x + C\)
\(\int x^2 e^x\,dx\)\((x^2 - 2x + 2)e^x + C\)
\(\int e^x\sin x\,dx\)\(\frac{1}{2}e^x(\sin x - \cos x) + C\)

Key definitions

Integration by substitution

Changing the variable to \(u = g(x)\) so that an integral becomes simpler; the reverse of the chain rule.

Integration by parts

The rule \(\int u v'\,dx = uv - \int v u'\,dx\), the reverse of the product rule.

Changing limits

Converting the limits of a definite integral into values of the new variable after a substitution.

Cyclic integral

An integral that reappears after repeated integration by parts and is found by solving for it.

Repeated integration by parts

Applying integration by parts more than once until the remaining integral is standard.

Practice questions

HLPaper 1Very hard

Question 1

(a) [3]

Using the substitution \(u = x^2 + 1\), find \(\int 6x(x^2 + 1)^4\,dx\).

Markscheme
  • 1 \(\frac{du}{dx} = 2x\), so \(6x\,dx = 3\,du\)
  • 1 \(\int 3u^4\,du = \frac{3u^5}{5}\)
  • 1 \(\frac{3}{5}(x^2 + 1)^5 + C\)
(b) [4]

Use integration by parts to find \(\int x e^{2x}\,dx\).

Markscheme
  • 1 Chooses \(u = x\) and \(\frac{dv}{dx} = e^{2x}\)
  • 1 \(v = \frac{1}{2}e^{2x}\)
  • 1 Applies formula: \(\frac{1}{2}xe^{2x} - \int \frac{1}{2}e^{2x}\,dx\)
  • 1 \(\frac{1}{2}xe^{2x} - \frac{1}{4}e^{2x} + C\)