Lesson 7 of 8 · 18 min

Integration by parts

Reverse the product rule to integrate products such as xexxe^x, xsin⁡(x)x\sin(x) and ln⁡(x)\ln(x), choosing uu well, repeating the method when needed and evaluating definite integrals.

What you will be able to do

  • Derive ∫udvdx dx=uv−∫vdudx dx\int u\frac{dv}{dx}\,dx = uv - \int v\frac{du}{dx}\,dx from the product rule.
  • Choose uu and dvdx\frac{dv}{dx} so that the new integral is simpler.
  • Integrate ln⁡(x)\ln(x) and products of a polynomial with ekxe^{kx}, sin⁡(kx)\sin(kx), cos⁡(kx)\cos(kx) or ln⁡(x)\ln(x), applying the rule twice if needed.
  • Evaluate definite integrals by parts.

Substitution handles a product when one factor is the derivative of something inside the other. But xexx e^x, xsin⁡(x)x\sin(x) and xln⁡(x)x\ln(x) are not like that: the two factors are unrelated. And ln⁡(x)\ln(x) on its own has no obvious antiderivative at all.

These need the product rule, run backwards.

Key idea

Integration by parts

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

You differentiate uu and integrate dvdx\frac{dv}{dx}. The aim is a new integral, ∫vdudx dx\int v\frac{du}{dx}\,dx, that is easier than the one you started with.

Where it comes from

The product rule says ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}. Integrate both sides with respect to xx:

uv=∫udvdx dx+∫vdudx dxuv = \int u\frac{dv}{dx}\,dx + \int v\frac{du}{dx}\,dx

Rearrange to get the rule. The constant of integration is added once, at the end.

The whole skill is choosing uu. Pick for uu the factor that gets simpler when you differentiate it, and make sure you can integrate the other one. A polynomial loses a degree each time it is differentiated, and ln⁡(x)\ln(x) turns into 1x\frac{1}{x}, so they are almost always uu.

A guide to choosing u (first match wins).
If the integrand containsTake u=u =Example
a logarithmln⁡(x)\ln(x)∫x2ln⁡(x) dx\int x^2\ln(x)\,dx
an inverse trig functiontan⁡−1(x)\tan^{-1}(x) etc.∫tan⁡−1(x) dx\int \tan^{-1}(x)\,dx
a polynomialthe polynomial∫xe2x dx\int x e^{2x}\,dx, ∫xcos⁡(x) dx\int x\cos(x)\,dx

Worked example

Integrate xe2xx e^{2x} by parts

  • Simple familiar
  • Technology free

Determine ∫xe2x dx\int x e^{2x}\,dx.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. List uu, dudx\frac{du}{dx}, dvdx\frac{dv}{dx}, vv.

  2. Write uv−∫vdudx dxuv - \int v\frac{du}{dx}\,dx.

  3. Finish the new integral and add + c+\,c.

Watch out for

  • Choosing u=e2xu = e^{2x}, which makes the new integral ∫x22⋅2e2x dx\int \frac{x^2}{2} \cdot 2e^{2x}\,dx, harder than before.

Determine ∫xcos⁡(x) dx\int x\cos(x)\,dx.

Reads asYour answer shows here as maths.

ln⁡(x)\ln(x) looks like it has only one factor, but you can make a second one: ln⁡(x)=ln⁡(x)×1\ln(x) = \ln(x) \times 1. Take u=ln⁡(x)u = \ln(x) and dvdx=1\frac{dv}{dx} = 1.

Worked example

Integrate ln⁡(x)\ln(x)

  • Simple familiar
  • Technology free

Determine ∫ln⁡(x) dx\int \ln(x)\,dx for x>0x > 0.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write the single function as itself times 11.

  2. Take uu as the function and dvdx=1\frac{dv}{dx} = 1.

Watch out for

  • Writing ∫ln⁡(x) dx=1x+c\int \ln(x)\,dx = \frac{1}{x} + c: that is the derivative, not the integral.

Interactive

The area under ln(x) from 1 to e

By parts, ∫1eln⁡(x) dx=[xln⁡(x)−x]1e=(e−e)−(0−1)=1\int_1^e \ln(x)\,dx = \Big[x\ln(x) - x\Big]_1^e = (e - e) - (0 - 1) = 1. Watch the trapezia approach it from below.

To find ∫x3ln⁡(x) dx\int x^3\ln(x)\,dx by parts, which choice works?

Choose one answer

With a higher power of xx, one application of the rule lowers the power by one, so you may need to apply it again. For ∫x2ex dx\int x^2 e^x\,dx, the first round leaves ∫2xex dx\int 2x e^x\,dx, which is one more round of parts.

Worked example

Evaluate ∫01x2ex dx\int_0^1 x^2 e^x\,dx by parts twice

  • Complex familiar
  • Technology free

Evaluate ∫01x2ex dx\int_0^1 x^2 e^x\,dx exactly.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Apply parts with u=x2u = x^2, then again with u=2xu = 2x.

  2. Bracket each second integral to keep the signs right.

  3. Find the full antiderivative before substituting the limits.

Watch out for

  • Losing the sign of 2ex2e^x: −(2xex−2ex)=−2xex+2ex-(2xe^x - 2e^x) = -2xe^x + 2e^x.

Common mistake

Bracket the second integral

With u=xu = x and dvdx=sin⁡(x)\frac{dv}{dx} = \sin(x), v=−cos⁡(x)v = -\cos(x), and

∫xsin⁡(x) dx=−xcos⁡(x)−∫(−cos⁡(x)) dx=−xcos⁡(x)+sin⁡(x)+c\int x\sin(x)\,dx = -x\cos(x) - \int (-\cos(x))\,dx = -x\cos(x) + \sin(x) + c

Write the bracket around vdudxv\frac{du}{dx} every time. Most errors in parts are sign errors in this line.

Going further: integrals that come back

For ∫excos⁡(x) dx\int e^x\cos(x)\,dx, two rounds of parts bring back the original integral, II:

I=exsin⁡(x)−∫exsin⁡(x) dx=exsin⁡(x)+excos⁡(x)−II = e^x\sin(x) - \int e^x\sin(x)\,dx = e^x\sin(x) + e^x\cos(x) - I

So 2I=ex(sin⁡(x)+cos⁡(x))2I = e^x(\sin(x) + \cos(x)) and I=12ex(sin⁡(x)+cos⁡(x))+cI = \frac{1}{2}e^x(\sin(x) + \cos(x)) + c.

Exam tip

Set out the four pieces

Before you write the rule, list uu, dudx\frac{du}{dx}, dvdx\frac{dv}{dx} and vv in a small block. Markers look for these, and it makes the substitution into the formula mechanical. For definite integrals, evaluate [uv]ab\big[uv\big]_a^b and the remaining integral separately, then combine.

Summary

  • ∫udvdx dx=uv−∫vdudx dx\int u\frac{dv}{dx}\,dx = uv - \int v\frac{du}{dx}\,dx reverses the product rule.

  • Choose uu to get simpler when differentiated: logs first, then inverse trig, then polynomials.

  • ∫ln⁡(x) dx=xln⁡(x)−x+c\int \ln(x)\,dx = x\ln(x) - x + c, using dvdx=1\frac{dv}{dx} = 1.

  • Repeat the rule for x2exx^2 e^x, x2sin⁡(x)x^2\sin(x) and the like.

  • Bracket ∫vdudx dx\int v\frac{du}{dx}\,dx and check by differentiating.

Finished the lesson?

Try the 2 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 7 of 80% read

Save your progress with a free account