Skip to content

Integration by Parts Explained: Formula, Proof & Examples

Type
Lesson
Reading
8 min

Integration by parts is the product rule run backward: ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du. Use it to integrate a product when one factor becomes simpler after you differentiate it, as in ∫xsin⁡x dx\int x\sin x\,dx or ∫ln⁡x dx\int \ln x\,dx. This page gives the formula for indefinite and definite integrals, its three-line proof, the LIATE rule for choosing uu, six worked examples and the tabular shortcut.

Contents11 sections

The formula at a glance

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

The same rule in function notation, and for a definite integral:

∫f(x) g′(x) dx=f(x) g(x)−∫f′(x) g(x) dx,∫abu dv=[uv]ab−∫abv du.\int f(x)\,g'(x)\,dx = f(x)\,g(x) - \int f'(x)\,g(x)\,dx,\qquad \int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du.
  1. Choose uu with the LIATE order; everything else (including dxdx) is dvdv.
  2. Compute dudu by differentiating and vv by integrating.
  3. Substitute into uv−∫v duuv - \int v\,du.
  4. Finish the new integral, which should be simpler than the original.

What Is Integration by Parts? (The Definition)

Integration by parts is a rule for integrating a product of two functions. It does not compute the integral directly: it exchanges ∫u dv\int u\,dv for ∫v du\int v\,du. The trade pays off when differentiating uu makes it simpler (a polynomial loses a degree, ln⁡x\ln x becomes 1x\frac1x) while integrating dvdv does not make it worse (exe^x, sin⁡x\sin x and cos⁡x\cos x stay the same size).

The Integration by Parts Formula

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

Here uu is the factor you will differentiate and dvdv is the factor you will integrate. Read it as “uu times vv, minus the integral of v duv\,du“. You do not need a constant when you find vv from dvdv: any constant would cancel out of the final answer, so add +C+C only once, at the end.

There is no separate rule called “differentiation by parts”. Its counterpart for derivatives is the product rule, (uv)′=u′v+uv′(uv)' = u'v + uv', and integration by parts is exactly that rule integrated, as the proof below shows.

Where Does the Formula Come From? (The Proof)

Derivation of the Integration by Parts Formula

Start from the product rule for two differentiable functions u(x)u(x) and v(x)v(x):

ddx(uv)=u′v+uv′.\frac{d}{dx}\big(uv\big) = u'v + uv'.

Integrate both sides with respect to xx. The left side integrates back to uvuv:

uv=∫u′v dx+∫uv′ dx.uv = \int u'v\,dx + \int uv'\,dx.

Move one integral to the other side, and write du=u′ dxdu = u'\,dx, dv=v′ dxdv = v'\,dx:

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

For a definite integral, integrate the product rule from aa to bb instead. The left side becomes [uv]ab\big[uv\big]_a^b, which gives the definite form above.

When to Use Integration by Parts: Conditions and the LIATE Rule

When Should You Use It

  • The integrand is a product of two different kinds of function: xexx e^x, x2cos⁡xx^2\cos x, exsin⁡xe^x\sin x.
  • The integrand is a single function with no simple antiderivative but a simple derivative: ln⁡x\ln x, arctan⁡x\arctan x, arcsin⁡x\arcsin x. Take dv=dxdv = dx.
  • Not when the integrand contains a function and its derivative, such as x ex2x\,e^{x^2}: that is a substitution.

The LIATE Rule: Choosing u Intelligently

Pick uu as the function that comes first in this list; the other factor goes into dvdv.

LetterFunction typeExamples
LLogarithmicln⁡x\ln x, log⁡2x\log_2 x
IInverse trigonometricarctan⁡x\arctan x, arcsin⁡x\arcsin x
AAlgebraic (polynomials, powers)xx, x3x^3, x\sqrt{x}
TTrigonometricsin⁡x\sin x, cos⁡2x\cos 2x
EExponentialexe^x, 2x2^x

The logic: functions near the top get simpler when differentiated, functions near the bottom are easy to integrate. LIATE is a guideline, not a law. For ∫x3ex2dx\int x^3 e^{x^2}dx, the choice that works is u=x2u = x^2, dv=x ex2dxdv = x\,e^{x^2}dx, because x ex2x\,e^{x^2} is easy to integrate and ex2e^{x^2} alone is not.

