5.16 Integration by substitution and by parts

5.16 Integration by substitution and by parts

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Substitution: replace dx\mathrm{d}x and every xx, change the limits, and give indefinite answers in xx.
  • Parts: ∫uv′ dx=uv−∫vu′ dx\int uv'\,\mathrm{d}x=uv-\int vu'\,\mathrm{d}x; let uu be the factor that simplifies when differentiated.
  • ∫ln⁡x dx=xln⁡x−x+C\int\ln x\,\mathrm{d}x=x\ln x-x+C (take dvdx=1\frac{\mathrm{d}v}{\mathrm{d}x}=1).
  • Repeated parts reduce powers (x2exx^{2}e^{x}) or give a cyclic integral (exsin⁡xe^{x}\sin x) to solve for.
−3−2−112345675101520xy(1, 2)(6, 18)y = x√(x + 3)
The area under the curve from x = 1 to 6 is 232/5 = 46.4.

Integration by substitution

Substitution reverses the chain rule. Replace dx\mathrm{d}x and every xx with uu, change the limits, then integrate.

To integrate with u=g(x)u=g(x):

  1. Write dudx\dfrac{\mathrm{d}u}{\mathrm{d}x} and replace dx\mathrm{d}x (for example dx=du\mathrm{d}x=\mathrm{d}u when u=x+3u=x+3).
  2. Replace every xx; you may need xx in terms of uu (x=u−3x=u-3).
  3. For a definite integral, change the limits to uu-values.
  4. Integrate, and for an indefinite integral write the answer back in xx.

In IB exams a substitution will be given if the integral is not of the recognisable form ∫kg′(x)f(g(x)) dx\int kg'(x)f(g(x))\,\mathrm{d}x.

−3−2−112345675101520xy(1, 2)(6, 18)y = x√(x + 3)
The area under the curve from x = 1 to 6 is 232/5 = 46.4.

Worked example

Evaluate ∫16xx+3 dx\displaystyle\int_{1}^{6}x\sqrt{x+3}\,\mathrm{d}x using u=x+3u=x+3.

Using u=x2+1u=x^{2}+1, what do the limits x=0x=0 to x=2x=2 become?

Integration by parts

Choose uu as the factor that becomes simpler when differentiated, and dvdx\frac{\mathrm{d}v}{\mathrm{d}x} as one you can integrate.

From the product rule:

∫udvdx dx=uv−∫vdudx dx.\int u\frac{\mathrm{d}v}{\mathrm{d}x}\,\mathrm{d}x=uv-\int v\frac{\mathrm{d}u}{\mathrm{d}x}\,\mathrm{d}x.

This is integration by parts. Choose uu to be the factor that gets simpler when differentiated (often a power of xx). Check by differentiating your answer: the product rule should return the integrand.

−3−2.5−2−1.5−1−0.50.511.52−2−112345xyx eˣ(x − 1)eˣ
With u = x and dv/dx = eˣ: ∫x eˣ dx = (x − 1)eˣ + C. The dashed curve is an antiderivative of the solid one.
  • ∫u v′ dx\int u\,v'\,\mathrm{d}xuv−∫v u′ dxuv-\int v\,u'\,\mathrm{d}x

Worked example

Find ∫xe3x dx\displaystyle\int xe^{3x}\,\mathrm{d}x.

For ∫xcos⁡2x dx\displaystyle\int x\cos2x\,\mathrm{d}x, which choice of uu works best?

The hidden 1: ln x and arcsin x

Write the function as 1×1\times the function, take dvdx=1\frac{\mathrm{d}v}{\mathrm{d}x}=1 so v=xv=x, and integrate by parts.

Some single functions can only be integrated by parts. Write them as 1×f(x)1\times f(x) and take dvdx=1\dfrac{\mathrm{d}v}{\mathrm{d}x}=1, so v=xv=x.

For ∫ln⁡x dx\int\ln x\,\mathrm{d}x, let u=ln⁡xu=\ln x: ∫ln⁡x dx=xln⁡x−∫1 dx=xln⁡x−x+C\int\ln x\,\mathrm{d}x=x\ln x-\int1\,\mathrm{d}x=x\ln x-x+C.

For ∫arcsin⁡x dx\int\arcsin x\,\mathrm{d}x let u=arcsin⁡xu=\arcsin x. This gives xarcsin⁡x−∫x1−x2 dxx\arcsin x-\int\dfrac{x}{\sqrt{1-x^{2}}}\,\mathrm{d}x, and the last integral is −1−x2-\sqrt{1-x^{2}} by inspection.

0.511.522.533.544.55−3−2−112345xyln xx ln x − x
∫ln x dx = x ln x − x + C: the dashed curve (C = 0) has gradient ln x at every point.
  • ∫ln⁡x dx\int\ln x\,\mathrm{d}xxln⁡x−x+Cx\ln x-x+C
  • ∫arcsin⁡x dx\int\arcsin x\,\mathrm{d}xxarcsin⁡x+1−x2+Cx\arcsin x+\sqrt{1-x^{2}}+C

Why is dvdx=1\dfrac{\mathrm{d}v}{\mathrm{d}x}=1 chosen for ∫ln⁡x dx\displaystyle\int\ln x\,\mathrm{d}x?

Repeated parts and cyclic integrals

Apply parts again with the same type of choice. For a cyclic integral, the original reappears: collect the terms and solve.

If the new integral still needs parts, apply it again with the same type of choice. Swapping between the two applications just undoes the first step.

Powers reduce each time: ∫x2ex dx=x2ex−2∫xex dx=ex(x2−2x+2)+C\int x^{2}e^{x}\,\mathrm{d}x=x^{2}e^{x}-2\int xe^{x}\,\mathrm{d}x=e^{x}(x^{2}-2x+2)+C. For a cyclic integral such as J=∫e−tsin⁡t dtJ=\int e^{-t}\sin t\,\mathrm{d}t, the original integral reappears after two applications, giving J=−J+…J=-J+\ldots Solve for JJ rather than continuing.

  1. 1

    First application

    J=−e−tsin⁡t+∫e−tcos⁡t dtJ=-e^{-t}\sin t+\int e^{-t}\cos t\,\mathrm{d}t

  2. 2

    Second application

    ∫e−tcos⁡t dt=−e−tcos⁡t−J\int e^{-t}\cos t\,\mathrm{d}t=-e^{-t}\cos t-J

  3. 3

    Solve for JJ

    2J=−e−t(sin⁡t+cos⁡t)2J=-e^{-t}(\sin t+\cos t)

Cyclic integral J = ∫e⁻ᵗ sin t dt.

Worked example

Find ∫x2ex dx\displaystyle\int x^{2}e^{x}\,\mathrm{d}x.

How many times is integration by parts needed for ∫x3ex dx\displaystyle\int x^{3}e^{x}\,\mathrm{d}x?

Try an exam question

Find ∫xsin⁡x dx\displaystyle\int x\sin x\,\mathrm{d}x.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find ∫f(x) dx\displaystyle\int f(x)\,dx.

1 mark, marked against the mark scheme

Revision notes