Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

6.2: Integration by Parts

( \newcommand{\kernel}{\mathrm{null}\,}\)

Here's a simple integral that we can't yet evaluate:

xcosxdx.

It's a simple matter to take the derivative of the integrand using the Product Rule, but there is no Product Rule for integrals. However, this section introduces Integration by Parts, a method of integration that is based on the Product Rule for derivatives. It will enable us to evaluate this integral.

The Product Rule says that if u and v are functions of x, then (uv)=uv+uv. For simplicity, we've written u for u(x) and v for v(x). Suppose we integrate both sides with respect to x. This gives

(uv)dx=(uv+uv)dx.

By the Fundamental Theorem of Calculus, the left side integrates to uv. The right side can be broken up into two integrals, and we have

uv=uvdx+uvdx.

Solving for the second integral we have

uvdx=uvuvdx.

Using differential notation, we can write du=u(x)dx and dv=v(x)dx and the expression above can be written as follows:

udv=uvvdu.

This is the Integration by Parts formula. For reference purposes, we state this in a theorem.

Theorem 6.2.1: Integration by Parts

Let u and v be differentiable functions of x on an interval I containing a and b. Then

u dv=uvv du,

and integration by parts

x=bx=au dv=uv|bax=bx=av du.

Let's try an example to understand our new technique.

Example 6.2.1: Integrating using Integration by Parts

Evaluate xcosx dx.

Solution

The key to Integration by Parts is to identify part of the integrand as "u" and part as "dv." Regular practice will help one make good identifications, and later we will introduce some principles that help. For now, let u=x and dv=cosx dx.

It is generally useful to make a small table of these values as done below. Right now we only know u and dv as shown on the left of Figure 6.2.1; on the right we fill in the rest of what we need. If u=x, then du=dx. Since dv=cosx dx, v is an antiderivative of cosx. We choose v=sinx.

alt

Figure 6.2.1: Setting up integration by parts.

Now substitute all of this into the Integration by Parts formula, giving

xcosxdx=xsinxsinxdx.

We can then integrate sinx to get cosx+C and overall our answer is

xcosx dx=xsinx+cosx+C.

Note how the antiderivative contains a product, xsinx. This product is what makes Integration by Parts necessary.

The example above demonstrates how Integration by Parts works in general. We try to identify u and dv in the integral we are given, and the key is that we usually want to choose u and dv so that du is simpler than u and v is hopefully not too much more complicated than dv. This will mean that the integral on the right side of the Integration by Parts formula, vdu will be simpler to integrate than the original integral udv.

In the example above, we chose u=x and dv=cosxdx. Then du=dx was simpler than u and v=sinx is no more complicated than dv. Therefore, instead of integrating xcosxdx, we could integrate sinxdx, which we knew how to do.

A useful mnemonic for helping to determine u is "LIATE," where

L=Logarithmic,I=InverseTrig.,A=Algebraic(polynomials),

T=Trigonometric,andE=Exponential.

If the integrand contains both a logarithmic and an algebraic term, in general letting u be the logarithmic term works best, as indicated by L coming before A in LIATE.

We now consider another example.

Example 6.2.2: Integrating using Integration by Parts

Evaluate xexdx.

Solution

The integrand contains an Algebraic term (x) and an \textbf{E}xponential term (ex). Our mnemonic suggests letting u be the algebraic term, so we choose u=x and dv=exdx. Then du=dx and v=ex as indicated by the tables below.

alt

Figure 6.2.2: Setting up Integration by Parts.

We see du is simpler than u, while there is no change in going from dv to v. This is good. The Integration by Parts formula gives

xexdx=xexexdx.

The integral on the right is simple; our final answer is

xex dx=xexex+C.

Note again how the antiderivatives contain a product term.

Example 6.2.3: Integrating using Integration by Parts

Evaluate x2cosxdx.

Solution

The mnemonic suggests letting u=x2 instead of the trigonometric function, hence dv=cosxdx. Then du=2xdx and v=sinx as shown below.

alt

Figure 6.2.3: Setting up Integration by Parts.

The Integration by Parts formula gives

x2cosxdx=x2sinx2xsinxdx.

At this point, the integral on the right is indeed simpler than the one we started with, but to evaluate it, we need to do Integration by Parts again. Here we choose u=2x and dv=sinx and fill in the rest below.

alt

Figure 6.2.4: Setting up Integration by Parts.

The integral all the way on the right is now something we can evaluate. It evaluates to 2sinx. Then going through and simplifying, being careful to keep all the signs straight, our answer is
x2cosx dx=x2sinx+2xcosx2sinx+C.

Example 6.2.4: Integrating using Integration by Parts

Evaluate excosxdx.

Solution

This is a classic problem. Our mnemonic suggests letting u be the trigonometric function instead of the exponential. In this particular example, one can let u be either cosx or ex; to demonstrate that we do not have to follow LIATE, we choose u=ex and hence dv=cosxdx. Then du=exdx and v=sinx as shown below.

alt

Figure 6.2.5: Setting up Integration by Parts.

Notice that du is no simpler than u, going against our general rule (but bear with us). The Integration by Parts formula yields

excosx dx=exsinxexsinxdx.

The integral on the right is not much different than the one we started with, so it seems like we have gotten nowhere. Let's keep working and apply Integration by Parts to the new integral, using u=ex and dv=sinxdx. This leads us to the following:

alt

Figure 6.2.6: Setting up Integration by Parts.

The Integration by Parts formula then gives:

excosxdx=exsinx(excosxexcosxdx)=exsinx+excosxexcosx dx.

It seems we are back right where we started, as the right hand side contains excosxdx. But this is actually a good thing.

Add excosx dx to both sides. This gives

2excosx dx=exsinx+excosxNow divide both sides by 2:excosx dx=12(exsinx+excosx).

Simplifying a little and adding the constant of integration, our answer is thus

excosx dx=12ex(sinx+cosx)+C.

Example 6.2.5: Integrating using Integration by Parts: antiderivative of lnx

Evaluate lnxdx.

Solution

One may have noticed that we have rules for integrating the familiar trigonometric functions and ex, but we have not yet given a rule for integrating lnx. That is because lnx can't easily be integrated with any of the rules we have learned up to this point. But we can find its antiderivative by a clever application of Integration by Parts. Set u=lnx and dv=dx. This is a good, sneaky trick to learn as it can help in other situations. This determines du=(1/x)dx and v=x as shown below.

alt

Figure 6.2.7: Setting up Integration by Parts.

Putting this all together in the Integration by Parts formula, things work out very nicely:

lnxdx=xlnxx1xdx.

The new integral simplifies to 1dx, which is about as simple as things get. Its integral is x+C and our answer is

lnx dx=xlnxx+C.

Example 6.2.6: Integrating using Int. by Parts: antiderivative of arctanx

Evaluate arctanxdx.

Solution

The same sneaky trick we used above works here. Let u=arctanx and dv=dx. Then du=1/(1+x2)dx and v=x. The Integration by Parts formula gives

arctanxdx=xarctanxx1+x2dx.

The integral on the right can be solved by substitution. Taking u=1+x2, we get du=2xdx. The integral then becomes

arctanxdx=xarctanx121udu.

The integral on the right evaluates to ln|u|+C, which becomes ln(1+x2)+C. Therefore, the answer is

arctanx dx=xarctanxln(1+x2)+C.

Substitution Before Integration

When taking derivatives, it was common to employ multiple rules (such as using both the Quotient and the Chain Rules). It should then come as no surprise that some integrals are best evaluated by combining integration techniques. In particular, here we illustrate making an "unusual" substitution first before using Integration by Parts.

Example 6.2.7: Integration by Parts after substitution

Evaluate cos(lnx) dx.

Solution

The integrand contains a composition of functions, leading us to think Substitution would be beneficial. Letting u=lnx, we have du=1/x dx. This seems problematic, as we do not have a 1/x in the integrand. But consider:

du=1x dxxdu=dx.

Since u=lnx, we can use inverse functions and conclude that x=eu. Therefore we have that

dx=xdu=eu du.

We can thus replace lnx with u and dx with eu du. Thus we rewrite our integral as

cos(lnx) dx=eucosu du.

We evaluated this integral in Example 6.2.4. Using the result there, we have:

cos(lnx) dx=eucosu du=12eu(sinu+cosu)+C=12elnx(sin(lnx)+cos(lnx))+C=12x(sin(lnx)+cos(lnx))+C.

Definite Integrals and Integration By Parts

So far we have focused only on evaluating indefinite integrals. Of course, we can use Integration by Parts to evaluate definite integrals as well, as Theorem 6.2.1 states. We do so in the next example.

Example 6.2.8: Definite integration using Integration by Parts

Evaluate 21x2lnxdx.

Solution

Our mnemonic suggests letting u=lnx, hence dv=x2dx.

We then get du=(1/x)dx and v=x3/3 as shown below.

alt

Figure 6.2.8: Setting up Integration by Parts.

The Integration by Parts formula then gives

21x2lnxdx=x33lnx|2121x331xdx=x33lnx|2121x23dx=x33lnx|21x39|21=(x33lnxx39)|21=(83ln289)(13ln119)=83ln2791.07.

In general, Integration by Parts is useful for integrating certain products of functions, like xexdx or x3sinxdx. It is also useful for integrals involving logarithms and inverse trigonometric functions.

As stated before, integration is generally more difficult than derivation. We are developing tools for handling a large array of integrals, and experience will tell us when one tool is preferable/necessary over another. For instance, consider the three similar--looking integrals

xexdx,xex2dxandxex3dx.

While the first is calculated easily with Integration by Parts, the second is best approached with Substitution. Taking things one step further, the third integral has no answer in terms of elementary functions, so none of the methods we learn in calculus will get us the exact answer.

Integration by Parts is a very useful method, second only to substitution. In the following sections of this chapter, we continue to learn other integration techniques. The next section focuses on handling integrals containing trigonometric functions.

Contributors and Attributions

  • Gregory Hartman (Virginia Military Institute). Contributions were made by Troy Siemers and Dimplekumar Chalishajar of VMI and Brian Heinold of Mount Saint Mary's University. This content is copyrighted by a Creative Commons Attribution - Noncommercial (BY-NC) License. http://www.apexcalculus.com/

  • Integrated by Justin Marshall.


This page titled 6.2: Integration by Parts is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gregory Hartman et al. via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?