<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
You are reading an older version of this FlexBook® textbook: CK-12 Calculus Go to the latest version.

# 7.2: Integration By Parts

Difficulty Level: 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\begin{align*}u-\end{align*}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

xlnxdx

and

xexdx.

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

ddx[uv]=udvdx+vdudx.

If we integrate each side,

uv=udvdxdx+vdudxdx=udv+vdu.

Solving for udv,\begin{align*}\int u dv,\end{align*}

udv=uvvdu.

This is the formula for integration by parts. With the proper choice of u\begin{align*}u\end{align*} and dv,\begin{align*}dv,\end{align*} the second integral may be easier to integrate. The following examples will show you how to properly choose u\begin{align*}u\end{align*} and dv.\begin{align*}dv.\end{align*}

Example 1:

Evaluate xsinxdx\begin{align*}\int x \sin x dx\end{align*}.

Solution:

We use the formula udv=uvvdu\begin{align*}\int u dv = uv - \int v du\end{align*}.

Choose

u=x

and

dv=sinxdx.

To complete the formula, we take the differential of u\begin{align*}u\end{align*} and the simplest antiderivative of dv=sinxdx.\begin{align*}dv = \sin x dx.\end{align*}

duv=dx=cosx.

The formula becomes

xsinxdx=xcosx(cosx)dx=xcosx+cosxdx=xcosx+sinx+C.

A Guide to Integration by Parts

Which choices of u\begin{align*}u\end{align*} and dv\begin{align*}dv\end{align*} lead to a successful evaluation of the original integral? In general, choose u\begin{align*}u\end{align*} to be something that simplifies when differentiated, and dv\begin{align*}dv\end{align*} to be something that remains manageable when integrated. Looking at the example that we have just done, we chose u=x\begin{align*}u = x\end{align*} and dv=sinxdx.\begin{align*}dv = \sin x dx.\end{align*} That led to a successful evaluation of our integral. However, let’s assume that we made the following choice,

udv=sinx=xdx.

Then

duv=cosxdx=x2/2.

Substituting back into the formula to integrate, we get

udv=uvvdu=sinxx22x22cosxdx

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 u\begin{align*}u\end{align*} and dv.\begin{align*}dv.\end{align*}

Remember, the goal of the integration by parts is to start with an integral in the form udv\begin{align*}\int u dv\end{align*} that is hard to integrate directly and change it to an integral vdu\begin{align*}\int v du\end{align*} that looks easier to evaluate. However, here is a general guide that you may find helpful:

1. Choose dv\begin{align*}dv\end{align*} to be the more complicated portion of the integrand that fits a basic integration formula. Choose u\begin{align*}u\end{align*} to be the remaining term in the integrand.
2. Choose u\begin{align*}u\end{align*} to be the portion of the integrand whose derivative is simpler than u.\begin{align*}u.\end{align*} Choose dv\begin{align*}dv\end{align*} to be the remaining term.

Example 2:

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

Solution:

Again, we use the formula udv=uvvdu\begin{align*}\int u dv = uv - \int v du\end{align*}.

Let us choose

u=x

and

dv=exdx.

We take the differential of u\begin{align*}u\end{align*} and the simplest antiderivative of dv=exdx\begin{align*}dv = e^xdx\end{align*}:

duv=dx=ex.

Substituting back into the formula,

udv=uvvdu=xexexdx.

We have made the right choice because, as you can see, the new integral vdu=exdx\begin{align*}\int v du = \int e^x dx\end{align*} is definitely simpler than our original integral. Integrating, we finally obtain our solution

xexdx=xexex+C.

Example 3:

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

Solution:

Here, we only have one term, lnx.\begin{align*}\ln x.\end{align*} We can always assume that this term is multiplied by 1\begin{align*}1\end{align*}:

lnx1dx.

So let u=lnx,\begin{align*}u = \ln x,\end{align*} and dv=1dx.\begin{align*}dv = 1dx.\end{align*} Thus du=1/xdx\begin{align*}du = 1/x dx\end{align*} and v=x.\begin{align*}v = x.\end{align*} Substituting,

udvlnxdx=uvvdu=xlnxx1xdx=xlnx1dx=xlnxx+C.

## 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 x2exdx\begin{align*}\int x^2 e^x dx\end{align*}.

Solution:

With u=x2,dv=exdx,du=2xdx,\begin{align*}u = x^2, dv = e^x dx, du = 2xdx,\end{align*} and v=ex,\begin{align*}v = e^x,\end{align*} our integral becomes

x2exdx=x2ex2xexdx.

As you can see, the integral has become less complicated than the original, x2exxex\begin{align*}x^2 e^x \rightarrow x e^x\end{align*}. This tells us that we have made the right choice. However, to evaluate xexdx\begin{align*}\int xe^x dx\end{align*} we still need to integrate by parts with u=x\begin{align*}u = x\end{align*} and dv=exdx.\begin{align*}dv = e^x dx.\end{align*} Then du=dx\begin{align*}du = dx\end{align*} and v=ex,\begin{align*}v = e^x,\end{align*} and

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

## 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

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

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:

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

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

Finally, our solution is

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)

## 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.)

1. \begin{align*}\int 3x e^x dx\end{align*}
2. \begin{align*}\int x^2 e^{-x} dx\end{align*}
3. \begin{align*}\int \ln(3x + 2)dx\end{align*}
4. \begin{align*}\int \sin^{-1} x dx\end{align*}
5. \begin{align*}\int \sec^3 x dx\end{align*}
6. \begin{align*}\int 2x \ln(3x) dx\end{align*}
7. \begin{align*}\int \frac{(ln x)^2} {x} dx\end{align*}
8. 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.

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

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

Feb 23, 2012

Aug 19, 2015

# Reviews

Image Detail
Sizes: Medium | Original

CK.MAT.ENG.SE.1.Calculus.7.2