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.
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
- Find
∫ x sin x dx. (Hint:u = x,dv = sin x dx.) - Find
∫ ln x dx. (Hint:u = ln x,dv = dx, sov = 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
vfromdv, leave off the+ C. It would cancel out anyway; add one+ Cat the very end. - A longer version of the "simpler when differentiated" rule is called LIATE (logs, inverse trig, algebraic, trig, exponential): pick
ufrom 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.
Sources
- OpenStax, "Calculus Volume 2, 3.1 Integration by Parts": ∫ u dv = uv − ∫ v du from the product rule; choosing u
- College Board, "AP Calculus AB and BC Course and Exam Description": Unit 6, Integration and Accumulation of Change (using integration by parts, BC only)
- Wolfram MathWorld, "Integration by Parts": the formula and its derivation
- MIT OpenCourseWare, "18.01 Single Variable Calculus (Fall 2006)": lecture notes
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
- Calculus EP17Riemann sums
- Calculus EP18The fundamental theorem of calculus
- Calculus EP22Slope fields
- Calculus EP23Exponential growth and decay