impera Open Impera

A levels Mathematics · Pure: calculus and numerical methods

Integration by substitution and by parts

1Integration as the reverse

Integration reverses differentiation. If $\dfrac{d}{dx}F(x) = f(x)$, then

$$\int f(x)\,dx = F(x) + c$$

The constant of integration $c$ is needed because constants vanish when you differentiate.

Standard integrals:

  • $\displaystyle\int x^n\,dx = \frac{x^{n+1}}{n + 1} + c$ for $n \neq -1$
  • $\displaystyle\int \frac{1}{x}\,dx = \ln|x| + c$
  • $\displaystyle\int e^{kx}\,dx = \frac{1}{k}e^{kx} + c$
  • $\displaystyle\int \cos kx\,dx = \frac{1}{k}\sin kx + c$ and $\displaystyle\int \sin kx\,dx = -\frac{1}{k}\cos kx + c$
  • $\displaystyle\int \sec^2 kx\,dx = \frac{1}{k}\tan kx + c$

For a linear inside, divide by its coefficient: $\displaystyle\int (3x + 2)^4\,dx = \frac{(3x + 2)^5}{15} + c$.

Check yourself

What is ∫ e^(4x) dx?

  • e^(4x) + c

  • 4e^(4x) + c

  • ¼e^(4x) + c

  • e^(5x)/5 + c

Show the answer

¼e^(4x) + c

Divide by the coefficient of x.

2Recognising reverse chain rule

Some integrals have the form $f'(x) \times$ (something of $f(x)$). Spot them by inspection:

$$\int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + c$$

$$\int f'(x)[f(x)]^n\,dx = \frac{[f(x)]^{n+1}}{n + 1} + c$$

Worked example

A log integral

  1. $\displaystyle\int \frac{2x}{x^2 + 5}\,dx = \ln(x^2 + 5) + c$, since the top is the derivative of the bottom.
  2. $\displaystyle\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx = -\ln|\cos x| + c = \ln|\sec x| + c$.
Worked example

Adjusting a constant

  1. $\displaystyle\int x(x^2 + 1)^3\,dx$: try $(x^2 + 1)^4$, which differentiates to $8x(x^2 + 1)^3$.
  2. So the integral is $\frac{1}{8}(x^2 + 1)^4 + c$.

Always check by differentiating your answer.

Check yourself

What is ∫ 3x²/(x³ + 1) dx?

  • ln|x³ + 1| + c

  • 1/(x³ + 1) + c

  • 3 ln|x| + c

  • (x³ + 1)² + c

Show the answer

ln|x³ + 1| + c

The numerator is the derivative of the denominator.

3Integration by substitution

