When you need to integrate a product of two functions — like \(x\,e^x\) or \(x\,\ln x\) — neither basic rules nor u-substitution will work directly. Integration by Parts (IBP) is the technique for these cases.
The formula is: \(\int u\,dv = uv - \int v\,du\). You split the integrand into two pieces: \(u\) (which you differentiate) and \(dv\) (which you integrate). The result trades your hard integral for (hopefully) an easier one on the right.
The secret is in the choice. Pick \(u\) to be the function that gets simpler when differentiated, and \(dv\) to be the rest — something you can actually integrate.
Derived from the product rule: \(\frac{d}{dx}[uv] = u'v + uv'\). Rearranging and integrating both sides gives the formula. The \(uv\) term on the right requires no integration — just evaluate. The remaining integral \(\int v\,du\) should be simpler than what you started with.
The product rule says \((uv)' = u'v + uv'\). Integrate both sides: \(uv = \int u'v\,dx + \int uv'\,dx\). Rearrange: \(\int uv'\,dx = uv - \int u'v\,dx\). In \(dv\) notation, \(v' dx = dv\) and \(u' dx = du\), giving \(\int u\,dv = uv - \int v\,du\). You're literally un-doing the product rule.
Sometimes \(\int v\,du\) is still hard, and you apply IBP again. For \(\int x^2 e^x\,dx\), you need it twice. For \(\int e^x \sin x\,dx\), you apply it twice and the original integral reappears — then you solve algebraically for it. This "circular" trick is beautiful and exam-worthy.
| Choose | Compute | |
|---|---|---|
| u | \(u = x\) | \(du = dx\) |
| dv | \(dv = e^x\,dx\) | \(v = e^x\) |
\(v=\sin x\)
\(= x\sin x - \displaystyle\int \sin x\,dx\)
\(= x\sin x + \cos x + C\)
\(du=\frac{1}{x}dx,\ v=x\)
\(= x\ln x - \displaystyle\int dx\)
\(= x\ln x - x + C\)
IBP again on \(\int xe^x\,dx\):
\(= e^x(x^2-2x+2)+C\)
Solve: \(2I = e^x(\sin x - \cos x)\)
\(I = \frac{e^x(\sin x - \cos x)}{2}+C\)
Ready to test your knowledge?
Integration by Parts is a core technique in every Calculus II quiz on BUders.
Go to Calculus II Quizzes →