Watch on Instagram

Math Bytes · Calculus · Episode 20 · Integration techniques

Integration by parts

Integration by parts handles integrals of two things multiplied together. It is the product rule run backward: ∫ u dv = uv − ∫ v du. For example, ∫ x cos x dx = x sin x + cos x + C.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

When the usual rules get stuck

Try ∫ x cos x dx. It's two things multiplied together, x and cos x. The power rule doesn't apply, and u-substitution doesn't help either, because the derivative of neither part is sitting outside the other. We need a new tool.

The formula: the product rule, run backward

The product rule says (uv)′ = u′v + uv′. Integrate both sides and rearrange, and you get integration by parts:

∫ u dv = uv − ∫ v du

The idea: trade the integral you can't do (∫ u dv) for one that's easier (∫ v du).

Choosing u

Pick u as the part that gets simpler when differentiated. Then dv is everything else, and you integrate it to get v. This is a rule of thumb, not a law: it usually works, but not every time.

A worked example: ∫ x cos x dx

| | | |---|---| | u = x | dv = cos x dx | | du = dx | v = sin x |

Plug into ∫ u dv = uv − ∫ v du:

∫ x cos x dx = x sin x − ∫ sin x dx

The integral of sin x is −cos x, so subtracting it gives + cos x:

∫ x cos x dx = x sin x + cos x + C

Check: differentiate it. d/dx (x sin x + cos x) = sin x + x cos x − sin x = x cos x. ✓

Try it yourself

  1. Find ∫ x sin x dx. (Hint: u = x, dv = sin x dx.)
  2. Find ∫ ln x dx. (Hint: u = ln x, dv = dx, so v = x.)

(Answers: 1. −x cos x + sin x + C. 2. x ln x − x + C.)

Good to know

  • Integration by parts is an AP Calculus BC topic (Unit 6), also taught in Calculus 2. AB students can skip it.
  • When you find v from dv, leave off the + C. It would cancel out anyway; add one + C at the very end.
  • A longer version of the "simpler when differentiated" rule is called LIATE (logs, inverse trig, algebraic, trig, exponential): pick u from whichever comes first.
  • For a definite integral, use ∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du.

Answer to the comment question

What's the integral from 0 to 2 of x eˣ dx? e² + 1 (about 8.39). Take u = x and dv = eˣ dx, so du = dx and v = eˣ. Then ∫ x eˣ dx = x eˣ − ∫ eˣ dx = x eˣ − eˣ. At 2: 2e² − e² = e². At 0: 0 − 1 = −1. So the answer is e² − (−1) = e² + 1.

Test your knowledge

Quick quiz: Integration by parts

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What is the integration by parts formula?
2Which rule is integration by parts based on?
3For ∫ x cos x dx, what is a good choice of u?
4What is ∫ x cos x dx?

Sources

Video transcript

How do you integrate two things multiplied together?

Try the integral of x times cosine x. Our rules so far can't handle it.

Integration by parts comes from the product rule, run backward. The integral of u d v equals u v, minus the integral of v d u.

Pick u as the part that gets simpler when differentiated. Here u is x, so d u is d x, and v is sine x.

Plug in: x sine x, minus the integral of sine x d x. So the answer is x sine x plus cosine x, plus C. Differentiate it and x cosine x comes back.

Your turn. What's the integral from zero to two of x times e to the x? Comment your answer below!

That's your byte.

More from Calculus

All Calculus lessons