When inspection is hard, substitute $u = g(x)$:

  1. Choose $u$ (often the inside of a bracket or root).
  2. Find $\dfrac{du}{dx}$ and replace $dx$ with $\dfrac{du}{g'(x)}$.
  3. Write everything in terms of $u$ and integrate.
  4. Substitute back, or change the limits for a definite integral.
Worked example

A root

  1. $\displaystyle\int x\sqrt{x - 1}\,dx$. Let $u = x - 1$, so $x = u + 1$ and $dx = du$.
  2. $\displaystyle\int (u + 1)u^{1/2}\,du = \int (u^{3/2} + u^{1/2})\,du$.
  3. $= \frac{2}{5}u^{5/2} + \frac{2}{3}u^{3/2} + c = \frac{2}{5}(x - 1)^{5/2} + \frac{2}{3}(x - 1)^{3/2} + c$.
Check yourself

In a substitution u = 2x + 1, what is dx?

  • (u − 1)/2

  • du

  • 2 du

  • du/2

Show the answer

du/2

du/dx = 2.

4Definite integrals by substitution

For a definite integral, change the limits into $u$-values, so you never need to substitute back.

Worked example

Changing limits

  1. $\displaystyle\int_0^2 \frac{x}{(x^2 + 1)^2}\,dx$. Let $u = x^2 + 1$, $du = 2x\,dx$.
  2. Limits: $x = 0 \Rightarrow u = 1$; $x = 2 \Rightarrow u = 5$.
  3. $\displaystyle\frac{1}{2}\int_1^5 u^{-2}\,du = \frac{1}{2}\left[-\frac{1}{u}\right]_1^5 = \frac{1}{2}\left(-\frac{1}{5} + 1\right) = \frac{2}{5}$.
Worked example

A trig substitution

  1. $\displaystyle\int_0^{\pi/2} \sin x\cos^3 x\,dx$. Let $u = \cos x$, $du = -\sin x\,dx$.
  2. Limits: $x = 0 \Rightarrow u = 1$; $x = \frac{\pi}{2} \Rightarrow u = 0$.
  3. $\displaystyle\int_1^0 -u^3\,du = \int_0^1 u^3\,du = \frac{1}{4}$.
Check yourself

When using substitution in a definite integral, what should you do with the limits?

  • Set them both to zero

  • Convert them into values of u

  • Keep them as x-values

  • Ignore them until the end

Show the answer

Convert them into values of u

Then there is no need to substitute back.

5Integration by parts

Integration by parts reverses the product rule:

$$\int u\frac{dv}{dx}\,dx = uv - \int v\frac{du}{dx}\,dx$$

Choose $u$ to be the part that becomes simpler when differentiated. A useful order: Logs, Algebra (powers of $x$), Trig, Exponentials (LATE): pick $u$ from earlier in the list.

Worked example

x eˣ

  1. $\displaystyle\int xe^x\,dx$. $u = x$, $\dfrac{dv}{dx} = e^x$, so $\dfrac{du}{dx} = 1$, $v = e^x$.
  2. $= xe^x - \int e^x\,dx = xe^x - e^x + c$.
Worked example

ln x

  1. $\displaystyle\int \ln x\,dx = \int 1 \cdot \ln x\,dx$. $u = \ln x$, $\dfrac{dv}{dx} = 1$.
  2. $= x\ln x - \int x \cdot \dfrac{1}{x}\,dx = x\ln x - x + c$.
Check yourself

For ∫ x cos x dx, which part should be u?

  • 1

  • x

  • cos x

  • x cos x

Show the answer

x

Differentiating x makes it simpler.

6Parts twice and choosing a method

Sometimes you apply parts twice.

Worked example

x² eˣ

  1. $\displaystyle\int x^2e^x\,dx = x^2e^x - \int 2xe^x\,dx$.
  2. $\displaystyle\int 2xe^x\,dx = 2xe^x - 2e^x$.
  3. So $\displaystyle\int x^2e^x\,dx = e^x(x^2 - 2x + 2) + c$.
Worked example

A definite integral by parts

  1. $\displaystyle\int_1^e x\ln x\,dx$. $u = \ln x$, $\dfrac{dv}{dx} = x$, $v = \frac{x^2}{2}$.
  2. $= \left[\frac{x^2}{2}\ln x\right]_1^e - \displaystyle\int_1^e \frac{x}{2}\,dx = \frac{e^2}{2} - \left[\frac{x^2}{4}\right]_1^e$.
  3. $= \frac{e^2}{2} - \frac{e^2}{4} + \frac{1}{4} = \frac{e^2 + 1}{4}$.

Choosing a method: try standard results, then inspection, then substitution, then parts. Partial fractions help with rational functions, and identities help with $\sin^2 x$ (use $\sin^2 x = \frac{1}{2}(1 - \cos 2x)$).

Check yourself

How do you integrate sin²x?

  • It cannot be integrated

  • Use sin²x = ½(1 − cos 2x)

  • Integrate directly to sin³x/3

  • By parts with u = sin²x

Show the answer

Use sin²x = ½(1 − cos 2x)

A double angle identity turns it into simple terms.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera