Letting u=f(x)⇒du=f′(x)dx and v=g(x)⇒dv=g′(x)dx, our equation becomes:
∫f(x)g′(x)dx∫udv=f(x)g(x)−∫f′(x)g(x)dx=uv−∫vdu
Therefore, we get the following formula: ∫udv=uv−∫vdu
Keep in mind that this technique is supposed to make integrating easier, not harder. This means that the integral ∫vdu should be easier than ∫udv.
To make sure this occurs, we must make the right choice for u and dv. While this requires a bit of trial and error, we have general guidelines as to which functions work best for u and dv:
This means that u and dv should be functions of different type. That is: a log and a polynomial or a trig function and an exponential or . . . the list goes on.
Focus on choosing a u that is the easier to differentiate and a dv that is easier to integrate. Use LIPET and LIATE (or ILATE) as a guide.
Example 1
Compute ∫xexdx.
View Answer
xex−ex+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To compute ∫xexdx, we begin by making our choices for u and dv (and then calculating du and v):
udu=x=dxdvv=exdx=ex
We then compute the integral by plugging everything into the integration by parts formula:
∫xexdx=xex−∫exdx=xex−ex+C
Example 2
Compute ∫xcosxdx.
View Answer
xsinx+cosx+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To compute ∫xcosxdx, we begin by making our choices for u and dv (and then calculating du and v):
udu=x=dxdvv=cosxdx=sinx
We then compute the integral by plugging everything into the integration by parts formula:
∫xcosxdx=xsinx−∫sinxdx=xsinx+cosx+C
Multiple Rounds of IBP
Sometimes, we have to apply the integration by parts formula more than once to fully solve the problem. We will learn to determine whether multiple rounds are needed simply by inspecting the original integral. For example, polynomial terms that have a degree larger than 1 will require multiple derivatives (and therefore multiple u→du rounds) to reduce that polynomial and make the resulting integral (vdu) possible.
This repetition of IBP is analogous to doing multiple rounds of L'Hopital's Rule to solve an indeterminate limit. It is important to maintain the same type of function for u and for dv when doing multiple rounds.
Example 3
Compute ∫x2exdx using the integration by parts formula.
View Answer
ex(x2−2x+2)+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To compute ∫x2exdx, we begin by making our choices for u and dv (and then calculating du and v):
udu=x2=2xdxdvv=exdx=ex
Plugging everything into the integration by parts formula, we get:
∫x2exdx=x2ex−∫ex⋅2xdx=x2ex−∫2xexdx
Notice how the new integral ∫2xexdx requires us to perform another round of integration by parts (two functions of different type -- polynomial and exponential). We should have guessed this from the beginning, as x2 requires two rounds of differentiation to become a constant and allow for the integration of itself multiplied by ex.
When performing the next round of IBP, we must choose new values for u and dv. At this step, it is very import to choose the same type of function for u and for dv. That is, u should be another polynomial and dv should be another exponential, as those were the functions we chose for u and dv during our first round of IBP. Therefore:
udu=2x=2dxdvv=exdx=ex
Building on from our first round of integration, we get:
To help speed things up and bookkeep a bit better, we can use the tabular method (sometimes referred to as a derivative-integral (DI) table).
With the tabular method, you want to follow these general steps:
Create a table with two columns: u (or D) column and dv (or I) column
Write down your choices of u and dv on the first row
Take the derivative of your u until you get 0
Take the integral of your dv until you get to the row you stopped at in Step 3
Put alternating +/− signs, starting with +, on each row you have
Multiply all diagonal terms and add them up
The alternating sign in Step 5 takes into account the negative signs that get introduced in each round of IBP (uv−∫vdu).
Example 4
Compute ∫x2exdx again, this time using the tabular method.
View Answer
(x2−2x+2)ex+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
Following the general steps above, we should generate the following table:
Solution coming soon.
Functions That Never Terminate
We might run into some integrals for which the functions in the integrand never terminate, no matter how many times we integrate or differentiate them (such as exponential and trigonometric functions). In these cases, we look for a constant multiple of the original integral.
Example 5
Compute ∫exsinxdx.
View Answer
21ex(sinx−cosx)+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
Solution coming soon.
Definite Integrals
So far, we've only seen IBP applied to indefinite integrals (ones with no bounds/limits of integration). Let's take a look at how to perform these integrals if we had bounds.
Keep in mind we have two options:
Compute the antiderivative without the bounds, then use the Fundamental Theorem of Calculus (FTC) to evaluate
Evaluate on the bounds as we go
Generally, it is easiest to do Option 1.
Example 6
Compute ∫1exlnxdx.
View Answer
41(e2+1)
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To solve ∫1exlnxdx, we begin by making our choices for u and dv (and then calculating du and v):
udu=lnx=x1dxdvv=xdx=2x2
We then solve the integral via integration by parts (using either Option 1 or Option 2):
As you can see, both answers come out to be the same no matter which option you choose.
You can also use the tabular method for definite integrals that require multiple rounds of IBP. To do so, simply solve the integral as if it was an indefinite integral and then evaluate the final expression obtained from the table on the given bounds using the FTC.
Trickier Integrals
Sometimes, we might run into integrals that don't seem to fit the typical "two functions of different type" form for IBP we've seen so far. That doesn't necessarily mean that IBP can't help us to solve the integral.
Challenge 1
Compute ∫lnxdx.
View Answer
xlnx−x+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To solve ∫lnxdx, we begin by making our choices for u and dv (and then calculating du and v). We have to be creative here as there doesn't seem to be two functions in the problem.
udu=lnx=x1dxdvv=dx=x
We then compute the integral by plugging everything into the integration by parts formula:
∫lnxdx=lnx⋅x−∫x⋅x1dx=xlnx−∫dx=xlnx−x+C
Other times, the integral fits the form but it's just a pain to do!
Challenge 2
Compute ∫xarctanxdx.
View Answer
2x2arctanx−21(x−arctanx)+C
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).
To solve ∫xarctanxdx, we begin by making our choices for u and dv (and then calculating du and v):
udu=arctanx=x2+11dxdvv=xdx=2x2
We then compute the integral by plugging everything into the integration by parts formula:
The resulting integrand is an improper fraction, and so we will apply what we learned from Partial Fraction Decomposition: perform long division to make it proper.
Integration by parts is a great technique to use when the integrand consists of two different types of functions (i.e. logarithmic and exponential, trigonometric and polynomial, etc.).
Practice Problems
Problem 1
Compute ∫π/2πxcosxdx.
View Answer
−22+π
View Solution
Missing Video
This video tutorial is still in the works. In the meantime, please use the text version.
For additional content, check out our Youtube channel (click this container).