Integration by parts is a method in calculus that transforms an integral of a product into a boundary term and another integral. It reverses the product rule for differentiation. In its familiar notation,
The method is useful when differentiating one factor and integrating the other produces a simpler expression. Beyond evaluating integrals, it is a fundamental tool for studying differential equations, Fourier analysis, variational problems, and generalized derivatives.
Formula and justification
Suppose and are continuously differentiable functions on a closed interval . The product rule gives
Integrating and applying the fundamental theorem of calculus yields
where
Thus integration by parts transfers differentiation from to , changes the sign of the integral term, and introduces a boundary contribution.
For indefinite integrals, the same identity is written
with an arbitrary constant understood. More explicitly, if is an antiderivative of , then is an antiderivative of .
The shorthand and gives the standard expression
Here, choosing includes choosing an antiderivative .
Continuous differentiability is sufficient but not necessary. In the setting of the Lebesgue integral, the definite formula remains valid when both functions are absolutely continuous on . Their derivatives then exist almost everywhere, are integrable, and recover the functions by integration.
Choosing the factors
Integration by parts is an identity, not a guarantee of simplification. Its practical value depends on the choice of and .
A useful decomposition usually has two features:
- becomes simpler when differentiated.
- has an accessible antiderivative.
For instance, a polynomial loses degree under differentiation, whereas an exponential function retains its basic form under integration. Products of these types are therefore natural candidates.
A common classroom mnemonic, LIATE, suggests considering logarithmic, inverse trigonometric, algebraic, trigonometric, and exponential factors, in that order, as candidates for . This is a heuristic rather than a theorem. The structure of the resulting integral takes precedence over the mnemonic.
Unlike integration by substitution, which reverses the chain rule, integration by parts reverses differentiation of a product. The two methods can also be combined.
Basic examples
A polynomial times an exponential
For
take and . Then and , giving
The corresponding definite integral is
A logarithm as a product
A product need not be visibly present. Writing the integrand as , choose
For ,
This illustrates why a natural logarithm is often chosen as the differentiated factor: its derivative is simpler even though its antiderivative is not immediately apparent.
A trigonometric example
Taking and gives
Repeated integration of trigonometric functions remains manageable because their derivatives and antiderivatives cycle among a small set of functions.
Repeated and cyclic integration
Repeated integration by parts
If the differentiated factor continues to simplify, integration by parts can be repeated. For example,
More generally, for a polynomial of degree and a nonzero real constant ,
The procedure terminates because .
Tabular integration by parts organizes this process into columns of successive derivatives of one factor and successive antiderivatives of the other, with alternating signs. It is bookkeeping for repeated use of the same identity, not a different integration principle.
Cyclic integrals
Repeated application sometimes returns the original integral rather than eliminating it. The resulting equation can then be solved algebraically.
Let
Integration by parts gives
Applying the method to the remaining integral gives
Hence
and therefore
The algebra can be carried out using chosen antiderivatives, with the arbitrary constant restored at the end.
Improper integrals and endpoint limits
For an infinite interval or a singular endpoint, integration by parts must first be applied on a truncated interval. Limits are taken only afterward.
For example, on ,
Since and ,
In general,
holds for each finite under suitable regularity assumptions. Passing to requires examining the boundary term and the transformed integral. If both have finite limits, the original improper integral converges and the limiting formula is valid. If they diverge separately, they cannot simply be treated as a difference of infinities.
The gamma function supplies an important example. For real ,
Integration by parts, with the endpoint limits checked, gives
Together with , this implies
for nonnegative integers .
Applications in analysis
Fourier transforms
Integration by parts explains why differentiation becomes multiplication in the Fourier transform. With the convention
sufficient decay and integrability give
The boundary term vanishes because of the decay assumptions.
Conversely, applying integration by parts to the transform integral can yield decay estimates. If the required derivatives are integrable and the relevant boundary terms vanish, then for ,
This expresses a central connection between smoothness of a function and decay of its transform.
Variational equations
In the calculus of variations, consider
For a sufficiently smooth variation , with , the first variation contains
Integration by parts transfers the derivative from :
The boundary term vanishes because the endpoints are fixed. This leads to the Euler–Lagrange equation
When endpoint variations are not required to vanish, the boundary term instead contributes to natural boundary conditions.
Weak derivatives
Integration by parts also motivates the definition of a weak derivative. A locally integrable function is the weak derivative of if
for every smooth, compactly supported test function .
There is no boundary contribution because the test function vanishes outside a compact subset of the domain. This definition extends differentiation to functions that need not have classical derivatives everywhere. It is central to Sobolev spaces, distribution theory, and the formulation of a weak solution of a differential equation.
Higher-dimensional form
The higher-dimensional analogue follows from the divergence theorem. For a sufficiently regular bounded domain , a scalar function , and a vector field ,
where is the outward unit normal.
Setting gives Green's first identity:
Here is the Laplace operator and .
This identity is used in boundary-value problems and the finite element method. It transfers derivatives from an unknown function to a test function, permitting formulations that require less classical differentiability.
Limitations and common errors
Integration by parts rearranges an integral; it does not necessarily make it easier or produce an elementary antiderivative. An unsuitable choice of factors may increase complexity or merely reproduce the original problem.
Frequent errors include:
- Omitting the boundary term. It disappears only under specific endpoint, decay, support, or boundary conditions.
- Losing the minus sign. The transformed integral is subtracted.
- Choosing without finding . The method requires an antiderivative of the selected factor.
- Treating improper endpoints as ordinary values. Infinite or singular endpoints require limits.
- Assuming cancellation proves convergence. An identity on finite intervals does not justify subtracting divergent limiting quantities.
- Ignoring regularity assumptions. Classical formulas require enough differentiability and integrability; weaker settings require an appropriate generalized formulation.