Conditions for the Formula to Apply

The formula holds when uu and vv are differentiable with continuous derivatives on the interval of integration. For improper integrals, the boundary term [uv]\big[uv\big] must have a finite limit; this is how ∫0∞xe−xdx=1\int_0^\infty x e^{-x}dx = 1 is computed.

Step-by-Step Examples of Integration by Parts

Example 1: A Polynomial Times a Trigonometric Function

Evaluate ∫xsin⁡x dx\int x\sin x\,dx.

LIATE puts the algebraic factor first: u=xu = x, dv=sin⁡x dxdv = \sin x\,dx. Then du=dxdu = dx and v=−cos⁡xv = -\cos x.

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

The other choice, u=sin⁡xu = \sin x and dv=x dxdv = x\,dx, leads to ∫x22cos⁡x dx\int \frac{x^2}{2}\cos x\,dx: a harder integral than the one we started with.

Example 2: A Logarithm Using the “Multiply by 1” Trick

Evaluate ∫ln⁡x dx\int \ln x\,dx.

There is only one factor, so write ln⁡x=ln⁡x⋅1\ln x = \ln x\cdot 1: u=ln⁡xu = \ln x, dv=dxdv = dx. Then du=dxxdu = \frac{dx}{x} and v=xv = x.

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

Example 3: Cyclic Integration by Parts

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

Take u=cos⁡xu = \cos x, dv=exdxdv = e^x dx: I=excos⁡x+∫exsin⁡x dxI = e^x\cos x + \int e^x\sin x\,dx. Apply the rule again to the new integral with u=sin⁡xu = \sin x, dv=exdxdv = e^x dx:

I=excos⁡x+exsin⁡x−∫excos⁡x dx=ex(cos⁡x+sin⁡x)−I.I = e^x\cos x + e^x\sin x - \int e^x\cos x\,dx = e^x(\cos x + \sin x) - I.

The original integral came back. Solve for it: 2I=ex(sin⁡x+cos⁡x)2I = e^x(\sin x + \cos x), so

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

Keep the same type of function in uu both times (here, the trigonometric one). Switching to u=exu = e^x on the second step undoes the first step.

Example 4: Applying the Rule Twice

Evaluate ∫x2ex dx\int x^2 e^x\,dx.

First, u=x2u = x^2, dv=exdxdv = e^x dx: ∫x2ex dx=x2ex−2∫xex dx\int x^2e^x\,dx = x^2e^x - 2\int x e^x\,dx. Then u=xu = x, dv=exdxdv = e^x dx gives ∫xex dx=xex−ex\int xe^x\,dx = xe^x - e^x. Altogether:

∫x2ex dx=x2ex−2(xex−ex)+C=ex(x2−2x+2)+C.\int x^2e^x\,dx = x^2e^x - 2\left(xe^x - e^x\right) + C = e^x\left(x^2 - 2x + 2\right) + C.

Each application lowers the power of xx by one. For higher powers, the tabular method below does all the steps at once.

Example 5: An Inverse Trigonometric Function

Evaluate ∫arctan⁡x dx\int \arctan x\,dx.

As in Example 2, u=arctan⁡xu = \arctan x, dv=dxdv = dx: du=dx1+x2du = \frac{dx}{1+x^2}, v=xv = x. The remaining integral is a substitution with w=1+x2w = 1 + x^2:

∫arctan⁡x dx=xarctan⁡x−∫x1+x2 dx=xarctan⁡x−12ln⁡(1+x2)+C.\int \arctan x\,dx = x\arctan x - \int\frac{x}{1+x^2}\,dx = x\arctan x - \frac12\ln\left(1+x^2\right) + C.

Example 6: A Definite Integral

Evaluate ∫01xex dx\int_0^1 x e^x\,dx.

With u=xu = x, dv=exdxdv = e^x dx, use the definite form and evaluate the boundary term right away:

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

The Tabular Method: Integration by Parts at Speed

How the Tabular Method Works

When uu is a polynomial, repeated integration by parts follows a fixed pattern. The tabular (or DI) method writes it as a table: differentiate uu down one column until you reach 00, integrate dvdv down the other, and attach alternating signs +,−,+,−+, -, +, -.

