Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.5: Integration by Parts

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

We have already seen that recognizing the product rule can be useful, when we noticed that

sec3u+secutan2udu=secutanu.

As with substitution, we do not have to rely on insight or cleverness to discover such antiderivatives; there is a technique that will often help to uncover the product rule.

Start with the product rule:

ddxf(x)g(x)=f(x)g(x)+f(x)g(x).

We can rewrite this as

f(x)g(x)=f(x)g(x)dx+f(x)g(x)dx,

and then

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

This may not seem particularly useful at first glance, but it turns out that in many cases we have an integral of the form

f(x)g(x)dx

but that

f(x)g(x)dx

is easier. This technique for turning one integral into another is called integration by parts, and is usually written in more compact form. If we let u=f(x) and v=g(x) then du=f(x)dx and dv=g(x)dx and

udv=uvvdu.

To use this technique we need to identify likely candidates for u=f(x) and dv=g(x)dx.

Example 8.5.1

Evaluate xlnxdx.

Solution

Let u=lnx so du=1/xdx. Then we must let dv=xdx so v=x2/2 and

xlnxdx=x2lnx2x221xdx=x2lnx2x2dx=x2lnx2x24+C.

Example 8.5.2

Evaluate xsinxdx.

Solution

Let u=x so du=dx. Then we must let dv=sinxdx so v=cosx and

xsinxdx=xcosxcosxdx=xcosx+cosxdx=xcosx+sinx+C.

Example 8.5.3

Evaluate sec3xdx.

Solution

Of course we already know the answer to this, but we needed to be clever to discover it. Here we'll use the new technique to discover the antiderivative. Let u=secx and dv=sec2xdx. Then du=secxtanxdx and v=tanx and

sec3xdx=secxtanxtan2xsecxdx=secxtanx(sec2x1)secxdx=secxtanxsec3xdx+secxdx.

At first this looks useless---we're right back to sec3xdx. But looking more closely:

sec3xdx=secxtanxsec3xdx+secxdxsec3xdx+sec3xdx=secxtanx+secxdx2sec3xdx=secxtanx+secxdxsec3xdx=secxtanx2+12secxdx=secxtanx2+ln|secx+tanx|2+C.

Example 8.5.4

Evaluate x2sinxdx.

Solution

Let u=x2, dv=sinxdx; then du=2xdx and v=cosx. Now x2sinxdx=x2cosx+2xcosxdx. This is better than the original integral, but we need to do integration by parts again. Let u=2x, dv=cosxdx; then du=2 and v=sinx, and

x2sinxdx=x2cosx+2xcosxdx=x2cosx+2xsinx2sinxdx=x2cosx+2xsinx+2cosx+C.

Such repeated use of integration by parts is fairly common, but it can be a bit tedious to accomplish, and it is easy to make errors, especially sign errors involving the subtraction in the formula. There is a nice tabular method to accomplish the calculation that minimizes the chance for error and speeds up the whole process. We illustrate with the previous example. Here is the table:

sign u

dv

  x2 sinx
2x cosx
  2 sinx
0 cosx
or
u dv
x2 sinx
2x cosx
2 sinx
0 cosx

To form the first table, we start with u at the top of the second column and repeatedly compute the derivative; starting with dv at the top of the third column, we repeatedly compute the antiderivative. In the first column, we place a "'' in every second row. To form the second table we combine the first and second columns by ignoring the boundary; if you do this by hand, you may simply start with two columns and add a "'' to every second row.

To compute with this second table we begin at the top. Multiply the first entry in column u by the second entry in column dv to get x2cosx, and add this to the integral of the product of the second entry in column u and second entry in column dv. This gives:

x2cosx+2xcosxdx,

or exactly the result of the first application of integration by parts. Since this integral is not yet easy, we return to the table. Now we multiply twice on the diagonal, (x2)(cosx) and (2x)(sinx) and then once straight across, (2)(sinx), and combine these as

x2cosx+2xsinx2sinxdx,

giving the same result as the second application of integration by parts. While this integral is easy, we may return yet once more to the table. Now multiply three times on the diagonal to get (x2)(cosx), (2x)(sinx), and (2)(cosx), and once straight across, (0)(cosx). We combine these as before to get

x2cosx+2xsinx+2cosx+0dx=x2cosx+2xsinx+2cosx+C.

Typically we would fill in the table one line at a time, until the "straight across'' multiplication gives an easy integral. If we can see that the u column will eventually become zero, we can instead fill in the whole table; computing the products as indicated will then give the entire integral, including the "+C'', as above.

Contributors


This page titled 8.5: Integration by Parts is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?