Integration by parts

Integration by parts

Spec H5 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Integration by parts reverses the product rule: ∫udvdxdx=uv−∫vdudxdx\int u\frac{dv}{dx}dx=uv-\int v\frac{du}{dx}dx.
  • Choose uu so it gets simpler when differentiated: ln⁡x\ln x, then powers of xx, then trigonometric, then exponential.
  • For a definite integral apply the limits to uvuv as well.
  • ∫ln⁡x dx=xln⁡x−x+c\int\ln x\,dx=x\ln x-x+c, found by writing ln⁡x×1\ln x\times1.
  • When the new integral is still a product, apply the method again; subtract the whole second result.

Reverse of the product rule

It turns a product integral into uvuv minus a new integral that should be easier.

The product rule gives ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}. Integrating and rearranging gives the formula for integration by parts:

∫udvdx dx=uv−∫vdudx dx\int u\frac{dv}{dx}\,dx=uv-\int v\frac{du}{dx}\,dx

It turns an integral that is a product into uvuv plus a new integral, chosen to be easier. For a definite integral use [uv]ab−∫abvdudxdx\left[uv\right]_a^b-\int_a^bv\frac{du}{dx}dx, applying the limits to the uvuv term as well.

  1. 1

    Choose u and dv/dx

    split the product into two parts

  2. 2

    Differentiate and integrate

    find du/dx and v

  3. 3

    Substitute

    into uv minus the integral of v du/dx

  4. 4

    Evaluate the new integral

    it should be simpler

The method in four steps
  • ∫udvdx dx\int u\frac{dv}{dx}\,dxuv−∫vdudx dxuv-\int v\frac{du}{dx}\,dx

For ∫xex dx\int xe^{x}\,dx take u=xu=x and dvdx=ex\frac{dv}{dx}=e^{x}. What is vv?

Choosing u

Choose uu so that differentiating makes it simpler, and dvdx\frac{dv}{dx} so that it integrates easily.

The choice of uu matters. For ∫xe2xdx\int xe^{2x}dx take u=xu=x (it becomes 11) and dvdx=e2x\frac{dv}{dx}=e^{2x} (so v=12e2xv=\frac12e^{2x}).

The wrong choice u=e2xu=e^{2x}, dvdx=x\frac{dv}{dx}=x makes the power of xx rise to x22\frac{x^2}{2} and the new integral is worse.

A good order for uu is: ln⁡x\ln x, then powers of xx, then trigonometric, then exponential.

−2−1.5−1−0.50.512468xy(0, −1/4)y = x e^(2x)y = (x/2 − 1/4)e^(2x)
With u = x and dv/dx = e^(2x): ∫x e^(2x) dx = (x/2 − 1/4)e^(2x) + c. The dashed curve (c = 0) has gradient equal to the solid curve.

1st: logarithm

  • ln⁡x\ln x

2nd: power of x

  • x, x2x,\ x^2

3rd: trigonometric

  • sin⁡x, cos⁡x\sin x,\ \cos x

4th: exponential

  • e2xe^{2x}

Which choice of uu works best for ∫xln⁡x dx\int x\ln x\,dx?

Worked examples

Take uu, find du/dxdu/dx and vv, substitute, then integrate the remaining term; check by differentiating.

Work through each example, then check your answer by differentiating it. It should return the original integrand. For a definite integral, substitute the limits into the whole antiderivative.

−0.20.20.40.60.811.21.41.61.82−0.20.20.40.60.8xy(π/2, 0)y = x cos x
Area under y=xcos⁡xy=x\cos x from 00 to π2\frac\pi2 is π2−1≈0.571\frac\pi2-1\approx0.571.

Worked example

Find ∫xe2xdx\int xe^{2x}dx.

Worked example

Find ∫xcos⁡x dx\int x\cos x\,dx, then ∫0π/2xcos⁡x dx\int_0^{\pi/2}x\cos x\,dx.

Find ∫xsin⁡x dx\int x\sin x\,dx.

Integrating ln x

Write ln⁡x\ln x as ln⁡x×1\ln x\times1, with u=ln⁡xu=\ln x and dvdx=1\frac{dv}{dx}=1.

Writing ln x as a product (ln⁡x)×1(\ln x)\times1 lets integration by parts apply, with dudx=1x\frac{du}{dx}=\frac1x and v=xv=x:

∫ln⁡x dx=xln⁡x−∫x⋅1x dx=xln⁡x−x+c.\int\ln x\,dx=x\ln x-\int x\cdot\frac1x\,dx=x\ln x-x+c.

For ∫x2ln⁡x dx\int x^2\ln x\,dx take u=ln⁡xu=\ln x, dvdx=x2\frac{dv}{dx}=x^2, which gives x33ln⁡x−x39+c\frac{x^3}{3}\ln x-\frac{x^3}{9}+c.

12345678−2−1123xy(1, 0)(e², 2)y = ln x
The area under y=ln⁡xy=\ln x from 11 to e2≈7.39e^2\approx7.39 is e2+1≈8.39e^2+1\approx8.39.
  • ∫ln⁡x dx\int\ln x\,dxxln⁡x−x+cx\ln x-x+c

Worked example

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

What is ∫ln⁡x dx\int\ln x\,dx?

Repeated application

Apply the method again; the power of xx drops by one each time, so xnx^n needs nn applications.

When the new integral still contains a product, apply the method again: repeated parts. The power of xx drops by one each time.

Take care with the minus sign and the bracket in the second stage: subtract the whole second integral. Reduction formulae are not required.

  1. 1

    Start

    x² eˣ

  2. 2

    First stage

    x² eˣ − ∫ 2x eˣ dx

  3. 3

    Second stage

    ∫ 2x eˣ dx = 2x eˣ − 2eˣ

  4. 4

    Combine

    x² eˣ − (2x eˣ − 2eˣ)

Repeated parts on x²eˣ: the power of x falls each time

Worked example

Find ∫x2ex dx\int x^2e^x\,dx and then ∫01x2ex dx\int_0^1x^2e^x\,dx.

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

Try an exam question

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

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which choice of uu and dvdx\frac{dv}{dx} is best for integration by parts?

1 mark, marked against the mark scheme

Revision notes