Math Solver Free

Calculus

Integration by Parts: Formula, LIATE and Worked Examples

Math Solver Free Team

Student applying integration by parts on paper, choosing u and dv and working through the formula step by step

Integration by parts is the product rule read in reverse: ∫u dv = uv − ∫v du. It trades one integral for another, and the trade is worth making when the new integral is simpler than the old one. One-line summary: choose u to be the factor that gets simpler when differentiated, and let dv be everything else. Headline example: ∫x·eˣ dx = eˣ(x − 1) + C — the x disappears after one round because differentiating x reduces it to 1. This guide explains how to choose u with the LIATE heuristic, works three examples step by step (including the famous ∫ln(x) dx, where dv is invisible), and finishes with the sign and table mistakes that corrupt most first attempts. Every result below was verified symbolically, and each can be re-checked by differentiating the answer.

Choosing u: the LIATE heuristic

Split the integrand into u (to be differentiated) and dv (to be integrated, including dx). The choice decides everything: a good u becomes simpler when differentiated, and dv must be something you can actually integrate. When the integrand is a product of different types, the LIATE order gives a reliable first guess for u — take the factor whose type appears earliest in the list:

  • L — Logarithmic: ln(x), log₂(x)
  • I — Inverse trigonometric: arctan(x), arcsin(x)
  • A — Algebraic: x, x², 3x − 1
  • T — Trigonometric: sin(x), cos(x)
  • E — Exponential: eˣ, 2ˣ

Everything not chosen as u becomes dv. LIATE works because differentiation demotes each type in a helpful direction: logarithms and inverse trig functions differentiate into algebraic expressions, algebraic factors lose a degree each round, while trig and exponential functions cycle without growing — safe to integrate. LIATE is a heuristic, not a theorem: it can be beaten by experience on specific integrals, but as a default it picks the winning split in the great majority of textbook cases. If the resulting ∫v du is harder than what you started with, you chose backwards — swap u and dv and restart; that diagnosis takes ten seconds and is part of the method. The integral calculator applies the same choices, so you can compare your split against its steps.

Worked example 1: ∫x·eˣ dx = eˣ(x − 1) + C

LIATE: algebraic x (A) beats exponential eˣ (E), so u = x and dv = eˣ dx. Differentiate u: du = dx. Integrate dv: v = eˣ. Apply the formula: ∫u dv = uv − ∫v du = x·eˣ − ∫eˣ dx = x·eˣ − eˣ. Factor: eˣ(x − 1) + C. Verify by differentiating: d/dx [eˣ(x − 1)] = eˣ(x − 1) + eˣ = x·eˣ ✓ (a product-rule computation — fitting, since parts is the product rule reversed). Notice why the trade won: the new integral ∫eˣ dx is trivial, because differentiating u = x destroyed the polynomial factor entirely. Had you chosen u = eˣ instead, the new integral would have been ∫x²eˣ-style trouble in the other direction — the polynomial would have gained complexity instead of losing it.

Worked example 2: ∫x·cos(x) dx = x·sin(x) + cos(x) + C

LIATE: algebraic x (A) beats trigonometric cos(x) (T), so u = x and dv = cos(x) dx. Then du = dx and v = sin(x). Apply: uv − ∫v du = x·sin(x) − ∫sin(x) dx. The remaining integral is basic: ∫sin(x) dx = −cos(x), and the formula's minus sign turns it into −(−cos(x)) = +cos(x). Result: x·sin(x) + cos(x) + C. Verify: d/dx [x·sin(x) + cos(x)] = sin(x) + x·cos(x) − sin(x) = x·cos(x) ✓. This example carries the most common sign accident in the whole technique: the answer's last term is plus cos(x), not minus, because a negative integral meets the formula's built-in subtraction. Write the ∫v du step out in full — never do the sign in your head — and the accident cannot happen.

Worked example 3: ∫ln(x) dx = x·ln(x) − x + C

