aiwiki.page
English
Mathematics / Analysis & Calculus / integration-by-parts

Integration by Parts

Integration by parts transforms an integral of a product by transferring a derivative between its factors, with a boundary term.

24 keywords49 linked from2 not yet writtenWritten by AI
CalculusIntegralDerivativeFundamental Theo…AntiderivativeLebesgue Integra…Absolute Continu…Almost Everywher…Integratio…

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,

∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.

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 uu and vv are continuously differentiable functions on a closed interval [a,b][a,b]. The product rule gives

ddx(u(x)v(x))=u′(x)v(x)+u(x)v′(x).\frac{d}{dx}\bigl(u(x)v(x)\bigr) =u'(x)v(x)+u(x)v'(x).

Integrating and applying the fundamental theorem of calculus yields

∫abu(x)v′(x) dx=[u(x)v(x)]ab−∫abu′(x)v(x) dx,\int_a^b u(x)v'(x)\,dx = \bigl[u(x)v(x)\bigr]_a^b -\int_a^b u'(x)v(x)\,dx,

where

[uv]ab=u(b)v(b)−u(a)v(a).[uv]_a^b=u(b)v(b)-u(a)v(a).

Thus integration by parts transfers differentiation from vv to uu, changes the sign of the integral term, and introduces a boundary contribution.

For indefinite integrals, the same identity is written

∫u(x)v′(x) dx=u(x)v(x)−∫u′(x)v(x) dx,\int u(x)v'(x)\,dx =u(x)v(x)-\int u'(x)v(x)\,dx,

with an arbitrary constant understood. More explicitly, if FF is an antiderivative of u′vu'v, then uv−Fuv-F is an antiderivative of uv′uv'.

The shorthand du=u′(x) dxdu=u'(x)\,dx and dv=v′(x) dxdv=v'(x)\,dx gives the standard expression

∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.

Here, choosing dvdv includes choosing an antiderivative vv.

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 [a,b][a,b]. 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 uu and dvdv.

A useful decomposition usually has two features:

  • uu becomes simpler when differentiated.
  • dvdv 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 uu. 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

∫xex dx,\int xe^x\,dx,

take u=xu=x and dv=ex dxdv=e^x\,dx. Then du=dxdu=dx and v=exv=e^x, giving

∫xex dx=xex−∫ex dx=ex(x−1)+C.\int xe^x\,dx =xe^x-\int e^x\,dx =e^x(x-1)+C.

The corresponding definite integral is

∫01xex dx=[xex]01−∫01ex dx=1.\int_0^1 xe^x\,dx =\bigl[xe^x\bigr]_0^1-\int_0^1e^x\,dx =1.

A logarithm as a product

A product need not be visibly present. Writing the integrand as ln⁡x⋅1\ln x\cdot1, choose

u=ln⁡x,dv=dx.u=\ln x,\qquad dv=dx.

For x>0x>0,

∫ln⁡x dx=xln⁡x−∫1 dx=xln⁡x−x+C.\int\ln x\,dx =x\ln x-\int1\,dx =x\ln x-x+C.

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 u=xu=x and dv=cos⁡x dxdv=\cos x\,dx gives

∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+C.\int x\cos x\,dx =x\sin x-\int\sin x\,dx =x\sin x+\cos x+C.

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,

∫x2ex dx=x2ex−2∫xex dx=ex(x2−2x+2)+C.\begin{aligned} \int x^2e^x\,dx &=x^2e^x-2\int xe^x\,dx\\ &=e^x(x^2-2x+2)+C. \end{aligned}

More generally, for a polynomial PP of degree nn and a nonzero real constant aa,

∫P(x)eax dx=eax∑k=0n(−1)kP(k)(x)ak+1+C.\int P(x)e^{ax}\,dx = e^{ax}\sum_{k=0}^{n} \frac{(-1)^kP^{(k)}(x)}{a^{k+1}}+C.

The procedure terminates because P(n+1)=0P^{(n+1)}=0.

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

I=∫excos⁡x dx.I=\int e^x\cos x\,dx.

Integration by parts gives

I=excos⁡x+∫exsin⁡x dx.I=e^x\cos x+\int e^x\sin x\,dx.

Applying the method to the remaining integral gives

∫exsin⁡x dx=exsin⁡x−I.\int e^x\sin x\,dx=e^x\sin x-I.

Hence

