Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus BC · Unit 6 · Step-Through Animation

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.

12 STEPS · 6 QUICK CHECKS · NOTHING IS EVALUATED, ONE INTEGRAL BECOMES ANOTHER · v2

trade one integral for another, and only a simpler one counts
Before you start
What you're looking at
One plot panel. Blue is always the integral you started with; violet is the one parts leaves you with; pink is an antiderivative and yellow the measured slope of a candidate answer.
The question
The formula swaps one integral for another and evaluates nothing. How do you tell whether the swap was worth making?
Step 1 / 12

Read all 12 steps as text
Step 1

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.

Step 2

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.

Step 3

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\).

Step 4

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.

Step 5

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.

Step 6

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\).

Step 7

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.

Step 8

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.

Step 9

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\).

Step 10

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\).

Step 11

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\).

Step 12

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.