On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Integration by Parts

Integration by parts is the product rule run backward: ∫u dv=uv−∫v du, used when the integrand is a product of two functions of different types.

∫u dv=uv−∫v du
For definite integrals: ∫abu dv=[uv]ab−∫abv du.

Quick Answer

Integration by parts is the product rule run backward: ∫u dv=uv−∫v du, used when the integrand is a product of two functions of different types. Use it for integrals like ∫xex dx, ∫xsin⁡x dx, ∫ln⁡x dx and ∫x2e−x dx: you trade the original integral for a new one in which the factor you differentiated has become simpler. Choose u so that du is simpler than u, and dv so that you can integrate it.

Why This Matters

Products of a power with an exponential, a sine or a logarithm appear whenever something grows, decays or oscillates while being weighted by time: the average lifetime of a radioactive atom, the harmonics in a musical tone, the present value of a growing income. Substitution cannot touch these. Parts also produces ∫ln⁡x dx=xln⁡x−x+C, an antiderivative you could not guess from the basic rules.

Intuitive Explanation

Start from the product rule, (uv)′=u′v+uv′. Integrate both sides and rearrange, and you get ∫u dv=uv−∫v du. The formula does not finish an integral. It swaps one integral for another, and the swap pays off when differentiating u makes it simpler while integrating dv does not make it worse.

Take ∫xex dx. Choose u=x, because its derivative is 1, and dv=ex dx, because ex integrates to itself. Then uv−∫v du=xex−∫ex dx=xex−ex+C. The power of x dropped from 1 to 0, and the leftover integral was basic. For x2ex you apply parts twice, lowering the power each time. Choose the other way, u=ex and dv=x dx, and the new integral is ∫x22ex dx, which is harder than the one you started with. The order LIATE (logarithm, inverse trig, algebraic, trig, exponential) suggests which factor to call u: whichever comes first in that list.

Not every product calls for parts. ∫2xex2 dx is also a product, but 2x is the derivative of the exponent x2, so the substitution u=x2 finishes it in one line. Check for an inner derivative first, and use parts when the two factors are unrelated.

Think of it like this. Parts is a trade at a market: you hand over one integral and receive uv plus a different integral. A good trade gets you an easier integral back, which happens when the factor you differentiate gets simpler, as x becomes 1. A bad trade, differentiating ex while integrating x, leaves you holding something harder than before. You may trade again as often as needed.

Core idea. Integration by parts uses ∫u dv=uv−∫v du to transfer the derivative from one factor to the other.


When to Use

Use parts when the integrand is a product of two unrelated functions, typically a polynomial times ex, sin⁡x or cos⁡x, or anything times ln⁡x or an inverse trig function. A lone ln⁡x or arctan⁡x also qualifies, with dv=dx. Pick u as the factor that gets simpler when differentiated. If one factor is the derivative of something inside the other, as in xcos⁡(x2), use u-substitution instead; if the integrand is a fraction of polynomials, try partial fractions.

Tip. Ask: Is the integrand a product of unlike functions where differentiating one factor simplifies it, with no inner-derivative match for substitution?

How to Recognize It

Look at the two factors of the integrand and work out which one gets simpler when differentiated and which one you are able to integrate.

  1. Is one factor a polynomial and the other ex, sin⁡x or cos⁡x?

    Yes means parts with the polynomial as u; each round lowers its degree by one, so x2ex takes two rounds. If the polynomial is the derivative of something inside the other factor, as in xex2, use u-substitution instead.

  2. Is there a ln⁡x or an inverse trig function that you can differentiate but not directly integrate?

    Yes means make it u, even when it stands alone with dv=dx, as in ∫arctan⁡x dx. If the logarithm sits next to its own derivative, as in ln⁡xx, u-substitution is faster.

  3. After one round, is the new integral ∫v du simpler than the one you started with?

    Yes means you chose well; repeat if needed. No means swap u and dv, or rethink the method; the LIATE order (log, inverse trig, algebraic, trig, exponential) suggests the better u.

  4. Does the original integral come back after two rounds, as with ∫exsin⁡x dx?

    Yes means stop: move the repeated integral to the left side and solve for it like an unknown, which gives 12ex(sin⁡x−cos⁡x)+C. This happens when both factors cycle under differentiation, like exponentials and sines.

Integration by Parts compared with u-Substitution, Product rule, and LIATE choice of u

