Integration by parts: formulas, proof, and four useful patterns
The formulas
Integration by parts rewrites an integral of a product so that one factor is differentiated and the other integrated. In the familiar notation,
Equivalently, for suitably differentiable functions on an interval,
Indefinite-integral identities are understood up to an arbitrary constant. For continuously differentiable on a closed interval , the definite-integral formula is
The boundary term is ; forgetting the lower endpoint changes the answer.
Proof from the product rule
Differentiate the product:
Rearrange to and integrate both sides. For indefinite integrals this gives the first formula. Integrating from to and using the fundamental theorem of calculus gives the definite version.
A useful verbal reminder is: integrate one factor, keep the product, then subtract the integral with the differentiation transferred to the other factor. The minus sign comes directly from rearranging the product rule.
How to choose the factors
The goal is to simplify the remaining integral, not merely to apply the formula. Four common situations are:
- A logarithm: differentiating it often makes the expression simpler.
- A polynomial times a sine or cosine: differentiate the polynomial.
- A polynomial times an exponential: again differentiate the polynomial.
- An exponential times a trigonometric function: repeat the process until the original integral reappears, then solve for it.
These are useful patterns rather than requirements. Sometimes substitution or a trigonometric identity should come first.
Example 1: a logarithmic integral
Problem. Find for .
Choose and . Then
Integration by parts gives
For the remaining integral, choose , :
Hence
Here denotes the natural logarithm. The original Japanese article writes this logarithm as ; specifying the base avoids an ambiguity in English notation.
Choosing the logarithm as the factor to integrate would generally make the work longer. Differentiating it instead reduces its power at each step.
Example 2: a polynomial times a trigonometric function
Problem. Find .
Take , . Since ,
Apply integration by parts again, now with and :
Therefore
The polynomial degree drops from two to one and then to zero. Sines and cosines remain equally manageable when integrated, which makes this a productive choice of factors.
For a product containing or , a power-reduction identity may simplify the trigonometric factor before integration by parts.
Example 3: a polynomial times an exponential
Problem. Find .
Differentiate the polynomial and integrate repeatedly:
For a check, differentiate the last expression:
For with nonzero constant , remember that its antiderivative is , so each integration introduces a factor .
Example 4: an integral that returns to itself
Problem. Find .
Let denote an antiderivative of . Choose the exponential as the factor to integrate:
Use the same choice on the remaining integral:
Thus, up to an additive constant,
Move the final to the left and divide by two:
You could instead integrate the trigonometric factor each time. What matters is to make a consistent choice so that the second application produces a useful relation, rather than merely undoing the first.
Definite integrals use the same choices
For example, integrating from to gives
There is no arbitrary constant in the final definite value. For improper integrals, first apply the formula on a finite interval and then justify the required limits.
Checking your work
For an indefinite answer, differentiation is the most direct check. For a definite answer, check both endpoints and the sign of the value against the sign of the integrand. Repeated integration by parts should either simplify the remaining integral or produce an equation involving the original one.
The product-rule proof also resembles the cancellation behind telescoping sums: both methods move a difference or derivative from one part of an expression to another.
Related articles
- Equating rational and irrational parts: proof and worked problems
- How to simplify nested square roots, with three worked examples
- Conditional probability: the formula, information protocols, and worked examples
- Triple-angle identities: remember, derive, and apply them
- University of Tokyo science mathematics 2020: problems and solutions
About the author
Koki Saito
Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.
Full profile →Have a question or spotted an error? Contact us.