Skip to content

Integration by Parts

Proposition

Let ff and gg be differentiable functions on [a,b][a, b] with f′f' and g′g' Riemann integrable. Then:

∫abf(x)g′(x) dx=f(b)g(b)−f(a)g(a)−∫abf′(x)g(x) dx,\int_a^b f(x)g'(x)\,\mathrm{d}x =f(b)g(b)-f(a)g(a) -\int_a^b f'(x)g(x)\,\mathrm{d}x,

or

∫abf(x) dg(x)=f(b)g(b)−f(a)g(a)−∫abg(x) df(x).\int_a^b f(x)\,\mathrm{d}g(x) =f(b)g(b)-f(a)g(a) -\int_a^b g(x)\,\mathrm{d}f(x).

If we consider the indefinite integral, we get:

∫f dg=fg−∫g df+C.\int f\,\mathrm{d}g = fg -\int g\,\mathrm{d}f+C.

Interpretation

Integration by parts is the product rule read backwards. Since (fg)′=f′g+fg′(fg)'=f'g+fg', integrating gives fgfg back, so an integral of fg′fg' can be traded for an integral of f′gf'g plus a boundary term. This helps when differentiating ff makes it simpler while g′g' is easy to integrate.

An increasing curve in the (u, v) plane dividing a rectangle into two regions, the integral of u dv on one side and the integral of v du on the other, which together give u2 v2 minus u1 v1.

Put u=f(x)u=f(x) and v=g(x)v=g(x). As xx runs from aa to bb, the point (u,v)(u,v) traces the curve from (u1,v1)(u_1,v_1) to (u2,v2)(u_2,v_2). The area below the curve is ∫v du\int v\,\mathrm{d}u and the area to its left is ∫u dv\int u\,\mathrm{d}v; together they fill the large rectangle minus the small one, so ∫u dv+∫v du=u2v2−u1v1\int u\,\mathrm{d}v+\int v\,\mathrm{d}u=u_2v_2-u_1v_1. With u1=f(a)u_1=f(a), u2=f(b)u_2=f(b) and so on, this is the second form of the formula. The picture assumes increasing positive ff and gg; the formula does not.

The differential notation dg=g′(x) dx\mathrm{d}g=g'(x)\,\mathrm{d}x rewrites the same product-rule integral. It identifies which factor is differentiated; it does not make dg\mathrm{d}g an unrelated integration variable.

The choice of ff and g′g' decides whether the method helps. For ∫xex dx\int x\mathrm{e}^x\,\mathrm{d}x, taking f(x)=xf(x)=x turns the new integrand into ex\mathrm{e}^x. The opposite choice f(x)=exf(x)=\mathrm{e}^x, g′(x)=xg'(x)=x is a common slip: it leads to x22ex−∫x22ex dx\frac{x^2}{2}\mathrm{e}^x-\int\frac{x^2}{2}\mathrm{e}^x\,\mathrm{d}x, which is harder than the original.

The same step proves the recursion Γ(x+1)=x Γ(x)\Gamma(x+1)=x\,\Gamma(x) of the gamma function. If the integrand is not defined at an endpoint, first work away from that endpoint and then take a limit, as in the second Example; this procedure also applies to improper integrals.


Key Results

  • Integration by parts follows directly from the product rule.
  • The method can be applied to both definite and indefinite integrals.
  • Appropriate choice of functions is essential for simplification.

Examples

  • Choose f(x)=xf(x)=x and g′(x)=exg'(x)=\mathrm{e}^x. Then f′(x)=1f'(x)=1 and g(x)=exg(x)=\mathrm{e}^x, so ∫xex dx=xex−ex+C=(x−1)ex+C\int x\mathrm{e}^x\,\mathrm{d}x=x\mathrm{e}^x-\mathrm{e}^x+C=(x-1)\mathrm{e}^x+C.
  • The expression x2ln⁡xx^2\ln x is not defined at zero but tends to 00 there, so it has a continuous extension to [0,1][0,1]. To evaluate its integral, apply integration by parts first on [ε,1][\varepsilon,1], with f(x)=ln⁡xf(x)=\ln x and g(x)=x3/3g(x)=x^3/3:
∫ε1x2ln⁡x dx=[x3ln⁡x3]ε1−13∫ε1x2 dx.\int_\varepsilon^1x^2\ln x\,\mathrm{d}x=\left[\frac{x^3\ln x}{3}\right]_\varepsilon^1 -\frac{1}{3}\int_\varepsilon^1x^2\,\mathrm{d}x.

Since ε3ln⁡ε→0\varepsilon^3\ln\varepsilon\to0 as ε↓0\varepsilon\downarrow0, the integral equals −1/9-1/9.


Prerequisites

Sources

Aliases: IBP, partial integration, integrate by parts Symbols: epsilon, gamma, integral, pi

Last updated: 27 October 2026 11:52