Paul's Online Math Notes
     
 
Online Notes / Calculus II / Integration Techniques / Integration by Parts
Calculus II

You can navigate through this E-Book using the menu to the left. For E-Books that have a Chapter/Section organization each option in the menu to the left indicates a chapter and will open a menu showing the sections in that chapter. Alternatively, you can navigate to the next/previous section or chapter by clicking the links in the boxes at the very top and bottom of the material.

Also, depending upon the E-Book, it will be possible to download the complete E-Book, the chapter containing the current section and/or the current section. You can do this be clicking on the E-Book, Chapter, and/or the Section link provided below.

For those pages with mathematics on them you can, in most cases, enlarge the mathematics portion by clicking on the equation. Click the enlarged version to hide it.

Let’s start off with this section with a couple of integrals that we should already be able to do to get us started.  First let’s take a look at the following.

 

 

 

So, that was simple enough.  Now, let’s take a look at,

 

 

 

To do this integral we’ll use the following substitution.

 

 

 

 

 

Again, simple enough to do provided you remember how to do substitutions.  By the way make sure that you can do these kinds of substitutions quickly and easily.  From this point on we are going to be doing these kinds of substitutions in our head.  If you have to stop and write these out with every problem you will find that it will take to significantly longer to do these problems.

 

Now, let’s look at the integral that we really want to do.

 

 

 

 

If we just had an x by itself or  by itself we could do the integral easily enough.  But, we don’t have them by themselves, they are instead multiplied together. 

 

There is no substitution that we can use on this integral that will allow us to do the integral.  So, at this point we don’t have the knowledge to do this integral. 

 

To do this integral we will need to use integration by parts so let’s derive the integration by parts formula.  We’ll start with the product rule.

 

 

 

Now, integrate both sides of this.

 

 

 

The left side is easy enough to integrate and we’ll split up the right side of the integral.

 

 

Note that technically we should have had a constant of integration show up on the left side after doing the integration.  We can drop it at this point since other constants of integration will be showing up down the road and they would just end up absorbing this one.

 

Finally, rewrite the formula as follows and we arrive that the integration by parts formula.

 

 

 

This is not the easiest formula to use however.  So, let’s do a couple of substitutions.

 

 

 

Both of these are just the standard Calc I substitutions that hopefully you are used to by now.  Don’t get excited by the fact that we are using two substitutions here.  They will work the same way. 

 

Using these substitutions gives us the formula that most people think of as the integration by parts formula.

 

 

 

To use this formula we will need to identify u and dv, compute du and v and then use the formula.  Note as well that computing v is very easy.  All we need to do is integrate dv.

 

 

 

So, let’s take a look at the integral above that we mentioned we wanted to do.

 

Example 1  Evaluate the following integral.

                                                                  

Solution

So, on some level, the problem here is the x that is in front of the exponential.  If that wasn’t there we could do the integral.  Notice as well that in doing integration by parts anything that we choose for u will be differentiated.  So, it seems that choosing  will be a good choice since upon differentiating the x will drop out. 

 

Now that we’ve chosen u we know that dv will be everything else that remains.  So, here are the choices for u and dv as well as du and v.

                                         

The integral is then,

                                                   

 

Once we have done the last integral in the problem we will add in the constant of integration to get our final answer.

 

Next, let’s take a look at integration by parts for definite integrals.  The integration by parts formula for definite integrals is,

 

Integration by Parts, Definite Integrals

 

                                                                       

Note that the  in the first term is just the standard integral evaluation notation that you should be familiar with at this point.  All we do is evaluate the term, uv in this case, at b then subtract off the evaluation of the term at a.

 

At some level we don’t really need a formula here because we know that when doing definite integrals all we need to do is do the indefinite integral and then do the evaluation. 

 

Let’s take a quick look at a definite integral using integration by parts.

 

Example 2  Evaluate the following integral.

                                                                 

Solution

This is the same integral that we looked at in the first example so we’ll use the same u and dv to get,

                                               

 

Since we need to be able to do the indefinite integral in order to do the definite integral and doing the definite integral amounts to nothing more than evaluating the indefinite integral at a couple of points we will concentrate on doing indefinite integrals in the rest of this section.  In fact, throughout most of this chapter this will be the case.  We will be doing far more indefinite integrals than definite integrals.

 

