Integration — Core Technique

Integration by Parts
The Reverse Product Rule

When substitution fails on a product of two functions, integration by parts takes over. Derived directly from the product rule, mastered through the LIATE strategy, and extended by the elegant tabular method and reduction formulae.

1Core Formula
20+Worked Examples
5LIATE Categories
3Special Cases
Share this page

§ 01Where the Formula Comes From

Integration by parts is not a trick, it is the product rule of differentiation run in reverse. Understanding that origin makes the formula memorable and tells you exactly when to use it.

Recall the product rule: if u and v are both differentiable functions of x, then the derivative of their product is

Product Rule
d/dx [u ⋅ v] = u ⋅ dv/dx + v ⋅ du/dx

Rearranging gives us u dv/dx = d(uv)/dx − v du/dx. Now integrate both sides with respect to x:

The Integration by Parts Formula
∫ u ⋅ dv = u ⋅ v − ∫ v ⋅ du
Equivalently written as ∫ u(x) v′(x) dx = u(x) v(x) − ∫ v(x) u′(x) dx

That is the entire formula. The left-hand side is the integral you want to evaluate. The right-hand side trades it for a new integral, ∫ v du. The art of integration by parts is choosing u and dv so that the new integral is simpler than the one you started with. A poor choice makes the new integral harder, or produces an endless loop, experience and the LIATE rule (§ 03) prevent both.

Two Notations, One Formula Some textbooks write the formula as ∫ u v′ dx = u v − ∫ u′ v dx, explicitly naming derivatives rather than differentials. Others use the compact differential form ∫ u dv = uv − ∫ v du. They are identical — choose whichever matches your course materials, and be consistent.

A constant of integration C is only needed once, at the very end of the calculation, not at every intermediate step. Adding it too early creates clutter without adding any information, since a constant plus a constant is still just a constant.

§ 02Applying the Formula — Step by Step

Every integration-by-parts calculation follows the same mechanical procedure. Before you look at any examples, internalise these four steps so that applying the technique becomes automatic.

The Four Steps

  • Step 1. Identify u and dv from the integrand (use LIATE).
  • Step 2. Differentiate u to get du; integrate dv to get v.
  • Step 3. Substitute into uv − ∫ v du.
  • Step 4. Evaluate the remaining integral; add C.

What to Watch Out For

  • When finding v from dv, pick the simplest antiderivative (set any constant to zero).
  • If ∫ v du is still hard, you may need a second round of IBP.
  • If the original integral reappears on the right, collect it algebraically.
  • Always verify your answer by differentiating: it must return the original integrand.

Example 1 — A Polynomial Times an Exponential

Example 01 Evaluate ∫ x ex dx
Step 1

Choose u = x and dv = ex dx. The polynomial goes to u because differentiating it reduces its degree. The exponential goes to dv because its integral is equally simple.

Step 2
du = dx,   v = ex
Step 3
∫ x ex dx = x ⋅ ex − ∫ ex dx
Step 4
∫ ex dx = ex, so the result is:
Result
∫ x ex dx = x ex − ex + C = ex(x − 1) + C

Example 2 — A Polynomial Times a Logarithm

Example 02 Evaluate ∫ x ln x dx
Step 1

Here the LIATE rule is critical. Set u = ln x (Logarithmic) and dv = x dx (Algebraic). If you swap them, you must integrate ln x directly: which requires IBP again, creating a circular problem.

Step 2
du = (1/x) dx,   v = x2/2
Step 3
∫ x ln x dx = (x2/2) ln x − ∫ (x2/2) ⋅ (1/x) dx = (x2/2) ln x − ∫ (x/2) dx
Step 4
∫ (x/2) dx = x2/4
Result
∫ x ln x dx = (x2/2) ln x − x2/4 + C = (x2/4)(2 ln x − 1) + C

§ 03The LIATE Rule — Choosing u Correctly

The hardest part of integration by parts is deciding which factor to call u and which to call dv. A wrong choice does not make the problem impossible, it just makes the resulting integral harder than the one you started with. The LIATE mnemonic gives a reliable priority order for u:

