# 7.2: Integration By Parts

**At Grade**Created by: CK-12

## Learning Objectives

A student will be able to:

- Compute by hand the integrals of a wide variety of functions by using technique of Integration by Parts.
- Combine this technique with the
u− substitution method to solve integrals. - Learn to tabulate the technique when it is repeated.

In this section we will study a technique of integration that involves the product of algebraic and exponential or logarithmic functions, such as

and

Integration by parts is based on the product rule of differentiation that you have already studied:

If we integrate each side,

Solving for

This is the formula for integration by parts. With the proper choice of

**Example 1:**

Evaluate

*Solution:*

We use the formula

Choose

and

To complete the formula, we take the differential of

The formula becomes

**A Guide to Integration by Parts**

Which choices of

Then

Substituting back into the formula to integrate, we get

As you can see, this integral is worse than what we started with! This tells us that we have made the wrong choice and we must change (in this case switch) our choices of

Remember, the goal of the integration by parts is to start with an integral in the form

- Choose
dv to be the more complicated portion of the integrand that fits a basic integration formula. Chooseu to be the remaining term in the integrand. - Choose
u to be the portion of the integrand whose derivative is simpler thanu. Choosedv to be the remaining term.

**Example 2:**

Evaluate

*Solution:*

Again, we use the formula

Let us choose

and

We take the differential of

Substituting back into the formula,

We have made the right choice because, as you can see, the new integral

**Example 3:**

Evaluate

*Solution:*

Here, we only have one term,

\begin{align*}\int \ln x 1 dx.\end{align*}

So let \begin{align*}u = \ln x,\end{align*}

\begin{align*}\int u dv & = u v - \int v du\\ \int \ln x dx & = x \ln x - \int x \frac{1} {x} dx\\ & = x \ln x - \int 1 dx\\ & = x \ln x - x + C.\end{align*}

## Repeated Use of Integration by Parts

Oftentimes we use integration by parts more than once to evaluate the integral, as the example below shows.

**Example 4:**

Evaluate \begin{align*}\int x^2 e^x dx\end{align*}

*Solution:*

With \begin{align*}u = x^2, dv = e^x dx, du = 2xdx,\end{align*}

\begin{align*}\int x^2 e^x dx = x^2 e^x - 2 \int x e^x dx.\end{align*}

As you can see, the integral has become less complicated than the original, \begin{align*}x^2 e^x \rightarrow x e^x\end{align*}

\begin{align*}\int x^2 e^x dx & = x^2 e^x - 2 \int x e^x dx\\ & = x^2 e^x - 2 \left [ uv - \int u dv \right ]\\ & = x^2 e^x - 2 \left [x e^x - \int e^x dx \right]\\ & = x^2 e^x - 2x e^x + 2 e^x + C.\end{align*}

Actually, the method that we have just used works for any integral that has the form \begin{align*}\int x^n e^x dx\end{align*}, where \begin{align*}n\end{align*} is a positive integer. The following section illustrates a systematic way of solving repeated integrations by parts.

## Tabular Integration by Parts

Sometimes, we need to integrate by parts several times. This leads to cumbersome calculations. In situations like these it is best to organize our calculations to save us a great deal of tedious work and to avoid making unpredictable mistakes. The example below illustrates the method of *tabular integration.*

**Example 5:**

Evaluate \begin{align*}\int x^2 \sin 3x dx\end{align*}.

*Solution:*

Begin as usual by letting \begin{align*}u = x^2\end{align*} and \begin{align*}dv = \sin 3x dx.\end{align*} Next, create a table that consists of three columns, as shown below:

Alternate signs | \begin{align*}u\end{align*} and its derivatives | \begin{align*}dv\end{align*} and its antiderivatives |
---|---|---|

\begin{align*}+\end{align*} | \begin{align*}x^2 \searrow\end{align*} | \begin{align*} \sin 3x\end{align*} |

\begin{align*}-\end{align*} | \begin{align*}2x \searrow\end{align*} | \begin{align*}\frac{-1} {3} \cos 3x\end{align*} |

\begin{align*}+\end{align*} | \begin{align*}2 \searrow\end{align*} | \begin{align*}\frac{-1} {9} \sin 3x\end{align*} |

\begin{align*}-\end{align*} | \begin{align*}0\end{align*} | \begin{align*}\frac{1} {27} \cos 3x\end{align*} |

To find the solution for the integral, pick the sign from the first row \begin{align*}(+),\end{align*} multiply it by \begin{align*}u\end{align*} of the first row \begin{align*}(x^2)\end{align*} and then multiply by the \begin{align*}dv\end{align*} of the second row, \begin{align*}-1/3 \cos 3x\end{align*} (watch the direction of the arrows.) This is the first term in the solution. Do the same thing to obtain the second term: Pick the sign from the second row, multiply it by the \begin{align*}u\end{align*} of the same row and then follow the arrow to multiply the product by the \begin{align*}dv\end{align*} in the third row. Eventually we obtain the solution

