Integration by Parts: Formula, Strategy, and Examples
Solver AI TeamPublished Updated 10 min read
Master integration by parts with the complete formula, the LIATE strategy for choosing u and dv, detailed worked examples from simple to advanced, and practice problems.
Frequently asked questions
How do you choose u and dv in integration by parts?
Pick u as the function that gets simpler when you differentiate it, and let dv be everything else, as long as you can integrate it. The LIATE order (logarithmic, inverse trig, algebraic, trig, exponential) ranks the choices: the earliest type in the list is usually u. It is a guideline, not a law.
When should you use integration by parts instead of u-substitution?
Use integration by parts for a product of two different kinds of functions, such as x·eˣ or x·sin(x), where no inner function has its derivative sitting beside it. If the integrand is a composition whose inner derivative appears as a factor, like x·e^(x²), u-substitution is faster.
How do you integrate ln(x) by parts?
Write ln(x) as ln(x)·1, then let u = ln(x) and dv = dx. This gives du = (1/x) dx and v = x, so the integral is x·ln(x) − ∫ 1 dx. The result is x·ln(x) − x + C.
What is the tabular method for integration by parts?
The tabular method is a shortcut for repeated rounds. List u and its derivatives until you reach 0, list dv and its integrals beside it, and multiply diagonally with alternating signs starting at plus. It works best when u is a polynomial, because the derivatives end at zero.
What do you do when integration by parts takes you back to the original integral?
Treat the original integral as an unknown I. After two rounds, as with ∫ eˣ·sin(x) dx, you get an equation like I = eˣ·sin(x) − eˣ·cos(x) − I. Add I to both sides and divide by 2 to solve for I. Do not forget the constant C.
Integration by parts is the technique for integrating a product of two functions when basic rules and u-substitution fail. It comes from the product rule: the integral of u dv equals u times v, minus the integral of v du.
Rearranging the product rule d/dx [u · v] = u · v' + v · u' and integrating both sides gives the integration by parts formula:
The Rule: Integration by Parts
∫ u dv = uv − ∫ v du
The Key Insight
The idea is simple: if the original integral ∫ u dv is hard, maybe the new integral ∫ v du is easier. You are trading one integral for another, hopefully simpler, one.
The formula requires you to split the integrand into two pieces: one piece you call u (which you will differentiate to get du) and the rest you call dv (which you will integrate to get v). Choosing wisely is the key skill: a poor choice can make the integral harder instead of easier.
Integration by parts is typically introduced in Calculus II (or AP Calculus BC) and is one of the most frequently tested techniques on exams. It handles integrals like ∫ x·eˣ dx, ∫ x·sin(x) dx, ∫ ln(x) dx, and ∫ eˣ·cos(x) dx that none of the simpler methods can touch.
How to Choose u and dv — The LIATE Rule
The success of integration by parts hinges on choosing the right u and dv. A bad choice leads to a more complicated integral; a good choice simplifies it. The LIATE rule is a widely used guideline that tells you what to pick for u by priority.
Definition — LIATE
LIATE stands for: L — Logarithmic functions (ln(x), log(x)). I — Inverse trig functions (arcsin(x), arctan(x)). A — Algebraic functions (x, x², x³, polynomials). T — Trigonometric functions (sin(x), cos(x)). E — Exponential functions (eˣ, 2ˣ).
The function that appears earliest in LIATE should be your choice for u, and everything else goes into dv.
Examples of LIATE in action
For example, in ∫ x·eˣ dx, x is algebraic (A) and eˣ is exponential (E). Since A comes before E, let u = x and dv = eˣ dx.
In ∫ ln(x)·x² dx, ln(x) is logarithmic (L) and x² is algebraic (A). Since L comes before A, let u = ln(x) and dv = x² dx.
The Key Insight
The LIATE rule is a guideline, not a law — it works in the vast majority of cases, but occasionally you may need to try a different split. The underlying principle is: choose u to be the function that becomes simpler when differentiated, and dv to be something you can easily integrate.
Step-by-Step Example: ∫ x·eˣ dx
Let's work through the classic example ∫ x·eˣ dx step by step.
Example — ∫ x·eˣ dx
Choose u and dv
Using LIATE, x is algebraic and eˣ is exponential, so let u = x and dv = eˣ dx.
Find du and v
Differentiate u: du = dx. Integrate dv: v = eˣ.
Apply the formula
∫ x·eˣ dx = uv − ∫ v du = x·eˣ − ∫ eˣ dx.
Evaluate the remaining integral
∫ eˣ dx = eˣ.
Combine
∫ x·eˣ dx = x·eˣ − eˣ + C = eˣ(x − 1) + C.
Answer∫ x·eˣ dx = eˣ(x − 1) + C
You can verify this by differentiating: d/dx [eˣ(x − 1)] = eˣ(x − 1) + eˣ(1) = eˣ·x − eˣ + eˣ = x·eˣ.
The Key Insight
The strategy worked because differentiating u = x reduced it to a constant (du = dx), and integrating dv = eˣ dx was trivial (v = eˣ). The new integral ∫ eˣ dx was much simpler than the original.
When You Need to Apply It Twice
Some integrals require two rounds of integration by parts. The classic example is ∫ x²·eˣ dx.
Example 1 — ∫ x²·eˣ dx
Round 1
Let u = x², dv = eˣ dx. Then du = 2x dx, v = eˣ. The formula gives ∫ x²·eˣ dx = x²·eˣ − ∫ 2x·eˣ dx. The new integral ∫ 2x·eˣ dx is simpler (the power of x dropped from 2 to 1), but it still requires integration by parts.
Round 2
For ∫ 2x·eˣ dx, let u = 2x, dv = eˣ dx. Then du = 2 dx, v = eˣ. So ∫ 2x·eˣ dx = 2x·eˣ − ∫ 2eˣ dx = 2x·eˣ − 2eˣ.
Combine everything
∫ x²·eˣ dx = x²·eˣ − (2x·eˣ − 2eˣ) + C = eˣ(x² − 2x + 2) + C.
Answereˣ(x² − 2x + 2) + C
The Key Insight
In general, if u is a polynomial of degree n and dv involves eˣ or a trig function, you will need n rounds of integration by parts. Each round reduces the polynomial degree by one.
The boomerang technique
Another case requiring two applications is ∫ eˣ·sin(x) dx. Here, integration by parts twice brings you back to the original integral, and you solve for it algebraically:
Example 2 — ∫ eˣ·sin(x) dx (boomerang)
I = eˣ·sin(x) − eˣ·cos(x) − I
so 2I = eˣ(sin(x) − cos(x))
AnswerI = ½·eˣ(sin(x) − cos(x)) + C
This "boomerang" technique is a favorite on exams.
Integration by Parts for ln(x) and Inverse Trig
Integration by parts is the standard method for integrals involving ln(x) or inverse trig functions, because these functions are easy to differentiate but hard (or impossible) to integrate directly.
Example 1 — ∫ ln(x) dx
This looks like a single function, but you can write it as ∫ ln(x) · 1 dx.
Let u = ln(x) and dv = dx. Then du = (1/x) dx and v = x.
The formula gives ∫ ln(x) dx = x·ln(x) − ∫ x · (1/x) dx = x·ln(x) − ∫ 1 dx = x·ln(x) − x + C.
Answer∫ ln(x) dx = x·ln(x) − x + C
This is a result worth memorizing.
Example 2 — ∫ arctan(x) dx
Write as ∫ arctan(x) · 1 dx.
Let u = arctan(x), dv = dx. Then du = 1/(1 + x²) dx and v = x.
The formula gives ∫ arctan(x) dx = x·arctan(x) − ∫ x/(1 + x²) dx.
The remaining integral is a standard substitution: let w = 1 + x², dw = 2x dx, so ∫ x/(1 + x²) dx = ½·ln|1 + x²|.
The pattern for all these integrals is the same: let u be the function you know how to differentiate, and let dv = dx.
The Tabular Method for Repeated Parts
When u is a polynomial, the tabular method (also called the DI method) does all the rounds in one table. The derivatives of u eventually reach zero, so the table ends by itself.
Build two columns
List u and its successive derivatives in the left column until you reach 0. List dv and its successive integrals in the right column.
Alternate the signs
Start with + and alternate +, −, +, − down the rows.
Multiply diagonally
Multiply each left entry by the right entry one row below it, apply the sign, and add the products.
Example: ∫ x³·eˣ dx with the tabular method
Left column (derivatives of x³): x³, 3x², 6x, 6, 0. Right column (eˣ and its integrals): eˣ, eˣ, eˣ, eˣ, eˣ.
The tabular method does not suit ln(x) or inverse trig functions, since their derivatives never reach zero. Use the ordinary formula for those.
Common Mistakes to Avoid
Mistake 1: Dropping the minus sign
The formula is uv − ∫ v du. In repeated rounds, a missed minus sign carries into every later step, so write each round out in full.
Mistake 2: Using it when substitution is the right tool
Integration by parts fits a product of two different kinds of functions, such as a polynomial times an exponential. For a composition such as x·e^(x²), try u-substitution first.
Mistake 3: Switching u and dv and making it harder
If the new integral ∫ v du is more complicated than the original, swap your choices. For example, with ∫ x·eˣ dx, setting u = eˣ and dv = x dx leads to ∫ x²/2 · eˣ dx, which is worse.
Mistake 4: Forgetting the constant
An indefinite integral always ends with + C. A definite integral has no C, but it does need the boundary term [uv] evaluated at both limits.
Definite Integrals and the Boundary Term
For definite integrals, the integration by parts formula becomes:
The Rule — Definite Integration by Parts
∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du
The boundary term [uv]ₐᵇ means you evaluate u·v at the upper limit and subtract its value at the lower limit.
Example 1 — ∫₀¹ x·eˣ dx
Evaluate ∫₀¹ x·eˣ dx.
Using the result from earlier, ∫ x·eˣ dx = eˣ(x − 1).
When applying integration by parts to definite integrals, you can either find the antiderivative first and then evaluate at the bounds, or carry the bounds through every step. Both approaches give the same answer. Most students find it cleaner to find the full antiderivative first, then plug in the limits at the end.
Practice Problems
Problem 1 — ∫ x·cos(x) dx
Evaluate ∫ x·cos(x) dx.
Answer: Let u = x, dv = cos(x) dx. Then du = dx, v = sin(x).
Hint: Apply integration by parts twice and solve for the integral algebraically.
Answer½·eˣ(sin(x) + cos(x)) + C
The Takeaway
If you want to check your integration by parts work or see the full breakdown of which function to choose for u and dv, scan the problem with Solver AI for a complete step-by-step solution.