Integration by parts

Integration by parts

Spec 6.2 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • ∫udvdxdx=uv−∫vdudxdx\int u\frac{dv}{dx}dx=uv-\int v\frac{du}{dx}dx: it reverses the product rule.
  • Choose uu so that differentiating makes it simpler, and dvdx\frac{dv}{dx} so you can integrate it.
  • Guide: let uu be the first of logarithm, algebraic, trigonometric, exponential.
  • ∫ln⁡x dx=xln⁡x−x+c\int\ln x\,dx=x\ln x-x+c, found with u=ln⁡xu=\ln x, dvdx=1\frac{dv}{dx}=1.
  • xnx^n needs nn applications; exsin⁡xe^x\sin x returns to itself, so rearrange.

The formula

It reverses the product rule, turning a product into uvuv minus a simpler integral.

Since ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}, rearranging and integrating gives the formula.

Use integration by parts when the integrand is a product of two different types of function that cannot be integrated by substitution.

For a definite integral the uvuv term is evaluated between the limits.

0.20.40.60.811.21.41234567xy(1, e)y = xeˣ
Integration by parts gives ∫₀¹ xeˣ dx = [xeˣ − eˣ]₀¹ = 1, the shaded area under y = xeˣ.
  • ∫udvdx dx\displaystyle\int u\frac{dv}{dx}\,dxuv−∫vdudx dxuv-\displaystyle\int v\frac{du}{dx}\,dx

Which rule does integration by parts reverse?

Choosing u

Let u be the part that becomes simpler when differentiated, and dv/dx the part you can integrate.

Choose uu so that differentiating it makes it simpler, and dvdx\frac{dv}{dx} so that you can integrate it.

A guide is to let uu be the first of: a logarithm, an algebraic term such as xx or x2x^2, a trigonometric function, an exponential.

  1. 1

    Logarithm

    ln x

  2. 2

    Algebraic

    x, x²

  3. 3

    Trigonometric

    sin x, cos x

  4. 4

    Exponential

    eˣ

Let u be the first one that appears.

Worked example

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

For ∫xsin⁡x dx\int x\sin x\,dx, which choice of uu is best?

Integrating ln x

Write it as 1×ln⁡x1\times\ln x and use u=ln⁡xu=\ln x, dvdx=1\frac{dv}{dx}=1.

There is no standard integral for ln⁡x\ln x. With u=ln⁡xu=\ln x and dvdx=1\frac{dv}{dx}=1, 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

The same idea works for ∫xnln⁡x dx\int x^n\ln x\,dx with u=ln⁡xu=\ln x.

0.511.522.533.54−2−1.5−1−0.50.511.52xy(1, 0)(e, 1)y = ln x
The area under y = ln x from x = 1 to x = e equals 1.

Worked example

Find the area under y=ln⁡xy=\ln x from x=1x=1 to x=ex=e.

What is dudx\frac{du}{dx} when u=ln⁡xu=\ln x?

Repeated application

Apply the method again; the power of x falls by one each time.

If after one application the new integral still needs parts, apply the method again. The power of xx falls by one each time, so xnx^n needs nn applications.

  1. 1

    First application, u = x²

    leaves an integral containing x eˣ

  2. 2

    Second application, u = x

    leaves an integral containing eˣ

  3. 3

    Integrate eˣ directly

    then substitute back

Repeated application for ∫x²eˣ dx: the power of x falls by one each time.
  • ∫xnex dx\displaystyle\int x^ne^x\,dxnn applications, with u=xnu=x^n each time

Worked example

Evaluate I=∫01x2ex dxI=\int_0^1x^2e^{x}\,dx.

How many applications of integration by parts does ∫x3ex dx\int x^3e^{x}\,dx need?

The cyclic case

For exsin⁡xe^x\sin x, two applications return the original integral, so rearrange to solve for it.

For I=∫exsin⁡x dxI=\int e^{x}\sin x\,dx neither function becomes simpler. First: I=exsin⁡x−∫excos⁡x dxI=e^{x}\sin x-\int e^{x}\cos x\,dx. Second: ∫excos⁡x dx=excos⁡x+∫exsin⁡x dx\int e^{x}\cos x\,dx=e^{x}\cos x+\int e^{x}\sin x\,dx.

So I=exsin⁡x−excos⁡x−II=e^{x}\sin x-e^{x}\cos x-I, a cyclic integral.

Keep the same choice of uu (the trigonometric function) both times, otherwise the two applications cancel out.

0.511.522.53−224681012xy(0, −0.5)y = eˣ sin x∫ eˣ sin x dx
The integrand eˣ sin x and its integral ½eˣ(sin x − cos x), which is found by applying parts twice and solving for the original integral.
  • ∫exsin⁡x dx\displaystyle\int e^{x}\sin x\,dx12ex(sin⁡x−cos⁡x)+c\tfrac12e^{x}(\sin x-\cos x)+c

After two applications you reach I=exsin⁡x−excos⁡x−II=e^x\sin x-e^x\cos x-I. What is the next step?

Try an exam question

Use integration by parts to find the exact value of ∫0π2xsin⁡x dx\int_0^{\frac{\pi}{2}}x\sin x\,dx.

[5 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