\begin{align*}\int x^2 \sin 3x dx = \frac{-1} {3} x^2 \cos 3x + \frac{2} {9} x \sin 3x + \frac{2} {27} \cos 3x + C.\end{align*}

## Solving for an Unknown Integral

There are some integrals that require us to evaluate two integrations by parts, followed by solving for the unknown integral. These kinds of integrals crop up often in electrical engineering and other disciplines.

**Example 6:**

Evaluate \begin{align*}\int e^x \cos x dx\end{align*}.

*Solution:*

Let \begin{align*}u = e^x,\end{align*} and \begin{align*}dv = \cos x dx.\end{align*} Then \begin{align*}du = e^x dx, v = \sin x,\end{align*} and

\begin{align*}\int e^x \cos x dx = e^x \sin x - \int e^x \sin x dx.\end{align*}

Notice that the second integral looks the same as our original integral in form, except that it has a \begin{align*}\sin x\end{align*} instead of \begin{align*}\cos x.\end{align*} To evaluate it, we again apply integration by parts to the second term with \begin{align*}u = e^x, dv = \sin x dx, v = -\cos x,\end{align*} and \begin{align*}du = e^x dx.\end{align*}

Then

\begin{align*}\int e^x \cos x dx & = e^x \sin x - \left [-e^x \cos x - \int (-\cos x)(e^x dx) \right]\\ & = e^x \sin x - e^x \cos x - \int e^x \cos x dx.\end{align*}

Notice that the unknown integral now appears on both sides of the equation. We can simply move the unknown integral on the right to the left side of the equation, thus adding it to our original integral:

\begin{align*}2 \int e^x \cos x dx = e^x \sin x + e^x \cos x + C.\end{align*}

Dividing both sides by \begin{align*}2,\end{align*} we obtain

\begin{align*}\int e^x \cos x dx = \frac{1} {2} e^x \sin x + \frac{1} {2} e^x \cos x + \frac{1} {2} C.\end{align*}

Since the constant of integration is just a “dummy” constant, let \begin{align*}\frac{C} {2} \rightarrow C.\end{align*}

Finally, our solution is

\begin{align*}\int e^x \cos x dx = \frac{1} {2} e^x \sin x + \frac{1} {2} e^x \cos x + C.\end{align*}

## Multimedia Links

To see this same "classic" example worked out with narration **17.0**, see Khan Academy Indefinite Integration Series Part 7 (9:38).

For additional video presentations on integration by parts **17.0**, see Math Video Tutorials by James Sousa, Integration by Parts, Basic (7:08)

; Math Video Tutorials by James Sousa, Integration by Parts (10:03)

; Math Video Tutorials by James Sousa, Integration by Parts, Additional Examples (7:48).

## Review Questions

Evaluate the following integrals. (*Remark:* Integration by parts is not necessarily a requirement to solve the integrals. In some, you may need to use \begin{align*}u-\end{align*}substitution along with integration by parts.)

- \begin{align*}\int 3x e^x dx\end{align*}
- \begin{align*}\int x^2 e^{-x} dx\end{align*}
- \begin{align*}\int \ln(3x + 2)dx\end{align*}
- \begin{align*}\int \sin^{-1} x dx\end{align*}
- \begin{align*}\int \sec^3 x dx\end{align*}
- \begin{align*}\int 2x \ln(3x) dx\end{align*}
- \begin{align*}\int \frac{(ln x)^2} {x} dx\end{align*}
- Use both the method of \begin{align*}u-\end{align*}substitution and the method of integration by parts to integrate the integral below. Both methods will produce equivalent answers.

\begin{align*}\int x \sqrt{5x - 2} dx\end{align*}

- Use the method of tabular integration by parts to solve \begin{align*}\int x^2 e^{5x} dx.\end{align*}
- Evaluate the definite integral \begin{align*}\int_0^1 x^2 e^x dx\end{align*}.
- Evaluate the definite integral \begin{align*}\int_1^3 \ln(x + 1) dx\end{align*}.

## Review Answers

- \begin{align*}3xe^{x} -3 e^{x} + C\end{align*}
- \begin{align*} -e^{-x} (x^2 + 2x + 2) + C\end{align*}
- \begin{align*}\frac{3x + 2} {3} [\ln |3x + 2| - 1] + C\end{align*}
- \begin{align*}x \sin^{-1} x + \sqrt{1 - x^2} + C\end{align*}
- \begin{align*}\frac{1} {2} (\sec x) (\tan x) + \frac{1} {2} \ln | \sec x + \tan x| + C\end{align*}
- \begin{align*} x^2 \ln |3x| - \frac{1} {2} x^2 + C\end{align*}
- \begin{align*}\frac{1} {3} (\ln x)^3 + C\end{align*}
- \begin{align*}\frac{2} {125} (5x - 2)^{5/2} + \frac{4}{75}(5x - 2)^{3/2} + C\end{align*}
- \begin{align*}e^{5x} \left [ \frac{x^2} {5} - \frac{2x} {25} + \frac{2} {125} \right] + C\end{align*}
- \begin{align*} e - 2\end{align*}
- \begin{align*}6 \ln 2 - 2\end{align*}