<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation
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 usubstitution 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




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


If we integrate each side,


Solving for udv,


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

Example 1:

Evaluate xsinxdx.


We use the formula udv=uvvdu.





To complete the formula, we take the differential of u and the simplest antiderivative of dv=sinxdx.


The formula becomes


A Guide to Integration by Parts

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




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 u and dv.

Remember, the goal of the integration by parts is to start with an integral in the form udv that is hard to integrate directly and change it to an integral vdu that looks easier to evaluate. However, here is a general guide that you may find helpful:

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

Example 2:

Evaluate xexdx.


Again, we use the formula udv=uvvdu.

Let us choose




We take the differential of u and the simplest antiderivative of dv=exdx:


Substituting back into the formula,


We have made the right choice because, as you can see, the new integral vdu=exdx is definitely simpler than our original integral. Integrating, we finally obtain our solution


Example 3:

Evaluate lnxdx.


Here, we only have one term, lnx. We can always assume that this term is multiplied by 1:

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


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

\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*}x2exdx.


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

\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*}x2exxex. This tells us that we have made the right choice. However, to evaluate \begin{align*}\int xe^x dx\end{align*}xexdx we still need to integrate by parts with \begin{align*}u = x\end{align*}u=x and \begin{align*}dv = e^x dx.\end{align*}dv=exdx. Then \begin{align*}du = dx\end{align*}du=dx and \begin{align*}v = e^x,\end{align*}v=ex, and

\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*}.


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*}.


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*}


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

  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.

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

  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*}.

Review Answers

  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*}

Image Attributions

Files can only be attached to the latest version of section


Please wait...
Please wait...
Image Detail
Sizes: Medium | Original

Original text