There is no visible product here, and that is the trick: ln(x) is ln(x) · 1, so set u = ln(x) (LIATE's L comes first) and dv = dx, the invisible factor. Then du = dx/x and v = x. Apply: uv − ∫v du = x·ln(x) − ∫x · (1/x) dx = x·ln(x) − ∫1 dx = x·ln(x) − x + C. Verify: d/dx [x·ln(x) − x] = ln(x) + x·(1/x) − 1 = ln(x) ✓. The same invisible-dv move handles ∫arctan(x) dx and ∫arcsin(x) dx, and it is why logarithms, which have no elementary antiderivative you can guess, surrender immediately to parts. Whenever an integrand is a single function you cannot integrate but can differentiate into something algebraic, parts with dv = dx is the intended door.

Sign discipline and the tabular method

Repeated parts — needed for ∫x²eˣ dx (two rounds) or ∫x² sin(x) dx — can be organised in a table: differentiate u down one column, integrate dv down the other, and combine diagonally with alternating signs +, −, +, −. The table is fast, and it is also where sign errors breed: the alternation must start with + and flip on every diagonal, and the final horizontal product joins the last row with the sign it lands on. Two safeguards keep table work honest. First, if the table and a written-out round disagree, believe the written-out round until you find the flipped sign — it is almost always a flipped sign. Second, whatever method you used, differentiate the final answer on a fresh line; parts answers are long, and the derivative check is short. A different classic outcome is the boomerang: ∫eˣ sin(x) dx returns to itself after two rounds, and you solve for it algebraically — the integral reappearing is a solution step there, not a failure, as long as it reappears with a different coefficient.

Parts or substitution? A quick decision

Try u-substitution first when the integrand is a composite whose inside derivative is present as a factor — ∫2x·cos(x²) dx dies in one substitution. Choose parts when the integrand is a product of unlike types (polynomial × exponential, polynomial × trig, log × anything) and no inside-derivative pair exists. ∫x·eˣ has no composite at all, so substitution has nothing to grab; parts is immediate. In larger computations the two methods chain — a substitution can manufacture a parts problem and vice versa — and inside multivariable work the same trade appears when an iterated integral in a double integral meets a product integrand. The reference treatment is OpenStax Calculus Volume 1 and its companion Volume 2, §3.1 (Integration by Parts), free online.

Common mistakes

  • Choosing u backwards. Taking u = eˣ in ∫x·eˣ makes ∫v du harder than the original. If the new integral is worse, swap the split — and use LIATE to avoid the wrong first guess.
  • Sign errors in −∫v du. The formula subtracts the whole new integral. When ∫v du itself is negative (as with ∫sin(x) dx = −cos(x)), the double negative must survive to the answer: x·sin(x) + cos(x), not minus.
  • Forgetting that dv includes dx — and, in the invisible case, forgetting dv exists at all. ∫ln(x) dx only opens when you write dv = dx explicitly.
  • Tabular sign drift. In the table method the diagonal signs alternate +, −, +, … starting with +. One missed flip corrupts every later term.
  • Stopping after uv. uv is the first half of the formula, not the answer: the −∫v du term still has to be integrated and combined.

Frequently asked questions

What is the integration by parts formula?

∫u dv = uv − ∫v du. It comes from reversing the product rule, and it trades the original integral for a new one that should be simpler.

How do I choose u? What is LIATE?

Choose u as the factor that simplifies when differentiated. LIATE orders the candidates: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential — pick the earliest type present as u, and the rest becomes dv.

What is ∫x·eˣ dx?

eˣ(x − 1) + C: with u = x and dv = eˣ dx, the formula gives x·eˣ − ∫eˣ dx, and factoring out eˣ finishes it.

How do you integrate ln(x) if there is no product?

Treat ln(x) as ln(x) · 1: set u = ln(x) and dv = dx. Then du = dx/x and v = x, giving x·ln(x) − ∫1 dx = x·ln(x) − x + C.

What if the new integral is harder than the original?

Your u and dv are backwards. Swap them and redo the split — a harder ∫v du is the method's own signal that the first choice was wrong.

About the Math Solver Team

The Math Solver Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team