SignD (differentiate)I (integrate)
++x3x^3cos⁡x\cos x
−-3x23x^2sin⁡x\sin x
++6x6x−cos⁡x-\cos x
−-66−sin⁡x-\sin x
00cos⁡x\cos x

Multiply each D entry by the I entry one row below and apply its sign:

∫x3cos⁡x dx=x3sin⁡x+3x2cos⁡x−6xsin⁡x−6cos⁡x+C.\int x^3\cos x\,dx = x^3\sin x + 3x^2\cos x - 6x\sin x - 6\cos x + C.

Graphical Interpretation of Integration by Parts

Geometric interpretation of integration by parts showing complementary areas under a curve in the uv-plane, with regions corresponding to the integral of u dv and the integral of v du partitioning the rectangle of area uv

Plot the curve traced by the point (u,v)(u, v) as xx goes from aa to bb. The area between the curve and the vv-axis is ∫u dv\int u\,dv, and the area between the curve and the uu-axis is ∫v du\int v\,du. Together they fill the difference of two rectangles, u(b)v(b)−u(a)v(a)u(b)v(b) - u(a)v(a). That is the definite formula: ∫u dv+∫v du=[uv]ab\int u\,dv + \int v\,du = \big[uv\big]_a^b.

Key Properties and Special Cases

Reduction Formulas

Applying the rule once to an integral with a power nn often gives the same integral with power n−1n-1 or n−2n-2. That relation is a reduction formula:

∫xnex dx=xnex−n∫xn−1ex dx,∫sin⁡nx dx=−sin⁡n−1xcos⁡xn+n−1n∫sin⁡n−2x dx.\int x^n e^x\,dx = x^n e^x - n\int x^{n-1}e^x\,dx,\qquad \int \sin^n x\,dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int\sin^{n-2}x\,dx.

Repeating the first one until n=0n = 0 gives ∫xnex dx\int x^n e^x\,dx for any nn; the second one handles every power of sin⁡x\sin x.

Integration by Parts for Definite Integrals

∫abu dv=[uv]ab−∫abv du\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du

Evaluate the boundary term [uv]ab\big[uv\big]_a^b as soon as it appears; there is no need to find the full antiderivative first. Example: ∫0π/2xcos⁡x dx=[xsin⁡x]0π/2−∫0π/2sin⁡x dx=π2−1\int_0^{\pi/2} x\cos x\,dx = \big[x\sin x\big]_0^{\pi/2} - \int_0^{\pi/2}\sin x\,dx = \frac{\pi}{2} - 1.

Common Mistakes

  • Losing the minus sign in uv−∫v duuv - \int v\,du, especially when vv itself is negative (v=−cos⁡xv = -\cos x).
  • Choosing uu backward. If the new integral is harder than the original, swap the roles of uu and dvdv.
  • Using it where substitution is needed. ∫xcos⁡(x2) dx\int x\cos(x^2)\,dx is a substitution (w=x2w = x^2), not a product to split.
  • Forgetting the boundary term in a definite integral, or evaluating it at only one limit.

Practice Problems

Ready to try it yourself? The integration by parts practice problems page has problems from easy to hard, each with a hint and a full step-by-step solution.

Frequently asked questions

What is the integration by parts formula?

∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du. For a definite integral: ∫abu dv=[uv]ab−∫abv du\int_a^b u\,dv = \big[uv\big]_a^b - \int_a^b v\,du.

Is there a “differentiation by parts” rule?

No. The derivative counterpart is the product rule, (uv)′=u′v+uv′(uv)' = u'v + uv'. Integration by parts is the product rule integrated and rearranged.

How do I know which function should be u?

Use LIATE: the first function in the list Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential becomes uu. If the new integral is harder, try the other choice.

Why is there no +C when finding v?

A constant cc added to vv adds cucu to the uvuv term and subtracts ∫c du=cu\int c\,du = cu from the integral term, so it cancels. One +C+C at the end is enough.

When does integration by parts not work?

When neither factor gets simpler by differentiation, or the integral of dvdv is not known. Integrals such as ∫sin⁡xx dx\int \frac{\sin x}{x}\,dx or ∫e−x2dx\int e^{-x^2}dx have no elementary antiderivative, whatever method you try.