All four rows deal with a product of two functions. Ask what you are doing with it: integrating unrelated factors (parts), integrating a composite next to its inner derivative (u-substitution), differentiating it (product rule), or choosing which factor to differentiate once parts is chosen (LIATE).

Integration by Parts

Meaning
Use this when the integrand is a product of two unlike functions and one factor simplifies when differentiated.
Key test
Is the integrand a product of unlike functions where differentiating one factor simplifies it, with no inner-derivative match for substitution?
Formula
∫u dv=uv−∫v du
For definite integrals: ∫abu dv=[uv]ab−∫abv du.
Example
Find ∫xex dx.

u-Substitution

Meaning
Handles a composite times its inner derivative, not a product of unlike functions.
Key test
Use when an inner function and its derivative both appear.
Formula
∫f(g(x))g′(x) dx
Example
∫2xex2dx is substitution, not parts

Product rule

Meaning
The forward differentiation rule parts reverses.
Key test
Use when differentiating a product, not integrating one.
Formula
(fg)′=f′g+fg′
Example
Differentiating xex vs integrating it

LIATE choice of u

Meaning
A mnemonic for which factor to call u, not a separate method.
Key test
Use within parts to pick u: Log, Inverse trig, Algebraic, Trig, Exponential.
Example
In ∫xln⁡x dx, log beats algebraic so u=ln⁡x

Formula & Notation

∫u dv=uv−∫v du
For definite integrals: ∫abu dv=[uv]ab−∫abv du.
If u and v are differentiable on [a,b], then ∫abu(x)v′(x) dx=[u(x)v(x)]ab−∫abu′(x)v(x) dx. Indefinite form: ∫u dv=uv−∫v du.

How to read it: The LIATE rule helps choose u: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential—pick u from earlier in this list.

Worked Examples

Example 1 — Polynomial times exponential

Easy

Find ∫xex dx.
Show the steps and the answer
  1. Check for substitution first: ex has only x inside, and neither factor is the derivative of an inner function.

    With no inner derivative, the product x⋅ex is a job for parts.

  2. Choose u=x and dv=ex dx; then du=dx and v=ex.

    Differentiating x gives 1, which removes the x; integrating ex gives ex, no harder than before.

  3. Apply uv−∫v du: xex−∫ex dx=xex−ex+C.

    The leftover integral is a basic rule, so the trade has finished the problem.

  4. Check: ddx(xex−ex)=ex+xex−ex=xex.

    The product rule on the answer returns the integrand.

Answer: xex−ex+C

Takeaway: Let u be the factor that differentiates to something simpler; for x⋅ex that is x.

Example 2 — Substitution, not parts

Standard

Find ∫2xex2 dx.
Show the steps and the answer
  1. Look inside ex2: the exponent is x2, and its derivative 2x is the other factor.

    An inner function with its derivative beside it signals substitution, even though the integrand is a product.

  2. Let u=x2, du=2x dx: the integral becomes ∫eu du=eu+C=ex2+C.

    One substitution turns it into a basic rule.

  3. See what parts would do: with u=2x and dv=ex2dx you would need v=∫ex2dx.

    That integral has no elementary antiderivative, so parts would stall on its very first step.

Answer: ex2+C

Takeaway: Check for an inner derivative before using parts; when it is there, substitution is shorter.

Example 3 — Find the mistake: two minus signs

Application

Find ∫xsin⁡x dx. Ben writes: "u=x, v=−cos⁡x, so the answer is −xcos⁡x−sin⁡x+C." Find the mistake and correct it.
Show the steps and the answer
  1. Differentiate Ben's answer: ddx(−xcos⁡x−sin⁡x)=−cos⁡x+xsin⁡x−cos⁡x=xsin⁡x−2cos⁡x.

    The result should be xsin⁡x; the extra −2cos⁡x points to a sign error.

  2. Redo the trade: ∫xsin⁡x dx=uv−∫v du=−xcos⁡x−∫(−cos⁡x) dx.

    v=−cos⁡x carries its own minus sign, and the formula subtracts ∫v du, so two minus signs meet.

  3. Simplify: −∫(−cos⁡x) dx=+∫cos⁡x dx=sin⁡x.

    Ben applied only one of the two minus signs.

  4. Check: ddx(−xcos⁡x+sin⁡x)=−cos⁡x+xsin⁡x+cos⁡x=xsin⁡x.

    The derivative now matches the integrand exactly.

Answer: −xcos⁡x+sin⁡x+C

Takeaway: Write uv−∫v du with v in brackets, then clear the signs; differentiating the answer catches any slip.

