Reading history

Integration by Parts

5 min read Updated 0 views

Learn the integration by parts formula, choosing u with LIATE, integrating ln x, using the formula twice, the loop trick for eˣ sin x, and definite integrals.

How do you integrate x eˣ or ln x? Substitution does not help here, because no part is the derivative of another. Instead we use integration by parts. It comes from the product rule, and it lets us swap a hard integral for an easier one. This lesson shows the formula, how to choose the parts, and some tricks for harder cases.

In this lesson you will learn

  • Where the integration by parts formula comes from
  • How to choose u and dv using the LIATE order
  • How to integrate ln x and tan⁻¹ x
  • When to use the formula twice
  • The “loop” trick for eˣ sin x
  • Integration by parts with limits

You should know integration basics and integration by substitution.

Want to go deeper? Our step-by-step Calculus course builds differentiation and integration from basic limits to advanced techniques.

The Formula

The product rule says d(uv)/dx = u dv/dx + v du/dx. Integrate both sides and rearrange. This gives the formula.

Integration by parts

∫ u dv = uv − ∫ v du

We split the integral into two parts. One part, u, is differentiated. The other part, dv, is integrated. The goal is to make the new integral, ∫ v du, easier than the first one.

∫ x eˣ dx

u = x      →  du = dx
dv = eˣ dx →  v = eˣ

∫ x eˣ dx = x eˣ − ∫ eˣ dx
          = x eˣ − eˣ + C
          = eˣ(x − 1) + C

Choosing u: the LIATE Order

A wrong choice makes the integral harder. Choose u as the function that comes first in this list:

LetterTypeExample
LLogarithmicln x
IInverse trigonometrictan⁻¹ x
AAlgebraicx, x²
TTrigonometricsin x, cos x
EExponentialeˣ

The reason is simple. Logs and inverse trig functions become simpler when differentiated. Exponentials and trig functions are easy to integrate.

∫ x cos x dx          (A before T, so u = x)

u = x, dv = cos x dx  →  du = dx, v = sin x
= x sin x − ∫ sin x dx
= x sin x + cos x + C

Integrating ln x

There is only one function here. The trick is to write it as ln x × 1 and take dv = dx.

∫ ln x dx

u = ln x → du = (1/x) dx
dv = dx  → v = x

= x ln x − ∫ x × (1/x) dx
= x ln x − x + C

The same trick works for tan⁻¹ x. It gives x tan⁻¹ x − ½ ln(1 + x²) + C, using the f′/f rule at the end.

∫ x ln x dx           (L comes first, so u = ln x)

u = ln x, dv = x dx  →  du = dx/x, v = x²/2
= (x²/2) ln x − ∫ (x²/2)(1/x) dx
= (x²/2) ln x − x²/4 + C

Using the Formula Twice

With x² the first step leaves an integral with x. Apply the formula again.

∫ x² eˣ dx
= x² eˣ − ∫ 2x eˣ dx                 (u = x²)
= x² eˣ − 2(x eˣ − eˣ)               (from the first example)
= eˣ(x² − 2x + 2) + C

The Loop Trick

For eˣ sin x, neither part becomes simpler. After two steps the first integral comes back. Call it I and solve for I like an equation.

I = ∫ eˣ sin x dx

Step 1 (u = sin x, dv = eˣ dx):
I = eˣ sin x − ∫ eˣ cos x dx

Step 2 (u = cos x, dv = eˣ dx):
∫ eˣ cos x dx = eˣ cos x + ∫ eˣ sin x dx = eˣ cos x + I

So  I = eˣ sin x − eˣ cos x − I
   2I = eˣ(sin x − cos x)
    I = ½ eˣ(sin x − cos x) + C

Keep the choice the same

In step 2, keep the trig function as u, as in step 1. If you switch, you just undo step 1 and get I = I.

Definite Integrals

Put the limits on both parts of the formula: ∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du.

∫₀¹ x eˣ dx = [x eˣ − eˣ]₀¹
            = (e − e) − (0 − 1)
            = 1

Common Mistakes

  1. Choosing u = eˣ with x eˣ. The new integral, ∫ x²eˣ/2 dx, is harder than the first.
  2. A minus sign error in the second step. Put brackets around the whole new integral.
  3. Forgetting to differentiate u. du is the derivative of u, not u itself.
  4. Switching u and dv in the loop trick, which leads back to I = I.

Practice Exercises

Exercise 1. Find ∫ x sin x dx.

Show answer

u = x, dv = sin x dx, so v = −cos x. The answer is −x cos x + ∫ cos x dx = −x cos x + sin x + C.

Exercise 2. Evaluate ∫₁^e ln x dx.

Show answer

[x ln x − x]₁^e = (e × 1 − e) − (0 − 1) = 1.

Exercise 3. Find ∫ x e^(2x) dx.

Show answer

u = x, v = e^(2x)/2. The answer is (x/2)e^(2x) − ∫ e^(2x)/2 dx = (x/2)e^(2x) − e^(2x)/4 + C.

Frequently Asked Questions

Should I add the constant when I find v?

No. Any constant you add to v cancels out in the end. Add a single C at the very end of the working.

How do I know whether to use substitution or parts?

Try substitution first if one part is the derivative of another. Use parts when you have a product of two different kinds of function, such as a polynomial times an exponential.

Summary

  • ∫ u dv = uv − ∫ v du comes from the product rule.
  • Choose u by the LIATE order: logs, inverse trig, algebraic, trig, exponential.
  • ∫ ln x dx = x ln x − x + C, by treating ln x as ln x × 1.
  • Use the formula twice for x², and the loop trick for eˣ sin x.

Next: Area Between Curves and Volumes of Revolution.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *