You already know how to integrate , and you already know how to integrate . So why does feel impossible?
The problem is that integration doesn't distribute over multiplication. is not . You can't just integrate each piece and multiply them together. You need a different tool entirely, and that tool is integration by parts.
This post walks through where the formula comes from, how to actually choose which part is "u," and what to do in the two situations that trip people up: when you have to repeat the process, and when the process refuses to end on its own.
Multiplying two functions breaks all your usual tricks
Every integration rule you've learned so far works on a single function. The power rule handles . The exponential rule handles . The trig rules handle and .
None of them say anything about what happens when two of these get multiplied together. isn't , and it isn't either. It's a new object, and none of your existing rules apply to it directly.
We need a rule built specifically for products. And it turns out we already have one. We've just been using it in the wrong direction.
The product rule, run backwards
Here's the move. You already know the product rule for derivatives. We write it as: if , then
Rearrange that one line and something useful falls out:
Now integrate both sides with respect to . The integral of a derivative just undoes the derivative, so . That gives us:
Switch to the / notation you'll actually see in textbooks, where and , and this becomes the formula everyone calls integration by parts:
That's the whole trick. You're not learning a new operation. You're running the product rule in reverse.
Watch the formula prove itself
Algebra convinces you the formula is true. But there's a picture that makes it obvious, and it doesn't use a single symbol from calculus.
Think of and as the two side lengths of a rectangle, both growing together as some parameter increases. The rectangle's area is . As it grows, that area gets added to in exactly two ways: a strip appears where the width grew, and a strip appears where the height grew.
The Rectangle That Splits in Two
Drag the point along the curve. The rectangle u·v always splits into exactly two pieces: the area under the curve, and the area left of it.
Drag the point along the curve. At every position, the full rectangle is exactly covered by two puzzle pieces: the region under the curve, which is , and the region to the left of the curve, which is . They never overlap and they never leave a gap. Add them and you always get back, exactly.
That's the entire formula, sitting there as a picture. Rearrange "the two pieces add up to the rectangle" and you get .
So which part is u?
Here's where people get stuck. The formula needs you to split your integrand into two pieces, and . Pick well and the new integral is easier than the one you started with. Pick badly and it gets worse.
A rough guide that works most of the time is called LIATE. When you're deciding what to call , prefer, in this order: Logarithmic functions, Inverse trig functions, Algebraic functions like or , Trig functions, Exponential functions. Whichever type appears first in that list becomes your . Everything else becomes .
The reasoning behind LIATE is simple once you see it: you want to be a function that gets simpler when you differentiate it, and you want to be a function that stays manageable when you integrate it. Logs and inverse trig get messier if you try to integrate them, so you never want them stuck inside an integral. Exponentials barely change no matter what you do to them, so they're happy sitting as .
Try it on . Algebraic beats exponential in LIATE, so .
Choose Your u for ∫ x eˣ dx
Pick which factor becomes u. One choice shrinks the problem. The other grows it every time you repeat it.
Pick the LIATE choice and , , and the new integral is just . Done in one more step. Pick it backwards and , and the new integral has a higher power of than you started with. Keep applying the same backwards choice and the power climbs forever. It never gets easier. It only gets worse.
What if one pass through the formula isn't enough?
LIATE tells you what to do once. But some integrals need the formula applied several times before they resolve. is a good example: after one pass you're left with , still a product, still not done.
You could keep applying the full formula by hand at every step, tracking , , , and each time. Or you could use a shortcut that does the bookkeeping for you: the tabular method, sometimes called the DI method.
Put the part you'd normally call in a "D" column and keep differentiating it until you hit zero. Put the part you'd normally call in an "I" column and keep integrating it, matching the D column row for row. Then multiply diagonally, one row of D against the next row of I, alternating plus and minus signs starting with plus.
The Tabular Method for ∫ x²eˣ dx
Step through the table: differentiate one column to zero, integrate the other, multiply diagonally with alternating signs.
Step through the table. differentiates down to in three steps, so the table has exactly three usable rows, and each one hands you a term of the answer. Add them up and you get , the same answer you'd reach by applying the formula three separate times, just without re-deriving and at every step.
The tabular method only works this cleanly when one column eventually hits zero, which happens whenever the "D" side is a polynomial. Polynomials always differentiate down to nothing eventually. Not every product behaves this way.
What if the integral never gets simpler?
Try . Neither nor ever disappears when you differentiate or integrate them. There's no polynomial here to grind down to zero. The tabular method's trick doesn't apply.
Apply integration by parts anyway and watch what happens.
When the Integral Loops Back to Itself
Apply integration by parts twice to ∫ eˣ sin x dx and the original integral reappears. That's not a failure, it's the way out.
Step through it. The first pass turns your integral into minus a new integral, . Fine, apply the formula again to that one. But the second pass hands you back , the exact integral you started with.
Call your original integral . After two passes, the algebra reads . You now have an equation for , with sitting on both sides. Add to both sides, divide by 2, and you're done:
No further integration needed. You solved it the way you'd solve for , by treating the unknown integral as a variable and doing algebra on it. Whenever a repeated application of integration by parts hands you back your original integral, this is the way out.
A quick way to know when to reach for it
Reach for integration by parts when you're looking at a product of two functions from different families: an algebraic function times an exponential, a function times a log, or an exponential times a trig function, and none of your other techniques apply. Use LIATE to pick . If the new integral is still a product, either repeat the process (the tabular method helps when a polynomial is involved) or watch for a loop back to the original integral, and solve algebraically if you find one.
The short version
Integration by parts is the product rule for derivatives, read backwards. Split your product into and , and you trade the integral you can't do for a different one, hopefully easier, that you can.
LIATE tells you which part to call : pick the one that gets simpler when you differentiate it. Sometimes one pass is enough. Sometimes you need several, and the tabular method tracks the bookkeeping for you. And sometimes the integral doesn't shrink at all. It loops back to where it started, and the way out is algebra, not more calculus.
Three integrals, three different endings, one formula behind all of them.