Integration by Parts

By now we have a fairly thorough procedure for how to evaluate many basic integrals. However, although we can integrate xsin(x2)dx

by using the substitution, u=x2,

something as simple looking as xsinxdx

defies us. Many students want to know whether there is a product rule for integration. There isn’t, but there is a technique based on the product rule for differentiation that allows us to exchange one integral for another. We call this technique integration by parts.

The Integration-by-Parts Formula

If, h(x)=f(x)g(x),

then by using the product rule, we obtain h(x)=f(x)g(x)+g(x)f(x).

Although at first it may seem counterproductive, let’s now integrate both sides of this equation: h(x)dx=(g(x)f(x)+f(x)g(x))dx.

This gives us

h(x)=f(x)g(x)=g(x)f(x)dx+f(x)g(x)dx.

Now we solve for f(x)g(x)dx:

f(x)g(x)dx=f(x)g(x)g(x)f(x)dx.

By making the substitutions u=f(x)

and v=g(x),

which in turn make du=f(x)dx

and dv=g(x)dx,

we have the more compact form

udv=uvvdu.
Integration by Parts

Let u=f(x)

and v=g(x)

be functions with continuous derivatives. Then, the integration-by-parts formula for the integral involving these two functions is:

udv=uvvdu.

The advantage of using the integration-by-parts formula is that we can use it to exchange one integral for another, possibly easier, integral. The following example illustrates its use.

Using Integration by Parts

Use integration by parts with u=x

and dv=sinxdx

to evaluate xsinxdx.

By choosing u=x,

we have du=1dx.

Since dv=sinxdx,

we get v=sinxdx=cosx.

It is handy to keep track of these values as follows:

u=xdv=sinxdxdu=1dxv=sinxdx=cosx.

Applying the integration-by-parts formula results in

xsinxdx=(x)(cosx)(cosx)(1dx)Substitute.=xcosx+cosxdxSimplify.=xcosx+sinx+C.Usecosxdx=sinx+C.
Analysis

At this point, there are probably a few items that need clarification. First of all, you may be curious about what would have happened if we had chosen u=sinx

and dv=x.

If we had done so, then we would have du=cosx

and v=12x2.

Thus, after applying integration by parts, we have xsinxdx=12x2sinx12x2cosxdx.

Unfortunately, with the new integral, we are in no better position than before. It is important to keep in mind that when we apply integration by parts, we may need to try several choices for u

and dv

before finding a choice that works.

Second, you may wonder why, when we find v=sinxdx=cosx,

we do not use v=cosx+K.

To see that it makes no difference, we can rework the problem using v=cosx+K:

xsinxdx=(x)(cosx+K)(cosx+K)(1dx)=xcosx+Kx+cosxdxKdx=xcosx+Kx+sinxKx+C=xcosx+sinx+C.

As you can see, it makes no difference in the final solution.

Last, we can check to make sure that our antiderivative is correct by differentiating xcosx+sinx+C:

ddx(xcosx+sinx+C)=(−1)cosx+(x)(sinx)+cosx=xsinx.

Therefore, the antiderivative checks out.

Watch this video and visit this website for examples of integration by parts.

Evaluate xe2xdx

using the integration-by-parts formula with u=x

and dv=e2xdx.

xe2xdx=12xe2x14e2x+C
Hint

Find du

and v,

and use the previous example as a guide.

The natural question to ask at this point is: How do we know how to choose u

and dv?

Sometimes it is a matter of trial and error; however, the acronym LIATE can often help to take some of the guesswork out of our choices. This acronym stands for Logarithmic Functions, Inverse Trigonometric Functions, Algebraic Functions, Trigonometric Functions, and Exponential Functions. This mnemonic serves as an aid in determining an appropriate choice for u.

The type of function in the integral that appears first in the list should be our first choice of u.

For example, if an integral contains a logarithmic function and an algebraic function, we should choose u

to be the logarithmic function, because L comes before A in LIATE. The integral in [link] has a trigonometric function (sinx)

and an algebraic function (x).

Because A comes before T in LIATE, we chose u

to be the algebraic function. When we have chosen u,

dv

is selected to be the remaining part of the function to be integrated, together with dx.

Why does this mnemonic work? Remember that whatever we pick to be dv

must be something we can integrate. Since we do not have integration formulas that allow us to integrate simple logarithmic functions and inverse trigonometric functions, it makes sense that they should not be chosen as values for dv.

Consequently, they should be at the head of the list as choices for u.

Thus, we put LI at the beginning of the mnemonic. (We could just as easily have started with IL, since these two types of functions won’t appear together in an integration-by-parts problem.) The exponential and trigonometric functions are at the end of our list because they are fairly easy to integrate and make good choices for dv.