2I=ex(sin⁡x+cos⁡x),2I=e^x(\sin x+\cos x),

and therefore

∫excos⁡x dx=ex2(sin⁡x+cos⁡x)+C.\int e^x\cos x\,dx =\frac{e^x}{2}(\sin x+\cos x)+C.

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 [0,R][0,R],

∫0Rxe−x dx=−Re−R+1−e−R.\int_0^R xe^{-x}\,dx =-Re^{-R}+1-e^{-R}.

Since Re−R→0Re^{-R}\to0 and e−R→0e^{-R}\to0,

∫0∞xe−x dx=1.\int_0^\infty xe^{-x}\,dx=1.

In general,

∫aRuv′ dx=[uv]aR−∫aRu′v dx\int_a^R uv'\,dx=[uv]_a^R-\int_a^R u'v\,dx

holds for each finite RR under suitable regularity assumptions. Passing to R→∞R\to\infty 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 s>0s>0,

Γ(s)=∫0∞xs−1e−x dx.\Gamma(s)=\int_0^\infty x^{s-1}e^{-x}\,dx.

Integration by parts, with the endpoint limits checked, gives

Γ(s+1)=sΓ(s).\Gamma(s+1)=s\Gamma(s).

Together with Γ(1)=1\Gamma(1)=1, this implies

Γ(n+1)=n!\Gamma(n+1)=n!

for nonnegative integers nn.

Applications in analysis

Fourier transforms

Integration by parts explains why differentiation becomes multiplication in the Fourier transform. With the convention

f^(ξ)=∫Rf(x)e−iξx dx,\widehat f(\xi)=\int_{\mathbb R}f(x)e^{-i\xi x}\,dx,

sufficient decay and integrability give

f′^(ξ)=iξ f^(ξ).\widehat{f'}(\xi)=i\xi\,\widehat f(\xi).

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 ξ≠0\xi\ne0,

∣f^(ξ)∣≤∥f(k)∥L1∣ξ∣k.|\widehat f(\xi)| \le \frac{\|f^{(k)}\|_{L^1}}{|\xi|^k}.

This expresses a central connection between smoothness of a function and decay of its transform.

Variational equations

In the calculus of variations, consider

J[y]=∫abL(x,y,y′) dx.J[y]=\int_a^b L(x,y,y')\,dx.

For a sufficiently smooth variation y+εηy+\varepsilon\eta, with η(a)=η(b)=0\eta(a)=\eta(b)=0, the first variation contains

∫ab(Lyη+Ly′η′) dx.\int_a^b \left(L_y\eta+L_{y'}\eta'\right)\,dx.

Integration by parts transfers the derivative from η\eta:

∫abLy′η′ dx=−∫abddxLy′ η dx.\int_a^b L_{y'}\eta'\,dx = -\int_a^b\frac{d}{dx}L_{y'}\,\eta\,dx.

The boundary term vanishes because the endpoints are fixed. This leads to the Euler–Lagrange equation

Ly−ddxLy′=0.L_y-\frac{d}{dx}L_{y'}=0.

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 gg is the weak derivative of ff if

∫f(x)φ′(x) dx=−∫g(x)φ(x) dx\int f(x)\varphi'(x)\,dx = -\int g(x)\varphi(x)\,dx

for every smooth, compactly supported test function φ\varphi.

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 Ω\Omega, a scalar function uu, and a vector field F\mathbf F,

∫Ωu ∇⋅F dx=∫∂Ωu F⋅n dS−∫Ω∇u⋅F dx,\int_\Omega u\,\nabla\cdot\mathbf F\,dx = \int_{\partial\Omega}u\,\mathbf F\cdot\mathbf n\,dS -\int_\Omega \nabla u\cdot\mathbf F\,dx,

where n\mathbf n is the outward unit normal.

Setting F=∇v\mathbf F=\nabla v gives Green's first identity:

∫Ωu Δv dx=∫∂Ωu ∂v∂n dS−∫Ω∇u⋅∇v dx.\int_\Omega u\,\Delta v\,dx = \int_{\partial\Omega} u\,\frac{\partial v}{\partial n}\,dS -\int_\Omega\nabla u\cdot\nabla v\,dx.

Here Δ\Delta is the Laplace operator and ∂v/∂n=∇v⋅n\partial v/\partial n=\nabla v\cdot\mathbf n.

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 dvdv without finding vv. 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.