0:00 / 0:00

Integration by Parts (IBP)

There is no "Product Rule for integrals" like there is for derivatives. When trying to integrate the product of two functions, we can use the technique of Integration By Parts.

udv=uvvdu\boxed{\displaystyle \int u \cdot dv=u \cdot v-\int v \cdot du }

When to use IBP

We can use IBP when integrating a product of two different function types.
  • 01xe5x dx\int_0^1xe^{5x}\ dx
  • x2sinx dx\int_{ }^{ }x^2\sin x\ dx
  • e3xcos(5x)dx\int_{ }^{ }e^{3x}\cos\left(5x\right)dx
  • lnx dx\int_{ }^{ }\ln x\ dx


PAGE BREAK

Procedure for IBP

  1. Identify the two different function types
  2. Let one part be uuand the other be dvdv.
  • L - Logarithmic Functions
  • I - Inverse Functions
  • A- Algebraic Functions
  • T- Trig Functions
  • E - Exponential Functions
  1. Differentiate uduu \rightarrow duand integrate dvvdv \rightarrow v
  2. Rewrite the integral using the formula udv=uvvdu\displaystyle \int u \cdot dv=u \cdot v-\int v \cdot du
Watch Out!
Sometimes you may need to use IBP more than once in the same problem!


0:00 / 0:00

Example: (Repeated) Integration By Parts

Compute the following indefinite integral

x2sinx  ⁣dx{\displaystyle\int}x^2\sin x\de{x}

1. Identify the 2 function types
There is an algebra x2x^2 and a trig sinx\sin x.

2. Pick u and dv
Let u=x2u=x^2 and dv=sinx dxdv=\sin x\ dx.

3. Differentiate and integrate
  ⁣du=2x  ⁣dx\de{u}=2x\de{x} and v=cos(x)v=-\cos(x)

4. Rewriting using the formula:
x2sin(x)  ⁣dx{\displaystyle\int}x^2\sin (x)\de{x}
=x2(cosx)cosx(2x)dx=x^2(-\cos x)-{\displaystyle \int}-\cos x(2x)dx
=x2cosx+2xcosx dx=-x^2\cos x+2{\displaystyle \int}x\cdot\cos x\ dx

The integral looks a little simpler than before, but we still have a product of two different function types. So we need to use I by P again:
1. algebra: xx and trig: cosx\cos x
2. Let u=xu=x and dv=cosx dxdv=\cos x\ dx
3. Then du=dxdu=dx and v=sinxv=\sin x
4. The new integral becomes

=x2cosx+2[xsinxsinx dx]=-x^2\cos x+2\left[x\sin x-\int_{ }^{ }\sin x\ dx\right]
=x2cosx+2xsinx+2cosx+C=-x^2\cos x+2x\sin x+2\cos x+C
0:00 / 0:00

Example: Integration By Parts

Evaluate the following indefinite integral

ln(x2) dx \displaystyle \int_{ }^{ }\ln\left(\frac{x}{2}\right)\ dx\

1. ln/log: ln(x2)\ln\left(\frac{x}{2}\right) and algebra: 11 (*tricky)

2. Let u=ln(x2)u=\ln\left(\frac{x}{2}\right) and dv=1 dxdv=1\ dx

3. Then

du=1x2(12)dx=1xdx\displaystyle du=\frac{1}{\frac{x}{2}}\left(\frac{1}{2}\right)dx=\frac{1}{x}dx and v=xv=x

4. The new integral becomes:

=ln(x2)xx(1x)dx\displaystyle =\ln\left(\frac{x}{2}\right)x-\int_{ }^{ }x\left(\frac{1}{x}\right)dx
=xln(x2)1 dx\displaystyle =x\ln\left(\frac{x}{2}\right)-\int_{ }^{ }1\ dx
=xln(x2)x+C\displaystyle =x\ln\left(\frac{x}{2}\right)-x+C
0:00 / 0:00

Example: (Repeated) Integration By Parts

Evaluate the following indefinite integral

e3xcos5x   ⁣dx{\displaystyle\int} e^{3x}\cos5x\ \de{x}

1. Exponential: e3xe^{3x} and Trig: cos5x\cos5x

2. Let u=cos5xu=\cos5x and dv=e3x dxdv=e^{3x}\ dx

3. Then du=5sin5x dxdu=-5\sin5x\ dx and v=e3x3v=\frac{e^{3x}}{3}

4. The new integral becomes:
=cos5x e3x3(e3x3)(5sin5x dx) \displaystyle =\frac{\cos5x\ e^{3x}}{3}-\int_{ }^{ }\left(\frac{e^{3x}}{3}\right)\left(-5\sin5x\ dx\right)

=e3xcos5x3+53e3xsin5x dx\displaystyle =\frac{e^{3x}\cos5x}{3}+\frac{5}{3}\int_{ }^{ }e^{3x}\sin5x\ dx

Notice that the integral has a product of two different function types, so we use I by P again:
1. Exponential: e3xe^{3x} and Trig: sin5x\sin5x

2. Let u=sin5xu=\sin5x and dv=e3x dxdv=e^{3x}\ dx

3. Then du=5cos5x dxdu=5\cos5x\ dx and v=e3x3v=\frac{e^{3x}}{3}

4. The new integral becomes:
=e3xcos5x3+53[sin5x(e3x3)(e3x3)(5cos5x dx)]\displaystyle =\frac{e^{3x}\cos5x}{3}+\frac{5}{3}\left[\sin5x\left(\frac{e^{3x}}{3}\right)-\int_{ }^{ }\left(\frac{e^{3x}}{3}\right)\left(5\cos5x\ dx\right)\right]

=e3xcos5x3+59e3xsin5x259e3xcos5x dx\displaystyle =\frac{e^{3x}\cos5x}{3}+\frac{5}{9}e^{3x}\sin5x^{ }-\frac{25}{9}\int_{ }^{ }e^{3x}\cos5x\ dx

The new integral looks like the original question.
Notice that this seems to repeat over and over again.
The trick here is to let I=e3xcos5x dxI={\displaystyle \int}e^{3x}\cos5x\ dx (original integral).
We can rewrite:
I=e3xcos5x3+59e3xsin5x259I\displaystyle I=\frac{e^{3x}\cos5x}{3}+\frac{5}{9}e^{3x}\sin5x^{ }-\frac{25}{9}I

I+259I=e3xcos5x3+59e3xsin5x\displaystyle I+\frac{25}{9}I=\frac{e^{3x}\cos5x}{3}+\frac{5}{9}e^{3x}\sin5x

349I=e3xcos5x3+59e3xsin5x\displaystyle\frac{34}{9}I=\frac{e^{3x}\cos5x}{3}+\frac{5}{9}e^{3x}\sin5x

I=934(e3xcos5x3+59e3xsin5x)\displaystyle I=\frac{9}{34}\left(\frac{e^{3x}\cos5x}{3}+\frac{5}{9}e^{3x}\sin5x\right)

or I=3e3xcos5x+5e3xsin5x34\displaystyle I=\frac{3e^{3x}\cos5x+5e^{3x}\sin5x}{34}

Therefore, e3xcos5x dx=3e3xcos5x+5e3xsin5x34+C\displaystyle \int e^{3x}\cos5x\ dx=\frac{3e^{3x}\cos5x+5e^{3x}\sin5x}{34}+C

Practice: Integration By Parts

Evaluate the following indefinite integral

xarctanx  ⁣dx{\displaystyle \int}x\arctan x\de{x}

Practice: Integration By Parts

Evaluate the following indefinite integral

sec3x   ⁣dx{\displaystyle\int}\sec^3x \space\de{x}
Extra Practice