TL;DR
Integration by parts turns the product rule around. It says the integral of equals minus the integral of . Use it when the integrand is a product, one piece is easy to integrate, and the other piece gets simpler when differentiated. You trade one integral for another that is often easier.
Where you'll see it: in computing the Gamma function (the factorial extended to non-whole numbers), in physics problems where a force or moment varies along a distance, and in deriving Laplace transforms.
Intuition
The product rule, read backwards
The product rule says that the derivative of a product of two functions is . Move one term to the other side: . Now integrate both sides. The integral of a derivative is the function itself, so
That is the whole rule. It assumes nothing new. It is the product rule run in reverse, which is also why it needs an Antiderivative to finish.
Why it helps
Some integrals resist direct methods but become easy after one swap. Take , which uses the exponential function. No standard table entry matches it directly. But the factor becomes simpler when you differentiate it (it becomes ), while keeps its shape when you integrate it. Give the derivative to and the integral to , and the leftover integral is trivial. The rule does not solve the integral; it moves the difficulty somewhere easier.
The plot shows a case where the rule gives an exact answer that is hard to see from the graph. The area under from to infinity is exactly .
- x e^(-x)
The math
Definition
For differentiable functions and ,
Here and are the two factors, and and are their derivatives. In differential notation, with and , the same statement reads . The indefinite form carries one constant of integration, which you add once at the end.
The definite form
For a definite integral with limits and ,
where . The boundary term is evaluated at both ends. Forgetting it is the most common error with definite integrals.
Choosing u
Pick to be the factor that gets simpler when differentiated, and let be the rest, which you must be able to integrate. A common rule of thumb, often called LIATE, ranks function types in the order logarithm, inverse trigonometric, algebraic (polynomial), trigonometric, exponential, and says to choose as the first type in that list that appears in the integrand. It is a heuristic, not a theorem.
Worked examples
Find .
- Pick and .
- Then and .
- Apply the rule: .
- The remaining integral is , so the result is .
- Check by differentiating: . The check matches the integrand.
The answer is . The polynomial factor dropped from degree 1 to degree 0, which is why the rule finished in one step.
Find , where is the natural Logarithm.
- Write the integrand as . Pick and .
- Then and .
- Apply the definite rule: .
- Boundary term: at it is ; at it is . So the bracket equals .
- The remaining integral is .
- Total: .
Check: the antiderivative gives . The area under between and is exactly one square unit.
The Gamma function is . It appears in probability (the gamma distribution) and statistics. Compute .
- Pick and .
- Then and .
- Apply the rule: .
- Boundary term: as grows, goes to , because the exponential shrinks faster than grows. At it is . So the bracket is .
- The remaining integral is .
- Total: .
The answer agrees with . The same steps give in general, which is how the Gamma function extends the factorial.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| Polynomial times , or | Works well; each pass lowers the polynomial degree | Differentiate the polynomial and integrate the trig or exponential part |
| Swapped choice in (taking ) | gives a harder integral | Choose as the factor that simplifies under differentiation |
| A lone function such as or | No obvious product to split | Write it as , take , |
| Product of and | The rule returns the original integral, so you loop | Apply the rule twice and solve the resulting equation for the integral |
| Composite function with its inner derivative present, such as | Parts does not simplify it | Try substitution (the Chain Rule run backwards) first |
| Definite integral with the boundary term dropped | A silent wrong answer | Always evaluate at both limits |
The looping case is worth seeing once. Let . Parts gives . Parts again on the new integral gives . Substituting, , so .
History
Integration by parts grows out of Gottfried Wilhelm Leibniz's calculus of differentials in the 1670s and 1680s, where the product of two quantities is handled in differential form. The English mathematician Brook Taylor stated the rule in its integral form in 1715, in his book on the method of increments. It caught on because it turns a class of integrals that resist direct methods into a sequence of simpler steps. Today it is taught alongside substitution as one of the two main techniques of integration.
Check yourself
QuestionWrite the integration by parts formula in the form .Show answer
. It is the product rule for , integrated on both sides and rearranged.
QuestionCompute .Show answer
Take and , so and . Then the integral is . The bracket is . The remaining integral is . The answer is .
QuestionWhy does the rule follow from the product rule, and not from some separate fact?Show answer
The product rule says . Integrating both sides gives , because the integral of a derivative returns the function. Rearranging gives the integration by parts formula. The rule is therefore a consequence of differentiation, not an extra axiom.
QuestionTo integrate , which factor should be u, and what is the result?Show answer
Take , because its derivative is simpler, and , which integrates easily to . The result is . Differentiating confirms it: .