Thus, we have TE at the end of our mnemonic. (We could just as easily have used ET at the end, since when these types of functions appear together it usually doesn’t really matter which one is u

and which one is dv.)

Algebraic functions are generally easy both to integrate and to differentiate, and they come in the middle of the mnemonic.

Using Integration by Parts

Evaluate lnxx3dx.

Begin by rewriting the integral:

lnxx3dx=x−3lnxdx.

Since this integral contains the algebraic function x−3

and the logarithmic function lnx,

choose u=lnx,

since L comes before A in LIATE. After we have chosen u=lnx,

we must choose dv=x−3dx.

Next, since u=lnx,

we have du=1xdx.

Also, v=x−3dx=12x−2.

Summarizing,

u=lnxdv=x−3dxdu=1xdxv=x−3dx=12x−2.

Substituting into the integration-by-parts formula ([link]) gives

lnxx3dx=x−3lnxdx=(lnx)(12x−2)(12x−2)(1xdx)=12x−2lnx+12x−3dxSimplify.=12x−2lnx14x−2+CIntegrate.=12x2lnx14x2+C.Rewrite with positive integers.

Evaluate xlnxdx.

12x2lnx14x2+C
Hint

Use u=lnx

and dv=xdx.

In some cases, as in the next two examples, it may be necessary to apply integration by parts more than once.

Applying Integration by Parts More Than Once

Evaluate x2e3xdx.

Using LIATE, choose u=x2

and dv=e3xdx.

Thus, du=2xdx

and v=e3xdx=(13)e3x.

Therefore,

u=x2dv=e3xdxdu=2xdxv=e3xdx=13e3x.

Substituting into [link] produces

x2e3xdx=13x2e3x23xe3xdx.

We still cannot integrate 23xe3xdx

directly, but the integral now has a lower power on x.

We can evaluate this new integral by using integration by parts again. To do this, choose u=x

and dv=23e3xdx.

Thus, du=dx

and v=(23)e3xdx=(29)e3x.

Now we have

u=xdv=23e3xdxdu=dxv=23e3xdx=29e3x.

Substituting back into the previous equation yields

x2e3xdx=13x2e3x(29xe3x29e3xdx).

After evaluating the last integral and simplifying, we obtain

x2e3xdx=13x2e3x29xe3x+227e3x+C.
Applying Integration by Parts When LIATE Doesn’t Quite Work

Evaluate t3et2dt.

If we use a strict interpretation of the mnemonic LIATE to make our choice of u,

we end up with u=t3

and dv=et2dt.

Unfortunately, this choice won’t work because we are unable to evaluate et2dt.

However, since we can evaluate tet2dx,

we can try choosing u=t2

and dv=tet2dt.

With these choices we have

u=t2dv=tet2dtdu=2tdtv=tet2dt=12et2.

Thus, we obtain

t3et2dt=12t2et212et22tdt=12t2et212et2+C.
Applying Integration by Parts More Than Once

Evaluate sin(lnx)dx.

This integral appears to have only one function—namely, sin(lnx)

—however, we can always use the constant function 1 as the other function. In this example, let’s choose u=sin(lnx)

and dv=1dx.

(The decision to use u=sin(lnx)

is easy. We can’t choose dv=sin(lnx)dx

because if we could integrate it, we wouldn’t be using integration by parts in the first place!) Consequently, du=(1/x)cos(lnx)dx

and v=1dx=x.

After applying integration by parts to the integral and simplifying, we have

sin(lnx)dx=xsin(lnx)cos(lnx)dx.

Unfortunately, this process leaves us with a new integral that is very similar to the original. However, let’s see what happens when we apply integration by parts again. This time let’s choose u=cos(lnx)

and dv=1dx,

making du=(1/x)sin(lnx)dx

and v=1dx=x.

Substituting, we have

sin(lnx)dx=xsin(lnx)(xcos(lnx)sin(lnx)dx).

After simplifying, we obtain

sin(lnx)dx=xsin(lnx)xcos(lnx)sin(lnx)dx.

The last integral is now the same as the original. It may seem that we have simply gone in a circle, but now we can actually evaluate the integral. To see how to do this more clearly, substitute I=sin(lnx)dx.

Thus, the equation becomes

I=xsin(lnx)xcos(lnx)I.

First, add I

to both sides of the equation to obtain

2I=xsin(lnx)xcos(lnx).

Next, divide by 2:

I=12xsin(lnx)12xcos(lnx).

Substituting I=sin(lnx)dx

again, we have

