Mathematics AA · AHL 5.16 · HL only

Integration by parts

Integration by parts turns the product rule round. The formula is in the formula booklet, so what the examiner is really testing is whether you choose the right part to differentiate, and whether you can keep the signs straight across two or three lines.

Written from the stage “Substitution, integration by parts and volumes of revolution” of the 7Quest Mathematics AA course. The questions are our own, in the style of the exam; none are from past papers.

The formula and choosing u

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

Choose uu so that differentiating it makes the integral simpler. A polynomial times exe^x, sinx\sin x or cosx\cos x: let uu be the polynomial, because each differentiation lowers its degree. Anything times lnx\ln x: let u=lnxu = \ln x, because you cannot integrate lnx\ln x directly but its derivative 1x\frac{1}{x} is easy.

For example, ∫xcos2x dx\int x\cos 2x\,dx with u=xu = x and dvdx=cos2x\frac{dv}{dx} = \cos 2x gives v=12sin2xv = \frac{1}{2}\sin 2x, so the integral is 12xsin2x−∫12sin2x dx=12xsin2x+14cos2x+C\frac{1}{2}x\sin 2x - \int \frac{1}{2}\sin 2x\,dx = \frac{1}{2}x\sin 2x + \frac{1}{4}\cos 2x + C.

Definite integrals

With limits, evaluate the uvuv part between them as well: ∫abu v′ dx=[uv]ab−∫abv u′ dx\int_a^b u\,v'\,dx = \left[uv\right]_a^b - \int_a^b v\,u'\,dx. It is easy to substitute the limits into the second integral and forget the first part.

The integral that comes back

For ∫exsinx dx\int e^x\sin x\,dx, neither part ever disappears. Integrate by parts twice and the original integral appears again on the right with a minus sign. Call it II, and you get an equation of the form I=(something)−II = (\text{something}) - I, which you solve for II. Keep the same type of choice for uu both times (the trigonometric part, say), or the second step just undoes the first.

Where the marks go

  • Choosing u=exu = e^x in ∫xex dx\int xe^x\,dx. The new integral is harder than the one you started with.
  • Sign errors in the second application. Put brackets round the whole second integral before you expand it.
  • Forgetting +C+C on an indefinite integral.
  • Leaving ln1\ln 1 or eln2e^{\ln 2} unsimplified in an exact answer.

Three questions to try

Answer on paper first, then open the markscheme and mark yourself honestly. A mark only counts if your answer says that point.

Find4 marksHL

Find ∫xcos2x dx\int x\cos 2x\,dx.

Show the markscheme

Markscheme (4 marks)

  1. u=xu = x, dvdx=cos2x\frac{dv}{dx} = \cos 2x, so dudx=1\frac{du}{dx} = 1, v=12sin2xv = \frac{1}{2}\sin 2x (M1)
  2. 12xsin2x−∫12sin2x dx\frac{1}{2}x\sin 2x - \int \frac{1}{2}\sin 2x\,dx (A1)
  3. ∫12sin2x dx=−14cos2x\int \frac{1}{2}\sin 2x\,dx = -\frac{1}{4}\cos 2x (A1)
  4. 12xsin2x+14cos2x+C\frac{1}{2}x\sin 2x + \frac{1}{4}\cos 2x + C (A1)

A full-marks answer

Let u=xu = x and dvdx=cos2x\frac{dv}{dx} = \cos 2x, so dudx=1\frac{du}{dx} = 1 and v=12sin2xv = \frac{1}{2}\sin 2x. Then
∫xcos2x dx=12xsin2x−∫12sin2x dx=12xsin2x+14cos2x+C\int x\cos 2x\,dx = \frac{1}{2}x\sin 2x - \int \frac{1}{2}\sin 2x\,dx = \frac{1}{2}x\sin 2x + \frac{1}{4}\cos 2x + C.

Find6 marksHL

Do not use a calculator. Find the exact value of ∫1ex2lnx dx\int_1^e x^2\ln x\,dx.

Show the markscheme

