Integration by Parts Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Integration by Parts.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

An integration technique based on the product rule: udv=uvvdu\int u\,dv = uv - \int v\,du. Used when the integrand is a product of two functions.

The product rule for derivatives says (uv)=uv+uv(uv)' = u'v + uv'. Rearranging and integrating gives integration by parts. The idea is to trade your original integral for a (hopefully easier) one. You're transferring the derivative from one factor to the other.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Integration by parts uses udv=uvvdu\int u\,dv=uv-\int 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 uu and dvdv 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.

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

Worked Examples

Example 1

easy
Find xexdx\displaystyle\int x e^x\,dx.

Answer

ex(x1)+Ce^x(x-1) + C

First step

1
LIATE: u=xu = x, dv=exdxdv = e^x\,dx; then du=dxdu = dx, v=exv = e^x.

Full solution

  1. 2
    xexdx=xexexdx=xexex+C\int xe^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C.
  2. 3
    Factor: ex(x1)+Ce^x(x-1) + C.
LIATE places algebraic before exponential, so u=xu = x. One IBP step reduces the remaining integral to something immediate.

Example 2

hard
Find exsinxdx\displaystyle\int e^x \sin x\,dx.

Example 3

medium
Evaluate x2exdx\displaystyle\int x^2 e^x \, dx using integration by parts twice.

Example 4

medium
Evaluate 0π/2xsinxdx\int_0^{\pi/2} x\sin x\,dx.

Example 5

hard
Derive a reduction formula for In=(lnx)ndxI_n = \int (\ln x)^n\,dx.

Example 6

challenge
Prove the reduction formula xneaxdx=xneaxanaxn1eaxdx\int x^n e^{ax}\,dx = \frac{x^n e^{ax}}{a} - \frac{n}{a}\int x^{n-1} e^{ax}\,dx for a0a \neq 0.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

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

Example 2

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

Example 3

easy
Evaluate xexdx\int x e^x\,dx.

Example 4

easy
In xcosxdx\int x\cos x\,dx, what should uu be by LIATE?

Example 5

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

Example 6

easy
State the integration by parts formula.

Example 7

easy
In xexdx\int x e^x\,dx, identify vv if dv=exdxdv=e^x\,dx.

Example 8

easy
Evaluate xsinxdx\int x\sin x\,dx.

Example 9

easy
In xlnxdx\int x\ln x\,dx, what is uu by LIATE?

Example 10

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

Example 11

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

Example 12

medium
Evaluate xlnxdx\int x\ln x\,dx.

Example 13

medium
Evaluate 01xexdx\int_0^1 x e^x\,dx.

Example 14

medium
Evaluate arctanxdx\int \arctan x\,dx.

Example 15

medium
Evaluate x2lnxdx\int x^2\ln x\,dx.

Example 16

medium
Evaluate x2sinxdx\int x^2\sin x\,dx.

Example 17

challenge
Evaluate excosxdx\int e^x\cos x\,dx (the cyclic case).

Example 18

challenge
Evaluate 1elnxdx\int_1^e \ln x\,dx using parts.

Example 19

challenge
Derive a reduction-style result: show xnexdx=xnexnxn1exdx\int x^n e^x\,dx=x^n e^x-n\int x^{n-1} e^x\,dx.

Example 20

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

Example 21

medium
Evaluate (2x+1)exdx\int (2x+1)e^x\,dx.

Example 22

medium
Evaluate ln(2x)dx\int \ln(2x)\,dx.

Example 23

easy
Evaluate xe2xdx\int xe^{2x}\,dx.

Example 24

easy
Evaluate xsin(2x)dx\int x\sin(2x)\,dx.

Example 25

easy
Evaluate 3xcosxdx\int 3x\cos x\,dx.

Example 26

medium
Evaluate x2cosxdx\int x^2\cos x\,dx.

Example 27

medium
Evaluate (x+1)exdx\int (x+1)e^{-x}\,dx.

Example 28

medium
Evaluate xsec2xdx\int x\sec^2 x\,dx.

Example 29

medium
Evaluate ln(x2)dx\int \ln(x^2)\,dx.

Example 30

medium
Evaluate x2xdx\int x \cdot 2^x\,dx.

Example 31

medium
Evaluate 01arctanxdx\int_0^1 \arctan x\,dx.

Example 32

medium
Evaluate xx+1dx\int x\sqrt{x+1}\,dx using parts.

Example 33

medium
Evaluate arcsinxdx\int \arcsin x\,dx.

Example 34

hard
Evaluate e2xsin(3x)dx\int e^{2x}\sin(3x)\,dx.

Example 35

hard
Evaluate x3exdx\int x^3 e^x\,dx.

Example 36

hard
Evaluate (lnx)2dx\int (\ln x)^2\,dx.

Example 37

hard
Evaluate 01x2exdx\int_0^1 x^2 e^{-x}\,dx.

Example 38

hard
Evaluate xarctanxdx\int x\arctan x\,dx.

Example 39

hard
Evaluate sin(lnx)dx\int \sin(\ln x)\,dx.

Example 40

hard
Evaluate 1ex2lnxdx\int_1^{e} x^2 \ln x\,dx.

Example 41

challenge
Use IBP to show 0xexdx=1\int_0^{\infty} x e^{-x}\,dx = 1.

Related Concepts

Background Knowledge

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

integralderivative