Mistake Master
Integrating Using Integration by Parts
Trade One Integral for an Easier One
You'll learnwhere the parts formula comes from, how to choose u and dv so the trade is worth making, and how to carry the minus sign through to the end.
Substitution handles products where one factor is the derivative of the other's inside. Integration by parts handles the rest, and it evaluates nothing: it trades your integral for a different one. So it never succeeds or fails on its own — it succeeds when what you are left with is easier than what you started with, and the same formula hands back something worse the moment u and dv are chosen the other way round. Twelve short steps; press Next for each one.
Read all 12 steps as text
The product rule, integrated
Integrate the product rule \((uv)' = u'v + uv'\) across \([0, 1]\) and the region under it splits into two bands, one for each integral the rule leaves.
One term across the equals sign
The two bands add to \(\left[uv\right]_{a}^{b}\), so moving one of them to the other side gives \(\int u\,dv = uv - \int v\,du\) — and that move is where the minus sign comes from.
The standard trade
For \(\int x e^{x}dx\) take \(u = x\) and \(dv = e^{x}dx\): differentiating \(x\) gives \(1\), so the integral you are left with is just \(\int e^{x}dx\).
Check it the usual way
The trade gives \(\int x e^{x}dx = x e^{x} - e^{x} + C\), and laying the slope of that answer over the integrand settles it in one look.
Two legal choices
Both ways of splitting \(x e^{x}\) obey the formula, and only one is any use: \(u = x\) leaves \(e^{x}\), while \(u = e^{x}\) leaves \(\frac{x^{2}}{2}e^{x}\), which outgrows what you started with.
One factor in sight
A single factor is a product with \(1\) whenever you need it: for \(\int \ln x\,dx\) take \(dv = dx\), and the leftover integrand is the flat constant \(1\).
The power counts down
Each pass differentiates the polynomial factor once, so \(x^{2}\) becomes \(2x\) and then the constant \(2\) — two passes for a square, three for a cube.
Finish the repetition
Two passes give \(\int x^{2}e^{x}dx = x^{2}e^{x} - 2(xe^{x} - e^{x}) + C\), and the \(-2\) has to reach both terms inside the bracket.
With limits attached
For a definite integral the boundary term is evaluated at both ends and becomes a number, and the remaining integral keeps the same limits: \(\left[uv\right]_{a}^{b} - \int_a^b v\,du\).
The dropped minus sign
Write the formula with a plus and the answer becomes \(x e^{x} + e^{x}\), whose slope stands exactly \(2e^{x}\) above the integrand at every \(x\).
What that minus is worth
On the definite integral from Step 1 the same two quadratures combine to \(1\) with the minus and to \(4.44\) without it — one symbol, and a swing of \(3.44\).
The routine
Pick \(u\) so that differentiating it simplifies and \(dv\) so that you can integrate it, carry the minus, repeat until no \(x\) is left, and differentiate what you wrote.