Letter Function Type Why It Goes to u Examples
L Logarithmic Differentiating removes the log; integrating a log requires IBP. Always put logs in u. ln x, log2 x, ln(x² + 1)
I Inverse Trig Their derivatives are algebraic; their integrals are messy. Put them in u. arcsin x, arctan x, arcsec x
A Algebraic Polynomials differentiate to lower-degree polynomials, simplifying ∫ v du. x³, 5x² − 2, √x, x² + 3x
T Trigonometric Trig functions integrate and differentiate to other trig functions — they cycle. sin x, cos x, tan x, sec x
E Exponential eax integrates easily and stays the same form. It is the best choice for dv. ex, e3x, 2x, e−x

To use LIATE: scan the integrand, identify the two factors, then assign u to whichever function appears earlier in the list (L before I before A before T before E). The remaining factor becomes dv. This heuristic works in the overwhelming majority of cases and is worth memorising before you encounter your first examination question on the technique.

LIATE Is a Guideline, Not a Law Some integrands break the rule gracefully. For instance, ∫ x sec² x dx assigns u = x (Algebraic) and dv = sec² x dx — consistent with LIATE since A comes before T. But ∫ ex sin x dx requires a special trick (§ 06) where the ordering matters less than recognising what's happening. Always think about whether the new integral will be simpler, not just whether LIATE was followed.

Quick LIATE Assignments for Common Integrals

xn ⋅ eax
u = xn, dv = eax dx Apply IBP n times, reducing the power each round.
xn ⋅ ln x
u = ln x, dv = xn dx Logarithm always takes u; one application suffices.
xn ⋅ sin ax (or cos ax)
u = xn, dv = sin ax dx Reduces degree of polynomial each pass.
eax ⋅ sin bx (or cos bx)
u = sin bx, dv = eax dx Cycles — collect the original integral (§ 06).
arctan x (alone)
u = arctan x, dv = dx Treat as a product with 1. Gives a clean algebraic integral.
ln x (alone)
u = ln x, dv = dx Classic — the "hidden" IBP with v = x.

§ 04More Fully Worked Examples

The best way to absorb integration by parts is to work through a wide variety of problems. The examples below are ordered from straightforward to technically demanding.

Example 3 — Integrating ln x Alone

Example 03 Evaluate ∫ ln x dx
Step 1

There is only one visible factor, but we can write 1 ⋅ ln x. Set u = ln x and dv = 1 dx, i.e. dv = dx. This is the "hidden" IBP.

Step 2
du = (1/x) dx,   v = x
Step 3
∫ ln x dx = x ln x − ∫ x ⋅ (1/x) dx = x ln x − ∫ 1 dx
Result
∫ ln x dx = x ln x − x + C = x(ln x − 1) + C

Example 4 — Inverse Trig Function

Example 04 Evaluate ∫ arctan x dx
Step 1

Again write as 1 ⋅ arctan x. Set u = arctan x (Inverse trig, first in LIATE) and dv = dx.

Step 2
du = 1/(1 + x2) dx,   v = x
Step 3 & 4
∫ arctan x dx = x arctan x − ∫ x/(1 + x2) dx

For the remaining integral, let w = 1 + x², dw = 2x dx:

∫ x/(1 + x2) dx = (1/2) ln|1 + x2| = (1/2) ln(1 + x2)
Result
∫ arctan x dx = x arctan x − (1/2) ln(1 + x2) + C

Example 5 — Applying IBP Twice

Example 05 Evaluate ∫ x2 ex dx
Round 1

Set u = x2, dv = ex dx. Then du = 2x dx, v = ex.

∫ x2 ex dx = x2 ex − ∫ 2x ex dx
Round 2

The new integral ∫ 2x ex dx requires another IBP. Set u = 2x, dv = ex dx. Then du = 2 dx, v = ex.

∫ 2x ex dx = 2x ex − ∫ 2ex dx = 2x ex − 2ex
Combine
∫ x2 ex dx = x2 ex − (2x ex − 2ex)
Result
∫ x2 ex dx = ex(x2 − 2x + 2) + C
Repeated IBP and Polynomial Degree When integrating xn ⋅ eax or xn ⋅ sin(ax), you will need exactly n rounds of integration by parts. Each round reduces the degree of the polynomial by 1, until you eventually reach a trivial integral. For large n, the tabular method (§ 05) organises this far more efficiently.

