Courses · Calculus 2 · Unit guide
Calculus 2: Integration by parts
How to split an integral well, repeat the method fast, and solve integrals that loop
This unit covers: Choosing u and dv, repeated and tabular integration, cyclic integrals.

What do you do when integration by parts keeps making your integral worse? Usually the trouble is choosing u and dv. In this calculus unit, we'll derive the formula, choose u wisely, handle repeated, tabular and cyclic integrals, and solve one full exam problem.
The Formula Comes From the Product Rule
Integration by parts is just the product rule run backwards. Start with the derivative of u times v, which is u prime v plus u v prime. Integrate both sides, so u v equals the integral of v d u plus the integral of u d v. Rearrange, and you get the formula: the integral of u d v equals u v minus the integral of v d u.
(uv)′ = u′v + uv′ uv = ∫v du + ∫u dv ∫u dv = uv − ∫v du
Key points.
- Integration by parts reverses the product rule
- Integrate both sides of (uv)′ = u′v + uv′
- Result: ∫u dv = uv − ∫v du
Choosing u: The LIATE Guide
So how do you split the integrand? The goal is a new integral, v d u, that's simpler than the one you started with. That means u should get simpler when you differentiate it, and d v should be something you can actually integrate. The LIATE ordering is a handy guide: logs and inverse trig come first, because their derivatives are algebraic, while exponentials go last.
LIATE: pick u as whichever comes first in Logarithmic, Inverse trig, Algebraic, Trig, Exponential. A common rule of thumb
Key points.
- The new integral ∫v du should be simpler
- u should simplify when differentiated
- dv must be something you can integrate
- LIATE ranks good choices for u
A First Example: x Times e to the x
Let's try the integral of x times e to the x. Following LIATE, we set u equal to x and d v equal to e to the x d x. Then d u is just d x, and v is e to the x. Plugging in, we get x e to the x minus the integral of e to the x d x, which finishes as x e to the x minus e to the x, plus C.
u = x, dv = e^x dx du = dx, v = e^x ∫x e^x dx = x e^x − ∫e^x dx = x e^x − e^x + C
Key points.
- Set u = x and dv = eˣ dx
- Then du = dx and v = eˣ
- Answer: x eˣ − eˣ + C
Good Choice Versus Bad Choice
Here's what happens if you choose the other way round. With u equal to e to the x, d v is x d x, so v becomes x squared over two. Now the new integral has x squared times e to the x, which is harder than where you started. That's the warning sign: if the power of x goes up instead of down, swap your choice of u and d v.
u = x (good)
- du = dx, v = eˣ
- New integral ∫eˣ dx is easier
- Finished in one step
u = eˣ (bad)
- du = eˣ dx, v = x²/2
- New integral ∫(x²/2)eˣ dx is harder
- Power of x goes up, not down
Repeated Integration by Parts
Sometimes one round isn't enough. For the integral of x squared e to the x, take u as x squared and d v as e to the x d x. That gives x squared e to the x minus the integral of two x e to the x. We already know that last integral, so substitute it in. Factoring out e to the x leaves x squared minus two x plus two, plus C.
∫x² e^x dx u = x², dv = e^x dx = x² e^x − ∫2x e^x dx = x² e^x − 2(x e^x − e^x) + C = e^x(x² − 2x + 2) + C
Key points.
- Some integrals need more than one round
- Each round lowers the power of x by one
- ∫x²eˣ dx = eˣ(x² − 2x + 2) + C
The Tabular Method
When u is a polynomial, the tabular method saves a lot of writing. In the left column, differentiate x squared down to two x, then two, then zero. In the right column, integrate e to the x the same number of times. Attach alternating signs, plus, minus, plus, then multiply along the diagonals. You get x squared e to the x minus two x e to the x plus two e to the x, matching our answer.
- Column 1: differentiate u until you reach 0
- Column 2: integrate dv the same number of times
- Attach signs +, −, +, − down the rows
- Multiply along each diagonal and add the terms
Cyclic Integrals That Loop Back
Some integrals loop back. Call the integral of e to the x sine x, I. One round gives e to the x sine x minus the integral of e to the x cosine x. A second round brings the original back, so I equals e to the x sine x minus e to the x cosine x minus I. Adding I, two I equals e to the x times sine x minus cosine x, so halve it and add C.
I = ∫e^x sin x dx I = e^x sin x − ∫e^x cos x dx I = e^x sin x − e^x cos x − I 2I = e^x(sin x − cos x) I = ½e^x(sin x − cos x) + C
Key points.
- Two rounds bring the original integral back
- Name it I and solve for I algebraically
- Keep the same type of choice in round two
Worked Exam Problem: x ln x From 1 to e
Here's a typical exam problem: the integral from one to e of x ln x. Logs come first, so u is ln x and d v is x d x, giving d u equals d x over x and v equals x squared over two. The boundary term is e squared over two, since ln one is zero. Subtract e squared over four minus a quarter, and you get e squared plus one, over four.
∫(1 to e) x ln x dx u = ln x, dv = x dx du = dx/x, v = x²/2 = e²/2 − [x²/4](1→e) = e²/2 − e²/4 + 1/4 = (e²+1)/4
Key points.
- Logs come first, so u = ln x and dv = x dx
- Evaluate the uv term at both limits
- Answer: (e² + 1)/4
Pitfalls That Cost Marks
A few slips cost the most marks. For a lone ln x or arctan x, take d v as just d x, so v is x. In definite integrals, remember to evaluate u v at both limits, not just the leftover integral. Watch the alternating signs in the table. And in cyclic integrals, keep the same type of choice in round two, or you'll just undo your first step.
Key points.
- Use dv = dx for a lone ln x or arctan x
- Evaluate uv at both limits in definite integrals
- Keep signs alternating in the tabular method
- In cyclic integrals, don't swap u and dv midway
Remember this
If you remember one thing, make it this: choose u so the new integral is simpler than the old one. Now quiz yourself on a few integrals, deciding u and dv before you write anything.
Practice this unit
- Calculus 2: Integration By Parts quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Trigonometric Integrals and Trig Substitution quiz15 multiple-choice questions with explanations · no account needed
- Calculus 2: Partial Fractions quiz11 multiple-choice questions with explanations · no account needed
- Calculus 2: Integration By Parts34 flashcards · study free
- Calculus 2: Trigonometric Integrals and Trig Substitution34 flashcards · study free
- Calculus 2: Partial Fractions34 flashcards · study free
- Calculus 2: Improper Integrals32 flashcards · study free
Every Calculus 2 deck and quiz: the Calculus 2 page.
Other Calculus 2 unit guides
- Trigonometric integrals and trig substitutionStudy guide
- Partial fractionsStudy guide
- Improper integralsStudy guide
- Area, volume and arc lengthStudy guide
- Work and other applicationsStudy guide
- Sequences and series basicsStudy guide
- Convergence testsStudy guide
- Power series and Taylor seriesStudy guide
- Parametric equations and polar coordinatesStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.