All revision notes topics

Integration by partsAQA A-Level Maths: Revision notes

Section 1

Integration by parts: the reverse of the product rule

The product rule gives ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}. Integrating and rearranging: ∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx=uv-\int v\frac{du}{dx}\,dx. This is integration by parts. It turns an integral that is a product into uvuv plus a new integral, which is 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.

Key termsintegration by partsproduct rule
Exam tip

Write down uu, dudx\frac{du}{dx}, dvdx\frac{dv}{dx} and vv in a grid before substituting.

Section 2

Choosing u and dv/dx

Choose uu so that differentiating it makes it simpler, and dvdx\frac{dv}{dx} so that it integrates easily. A good order for uu is: ln⁡x\ln x, then powers of xx, then trigonometric, then exponential. 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.

Key termschoice of u
Common mistake

Choosing u=cos⁡xu=\cos x and dvdx=x\frac{dv}{dx}=x for ∫xcos⁡x dx\int x\cos x\,dx: the power of xx goes up and the integral gets harder.

Section 3

Worked examples

∫xe2xdx\int xe^{2x}dx: u=xu=x, v=12e2xv=\frac12e^{2x}, so =x2e2x−∫12e2xdx=x2e2x−14e2x+c=e2x4(2x−1)+c=\frac x2e^{2x}-\int\frac12e^{2x}dx=\frac x2e^{2x}-\frac14e^{2x}+c=\frac{e^{2x}}{4}(2x-1)+c. ∫xcos⁡x dx\int x\cos x\,dx: u=xu=x, v=sin⁡xv=\sin x, so =xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+c=x\sin x-\int\sin x\,dx=x\sin x+\cos x+c. Definite: ∫0π/2xcos⁡x dx=[xsin⁡x+cos⁡x]0π/2=π2−1\int_0^{\pi/2}x\cos x\,dx=\left[x\sin x+\cos x\right]_0^{\pi/2}=\frac\pi2-1. Always differentiate your answer to check it returns the integrand.

Common mistake

Losing the minus sign in −∫vdudxdx-\int v\frac{du}{dx}dx, e.g. writing xsin⁡x−cos⁡xx\sin x-\cos x.

Section 4

Integrating ln x

To integrate ln⁡x\ln x write it as ln⁡x×1\ln x\times1 with u=ln⁡xu=\ln x, dvdx=1\frac{dv}{dx}=1. Then dudx=1x\frac{du}{dx}=\frac1x, v=xv=x and ∫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. Use this to find areas: ∫1e2ln⁡x dx=[xln⁡x−x]1e2=(2e2−e2)−(0−1)=e2+1\int_1^{e^2}\ln x\,dx=\left[x\ln x-x\right]_1^{e^2}=(2e^2-e^2)-(0-1)=e^2+1, using ln⁡e2=2\ln e^2=2 and ln⁡1=0\ln1=0. 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.

Key termsln x as a product
Exam tip

Remember ln⁡1=0\ln1=0 and ln⁡e=1\ln e=1 when substituting limits.

Section 5

Repeated application

When the new integral still contains a product, apply the method again. For ∫x2exdx\int x^2e^xdx: u=x2u=x^2 gives x2ex−∫2xexdxx^2e^x-\int2xe^xdx, then u=2xu=2x gives ∫2xexdx=2xex−2ex\int2xe^xdx=2xe^x-2e^x. So ∫x2ex dx=ex(x2−2x+2)+c,∫01x2ex dx=e−2.\int x^2e^x\,dx=e^x(x^2-2x+2)+c,\qquad\int_0^1x^2e^x\,dx=e-2. The power of xx drops by one each time, so xnx^n needs nn applications. Take care with the minus sign and the bracket in the second stage: subtract the whole second integral. Reduction formulae are not required.

Key termsrepeated parts
Common mistake

Forgetting the bracket: x2ex−2xex−2exx^2e^x-2xe^x-2e^x instead of x2ex−(2xex−2ex)x^2e^x-(2xe^x-2e^x).

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Integration by parts

  1. Let I=∫x e2x dxI=\int x\,e^{2x}\,dx.
    Hence find the exact value of ∫01x e2x dx\int_0^1x\,e^{2x}\,dx.2 marks
  2. A student tries to find ∫xcos⁡x dx\int x\cos x\,dx by integration by parts, choosing u=cos⁡xu=\cos x and dvdx=x\frac{dv}{dx}=x.
    Hence find the exact value of ∫0π/2xcos⁡x dx\int_0^{\pi/2}x\cos x\,dx.2 marks
  3. The function y=ln⁡xy=\ln x is defined for x>0x>0.
    Use integration by parts with u=ln⁡xu=\ln x to show that ∫ln⁡x dx=xln⁡x−x+c\int\ln x\,dx=x\ln x-x+c.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).