Skip to main content
Examonaut

Topic 8 · Lesson 2 of 4

Substitution and integration by parts

More standard integralsA level only

Each of these comes from reading a derivative backwards:

  • ∫ekx dx=1kekx+c\int e^{kx}\,dx = \frac{1}{k}e^{kx} + c, since ddxekx=kekx\frac{d}{dx}e^{kx} = ke^{kx}.
  • ∫1x dx=ln⁡∣x∣+c\int \frac{1}{x}\,dx = \ln|x| + c. The modulus allows negative xx: for x<0x < 0, ddxln⁡(−x)=−1−x=1x\frac{d}{dx}\ln(-x) = \frac{-1}{-x} = \frac{1}{x}.
  • ∫cos⁡kx dx=1ksin⁡kx+c\int \cos kx\,dx = \frac{1}{k}\sin kx + c and ∫sin⁡kx dx=−1kcos⁡kx+c\int \sin kx\,dx = -\frac{1}{k}\cos kx + c (in radians).
  • ∫sec⁡2kx dx=1ktan⁡kx+c\int \sec^2 kx\,dx = \frac{1}{k}\tan kx + c.

Reverse chain rule. For a linear inside, divide by its coefficient: ∫(2x+1)5 dx=(2x+1)612+c\int (2x + 1)^5\,dx = \frac{(2x + 1)^6}{12} + c and ∫12x+1 dx=12ln⁡∣2x+1∣+c\int \frac{1}{2x + 1}\,dx = \frac{1}{2}\ln|2x + 1| + c. More generally, if the top is the derivative of the bottom,

∫f′(x)f(x) dx=ln⁡∣f(x)∣+c\int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + c

so ∫2xx2+1 dx=ln⁡(x2+1)+c\int \frac{2x}{x^2 + 1}\,dx = \ln(x^2 + 1) + c and ∫tan⁡x dx=∫sin⁡xcos⁡x dx=−ln⁡∣cos⁡x∣+c=ln⁡∣sec⁡x∣+c\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx = -\ln|\cos x| + c = \ln|\sec x| + c.

Using identities. You cannot integrate sin⁡2x\sin^2 x directly, but the double-angle formula rewrites it: sin⁡2x=12(1−cos⁡2x)\sin^2 x = \frac{1}{2}(1 - \cos 2x), so ∫sin⁡2x dx=x2−sin⁡2x4+c\int \sin^2 x\,dx = \frac{x}{2} - \frac{\sin 2x}{4} + c. Similarly, tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1 gives ∫tan⁡2x dx=tan⁡x−x+c\int \tan^2 x\,dx = \tan x - x + c.

Integration by substitutionA level only

Substitution reverses the chain rule. You replace an awkward inner expression by a single letter uu, which turns the integral into a simpler one in uu.

How to integrate by substitution

  1. Step 1: Choose uu (usually the inside of a bracket or root), or use the one given.
  2. Step 2: Differentiate: find dudx\frac{du}{dx} and rearrange to replace dxdx (for example, u=2x−1u = 2x - 1 gives dudx=2\frac{du}{dx} = 2, so dx=12 dudx = \frac{1}{2}\,du).
  3. Step 3: Write everything in terms of uu, including any leftover xx.
  4. Step 4: For a definite integral, change the limits to uu-values too; then you never need to go back to xx.
  5. Step 5: Integrate and evaluate.

Worked example

Substitutionexam standard

Use the substitution u=2x−1u = 2x - 1 to find the exact value of ∫15x2x−1 dx\int_1^5 x\sqrt{2x - 1}\,dx.

Show solution
  1. dudx=2\frac{du}{dx} = 2, so dx=12dudx = \frac{1}{2}du. The leftover xx: from u=2x−1u = 2x - 1, x=u+12x = \frac{u + 1}{2}.
  2. Limits: x=1x = 1 gives u=1u = 1; x=5x = 5 gives u=9u = 9.
  3. The integral becomes ∫19u+12 u12⋅12 du=14∫19(u32+u12) du\int_1^9 \frac{u + 1}{2}\,u^{\frac{1}{2}} \cdot \frac{1}{2}\,du = \frac{1}{4}\int_1^9 (u^{\frac{3}{2}} + u^{\frac{1}{2}})\,du.
  4. =14[25u52+23u32]19=14[(4865+18)−(25+23)]=42815= \frac{1}{4}\left[\frac{2}{5}u^{\frac{5}{2}} + \frac{2}{3}u^{\frac{3}{2}}\right]_1^9 = \frac{1}{4}\left[\left(\frac{486}{5} + 18\right) - \left(\frac{2}{5} + \frac{2}{3}\right)\right] = \frac{428}{15}.

Integration by partsA level only

Parts reverses the product rule. Integrate ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx} and rearrange:

∫ xe²ˣ dxu = xdv/dx = e²ˣdu/dx = 1v = ½e²ˣdifferentiateintegrateuv − ∫ v (du/dx) dx = ½xe²ˣ − ∫ ½e²ˣ dx= ½xe²ˣ − ¼e²ˣ + c
∫udvdx dx=uv−∫vdudx dx\int u\frac{dv}{dx}\,dx = uv - \int v\frac{du}{dx}\,dx

This formula is in the formula booklet. It swaps one integral for another, which is only useful if the new integral is easier. So choose uu to be the part that gets simpler when differentiated (usually a power of xx), and dvdx\frac{dv}{dx} to be the part you can integrate. The one exception: when ln⁡x\ln x is present, make u=ln⁡xu = \ln x, because you can't easily integrate it but its derivative is simple.

How to integrate by parts

  1. Step 1: Choose uu and dvdx\frac{dv}{dx}.
  2. Step 2: Find dudx\frac{du}{dx} and vv.
  3. Step 3: Substitute into the formula, and do the remaining integral.

For example, ∫xe2x dx\int xe^{2x}\,dx: u=xu = x, dvdx=e2x\frac{dv}{dx} = e^{2x}, so dudx=1\frac{du}{dx} = 1, v=12e2xv = \frac{1}{2}e^{2x}. Then ∫xe2x dx=12xe2x−∫12e2x dx=12xe2x−14e2x+c\int xe^{2x}\,dx = \frac{1}{2}xe^{2x} - \int \frac{1}{2}e^{2x}\,dx = \frac{1}{2}xe^{2x} - \frac{1}{4}e^{2x} + c.

Worked example

Parts with a logarithmtop grade

Find the exact value of ∫1ex2ln⁡x dx\int_1^e x^2\ln x\,dx.

Show solution
  1. ln⁡x\ln x is present, so u=ln⁡xu = \ln x and dvdx=x2\frac{dv}{dx} = x^2. Then dudx=1x\frac{du}{dx} = \frac{1}{x} and v=x33v = \frac{x^3}{3}.
  2. ∫x2ln⁡x dx=x33ln⁡x−∫x33⋅1x dx=x33ln⁡x−x39\int x^2\ln x\,dx = \frac{x^3}{3}\ln x - \int \frac{x^3}{3} \cdot \frac{1}{x}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9}.
  3. Limits: at x=ex = e, e33(1)−e39=2e39\frac{e^3}{3}(1) - \frac{e^3}{9} = \frac{2e^3}{9}; at x=1x = 1, 0−190 - \frac{1}{9}.
  4. Answer: 2e39+19=2e3+19\frac{2e^3}{9} + \frac{1}{9} = \frac{2e^3 + 1}{9}.

Practise this topic

Both are part of Premium.