§ 05The Tabular Method (Column Integration)

When integration by parts must be applied multiple times, typically because one factor is a polynomial of degree 2 or higher, writing out the full formula at every step is slow and error-prone. The tabular method, also known as column integration or the DI method, condenses all those steps into a single table. It is not a different formula; it is simply a bookkeeping shortcut that keeps track of alternating signs automatically.

To construct the table, create three columns: Signs, D (the function you differentiate, which is your u choice), and I (the function you integrate, which is your dv choice). Alternate + and − signs down the first column, differentiate the D column repeatedly until it reaches zero, and integrate the I column the same number of times. Multiply diagonally and sum.

Example 6 — Tabular Method for ∫ x3 e2x dx

Sign D (differentiate) I (integrate)
+ x3 e2x
3x2 (1/2) e2x
+ 6x (1/4) e2x
6 (1/8) e2x
+ 0 — stop (1/16) e2x

Read diagonally, multiplying each D entry by the I entry one row below it, with the sign in the same row as the D entry:

Assembling the Result
(+1) ⋅ x3 ⋅ (1/2)e2x
+ (−1) ⋅ 3x2 ⋅ (1/4)e2x
+ (+1) ⋅ 6x ⋅ (1/8)e2x
+ (−1) ⋅ 6 ⋅ (1/16)e2x
Example 06 Tabular result for ∫ x3 e2x dx
Result
∫ x3 e2x dx = e2x [ (x3/2) − (3x2/4) + (3x/4) − (3/8) ] + C

Verify by differentiating, that is, apply the product rule to each term in the bracket multiplied by e2x, and you will recover x3 e2x precisely. This verification step is not optional: it is the fastest way to catch arithmetic errors in a tabular calculation.

♦ ♦ ♦

§ 06Cyclic Integrals — When the Original Integral Returns

Some integrands, notably eax sin bx and eax cos bx, have the curious property that after two applications of integration by parts, the original integral reappears on the right-hand side. This looks like a disaster (as if nothing has been achieved) but it is actually the key to solving the problem. Once the original integral appears on both sides, treat it as an unknown and solve algebraically.

Example 7 — ∫ ex sin x dx

Example 07 Evaluate ∫ ex sin x dx using the cyclic trick
Round 1

Set u = sin x, dv = ex dx. Then du = cos x dx, v = ex.

∫ ex sin x dx = ex sin x − ∫ ex cos x dx    …(I)
Round 2

Apply IBP to ∫ ex cos x dx. Set u = cos x, dv = ex dx. Then du = −sin x dx, v = ex.

∫ ex cos x dx = ex cos x + ∫ ex sin x dx    …(II)
Substitute

Substitute (II) into (I). Let I stand for ∫ ex sin x dx:

I = ex sin x − [ex cos x + I] I = ex sin x − ex cos x − I 2I = ex(sin x − cos x)
Result
∫ ex sin x dx = (ex/2)(sin x − cos x) + C
The Key Insight for Cyclic Integrals It does not matter whether you choose u = ex or u = sin x in round 1, provided you make the same type of choice in round 2. If you swap the assignment in the second application, you will merely undo the first one and arrive at 0 = 0, which is true but useless. Consistency between rounds is what makes the algebra close.

§ 07Definite Integrals by Parts

Integration by parts works for definite integrals with only a minor change: the boundary-evaluated term [uv] is computed at the limits, just like any antiderivative in the Fundamental Theorem of Calculus.

IBP for Definite Integrals
ab u dv = [u v]ab − ∫ab v du

The term [uv]ab means u(b)v(b) − u(a)v(a). The remaining integral ∫ab v du is evaluated over the same interval. All other aspects of the technique, choosing u and dv, applying LIATE, handling cyclic integrals, remain identical to the indefinite case. The constant C disappears, because it cancels when you apply the limits.

Example 8 — Definite IBP

Example 08 Evaluate ∫01 x ex dx
Setup

u = x, dv = ex dx  →  du = dx, v = ex.

