Splitting the Product Rule
Integration by parts is the product rule run backwards. It trades one integral for another that is, with a good choice, much easier.
Where the formula comes from
The product rule says \((uv)' = u'v + uv'\). Integrate both sides: \(uv = \int u'v\,dx + \int uv'\,dx\). Rearranging gives the integration by parts formula. In differential notation, with \(du = u'\,dx\) and \(dv = v'\,dx\), it reads \(\int u\,dv = uv - \int v\,du\).
\int u\,dv = uv - \int v\,duChoosing u and dv
Split the integrand into \(u\), which you will differentiate, and \(dv\), which you must integrate. Pick \(u\) so that it gets simpler when differentiated, and \(dv\) so that you can integrate it. The LIATE order is a helpful guide for choosing \(u\): Logarithms, Inverse trig, Algebraic (powers of \(x\)), Trigonometric, Exponential. Whatever comes first in the list is usually the best \(u\).
Worked example: x e^x
\(\int x e^x\,dx\). Algebraic comes before exponential, so \(u = x\) and \(dv = e^x\,dx\). Then \(du = dx\) and \(v = e^x\). The formula gives \(xe^x - \int e^x\,dx = xe^x - e^x + C = (x - 1)e^x + C\). Differentiate to check: \(e^x + xe^x - e^x = xe^x\).
\int x e^x\,dx = (x-1)e^x + CWorked example: x cos x
\(\int x\cos x\,dx\): \(u = x\), \(dv = \cos x\,dx\), so \(du = dx\), \(v = \sin x\). Result: \(x\sin x - \int \sin x\,dx = x\sin x + \cos x + C\). If you had chosen \(u = \cos x\) instead, the new integral would contain \(x^2\), which is harder. A wrong choice is not fatal, but it is a clear signal to swap.
Worked example: ln x
\(\int \ln x\,dx\) looks like it has no product, but write it as \(\ln x \cdot 1\). Take \(u = \ln x\), \(dv = dx\), so \(du = \frac{1}{x}dx\), \(v = x\). Then \(\int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - x + C\). The same trick integrates \(\arctan x\) and \(\arcsin x\).
\int \ln x\,dx = x\ln x - x + CRepeated integration by parts
Sometimes one round is not enough. \(\int x^2 e^x\,dx\): with \(u = x^2\), you get \(x^2e^x - \int 2x e^x\,dx\), and the new integral needs parts again. Using the earlier result, the answer is \(e^x(x^2 - 2x + 2) + C\). For a power \(x^n\), you need \(n\) rounds; each round lowers the power by one.
The tabular shortcut
For integrals like \(\int x^3 \sin x\,dx\), make two columns: repeatedly differentiate \(x^3\) until you reach \(0\), and repeatedly integrate \(\sin x\). Multiply diagonally with alternating signs \(+, -, +, -\). This organises repeated parts and greatly reduces sign errors.
When the integral comes back
For \(\int e^x \sin x\,dx\), two rounds of parts bring back the original integral: \(I = e^x\sin x - e^x\cos x - I\). Treat \(I\) as an unknown and solve: \(2I = e^x(\sin x - \cos x)\), so \(I = \frac{1}{2}e^x(\sin x - \cos x) + C\). This 'solve for the integral' trick is elegant and comes up often.
\int e^x\sin x\,dx = \tfrac{1}{2}e^x(\sin x - \cos x) + CDefinite integrals by parts
For definite integrals, evaluate the \(uv\) term at the limits too: \(\int_a^b u\,dv = [uv]_a^b - \int_a^b v\,du\). For example, \(\int_0^1 x e^x\,dx = [(x - 1)e^x]_0^1 = 0 - (-1) = 1\).
Common mistakes
Choosing a \(dv\) you cannot integrate. Forgetting the minus sign in front of \(\int v\,du\). Dropping the constant when integrating \(dv\) is fine, but forgetting \(+C\) at the very end is not. Sign errors in repeated rounds; the tabular method helps. Forgetting to evaluate \(uv\) at both limits in a definite integral.
Try it yourself
Find \(\int x\sin(2x)\,dx\). Answer: \(u = x\), \(dv = \sin(2x)dx\), \(v = -\frac{1}{2}\cos(2x)\). Result: \(-\frac{x}{2}\cos(2x) + \frac{1}{4}\sin(2x) + C\). Then find \(\int x\ln x\,dx\): \(u = \ln x\), \(v = \frac{x^2}{2}\), giving \(\frac{x^2}{2}\ln x - \frac{x^2}{4} + C\).
Key takeaways
\(\int u\,dv = uv - \int v\,du\). Choose \(u\) to simplify when differentiated, guided by LIATE. Use repeated parts or the tabular method for powers of \(x\). If the original integral reappears, solve for it algebraically. For definite integrals, evaluate \(uv\) at both limits.
Flashcard
Integration by parts
Check your understanding
Which choice of u is best for the integral of x^2 ln x dx?
