Use the integration-by-parts formula to solve integration problems.
Use the integration-by-parts formula for definite integrals.
If, h(x)=f(x)g(x)h(x)=f(x)g(x), then by using the product rule, we obtain h′(x)=f′(x)g(x)+g′(x)f(x)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∫h′(x)dx=∫(g(x)f′(x)+f(x)g′(x))dx.
By making the substitutions u=f(x)u=f(x) and v=g(x)v=g(x), which in turn make du=f′(x)dxdu=f′(x)dx and dv=g′(x)dxdv=g′(x)dx, we have the more compact form
∫udv=uv−∫vdu∫udv=uv−∫vdu.
Integration by Parts
Let u=f(x)u=f(x) and v=g(x)v=g(x) be functions with continuous derivatives. Then, the integration-by-parts formula for the integral involving these two functions is:
∫udv=uv−∫vdu∫udv=uv−∫vdu.
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.
Example: Using Integration by Parts
Use integration by parts with u=xu=x and dv=sinxdxdv=sinxdx to evaluate ∫xsinxdx∫xsinxdx.
Show Solution
Solution
By choosing u=xu=x, we have du=1dxdu=1dx. Since dv=sinxdxdv=sinxdx, we get v=∫sinxdx=-cosxv=∫sinxdx=-cosx. It is handy to keep track of these values as follows:
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=sinxu=sinx and dv=xdv=x. If we had done so, then we would have du=cosxdu=cosx and v=12x2v=12x2. Thus, after applying integration by parts, we have ∫xsinxdx=12x2sinx−∫12x2cosxdx∫xsinxdx=12x2sinx−∫12x2cosxdx. 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 uu and dvdv before finding a choice that works.
Second, you may wonder why, when we find v=∫sinxdx=-cosxv=∫sinxdx=-cosx, we do not use v=-cosx+Kv=-cosx+K. To see that it makes no difference, we can rework the problem using v=-cosx+K:v=-cosx+K:
Evaluate ∫xe2xdx∫xe2xdx using the integration-by-parts formula with u=xu=x and dv=e2xdxdv=e2xdx.
Hint
Find dudu and vv, and use the previous example as a guide.
Show Solution
∫xe2xdx=12xe2x−14e2x+C∫xe2xdx=12xe2x−14e2x+C
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
The natural question to ask at this point is: How do we know how to choose uu and dv?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 uu.
The type of function in the integral that appears first in the list should be our first choice of uu. For example, if an integral contains a logarithmic function and an algebraic function, we should choose uu to be the logarithmic function, because L comes before A in LIATE. The integral in the previous example has a trigonometric function (sinx)(sinx) and an algebraic function (x)(x). Because A comes before T in LIATE, we chose uu to be the algebraic function. When we have chosen uu, dvdv is selected to be the remaining part of the function to be integrated, together with dxdx.
Why does this mnemonic work? Remember that whatever we pick to be dvdv 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 dvdv. Consequently, they should be at the head of the list as choices for uu. 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 dvdv. 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 uu and which one is dvdv.) Algebraic functions are generally easy both to integrate and to differentiate, and they come in the middle of the mnemonic.
To use the by-parts technique successfully, it is helpful to first review the derivative rules of several familiar transcendental functions.
Recall: Derivative rules for transcendental functions
ddx(sinx)=cosxddx(sinx)=cosx
ddx(cosx)=−sinxddx(cosx)=−sinx
ddx(lnx)=1xddx(lnx)=1x
ddx(arcsinx)=1√1−x2ddx(arcsinx)=1√1−x2
ddx(arctanx)=11+x2ddx(arctanx)=11+x2
example: Using integration by parts
Evaluate ∫lnxx3dx∫lnxx3dx.
Show Solution
Begin by rewriting the integral:
∫lnxx3dx=∫x−3lnxdx∫lnxx3dx=∫x−3lnxdx.
Since this integral contains the algebraic function x−3x−3 and the logarithmic function lnxlnx, choose u=lnxu=lnx, since L comes before A in LIATE. After we have chosen u=lnxu=lnx, we must choose dv=x−3dxdv=x−3dx.
Next, since u=lnxu=lnx, we have du=1xdxdu=1xdx. Also, v=∫x−3dx=−12x−2v=∫x−3dx=−12x−2. Summarizing,
Substituting into the integration-by-parts formula gives
∫lnxx3dx=∫x−3lnxdx=(lnx)(-12x−2)−∫(-12x−2)(1xdx)=−12x−2lnx+∫12x−3dxSimplify.=−12x−2lnx−14x−2+CIntegrate.=−12x2lnx−14x2+C.Rewrite with positive integers.∫lnxx3dx=∫x−3lnxdx=(lnx)(-12x−2)−∫(-12x−2)(1xdx)=−12x−2lnx+∫12x−3dxSimplify.=−12x−2lnx−14x−2+CIntegrate.=−12x2lnx−14x2+C.Rewrite with positive integers.
try it
Evaluate ∫xlnxdx∫xlnxdx.
Hint
Use u=lnxu=lnx and dv=xdxdv=xdx.
Show Solution
12x2lnx−14x2+C12x2lnx−14x2+C
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
We still cannot integrate ∫23xe3xdx∫23xe3xdx directly, but the integral now has a lower power on xx. We can evaluate this new integral by using integration by parts again. To do this, choose u=xu=x and dv=23e3xdxdv=23e3xdx. Thus, du=dxdu=dx and v=∫(23)e3xdx=(29)e3xv=∫(23)e3xdx=(29)e3x. Now we have
Example: Applying Integration by Parts When LIATE Doesn’t Quite Work
Evaluate ∫t3et2dt∫t3et2dt.
Show Solution
If we use a strict interpretation of the mnemonic LIATE to make our choice of uu, we end up with u=t3u=t3 and dv=et2dtdv=et2dt. Unfortunately, this choice won’t work because we are unable to evaluate ∫et2dt∫et2dt. However, since we can evaluate ∫tet2dx∫tet2dx, we can try choosing u=t2u=t2 and dv=tet2dtdv=tet2dt. With these choices we have
Example: Applying Integration by Parts More Than Once
Evaluate ∫sin(lnx)dx∫sin(lnx)dx.
Show Solution
Solution
This integral appears to have only one function—namely, sin(lnx)sin(lnx) —however, we can always use the constant function 1 as the other function. In this example, let’s choose u=sin(lnx)u=sin(lnx) and dv=1dxdv=1dx. (The decision to use u=sin(lnx)u=sin(lnx) is easy. We can’t choose dv=sin(lnx)dxdv=sin(lnx)dx because if we could integrate it, we wouldn’t be using integration by parts in the first place!) Consequently, du=1xcos(lnx)dxdu=1xcos(lnx)dx and v=∫1dx=xv=∫1dx=x. After applying integration by parts to the integral and simplifying, we have
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)u=cos(lnx) and dv=1dxdv=1dx, making du=-1xsin(lnx)dxdu=-1xsin(lnx)dx and v=∫1dx=xv=∫1dx=x. Substituting, we have
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)dxI=∫sin(lnx)dx. Thus, the equation becomes
I=xsin(lnx)−xcos(lnx)−II=xsin(lnx)−xcos(lnx)−I.
First, add II to both sides of the equation to obtain
This is similar to the previous example: Evaluate ∫x2e3xdx.
Show Solution
-x2cosx+2xsinx+2cosx+C
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
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
∫baudv=uv|ba−∫bavdu.
Example: 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].
Show Solution
This region is shown in Figure 1. To find the area, we must evaluate 1∫0tan−1xdx.
Figure 1. To find the area of the shaded region, we have to use integration by parts.
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 we obtain
Area=xtan−1x|10−1∫0xx2+1dx.
Use u-substitution to obtain
1∫0xx2+1dx=12ln|x2+1|10.
Thus,
Area=xtan−1x|10−12ln|x2+1||10=π4−12ln2.
At this point it might not be a bad idea to do a “reality check” on the reasonableness of our solution. Since π4−12ln2≈0.4388, and from Figure 1 we expect our area to be slightly less than 0.5, this solution appears to be reasonable.
Example: Finding a volume of revolution
Find the volume of the solid obtained by revolving the region bounded by the graph of f(x)=e-x, the x-axis, the y-axis, and the line x=1 about the y-axis.
Show Solution
Solution
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).
Figure 2. We can use the shell method to find a volume of revolution.
To find the volume using shells, we must evaluate 2π∫10xe-xdx. To do this, let u=x and dv=e-x. These choices lead to du=dx and v=∫e-x=-e-x. Substituting into the integration-by-parts for definite integrals formula, we obtain
Volume=2π1∫0xe-xdx=2π(-xe-x|10+1∫0e-xdx)Use integration by parts.=−2πxe-x|10−2πe-x|10Evaluate1∫0e-xdx=-e-x|10.=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 1e added to the volume of a cone of base radius 1 and height of 1−13. Consequently, the solid should have a volume a bit less than
π(1)21e+(π3)(1)2(1−1e)=2π3e−π3≈1.8177.
Since 2π−4πe≈1.6603, we see that our calculated volume is reasonable.
try it
Evaluate ∫π/20xcosxdx.
Hint
Use the integration-by-parts formula with u=x and dv=cosxdx.
Show Solution
π2−1
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.