Where You'll See It

  • Average lifetime of a radioactive atom

    If atoms decay at rate k, the mean lifetime is ∫0∞t⋅ke−kt dt, and parts with u=t gives 1k. For carbon-14, k=ln⁡25730 per year, so the average atom lasts about 8,270 years, longer than its 5,730-year half-life.

  • Why a sawtooth wave sounds bright

    The strength of each harmonic in a sawtooth wave comes from ∫xsin⁡(nx) dx, done by parts. The result is proportional to 1n, so the high harmonics fade slowly, which gives synthesizer sawtooth tones their buzzy, bright sound.

  • Present value of a growing income

    A shop's profit grows steadily at 1000t dollars per year. Discounted at 5% a year, the first 10 years are worth ∫0101000te−0.05t dt≈$36,100 today, compared with $50,000 of undiscounted profit. Parts with u=t evaluates the integral.

Common Mistakes

  1. The slip: Picking u and dv backward so the new integral is harder

    Instead: use LIATE so u differentiates toward simpler.

  2. The slip: Dropping the minus sign or the uv term

    Instead: the formula is uv−∫v du, both pieces required.

  3. The slip: Trying parts when substitution fits

    Instead: if an inner derivative is present, u-substitution is the right tool.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find ∫xsin⁡x dx.

    Hint: Choose u=x so that its derivative is simpler, and dv=sin⁡x dx.

  2. Use integration by parts to find ∫ln⁡x dx.

    Hint: Write it as ∫ln⁡x⋅1 dx and let u=ln⁡x, dv=dx.

  3. Find ∫x2ex dx.

    Hint: Use parts with u=x2, then use parts a second time on what is left.

  4. Evaluate ∫01xe2x dx.

    Hint: Take u=x and dv=e2x dx, so v=12e2x.

  5. Which integral needs integration by parts: ∫xx2+1 dx or ∫xln⁡x dx?

    Hint: In one of them, x is half of the derivative of the expression under the root.

  6. For ∫xcos⁡x dx, a student picks u=cos⁡x and dv=x dx, and gets x22cos⁡x+∫x22sin⁡x dx. What went wrong?

    Hint: Is the new integral easier or harder than the one you started with?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is ∫ln⁡x dx done by parts when there is only one function?

Because ln⁡x\ln x is easy to differentiate but has no basic antiderivative to read off, so you treat it as ln⁡x⋅1\ln x\cdot1. With u=ln⁡xu=\ln x and dv=dxdv=dx, you get du=1x dxdu=\frac{1}{x}\,dx and v=xv=x, so ∫ln⁡x dx=xln⁡x−∫1 dx=xln⁡x−x+C\int\ln x\,dx=x\ln x-\int1\,dx=x\ln x-x+C. The same trick handles arctan⁡x\arctan x and arcsin⁡x\arcsin x.

Is there a faster way when the polynomial has a high power, as in ∫x4ex dx?

Yes, the tabular method. In one column list the derivatives of x4x^4 down to 0: x4,4x3,12x2,24x,24x^4, 4x^3, 12x^2, 24x, 24. In the other, list repeated integrals of exe^x, which are all exe^x. Multiply along the diagonals with alternating signs to get ex(x4−4x3+12x2−24x+24)+Ce^x(x^4-4x^3+12x^2-24x+24)+C. It is ordinary parts applied four times, written compactly.

Where does the formula come from?

From the product rule. Since (uv)′=u′v+uv′(uv)'=u'v+uv', integrating both sides gives uv=∫v du+∫u dvuv=\int v\,du+\int u\,dv, and rearranging gives ∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du. So parts creates nothing new; it moves the derivative from one factor to the other. That is why it helps exactly when the factor you differentiate gets simpler and the one you integrate does not get worse.

Do I need a +C when I find v from dv?

No. Any constant added to vv cancels out: with v+Kv+K in place of vv, the uvuv term gains KuKu and the ∫v du\int v\,du term gains ∫K du=Ku\int K\,du=Ku, and these two subtract away. So choose the simplest vv and add a single +C+C at the very end of the problem.

Learning Path

← Before

IntegralDerivative
Integration by Parts

You are here

Next →

Nothing after this yet
You need Integral (basic antiderivatives) and Derivative, including the product rule that parts reverses. Integration by parts lets you integrate products like xex, x2sin⁡x and ln⁡x by trading for a simpler integral. With it and u-substitution you can handle most integrals in a first calculus course, including average values, expected values in probability and the work done by a varying force.

See Also