Apply IBP
01 x ex dx = [x ex]01 − ∫01 ex dx = (1 ⋅ e1 − 0 ⋅ e0) − [ex]01 = e − (e − 1)
Result
01 x ex dx = 1

§ 08Reduction Formulae

A reduction formula is a recurrence relation that expresses ∫ fn(x) dx in terms of ∫ fn−2(x) dx (or a similar lower-power integral). They are derived by a single application of integration by parts, followed by algebraic manipulation. Once the formula is established, integrals of arbitrarily high powers become mechanical.

Reduction Formula for ∫ sinn x dx

Standard Reduction Formula
∫ sinn x dx = −(1/n) sinn−1 x cos x + ((n−1)/n) ∫ sinn−2 x dx

Derived by setting u = sinn−1 x, dv = sin x dx and applying IBP once.

Starting from this formula, you can compute ∫ sin4 x dx by applying it twice, ending at ∫ sin0 x dx = ∫ 1 dx = x. Similarly, ∫ sin5 x dx ends at ∫ sin x dx = −cos x. The same approach gives reduction formulae for cosn x, tann x, secn x, and even (ln x)n.

Example 9 — Using the Reduction Formula for ∫ sin4 x dx

Example 09 Evaluate ∫ sin4 x dx using the reduction formula
n = 4
∫ sin4 x dx = −(1/4) sin3 x cos x + (3/4) ∫ sin2 x dx
n = 2
∫ sin2 x dx = −(1/2) sin x cos x + (1/2) ∫ 1 dx = −(1/2) sin x cos x + x/2
Combine
∫ sin4 x dx = −(1/4) sin3 x cos x + (3/4)[−(1/2) sin x cos x + x/2]
Result
∫ sin4 x dx = −(1/4) sin3 x cos x − (3/8) sin x cos x + (3/8) x + C

§ 09Common Mistakes and How to Avoid Them

Most errors in integration by parts fall into one of five categories. Each is entirely preventable once you know what to look for.

Wrong sign
uv − ∫ v du The minus sign applies to the entire remaining integral, not just its first term. Bracket ∫ v du clearly before distributing the minus.
Swapping u midway
Be consistent Choosing ex as u in round 1 and then swapping to sin x in round 2 simply undoes the work. Use the same priority for both rounds.
Forgetting to integrate dv
v = ∫ dv You must find v by integrating dv before substituting. Confusing dv with v is the most common single-step error.
Adding C too early
Add C only at the end Adding a constant when computing v generates extra terms like −∫ C du = −Cx that cancel in the end but confuse intermediate steps.
Not verifying
d/dx[F(x)] = f(x)? Always differentiate your answer. With IBP it is easy to drop a factor or misapply the product rule. Verification takes 30 seconds and catches 90% of errors.
Poor choice of u
Use LIATE If your new integral is visibly harder than the one you started with, stop and try swapping u and dv. The formula works both ways; only one choice simplifies.

§ 10Summary and Decision Guide

Integration by parts is the technique of choice whenever the integrand is a product of two functions from different categories: and specifically when substitution offers no clear path forward. Learning to recognise these integrands on sight and to execute the procedure quickly and accurately is one of the most valuable skills in single-variable calculus.

When to Reach for Integration by Parts
Is the integrand a product of two unlike functions? → Consider IBP
Can you substitute to simplify? → Try substitution first (it is faster)
Does LIATE give a clear u? → Apply the formula once
After one round, is the new integral simpler? → Continue to solution
Does the original integral reappear? → Collect it algebraically (cyclic case)
Is the polynomial degree 3 or higher? → Use the tabular method

The core formula ∫ u dv = uv − ∫ v du contains everything you need. Every variation (tabular integration, reduction formulae, cyclic collection) is just an efficient way of applying the same formula under particular structural conditions. There is no separate technique to memorise for each type: only a single underlying identity, and judgment about when and how to apply it.

Practice Deliberately Work through at least 15 to 20 problems spanning all the types on this page: single-round, double-round, logarithm-only, inverse trig, cyclic, tabular, and definite. Speed and accuracy come from pattern recognition, not memorisation of individual results. Every example you fully verify by differentiation trains your instinct for where errors hide.

Continue the Integration Series

Cookie Settings