sin(lnx)dx=12xsin(lnx)12xcos(lnx).

From this we see that (1/2)xsin(lnx)(1/2)xcos(lnx)

is an antiderivative of sin(lnx)dx.

For the most general antiderivative, add +C:

sin(lnx)dx=12xsin(lnx)12xcos(lnx)+C.
Analysis

If this method feels a little strange at first, we can check the answer by differentiation:

ddx(12xsin(lnx)12xcos(lnx))=12(sin(lnx))+cos(lnx)·1x·12x(12cos(lnx)sin(lnx)·1x·12x)=sin(lnx).

Evaluate x2sinxdx.

x2cosx+2xsinx+2cosx+C
Hint

This is similar to [link].

Integration by Parts for Definite Integrals

Now that we have used integration by parts successfully to evaluate indefinite integrals, we turn our attention to definite integrals. The integration technique is really the same, only we add a step to evaluate the integral at the upper and lower limits of integration.

Integration by Parts for Definite Integrals

Let u=f(x)

and v=g(x)

be functions with continuous derivatives on [a,b].

Then

abudv=uv\|ababvdu.
Finding the Area of a Region

Find the area of the region bounded above by the graph of y=tan−1x

and below by the x

-axis over the interval [0,1].

This region is shown in [link]. To find the area, we must evaluate 01tan−1xdx.

This figure is the graph of the inverse tangent function. It is an increasing function that passes through the origin. In the first quadrant there is a shaded region under the graph, above the x-axis. The shaded area is bounded to the right at x = 1.

For this integral, let’s choose u=tan−1x

and dv=dx,

thereby making du=1x2+1dx

and v=x.

After applying the integration-by-parts formula ([link]) we obtain

Area=xtan−1x\|0101xx2+1dx.

Use u-substitution to obtain

01xx2+1dx=12ln\|x2+1\|01.

Thus,

Area=xtan1x\|0112ln\|x2+1\|\|01=π412ln2.

At this point it might not be a bad idea to do a “reality check” on the reasonableness of our solution. Since π412ln20.4388,

and from [link] we expect our area to be slightly less than 0.5, this solution appears to be reasonable.

Finding a Volume of Revolution

Find the volume of the solid obtained by revolving the region bounded by the graph of f(x)=ex,

the x-axis, the y-axis, and the line x=1

about the y-axis.

The best option to solving this problem is to use the shell method. Begin by sketching the region to be revolved, along with a typical rectangle (see the following graph).

This figure is the graph of the function e^-x. It is an increasing function on the left side of the y-axis and decreasing on the right side of the y-axis. The curve also comes to a point on the y-axis at y=1. Under the curve there is a shaded rectangle in the first quadrant. There is also a cylinder under the graph, formed by revolving the rectangle around the y-axis.

To find the volume using shells, we must evaluate 2π01xexdx.

To do this, let u=x

and dv=ex.

These choices lead to du=dx

and v=ex=ex.

Substituting into [link], we obtain

Volume=2π01xexdx=2π(xex\|01+01exdx)Use integration by parts.=−2πxex\|012πex\|01Evaluate01exdx=ex\|01.=2π4πe.Evaluate and simplify.
Analysis

Again, it is a good idea to check the reasonableness of our solution. We observe that the solid has a volume slightly less than that of a cylinder of radius 1

and height of 1/e

added to the volume of a cone of base radius 1

and height of 113.

Consequently, the solid should have a volume a bit less than

π(1)21e+(π3)(1)2(11e)=2π3eπ31.8177.

Since 2π4πe1.6603,

we see that our calculated volume is reasonable.

Evaluate 0π/2xcosxdx.

π21
Hint

Use [link] with u=x

and dv=cosxdx.

Key Concepts

Key Equations

In using the technique of integration by parts, you must carefully choose which expression is u. For each of the following problems, use the guidelines in this section to choose u. Do not evaluate the integrals.

x3e2xdx
u=x3
x3ln(x)dx
y3cosydx
u=y3
x2arctanxdx
e3xsin(2x)dx
u=sin(2x)

Find the integral by using the simplest method. Not all problems require integration by parts.

vsinvdv
lnxdx

(Hint: lnxdx

is equivalent to 1·ln(x)dx.)

