Find a course

Module 2: Integration TechniquesLesson 5 of 1214 min

Integration by Parts

Reverse the product rule with integration by parts, pick u with LIATE, use the tabular shortcut and solve integrals that loop back to themselves.

Step 1 of 13Learn

The product rule, run backward

Substitution handles composite functions. Products of unlike functions, such as x·eˣ, x·sin x or x²·ln x, need a different tool.

Start with the product rule: (uv)′ = u′v + uv′. Integrate both sides and rearrange:

∫ u dv = uv − ∫ v du

That's integration by parts. You split the integrand into two pieces: u, which you'll differentiate, and dv, which you'll integrate. The formula trades your integral for a new one, ∫ v du, which you hope is simpler.

Example. ∫ x·eˣ dx. Choose u = x and dv = eˣ dx. Then du = dx and v = eˣ.

∫ x·eˣ dx = x·eˣ − ∫ eˣ dx = x·eˣ − eˣ + C.

Check by differentiating: (x·eˣ − eˣ)′ = eˣ + x·eˣ − eˣ = x·eˣ. Correct.

It worked because differentiating u = x turned it into 1, killing the troublesome factor, while integrating eˣ left it unchanged. Now imagine choosing the other way, u = eˣ and dv = x dx. Then v = x²/2 and the new integral is ∫ (x²/2)·eˣ dx, which is worse than where you started. The choice of u decides everything.

A practical tip: set up a small box with four entries, u and dv on top, du and v below. Filling the box before writing the formula keeps the pieces straight.

Step 2 of 13Practice · Choose one

For ∫ x²·ln x dx, which choice of u leads to a simpler integral?

Step 3 of 13Learn

Choosing u with LIATE

A widely used rule of thumb for choosing u is LIATE. Pick u as the function type that appears first in this list:

  1. Logarithmic: ln x
  2. Inverse trig: arctan x, arcsin x
  3. Algebraic: x, x², polynomials
  4. Trigonometric: sin x, cos x
  5. Exponential: eˣ, 2ˣ

Functions near the top get simpler when differentiated; those near the bottom are easy to integrate. LIATE isn't a law, but it is right for the large majority of textbook problems.

Example: ∫ x·cos x dx. Algebraic beats trig, so u = x and dv = cos x dx. Then du = dx and v = sin x: ∫ x·cos x dx = x·sin x − ∫ sin x dx = x·sin x + cos x + C.

Example: ∫ ln x dx. It looks like there's only one function, but write it as ln x · 1 dx. Take u = ln x and dv = dx. Then du = dx/x and v = x: ∫ ln x dx = x·ln x − ∫ x·(1/x) dx = x·ln x − x + C.

The same trick, using dv = dx, integrates arctan x and arcsin x.

Before reaching for parts, check whether substitution is simpler. ∫ x·e^(x²) dx is a product, but x is the derivative of the inner function x², so substitution finishes it in one line.

Step 4 of 13Practice · Diagram

LIATE: who should be u?

Higher layers make better u (they simplify when differentiated); lower layers make better dv (easy to integrate).

For ∫ x·arctan x dx, which layer supplies u?

Tap the shape that answers the question, then press Check.

LIATE: who should be u?Layer diagram: Logarithmic: ln x, Inverse trig: arctan x, arcsin x, Algebraic: x, x², polynomials, Trigonometric: sin x, cos x, Exponential: eˣ, 2ˣ.Logarithmic: ln xInverse trig: arctan x, arcsin xAlgebraic: x, x², polynomialsTrigonometric: sin x, cos xExponential: eˣ, 2ˣ
Logarithmic: ln x

Almost always u. Its derivative 1/x is simpler than ln x.

Inverse trig: arctan x, arcsin x

Derivatives are algebraic, e.g. 1/(1 + x²).

Algebraic: x, x², polynomials

Powers drop each time you differentiate.

Trigonometric: sin x, cos x

Easy to integrate, never simplifies by differentiating.

Exponential: eˣ, 2ˣ

The ideal dv: integrates to itself (up to a constant).

Step 5 of 13Practice · Select all that apply

