Integration by parts

Integration by parts

Spec 8.5 · Edexcel 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\dfrac{dv}{dx}dx=uv-\int v\dfrac{du}{dx}dx.
  • Choose uu to become simpler when differentiated; take u=ln⁡xu=\ln x if it appears.
  • For a definite integral, evaluate [uv]ab[uv]_a^b between the limits too.
  • ∫ln⁡x dx=xln⁡x−x+c\int\ln x\,dx=x\ln x-x+c, found by parts with dvdx=1\dfrac{dv}{dx}=1.
  • Repeat the method when the power of xx is 2 or more.

The parts formula

Rearranging the product rule gives ∫udvdxdx=uv−∫vdudxdx\int u\frac{dv}{dx}dx=uv-\int v\frac{du}{dx}dx.

Integration by parts is the reverse of the product rule, ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}.

Use it for a product of two different types of function, such as xe2xxe^{2x}, xsin⁡xx\sin x or xln⁡xx\ln x, that no simple rule or substitution can integrate.

  • ∫u dvdx dx\int u\,\dfrac{dv}{dx}\,dxuv−∫v dudx dxuv-\int v\,\dfrac{du}{dx}\,dx

Worked example

Find ∫xcos⁡x dx\int x\cos x\,dx.

Which is the correct integration by parts formula?

Choosing u and dv/dx

Let uu be the part that becomes simpler when differentiated, and dvdx\frac{dv}{dx} the part you can integrate.

Take u=ln⁡xu=\ln x if it appears. Otherwise take uu as the power of xx. Trig and exponential functions are usually dvdx\frac{dv}{dx}.

For ∫xe2xdx\int xe^{2x}dx with u=xu=x and dvdx=e2x\frac{dv}{dx}=e^{2x}: dudx=1\frac{du}{dx}=1, v=12e2xv=\frac12e^{2x}, so the integral is 12xe2x−14e2x+c=14e2x(2x−1)+c\frac12xe^{2x}-\frac14e^{2x}+c=\frac14e^{2x}(2x-1)+c.

Choose as u

  • ln⁡x\ln x
  • a power of xx

Choose as dv/dx

  • ekxe^{kx}
  • sin⁡kx\sin kx, cos⁡kx\cos kx

For ∫x2ln⁡x dx\int x^2\ln x\,dx, which choice of uu is best?

Definite integrals

Apply the formula, then substitute the limits into the uvuv term and the remaining integral.

For ∫01xe2xdx\int_0^1xe^{2x}dx, use [14e2x(2x−1)]01=e2+14\left[\frac14e^{2x}(2x-1)\right]_0^1=\frac{e^2+1}{4}.

For ∫13ln⁡xx2dx\int_1^3\frac{\ln x}{x^2}dx take u=ln⁡xu=\ln x, v=−1xv=-\frac1x, giving [−ln⁡xx−1x]13=2−ln⁡33\left[-\frac{\ln x}{x}-\frac1x\right]_1^3=\frac{2-\ln3}{3}. Remember ln⁡1=0\ln1=0 and ln⁡e=1\ln e=1; they remove many terms.

−0.4−0.20.20.40.60.811.22468xy(1, e²)y = xe^(2x)
Area under y = xe^(2x) from x = 0 to x = 1 is (e² + 1)/4 ≈ 2.10.

Worked example

Evaluate ∫0πxsin⁡x dx\int_0^{\pi}x\sin x\,dx.

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

Integrating ln x

Write ln⁡x=1×ln⁡x\ln x=1\times\ln x and use parts: ∫ln⁡x dx=xln⁡x−x+c\int\ln x\,dx=x\ln x-x+c.

Take u=ln⁡xu=\ln x and dvdx=1\frac{dv}{dx}=1, so dudx=1x\frac{du}{dx}=\frac1x and v=xv=x. Then ∫ln⁡x dx=xln⁡x−∫1 dx\int\ln x\,dx=x\ln x-\int1\,dx, and ∫1eln⁡x dx=1\int_1^e\ln x\,dx=1.

For xnln⁡xx^n\ln x use u=ln⁡xu=\ln x and dvdx=xn\frac{dv}{dx}=x^n. For example ∫x2ln⁡x dx=x33ln⁡x−x39+c\int x^2\ln x\,dx=\frac{x^3}{3}\ln x-\frac{x^3}{9}+c.

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 is exactly 1.
  • ∫ln⁡x dx\int\ln x\,dxxln⁡x−x+cx\ln x-x+c

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

Applying parts twice

Each application lowers the power of xx by one, so repeat until the power is a constant.

When the power of xx is 2 or more, one application leaves an integral that still needs parts.

For ∫0π/2x2cos⁡x dx\int_0^{\pi/2}x^2\cos x\,dx, one application gives π24−2∫0π/2xsin⁡x dx\frac{\pi^2}{4}-2\int_0^{\pi/2}x\sin x\,dx, and the remaining integral equals 11. So the value is π24−2\frac{\pi^2}{4}-2. Reduction formulae are not needed.

  1. 1

    Apply parts

    u is the power of x.

  2. 2

    Power drops

    Differentiating u lowers the power by one.

  3. 3

    Repeat

    Apply parts again to the new integral.

  4. 4

    Substitute back

    Keep any factor in brackets, then simplify.

Repeated integration by parts

Worked example

Find ∫x2e3x dx\int x^2e^{3x}\,dx.

How many times must you use parts to integrate x3exx^3e^{x}?

Try an exam question

Find ∫xsin⁡2x dx\int x\sin2x\,dx.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which choice of uu and dvdx\frac{\mathrm{d}v}{\mathrm{d}x} leads to a simpler integral to evaluate next?

1 mark, marked against the mark scheme

Revision notes