x+xlnx+C
xcosxdx
tan−1xdx
xtan−1x12ln(1+x2)+C
x2exdx
xsin(2x)dx
12xcos(2x)+14sin(2x)+C
xe4xdx
xexdx
ex(−1x)+C
xcos3xdx
x2cosxdx
2xcosx+(−2+x2)sinx+C
xlnxdx
ln(2x+1)dx
12(1+2x)(−1+ln(1+2x))+C
x2e4xdx
exsinxdx
12ex(cosx+sinx)+C
excosxdx
xex2dx
ex22+C
x2exdx
sin(ln(2x))dx
12xcos[ln(2x)]+12xsin[ln(2x)]+C
cos(lnx)dx
(lnx)2dx
2x2xlnx+x(lnx)2+C
ln(x2)dx
x2lnxdx
(x39+13x3lnx)+C
sin−1xdx
cos−1(2x)dx
1214x2+xcos−1(2x)+C
xarctanxdx
x2sinxdx
(−2+x2)cosx+2xsinx+C
x3cosxdx
x3sinxdx
x(−6+x2)cosx+3(−2+x2)sinx+C
x3exdx
xsec−1xdx
12x(11x2+x·sec−1x)+C
xsec2xdx
xcoshxdx
coshx+xsinhx+C

Compute the definite integrals. Use a graphing utility to confirm your answers.

1/e1lnxdx
01xe−2xdx

(Express the answer in exact form.)

1434e2
01exdx(letu=x)
1eln(x2)dx

2

0πxcosxdx
ππxsinxdx

(Express the answer in exact form.)

2π
03ln(x2+1)dx

(Express the answer in exact form.)

0π/2x2sinxdx

(Express the answer in exact form.)

−2+π
01x5xdx

(Express the answer using five significant digits.)

Evaluate cosxln(sinx)dx

sin(x)+ln[sin(x)]sinx+C

Derive the following formulas using the technique of integration by parts. Assume that n is a positive integer. These formulas are called reduction formulas because the exponent in the x term has been reduced by one in each case. The second integral is simpler than the original integral.

xnexdx=xnexnxn1exdx
xncosxdx=xnsinxnxn1sinxdx

Answers vary

xnsinxdx=\_\_\_\_\_\_

Integrate 2x2x3dx

using two methods:

  1. Using parts, letting dv=2x3dx
  2. Substitution, letting u=2x3

a. 25(1+x)(−3+2x)3/2+C

b. 25(1+x)(−3+2x)3/2+C

State whether you would use integration by parts to evaluate the integral. If so, identify u and dv. If not, describe the technique used to perform the integration without actually doing the problem.

xlnxdx
ln2xxdx

Do not use integration by parts. Choose u to be lnx,

and the integral is of the form u2du.

xexdx
xex23dx

Do not use integration by parts. Let u=x23,

and the integral can be put into the form eudu.

x2sinxdx
x2sin(3x3+2)dx

Do not use integration by parts. Choose u to be u=3x3+2

and the integral can be put into the form sin(u)du.

Sketch the region bounded above by the curve, the x-axis, and x=1,

and find the area of the region. Provide the exact form or round answers to the number of places indicated.

y=2xex

(Approximate answer to four decimal places.)

y=exsin(πx)

(Approximate answer to five decimal places.)

The area under graph is 0.39535.* * *

This figure is the graph of y=e^-x sin(pi*x). The curve begins in the third quadrant at x=0.5, increases through the origin, reaches a high point between 0.5 and 0.75, then decreases, passing through x=1.

Find the volume generated by rotating the region bounded by the given curves about the specified line. Express the answers in exact form or approximate to the number of decimal places indicated.

y=sinx,y=0,x=2π,x=3π

about the y-axis (Express the answer in exact form.)

y=ex y=0,x=−1x=0;

about x=1

(Express the answer in exact form.)

2πe

A particle moving along a straight line has a velocity of v(t)=t2et

after t sec. How far does it travel in the first 2 sec? (Assume the units are in feet and express the answer in exact form.)

Find the area under the graph of y=sec3x

from x=0tox=1.

(Round the answer to two significant digits.)

2.05

Find the area between y=(x2)ex

and the x-axis from x=2

to x=5.

(Express the answer in exact form.)

Find the area of the region enclosed by the curve y=xcosx

and the x-axis for

11π2x13π2.

(Express the answer in exact form.)

12π

Find the volume of the solid generated by revolving the region bounded by the curve y=lnx,

the x-axis, and the vertical line x=e2

about the x-axis. (Express the answer in exact form.)

Find the volume of the solid generated by revolving the region bounded by the curve y=4cosx

and the x-axis, π2x3π2,

about the x-axis. (Express the answer in exact form.)

8π2

Find the volume of the solid generated by revolving the region in the first quadrant bounded by y=ex

and the x-axis, from x=0

to x=ln(7),

about the y-axis. (Express the answer in exact form.)

Glossary

integration by parts
a technique of integration that allows the exchange of one integral for another using the formula udv=uvvdu

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: