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.
Parts replaces it with a term that doesn't need integration ( ) and another integral ( ). You hope that 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

For example, suppose this rule is applied to

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

Or consider

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

* 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 .

Parts is also useful when the integrand is a single, unsimplifiable chunk. In this case, there isn't an obvious way to change or simplify . Integration by parts replaces one integral with another, so I try it here and hope I get something that is easier to integrate:

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 apply the limits of integration at the end.

Thus,

In some cases, integration by parts produces a copy of the original integral. Depending on how it arises, this may not be a bad thing.

* 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:

* Example.* Compute .

There is a copy of the original integral on the right side. Thus,

* Example.* Compute .

You could also do this integral using the substitution .

Copyright 2017 by Bruce Ikenaga