Which of these integrals are natural candidates for integration by parts rather than substitution? Select all that apply.

Select all that apply.

Step 6 of 13Practice · Work it out

Evaluate ∫ from 0 to π of x·sin x dx. Round to three decimals.

Step 7 of 13Learn

Repeated parts and the tabular method

Some integrals need parts more than once. For ∫ x²·eˣ dx, the first round with u = x² gives

x²·eˣ − ∫ 2x·eˣ dx,

and the remaining integral needs one more round: ∫ 2x·eˣ dx = 2x·eˣ − 2eˣ. Altogether:

∫ x²·eˣ dx = x²·eˣ − 2x·eˣ + 2eˣ + C.

When u is a polynomial and dv is something you can integrate over and over (eˣ, sin, cos), the tabular method organizes this neatly. Make two columns:

Differentiate uIntegrate dv
x²eˣ
2xeˣ
2eˣ
0eˣ

Multiply along the diagonals (each entry on the left times the entry one row down on the right), with alternating signs +, −, +, …, and stop when the left column reaches 0:

+x²·eˣ − 2x·eˣ + 2·eˣ + C.

For ∫ x³·sin x dx, the table has four nonzero derivatives, so there are four terms. Without the table this is three rounds of parts and a sea of signs; with it, it takes a minute.

The tabular method only terminates when the u column eventually hits zero, so it is designed for polynomial u.

Step 8 of 13Compare

Tabular method for ∫ x²·eˣ dx

AspectDifferentiate (u column)Integrate (dv column)Sign
Row 1x²eˣ+
Row 22xeˣ−
Row 32eˣ+
Row 40 (stop)eˣ
ResultMultiply diagonally with signsx²eˣ − 2xeˣ + 2eˣ + C

Step 9 of 13Practice · Put in order

Put the steps of an integration by parts problem in order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Write uv − ∫ v du
  2. Add + C and check by differentiating
  3. Compute du by differentiating and v by integrating
  4. Split the integrand into u and dv, using LIATE as a guide
  5. Evaluate the remaining integral, repeating parts if needed

Step 10 of 13Diagram

Integration by parts, start to finish

Worked on ∫ x·eˣ dx.

Integration by parts, start to finishProcess diagram: Choose u and dv → Compute du and v → Apply uv − ∫ v du → Finish the new integral → Check by differentiating.Choose u and dvCompute du and vApply uv − ∫ v duFinish the newintegralCheck bydifferentiating

Tap a shape with to see more.

Choose u and dv

LIATE: u = x (algebraic), dv = eˣ dx.

Compute du and v

du = dx, v = eˣ.

Apply uv − ∫ v du

x·eˣ − ∫ eˣ dx.

Finish the new integral

x·eˣ − eˣ + C.

Check by differentiating

(x·eˣ − eˣ)′ = eˣ + x·eˣ − eˣ = x·eˣ, the original integrand.

Step 11 of 13Learn

When the integral comes back

Some integrals return to where they started, and that turns out to be good news.

Let I = ∫ eˣ·sin x dx. Choose u = sin x, dv = eˣ dx:

I = eˣ·sin x − ∫ eˣ·cos x dx.

Apply parts again to the new integral, again with the trig function as u (u = cos x, dv = eˣ dx):

∫ eˣ·cos x dx = eˣ·cos x + ∫ eˣ·sin x dx = eˣ·cos x + I.

Substitute back:

I = eˣ·sin x − eˣ·cos x − I.

The original integral appeared on the right side. Treat it as an unknown and solve: 2I = eˣ(sin x − cos x), so

I = (eˣ/2)(sin x − cos x) + C.

Two rules make this work. First, be consistent: if the trig function is u in round one, keep it as u in round two. Switching roles undoes the first step and you'll get the useless identity I = I. Second, add the + C only at the end, after solving for I.

The same loop solves ∫ sec³x dx, which shows up in arc length and trig substitution problems: its answer is (1/2)(sec x·tan x + ln|sec x + tan x|) + C.

Step 12 of 13Note

Step 13 of 13Practice · True or false

In ∫ x·eˣ dx, choosing u = eˣ and dv = x dx makes the problem easier.