# Integration by Parts

If u and v are functions of x, the Product Rule says that

Integrate both sides:

I've written " " and " " as shorthand for " " and " ".

This is the integration by parts formula. The integral on the left corresponds to the integral you're trying to do. Integration by parts replaces it with a term that doesn't need integration ( ) and another integral ( ). You'll make progress if the new integral is easier to do than the old one.

I'm going to set up parts computations using tables; it is much easier to do repeated parts computations this way than to use the standard u- approach. To see where the table comes from, start with the parts equation:

Apply parts to the integral on the right, differentiating and integrating v. This gives

If I apply parts yet again to the new integral on the right, I would get

There's a pattern here, and it's captured by the following table:

To make the table, put alternating +'s and -'s in the left-hand column. Take the original integral and break it into a u (second column) and a (third column). (I'll discuss how you choose u and later.) Differentiate repeatedly down the u-column, and integrate repeatedly down the -column. (You don't write down the ; it's kind of implicitly there in the third column, since you're integrating.)

How do you get from the table to the messy equation above? Consider the first term on the right: . You get that from the table by taking the + sign, taking the u next to it, and then moving "southeast" to grab the v.

If you compare the table with the equation, you'll see that you get the rest of the terms on the right side by multiplying terms in the table according to the same pattern:

The table continues downward indefinitely, so how do you stop? If you look at the last messy equation above and compare it to the table, you can see how to stop: Just integrate all the terms the last row of the table.

A formal proof that the table represents the algebra can be given using mathematical induction.

You'll see that in many examples, the process will stop naturally when the derivative column entries become 0.

Example. Compute .

Integration by parts is often useful when you have a product of different kinds of functions in the same integral. Here I have a power ( ) and and exponential ( ), and this suggests using parts.

I have to "allocate" between u and --- remember that implicitly goes into . I will use and . Here's the parts table:

You can see the derivatives of in one column and the integrals of in another. Notice that when I get a 0, I cut off the computation.

Therefore,

But is just 0 (up to an arbitrary constant), so I can write

Before leaving this problem, it's worth thinking about why the went into the derivative column and the went into the integral column. Here's what would happen if the two were reversed:

This is bad for two reasons. First, I'm not getting that nice 0 I got by repeatedly differentiating . Worse, the powers in the last column are getting bigger! This means that the problem is getting more complicated, rather than less.

Here's another attempt which doesn't work:

I got a 0 this time, but how can I find the integral in the second row? --- it's the same as the original integral! Putting the entire integrand into the integration column never works. On the other hand, you'll see in examples to follow that sometimes putting the entire integrand into the differentiation column does work.

Here's a rule of thumb which reflects the preceding discussion. When you're trying to decide which part of an integral to put into the differentiation column, the order of preference is roughly

The acronym is "L-I-P-T-E".

For example, suppose this rule is applied to .

You'd try the Log function in the differentiation column ahead of the Power function x.

Or consider .

Here you'd try the Power function in the differentiation column, because it has precedence over the Trig function .

The last two classes of functions --- Trig functions and Exponential functions --- are essentially "tied", so if you have an integral like , you can put either or in the derivative column. (We'll see, however, that this kind of integral requires a trick.)

Example. (a) Compute .

(b) Compute .

(a)

(b)

(I computed in part (a).)

Example. Compute .

First,

The same substitution shows that

Now do the original integral by parts:

You can also do this integral using the substitution .

Example. Compute .

You could also do this integral using the substitution .

Parts can also be useful when the integrand is a single, unsimplifiable chunk. I already gave an example of this earlier when I computed . In the next example, you can't do the integral of as-is, and there's no algebra you can do to change the integrand.

Example. Compute .

The idea is to use parts, putting in the derivative column so it goes away when it's differentiated. The derivative is an algebraic expression which "fits better" with the x you get in the integration column.

Therefore,

I can do the new integral by substitution: Let , so , and :

Example. Compute .

If you do a definite integral using parts, compute the antiderivative using parts as usual, then slap on the limits of integration at the end.

Thus,

I noted earlier that a product of an exponential and a trig function would require a trick. The next example illustrates this.

Example. Compute .

What's this? All that work and you get the original integral again!

Look at the equation as an equation to be solved for the original integral. It looks like this:

Move the copy of the original integral on the right back to the left and solve for it:

Note: You can also do integrals like using this approach, though this integral could also be done using a trig identity.

Contact information