Let’s take a look at some more examples.

 

Example 3  Evaluate the following integral.

                                                         

Solution

There are two ways to proceed with this example.  For many, the first thing that they try is multiplying the cosine through the parenthesis, splitting up the integral and then doing integration by parts on the first integral. 

 

While that is a perfectly acceptable way of doing the problem it’s more work than we really need to do.  Instead of splitting the integral up let’s instead use the following choices for u and dv.

                                           

The integral is then,

                             

Notice that we pulled any constants out of the integral when we used the integration by parts formula.  We will usually do this in order to simplify the integral a little.

 

Example 4  Evaluate the following integral.

                                                            

Solution

For this example we’ll use the following choices for u and dv.

                                         

The integral is then,

                              

 

In this example, unlike the previous examples, the new integral will also require integration by parts.  For this second integral we will use the following choices.

                                         

So, the integral becomes,

                

Be careful with the coefficient on the integral for the second application of integration by parts.  Since the integral is multiplied by  we need to make sure that the results of actually doing the integral are also multiplied by .  Forgetting to do this is one of the more common mistakes with integration by parts problems.

 

As this last example has shown us, we will sometimes need more than one application of integration by parts to completely evaluate an integral.  This is something that will happen so don’t get excited about it when it does.

 

In this next example we need to acknowledge an important point about integration techniques.  Some integrals can be done in using several different techniques.  That is the case with the integral in the next example.

 

Example 5  Evaluate the following integral

                                                                

(a) Using Integration by Parts.   [Solution]

(b) Using a standard Calculus I substitution.   [Solution]

Solution

(a) Evaluate using Integration by Parts.

 

First notice that there are no trig functions or exponentials in this integral.  While a good many integration by parts integrals will involve trig functions and/or exponentials not all of them will so don’t get too locked into the idea of expecting them to show up.

 

In this case we’ll use the following choices for u and dv.

                                            

The integral is then,

                                        

[Return to Problems]

(b) Evaluate Using a standard Calculus I substitution.

 

Now let’s do the integral with a substitution.  We can use the following substitution.

                               

 

Notice that we’ll actually use the substitution twice, once for the quantity under the square root and once for the x in front of the square root.  The integral is then,

                                          

[Return to Problems]

 

So, we used two different integration techniques in this example and we got two different answers.  The obvious question then should be : Did we do something wrong?

 

Actually, we didn’t do anything wrong.  We need to remember the following fact from Calculus I.

 

 

 

 

In other words, if two functions have the same derivative then they will differ by no more than a constant.  So, how does this apply to the above problem?  First define the following,

 

 

 

Then we can compute  and  by integrating as follows,

 

 

 

We’ll use integration by parts for the first integral and the substitution for the second integral.  Then according to the fact  and  should differ by no more than a constant.  Let’s verify this and see if this is the case. We can verify that they differ by no more than a constant if we take a look at the difference of the two and do a little algebraic manipulation and simplification.

 

 

 

 

So, in this case it turns out the two functions are exactly the same function since the difference is zero.  Note that this won’t always happen.  Sometimes the difference will yield a nonzero constant.  For an example of this check out the Constant of Integration section in my Calculus I notes.

 

So just what have we learned?  First, there will, on occasion, be more than one method for evaluating an integral.  Secondly, we saw that different methods will often lead to different answers.  Last, even though the answers are different it can be shown, sometimes with a lot of work, that they differ by no more than a constant.

 

When we are faced with an integral the first thing that we’ll need to decide is if there is more than one way to do the integral.  If there is more than one way we’ll then need to determine which method we should use.  The general rule of thumb that I use in my classes is that you should use the method that you find easiest.  This may not be the method that others find easiest, but that doesn’t make it the wrong method.

 

One of the more common mistakes with integration by parts is for people to get too locked into perceived patterns.  For instance, all of the previous examples used the basic pattern of taking u to be the polynomial that sat in front of another function and then letting dv be the other function.  This will not always happen so we need to be careful and not get locked into any patterns that we think we see.

 

Let’s take a look at some integrals that don’t fit into the above pattern. 

 

Example 6  Evaluate the following integral.