Calculus › Section I · Integration techniques and improper integrals › Topic I.2
Integration by parts
Substitution cracks integrals built from a function and its derivative. But a product like x e^x — an algebraic factor glued to an exponential one — has no such chain inside. Integration by parts is the product rule run backwards: it trades one integral for another that, with a good choice, is much easier.
When substitution has no chain to follow
Substitution succeeds when an integrand contains a function together with its derivative — a chain waiting to be unravelled. But \(xe^{2x}\) has no such chain: the algebraic factor and the exponential factor are strangers to each other, and neither basic rule fits the product. For products of this kind the tool is integration by parts, and its logic is the product rule read backwards: since differentiating a product splits it into two pieces, integrating one piece can be traded for integrating the other. The whole technique is the art of making that trade to your advantage.
The formula and where it comes from
The product rule says \((uv)' = u'v + uv'\). Integrate both sides: \(uv = \int u'v\,dx + \int uv'\,dx\). Rearranged, and written with \(du = u'\,dx\) and \(dv = v'\,dx\), that becomes integration by parts:
The strategy is a trade. You are free to choose \(u\) (which you will differentiate) and \(dv\) (which you must integrate), and a good trade swaps a hard integral for an easier one: the new integrand \(v\,du\) should be simpler than what you started with. A poor trade swaps it for a harder one — and that is the signal to swap the roles and try again.
Choosing u and dv: LIATE
Pick \(u\) to get simpler when differentiated, and \(dv\) to be something you can actually integrate. The LIATE order is the standard guide for choosing \(u\): Logarithms, Inverse trig, Algebraic (powers of \(x\)), Trigonometric, Exponential — whichever category appears earliest in the integrand makes the best \(u\). The logic behind the ranking: differentiating a logarithm or inverse trig function strips its awkwardness away (\((\ln x)' = 1/x\)), differentiating a power lowers it, while exponentials and sines never simplify at all — so they are better integrated than differentiated. For \(\int x^2\ln x\,dx\), take \(u = \ln x\) and \(dv = x^2\,dx\), so \(v = \frac{x^3}{3}\) and the result is \(\frac{x^3}{3}\ln x - \int \frac{x^2}{3}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9} + C\). LIATE is a guide, not a law; the real test is always whether \(\int v\,du\) came out simpler.
Worked example: algebraic times exponential
Evaluate \(\int x e^{2x}\,dx\). Algebraic comes before exponential, so \(u = x\) and \(dv = e^{2x}\,dx\). Then \(du = dx\) and \(v = \frac{1}{2}e^{2x}\):
Check by differentiating: \(\frac{1}{2}e^{2x} + xe^{2x} - \frac{1}{2}e^{2x} = xe^{2x}\) — exact. If instead \(u = e^{2x}\), then \(du = 2e^{2x}\,dx\) and the new integral would contain \(\frac{x^2}{2}\), a step in the wrong direction.
Worked example: the hidden product
\(\int \ln(3x)\,dx\) shows no product at all — but every integral is \(f(x)\,dx\), so write \(\ln(3x) \cdot 1\). Take \(u = \ln(3x)\), \(dv = dx\), so \(du = \frac{1}{x}\,dx\) and \(v = x\):
Check by differentiating: \(\ln(3x) + 1 - 1 = \ln(3x)\) ✓. The same hidden-product trick handles the inverse trigonometric functions: \(\int \arctan x\,dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C\), where the leftover \(\int \frac{x}{1+x^2}\,dx\) is a simple substitution.
Repeated integration by parts
When \(u\) is a power like \(x^2\), one round is not enough — but each round lowers the power by one, so the process must finish. Take \(\int x^2 e^{2x}\,dx\): first round \(u = x^2\), \(dv = e^{2x}\,dx\) gives \(\frac{x^2}{2}e^{2x} - \int x e^{2x}\,dx\). The remaining integral is the previous worked example's pattern, so a second round finishes it:
For \(x^n\), expect \(n\) rounds — and keep every minus sign straight through the chain.
The tabular shortcut
Repeated parts bookkeeping gets messy, and the tabular method organises it. For \(\int x^2\cos x\,dx\), make two columns: differentiate \(x^2\) down to \(0\) (giving \(x^2, 2x, 2, 0\)), while repeatedly integrating \(\cos x\) (giving \(\sin x, -\cos x, -\sin x\)). Multiply diagonally with alternating signs:
Check by differentiating: \(2x\sin x + x^2\cos x + 2\cos x - 2x\sin x - 2\cos x = x^2\cos x\) ✓. The method works whenever one column differentiates to zero — powers of \(x\) times exponentials or sines and cosines.
When the integral comes back
Some integrands never simplify: exponentials and trig functions survive both operations. For \(I = \int e^{2x}\cos x\,dx\), choose \(u = e^{2x}\), \(dv = \cos x\,dx\), so \(v = \sin x\) and \(du = 2e^{2x}\,dx\):
A second round on the new integral (\(u = e^{2x}\), \(dv = \sin x\,dx\)) produces \(\int e^{2x}\sin x\,dx = -e^{2x}\cos x + 2I\). Substitute that back:
Now solve for \(I\): \(5I = e^{2x}(\sin x + 2\cos x)\), so \(I = \frac{1}{5}e^{2x}(\sin x + 2\cos x) + C\). The original integral reappearing is not a dead end — it is an equation to solve.
Definite integrals by parts
For definite integrals, the \(uv\) term is evaluated at the limits too:
For example,
using the antiderivative from the first worked example. Numerically, \(e^2 \approx 7.389\), and \((7.389 + 1)/4 \approx 2.097\) ✓. Both pieces use the same limits: the boundary term \(\bigl[uv\bigr]_a^b\) and the leftover integral \(\int_a^b v\,du\) are each evaluated from \(a\) to \(b\).
Common mistakes to avoid
Choosing a \(dv\) you cannot integrate is the classic stall: if \(dv = \ln x\,dx\), stop and swap. Forgetting the minus sign in front of \(\int v\,du\) flips the sign of every term that comes from the second integral; write the formula skeleton \(uv - \int v\,du\) before filling anything in. In repeated rounds, letting the \(u\)s drift — differentiating the exponential in one round and the power in the next — simply undoes the previous round and returns you to where you started; keep differentiating the same type. Forgetting \(+ C\) at the very end of an indefinite integral is wrong, though the constant when integrating \(dv\) itself may be taken as zero. And in definite integrals, forgetting to evaluate \(uv\) at both limits turns an exact answer into a half-answer.
Key takeaways
Integration by parts is the product rule reversed: \(\int u\,dv = uv - \int v\,du\). Choose \(u\) by LIATE — Logs, Inverse trig, Algebraic, Trig, Exponential — and \(dv\) so it is integrable; the goal is that \(\int v\,du\) is simpler than the original. Powers of \(x\) need repeated rounds, or the tabular method with alternating diagonal signs. If the integral reappears after two rounds, treat it as an unknown and solve algebraically. For definite integrals, evaluate the \(uv\) term at both limits. Differentiating the answer checks everything at once.
Flashcards
Flashcard
Integration by parts formula
Test your understanding
Question 1 of 5
What is ∫xe³ˣ dx?
Question 2 of 5
For ∫x²ln x dx, which choice of u does LIATE recommend?
Question 3 of 5
What is ∫ln(2x) dx?
Question 4 of 5
Each round of integration by parts on ∫x⁵cos x dx does what to the power of x?
Question 5 of 5
Two rounds of integration by parts on ∫e²ˣcos x dx bring back the original integral, call it I. What is the correct next move?
Standards: 6 (BC)
