Calculus · Step-by-step guide

Integration by Parts

Apply integration by parts, choose u strategically, and handle repeated applications.

By Tyler Blovat··9 min read
The short answer

Start with the central idea

Integration by parts reverses the product rule: udv=uvvdu\displaystyle \int u\,dv=uv-\int v\,du. Choose u so differentiating simplifies it and choose dv so it can be integrated.

udv=uvvdu\displaystyle \int u\,dv=uv-\int v\,du
01

How it works

Build the method from meaning before memorizing the moves.

These are the decisions that make the procedure reliable. Read them once, then look for each idea in the worked examples below.

1

Choose u strategically

LIATE—logarithmic, inverse trig, algebraic, trig, exponential—is a useful preference, not an absolute law.

2

Compute all four pieces

Write u, du, dv, and v before substituting into the formula.

3

Expect repetition

Polynomial times exponential or trig expressions may require integration by parts more than once.

02

See the structure

A picture makes the relationships easier to remember.

ab
The shaded region represents accumulated signed area between the curve and the x-axis.
03

Worked examples

Follow the reason for each line, then try to reproduce it without looking.

Example 1Polynomial times exponential

xexdx\displaystyle \int xe^x dx.

  1. Choose u = x and dv = eˣ dx.
  2. Then du = dx and v = eˣ.
  3. Apply uv minus the remaining integral.
Answerxexex+C\displaystyle xe^x-e^x+C
Example 2Logarithm

lnxdx\displaystyle \int \ln x\,dx.

  1. Treat the integrand as 1lnx\displaystyle 1\cdot\ln x.
  2. Choose u = ln x and dv = dx.
  3. Then du = dx/x and v = x.
Answerxlnxx+C\displaystyle x\ln x-x+C
Example 3Trig product

xcosxdx\displaystyle \int x\cos x\,dx.

  1. Choose u = x and dv = cos x dx.
  2. Then du = dx and v = sin x.
  3. Integrate the remaining sine term.
Answerxsinx+cosx+C\displaystyle x\sin x+\cos x+C
04

Common mistakes—and how to avoid them

Accuracy improves fastest when you know what to check.

  • Forgetting the subtraction sign.

  • Choosing dv that is harder to integrate than the original problem.

  • Losing +C at the end.

05

Turn the explanation into a skill

Reading creates recognition. Independent practice creates recall.

Free printable worksheet · Answer key included

Basic Integration

Strengthen the antiderivative fluency used throughout integration by parts.

Preview the worksheet

A strong practice loop: solve one example with the guide open, solve a similar problem without it, explain the method aloud, and return the next day for a short mixed review.

06

Practice problems with worked solutions

Solve each problem on paper, use the hint only if needed, then compare every step.

1

Evaluate xexdx\displaystyle \int xe^x\,dx.

Show hint

Choose u=x\displaystyle u=x and dv=exdx\displaystyle dv=e^xdx.

Show worked solution
  1. du=dx\displaystyle du=dx and v=ex\displaystyle v=e^x.
  2. uvvdu=xexexdx\displaystyle uv-\int vdu=xe^x-\int e^xdx.

Answer: xexex+C\displaystyle xe^x-e^x+C

2

Evaluate xcosxdx\displaystyle \int x\cos x\,dx.

Show hint

Choose the algebraic factor as u.

Show worked solution
  1. u=x,du=dx,dv=cosxdx,v=sinx\displaystyle u=x,du=dx,dv=\cos xdx,v=\sin x.
  2. xsinxsinxdx\displaystyle x\sin x-\int\sin xdx.

Answer: xsinx+cosx+C\displaystyle x\sin x+\cos x+C

3

Evaluate lnxdx\displaystyle \int \ln x\,dx.

Show hint

Treat ln x as u and 1 dx as dv.

Show worked solution
  1. u=lnx,du=dx/x,v=x\displaystyle u=\ln x,du=dx/x,v=x.
  2. xlnxx(1/x)dx\displaystyle x\ln x-\int x(1/x)dx.

Answer: xlnxx+C\displaystyle x\ln x-x+C

4

Evaluate x2exdx\displaystyle \int x^2e^x\,dx.

Show hint

Apply integration by parts twice.

Show worked solution
  1. First: x2ex2xexdx\displaystyle x^2e^x-\int2xe^xdx.
  2. For the remaining integral, xexdx=xexex\displaystyle \int xe^xdx=xe^x-e^x.
  3. Combine terms.

Answer: ex(x22x+2)+C\displaystyle e^x(x^2-2x+2)+C

5

Evaluate 01xexdx\displaystyle \int_0^1 xe^x\,dx.

Show hint

Use the antiderivative from integration by parts.

Show worked solution
  1. An antiderivative is ex(x1)\displaystyle e^x(x-1).
  2. Evaluate: e(0)1(1)\displaystyle e(0)-1(-1).

Answer: 1\displaystyle 1

07

Frequently asked questions

Quick answers before you move on.

What should I remember first?

Integration by parts reverses the product rule: udv=uvvdu\displaystyle \int u\,dv=uv-\int v\,du. Choose u so differentiating simplifies it and choose dv so it can be integrated.

How do I know whether I understand this topic?

You should be able to name the method, explain why each step is valid, complete a new example without copying, and check whether your answer is reasonable.

What should I do if I keep making the same mistake?

Write the error as a specific checkpoint—for example, “I will identify the hypotenuse before substituting.” Then use that checkpoint on three short problems rather than repeating a full page without feedback.