Integration by Parts

A2 · P3 · 3 min

Integration by parts is the product rule run backwards. Use it when the integrand is a product of two different kinds of function, such as xexx e^{x}, xcos⁡xx \cos x or ln⁡x\ln x on its own, and substitution does not work.

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

For a definite integral:

∫abu dvdx dx=[ uv ]ab−∫abv dudx dx\int_a^b u \,\frac{dv}{dx}\, dx = \Big[\,uv\,\Big]_a^b - \int_a^b v \,\frac{du}{dx}\, dx

Choosing uu: LATE

Pick uu as the factor that becomes simpler when differentiated, in this order of preference:

  • Logarithms: ln⁡x\ln x
  • Algebra: xx, x2x^2, 3x+13x + 1
  • Trigonometry: sin⁡x\sin x, cos⁡x\cos x
  • Exponentials: exe^{x}, e2xe^{2x}

Whatever is left is dvdx\dfrac{dv}{dx}, and you must be able to integrate it.

Tip

If u=ln⁡xu = \ln x then dudx=1x\dfrac{du}{dx} = \dfrac{1}{x} turns the log into an algebraic term. If uu is a power of xx, each application reduces the power by one, so x2exx^2 e^x needs parts twice.

Method

  1. Write down uu and dvdx\dfrac{dv}{dx}, then find dudx\dfrac{du}{dx} and vv. Do not add a constant when finding vv.
  2. Substitute into the formula.
  3. Integrate the new, simpler integral.
  4. Add +c+ c for an indefinite integral, or evaluate the limits.
A polynomial times an exponential

Find ∫2xex dx\displaystyle\int 2x e^{x} \, dx.

Solution

Algebra beats exponential, so u=2xu = 2x and dvdx=ex\dfrac{dv}{dx} = e^{x}.

dudx=2,v=ex\frac{du}{dx} = 2, \qquad v = e^{x}∫2xex dx=2xex−∫2ex dx=2xex−2ex+c=2ex(x−1)+c\int 2x e^{x} \, dx = 2x e^{x} - \int 2 e^{x} \, dx = 2x e^{x} - 2e^{x} + c = 2e^{x}(x - 1) + c
Integrating ln x

Find ∫ln⁡x dx\displaystyle\int \ln x \, dx.

Solution

There is only one factor, so treat it as ln⁡x×1\ln x \times 1 with u=ln⁡xu = \ln x and dvdx=1\dfrac{dv}{dx} = 1.

dudx=1x,v=x\frac{du}{dx} = \frac{1}{x}, \qquad v = x∫ln⁡x dx=xln⁡x−∫x⋅1x dx=xln⁡x−x+c\int \ln x \, dx = x \ln x - \int x \cdot \frac{1}{x} \, dx = x \ln x - x + c
Parts with a chain-rule integral

Find ∫x1+x dx\displaystyle\int x \sqrt{1 + x} \, dx.

Solution

u=xu = x, dvdx=(1+x)1/2\dfrac{dv}{dx} = (1 + x)^{1/2}, so dudx=1\dfrac{du}{dx} = 1 and v=23(1+x)3/2v = \dfrac{2}{3}(1 + x)^{3/2}.

∫x1+x dx=23x(1+x)3/2−∫23(1+x)3/2 dx=23x(1+x)3/2−415(1+x)5/2+c\int x \sqrt{1 + x} \, dx = \frac{2}{3} x (1 + x)^{3/2} - \int \frac{2}{3}(1 + x)^{3/2} \, dx = \frac{2}{3} x (1 + x)^{3/2} - \frac{4}{15}(1 + x)^{5/2} + c

Factorising, with (1+x)3/2(1+x)^{3/2} common:

=215(1+x)3/2(5x−2(1+x))+c=215(1+x)3/2(3x−2)+c= \frac{2}{15}(1 + x)^{3/2}\big(5x - 2(1 + x)\big) + c = \frac{2}{15}(1 + x)^{3/2}(3x - 2) + c
A definite integral

Evaluate ∫02xex dx\displaystyle\int_0^2 x e^{x} \, dx, giving the exact answer.

Solution

u=xu = x, dvdx=ex\dfrac{dv}{dx} = e^{x}, so dudx=1\dfrac{du}{dx} = 1 and v=exv = e^{x}.

∫02xex dx=[xex]02−∫02ex dx=(2e2−0)−[ex]02=2e2−(e2−1)=e2+1\int_0^2 x e^{x} \, dx = \Big[x e^{x}\Big]_0^2 - \int_0^2 e^{x} \, dx = \big(2e^{2} - 0\big) - \Big[e^{x}\Big]_0^2 = 2e^{2} - (e^{2} - 1) = e^{2} + 1

Numerically this is 8.398.39 to 3 s.f.

Applying parts twice

When uu is x2x^2 (or the integral is exsin⁡xe^{x}\sin x type) one application leaves an integral that still needs parts.

Parts twice

Find ∫x2cos⁡x dx\displaystyle\int x^2 \cos x \, dx.

Solution

First pass: u=x2u = x^2, dvdx=cos⁡x\dfrac{dv}{dx} = \cos x, so dudx=2x\dfrac{du}{dx} = 2x, v=sin⁡xv = \sin x.

∫x2cos⁡x dx=x2sin⁡x−∫2xsin⁡x dx\int x^2 \cos x \, dx = x^2 \sin x - \int 2x \sin x \, dx

Second pass on ∫2xsin⁡x dx\int 2x \sin x \, dx: u=2xu = 2x, dvdx=sin⁡x\dfrac{dv}{dx} = \sin x, so dudx=2\dfrac{du}{dx} = 2, v=−cos⁡xv = -\cos x.

∫2xsin⁡x dx=−2xcos⁡x+∫2cos⁡x dx=−2xcos⁡x+2sin⁡x\int 2x \sin x \, dx = -2x \cos x + \int 2 \cos x \, dx = -2x \cos x + 2 \sin x

Putting it together:

∫x2cos⁡x dx=x2sin⁡x+2xcos⁡x−2sin⁡x+c\int x^2 \cos x \, dx = x^2 \sin x + 2x \cos x - 2 \sin x + c
Watch out

The classic slip is a sign error in the second application. Write the second integral out on its own line, finish it, and only then substitute back with brackets around the whole thing.

Exam tip

P3 questions often say "use integration by parts" and then ask for an exact answer. Keep ee and ln⁡\ln terms exact and only convert to decimals if the question asks. Marks are typically 1 for the correct uu, vv setup, 1 for the substitution, and the rest for accuracy.

Practice

Question
  1. Find ∫xsin⁡2x dx\displaystyle\int x \sin 2x \, dx.
  2. Find ∫x2ln⁡x dx\displaystyle\int x^2 \ln x \, dx.
  3. Show that ∫1eln⁡x dx=1\displaystyle\int_1^{e} \ln x \, dx = 1.
  4. Find ∫0π/2xcos⁡x dx\displaystyle\int_0^{\pi/2} x \cos x \, dx, giving the exact value.
Answers
  1. −12xcos⁡2x+14sin⁡2x+c-\dfrac{1}{2} x \cos 2x + \dfrac{1}{4} \sin 2x + c
  2. 13x3ln⁡x−19x3+c\dfrac{1}{3} x^3 \ln x - \dfrac{1}{9} x^3 + c
  3. [xln⁡x−x]1e=(e−e)−(0−1)=1\big[x \ln x - x\big]_1^{e} = (e - e) - (0 - 1) = 1
  4. π2−1\dfrac{\pi}{2} - 1

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action