Integration by Parts Examples: 47 Problems with Answers

Worked examples of Integration by Parts to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Find ∫xex dx.
Show solution

Answer

ex(x−1)+C

First step

1.
LIATE: u=x, dv=ex dx; then du=dx, v=ex.

Full solution

  1. 2.
    ∫xex dx=xex−∫ex dx=xex−ex+C.
  2. 3.
    Factor: ex(x−1)+C.
LIATE places algebraic before exponential, so u=x. One IBP step reduces the remaining integral to something immediate.

Example 2

hard
Find ∫exsin⁡x dx.

Example 3

medium
Evaluate ∫x2ex dx using integration by parts twice.

Example 4

medium
Evaluate ∫0π/2xsin⁡x dx.

Example 5

hard
Derive a reduction formula for In=∫(ln⁡x)n dx.

Example 6

challenge
Prove the reduction formula ∫xneax dx=xneaxa−na∫xn−1eax dx for a≠0.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Find ∫xcos⁡x dx.

Example 2

medium
Find ∫ln⁡x dx.

Example 3

easy
Evaluate ∫xex dx.

Example 4

easy
In ∫xcos⁡x dx, what should u be by LIATE?

Example 5

easy
Evaluate ∫ln⁡x dx.

Example 6

easy
State the integration by parts formula.

Example 7

easy
In ∫xex dx, identify v if dv=ex dx.

Example 8

easy
Evaluate ∫xsin⁡x dx.

Example 9

easy
In ∫xln⁡x dx, what is u by LIATE?

Example 10

easy
Why does integration by parts work? (one sentence)

Example 11

medium
Evaluate ∫x2ex dx.

Example 12

medium
Evaluate ∫xln⁡x dx.

Example 13

medium
Evaluate ∫01xex dx.

Example 14

medium
Evaluate ∫arctan⁡x dx.

Example 15

medium
Evaluate ∫x2ln⁡x dx.

Example 16

medium
Evaluate ∫x2sin⁡x dx.

Example 17

challenge
Evaluate ∫excos⁡x dx (the cyclic case).

Example 18

challenge
Evaluate ∫1eln⁡x dx using parts.

Example 19

challenge
Derive a reduction-style result: show ∫xnex dx=xnex−n∫xn−1ex dx.

Example 20

medium
Evaluate ∫xcos⁡x dx.

Example 21

medium
Evaluate ∫(2x+1)ex dx.

Example 22

medium
Evaluate ∫ln⁡(2x) dx.

Example 23

easy
Evaluate ∫xe2x dx.

Example 24

easy
Evaluate ∫xsin⁡(2x) dx.

Example 25

easy
Evaluate ∫3xcos⁡x dx.

Example 26

medium
Evaluate ∫x2cos⁡x dx.

Example 27

medium
Evaluate ∫(x+1)e−x dx.

Example 28

medium
Evaluate ∫xsec⁡2x dx.

Example 29

medium
Evaluate ∫ln⁡(x2) dx.

Example 30

medium
Evaluate ∫x⋅2x dx.

Example 31

medium
Evaluate ∫01arctan⁡x dx.

Example 32

medium
Evaluate ∫xx+1 dx using parts.

Example 33

medium
Evaluate ∫arcsin⁡x dx.

Example 34

hard
Evaluate ∫e2xsin⁡(3x) dx.

Example 35

hard
Evaluate ∫x3ex dx.

Example 36

hard
Evaluate ∫(ln⁡x)2 dx.

Example 37

hard
Evaluate ∫01x2e−x dx.

Example 38

hard
Evaluate ∫xarctan⁡x dx.

Example 39

hard
Evaluate ∫sin⁡(ln⁡x) dx.

Example 40

hard
Evaluate ∫1ex2ln⁡x dx.

Example 41

challenge
Use IBP to show ∫0∞xe−x dx=1.

What to focus on

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

Common stuck point: The procedure for integration by parts is the easy part; the trap is picking u and dv backward so the new integral is harder. Asking "Is the integrand a product of unlike functions where differentiating one factor simplifies it, with no inner-derivative match for substitution?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

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

Concept recap

An integration technique based on the product rule: ∫u dv=uv−∫v du. Used when the integrand is a product of two functions.

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.

Read the full lesson on Integration by Parts

Integration by Parts is covered with related ideas in the guide How to Integrate Rational Functions: Long Division and Partial Fractions.

Related concepts

Background knowledge

These ideas may be useful before you work through the harder examples.

integralderivative