Markscheme (6 marks)

  1. u=lnxu = \ln x, dvdx=x2\frac{dv}{dx} = x^2, so dudx=1x\frac{du}{dx} = \frac{1}{x}, v=x33v = \frac{x^3}{3} (M1)
  2. [x33lnx]1e−∫1ex23 dx\left[\frac{x^3}{3}\ln x\right]_1^e - \int_1^e \frac{x^2}{3}\,dx (A1)
  3. ∫x23 dx=x39\int \frac{x^2}{3}\,dx = \frac{x^3}{9} (A1)
  4. Substituting limits: (e33−e39)−(0−19)\left(\frac{e^3}{3} - \frac{e^3}{9}\right) - \left(0 - \frac{1}{9}\right) (M1)
  5. using lne=1\ln e = 1 and ln1=0\ln 1 = 0 (A1)
  6. =2e3+19= \frac{2e^3 + 1}{9} (A1)

A full-marks answer

Let u=lnxu = \ln x and dvdx=x2\frac{dv}{dx} = x^2, so dudx=1x\frac{du}{dx} = \frac{1}{x} and v=x33v = \frac{x^3}{3}. Then
∫1ex2lnx dx=[x33lnx]1e−∫1ex23 dx=[x33lnx−x39]1e\int_1^e x^2\ln x\,dx = \left[\frac{x^3}{3}\ln x\right]_1^e - \int_1^e \frac{x^2}{3}\,dx = \left[\frac{x^3}{3}\ln x - \frac{x^3}{9}\right]_1^e.
At x=ex = e: e33−e39=2e39\frac{e^3}{3} - \frac{e^3}{9} = \frac{2e^3}{9}. At x=1x = 1: 0−190 - \frac{1}{9}. So the integral is 2e39+19=2e3+19\frac{2e^3}{9} + \frac{1}{9} = \frac{2e^3 + 1}{9}.

Find6 marksHLChallenge

Find ∫exsinx dx\int e^{x}\sin x\,dx.

Show the markscheme

Markscheme (6 marks)

  1. First application, u=sinxu = \sin x: I=exsinx−∫excosx dxI = e^x\sin x - \int e^x\cos x\,dx (M1)(A1)
  2. Second application, u=cosxu = \cos x: ∫excosx dx=excosx+∫exsinx dx\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx (M1)(A1)
  3. I=exsinx−excosx−II = e^x\sin x - e^x\cos x - I (A1)
  4. I=12ex(sinx−cosx)+CI = \frac{1}{2}e^x(\sin x - \cos x) + C (A1)

A full-marks answer

Let I=∫exsinx dxI = \int e^x\sin x\,dx. With u=sinxu = \sin x and dvdx=ex\frac{dv}{dx} = e^x: I=exsinx−∫excosx dxI = e^x\sin x - \int e^x\cos x\,dx.
With u=cosxu = \cos x and dvdx=ex\frac{dv}{dx} = e^x: ∫excosx dx=excosx−∫ex(−sinx) dx=excosx+I\int e^x\cos x\,dx = e^x\cos x - \int e^x(-\sin x)\,dx = e^x\cos x + I.
So I=exsinx−excosx−II = e^x\sin x - e^x\cos x - I, which gives 2I=ex(sinx−cosx)2I = e^x(\sin x - \cos x) and I=12ex(sinx−cosx)+CI = \frac{1}{2}e^x(\sin x - \cos x) + C.

Where this is in 7Quest

It is in Area Terraces, the part of the Mathematics AA map for Integration and differential equations:

  • Substitution, integration by parts and volumes of revolutionHLSyllabus AHL 5.16, AHL 5.17 · 3 exam-style questions

Each stage has a short lesson, quick questions, a minigame and exam-style questions marked point by point, and what you get wrong comes back in your review a few days later. If this is the topic you find hardest, you can choose Integration and differential equations as your free Mathematics AA topic and do all of it without paying or giving a card. Full access is a subscription per subject that renews each September and stops after your final exams, so nothing is charged once you have finished (prices and details).

Questions students ask about this

Is integration by parts on the SL syllabus?

No. It is AHL 5.16, together with integration by substitution beyond the reverse chain rule, so it is HL only.

Is the formula in the formula booklet?

Yes. You do not need to memorise it, but you do need to recognise when to use it and which part to choose as uu.