STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Integration by parts, explained with examples

Integration by parts lets you integrate a product of two different kinds of function, such as x e<sup>x</sup> or x sin x. It is in AP Calculus BC and in the second year of A level Maths.

On this page
  1. The formula
  2. Where the formula comes from
  3. Choosing u: the LIATE rule
  4. Worked examples
  5. The tabular method
  6. Parts or substitution?
  7. Common mistakes
  8. Practice questions
  9. Frequently asked questions
  10. Key takeaways
  11. Related guides

The formula

∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx, often written more briefly as ∫ u dv = uv − ∫ v du.

You split the integrand into two parts. One part, u, you will differentiate. The other part, dv, you will integrate to get v. The formula swaps your original integral for a new one, ∫ v du, which should be easier. If it is not easier, you probably chose u and dv the wrong way round.

Where the formula comes from

Integration by parts is the product rule in reverse. The product rule says d(uv)/dx = u(dv/dx) + v(du/dx). Integrate both sides with respect to x: uv = ∫ u(dv/dx) dx + ∫ v(du/dx) dx. Rearranging gives the formula. Knowing this helps you remember it, and it is a short proof that A level questions occasionally ask for.

Choosing u: the LIATE rule

Choose u to be whichever part comes first in this list, because it gets simpler when you differentiate it:

  1. Logarithms, such as ln x
  2. Inverse trig functions, such as arctan x
  3. Algebraic functions, such as x or x²
  4. Trig functions, such as sin x
  5. Exponentials, such as ex

LIATE is a guide, not a law, but it works for nearly every exam question. The main idea is that polynomials shrink when differentiated, logs turn into simple fractions, while exponentials and sine or cosine stay the same size whichever way you go.

Worked examples

Example 1: x times an exponential

Find ∫ x ex dx.

Example 2: x times a trig function

Find ∫ x cos x dx.

Example 3: ln x on its own

Find ∫ ln x dx.

Example 4: a power times ln x

Find ∫ x² ln x dx.

Example 5: using parts twice

Find ∫ x² ex dx.

Example 6: the loop trick

Find I = ∫ ex sin x dx.

Example 7: a definite integral

Evaluate ∫01 x e2x dx.

The tabular method

When u is a polynomial that eventually differentiates to zero, a table saves time. Write u and its derivatives down one column, and dv and its repeated integrals down another. Multiply diagonally, with signs alternating +, −, +. For ∫ x² ex dx, the u column is x², 2x, 2, 0 and the dv column is ex, ex, ex, ex. The diagonals give x²ex − 2x ex + 2ex, the same answer as Example 5. In an exam, show enough working that the method is clear.

Parts or substitution?

Use substitution when one part of the integrand is the derivative of another part, such as ∫ 2x ex² dx, where 2x is the derivative of x². Use parts when the two factors are unrelated kinds of function, such as x and ex. If you are unsure, try substitution first, because it is usually quicker when it works.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Find ∫ x sin x dx.

Show answer
u = x: −x cos x + sin x + C.

Q2. Find ∫ x e−x dx.

Show answer
−x e−x − e−x + C.

Q3. Find ∫ x ln x dx.

Show answer
u = ln x: (x²/2) ln x − x²/4 + C.

Q4. Evaluate ∫1e ln x dx.

Show answer
[x ln x − x] from 1 to e = (e − e) − (0 − 1) = 1.

Q5. Find ∫ arctan x dx.

Show answer
u = arctan x, v = x: x arctan x − ½ln(1 + x²) + C.

Frequently asked questions

Is integration by parts on AP Calculus AB?

No. It is a BC-only topic, in Unit 6. AB students do not need it.

Is integration by parts in A level Maths?

Yes. It is in the second year of A level Maths, and the formula is in the formula booklet for most boards.

How do I know if I chose u correctly?

The new integral, ∫ v du, should be simpler than the one you started with. If it is more complicated, swap your choice.

Key takeaways