Integration by Parts
One often encounters integrands which can be written as the product of two functions. Sometimes the integral can be solved using the “u-substitution” method which is essentially the inverse of the chain rule. In other cases, integration by parts may work. Integration by parts is the inverse of the product rule of differentiation. Recall that the product rule states
![\displaystyle \frac{d}{dx} \left[u(x) v(x)\right]= u'(x)v(x) + u(x)v'(x)](http://www.idius.net/wp-content/cache/tex_49a6a8599fcd969f5e0c8cb6ee88681f.png)
Using the notation
, 
this becomes
![\displaystyle d \left[u(x) v(x)\right]= v(x)du + u(x)dv](http://www.idius.net/wp-content/cache/tex_337e52f964aaaebe60734040c9a22a4e.png)
If we integrate this equation, we get

Now if we rearrange a bit, this becomes

This result is the what is known as “integration by parts”.
Usage: You are presented with an integrand which can be written as the product of two functions. You must know how to differentiate one of the functions and know how to integrate the other function. The goal is to create an integral on the right hand side that is easier to solve than the original integral. It may be necessary to repeat the integration by parts procedure several times to get an easy integral.
Example 1:

We want to be left with a simple integral when we are finished, so we choose
. Then

Now apply the method

Thus

Now the integral on the right is trivial! The final result is

Example 2:

Choose
then

Now apply the method

Note that this looks different than the version written above, but it is equivalent. Make the substitutions:

Now you have to repeat the method on this second integral! Choose
then

Substituting this into the method leaves us with
![\displaystyle \int e^x\cos x dx = e^x\sin x - \left[-e^x\cos x + \int e^x \cos x dx\right]](http://www.idius.net/wp-content/cache/tex_58bdad1b4cc4fa3953b4768438486986.png)

Notice that the same integral now appears on both sides of the equation. Now we can solve for it:


I’ve skipped a few steps involving the arbitrary constant
to simplify the presentation.
Finished!
