Jump to section
What Is Integration by Parts?
Where Does Integration by Parts Come From?
How to Integrate by Parts
Examples of Integration by Parts
What Is Integration by Parts?
Integration by parts is the most useful integration technique for evaluating the integral of a product of functions. (If you need to review integrals in general, look at this guide to integrals).
After separating a single function into a product of two functions, we can easily evaluate the function's integral by applying the integration by parts formula:
∫udv=uv−∫vdu In this formula, du represents the derivative of u, while v represents the integral of dv. The integral of the product of u and v is then evaluated in terms of the integral of the product of du and v. It's often much easier to solve the integral that results from this formula than it is to directly evaluate the original single function. Integration by parts gives us an efficient way to integrate functions that would otherwise be very difficult to integrate, and it's particularly helpful in tricky cases such as inverse trigonometric functions and logarithmic functions.
Where Does Integration by Parts Come From?
You might be surprised to learn that the formula for integration by parts is derived directly from the familiar Product Rule for derivatives. Let's review the formula for the Product Rule, which states that the derivative of a product of two functions is equal to the first function times the derivative of the second, plus the second function times the derivative of the first:
dxd(uv)=udxdv+vdxdu Multiplying both sides of the equation by the differential dx, we obtain:
d(uv)=udv+vdu Now, let's take the integral of both sides. Remember that the integral of a sum is simply equal to the sum of their integrals. Integrating both sides gives us the following:
∫d(uv)=∫udv+∫vdu uv=∫udv+∫vdu All that's left to do now is rearrange the equation! Let's subtract ∫vdu from both sides. Does the resulting equation look familiar?
∫udv=uv−∫vdu In this way, we can use the Product Rule to obtain the formula for integration by parts. So, if you ever forget the formula for integration by parts during a test, you can rely on the Product Rule to help rediscover it!
How to Integrate by Parts
Let's outline some simple steps for how to integrate by parts:
Choose u and dv to separate the given function into a product of functions.
Differentiate u to find du, and integrate dv to find v.
Plug u, v, du, and dv into the integration by parts formula: ∫udv=uv−∫vdu
Solve, and simplify where needed.
Let's do one example together in greater detail. Suppose we want to evaluate ∫xexdx. First, we separate the function into a product of two functions. To do this, we need to designate one expression as u and one as dv. Let's choose u=x. Since we've chosen u, what's left over must determine dv. Then dv=exdx.
Our next step is to differentiate u to find du. It's clear that dxdu=dxdx=1. Then, multiplying both sides by the differential dx, we find that du=1dx. Now, let's integrate dv to find v. Since the integral of ex is ex itself, we have v=ex. Finally, we plug u=x, v=ex, du=1dx, and dv=exdx into the integration by parts formula. We have:
∫udv=uv−∫vdu
∫xexdx=xex−∫ex(1dx)
∫xexdx=xex−ex+C
We've found that ∫xexdx=xex−ex+C. Remember to include the constant of integration in your final answer!
Now, the question we have to ask is: how do we know what to set equal to u each time, and what to set equal to dv? This decision is where the difficulty lies for many students. If you have a strong intuition for what's easiest to integrate and what's easiest to differentiate, you can denote u as the term you'd rather differentiate and dv as the term you'd rather integrate.
If you feel unsure about what would be easiest to differentiate and integrate, it can be helpful to rely upon the mnemonic “LIATE,” an acronym based on an ordered list of different function types. Usually, the higher a function sits on the list, the higher precedence it takes as u. With this logic, LIATE can help guide your decision on which term to designate as u:
Logarithmic functions: such as lnx, log3(x), etc.
Inverse trigonometric functions: such as arcsin(x), arctan(x), etc.
Algebraic functions: such as x, x2, 4x3, etc.
Trigonometric functions: such as sin(x), cos(x), etc.
Exponential functions: such as ex, 4x, etc.
See if you recognize any of these five function types inside the integral that you are trying to evaluate, and then categorize the terms appropriately in the same order outlined by LIATE. Since functions that are higher on the list are prioritized as u, simply designate u as the term that appears highest on your list. Then, you can set dv equal to whatever is left over.
To remember the formula for integration by parts, it might be helpful to use another mnemonic device. One popular choice for remembering the right-hand side of the integration by parts formula is “ultraviolet voodoo,” where “ultraviolet” corresponds to uv and “voodoo” corresponds to ∫vdu. A well-liked mnemonic for Spanish speakers is, “Un día vi una vaca vestida de uniforme.” With this device, un ( u ) día vi ( dv ) represents the left-side of the integration by parts formula, and una ( u ) vaca ( v ) vestida ( v ) de uniforme (du) represents the right-hand side. The integration by parts formula is included again below for your reference. Can you think of any other mnemonic devices?
∫udv=uv−∫vdu More Examples of Integration by Parts
Let's work through a few more examples together.
1. Evaluate ∫xsin(x)dx.
Let u=x and dv=sin(x)dx.
Differentiating u, we have du=1dx.
Integrating dv, we find v=−cos(x).
Now, let's plug u=x, v=−cos(x), du=1dx, and dv=sin(x)dx into the integration by parts formula.
∫udv=uv−∫vdu
∫xsin(x)dx=−xcos(x)−∫−cos(x)dx
∫xsin(x)dx=−xcos(x)+sin(x)+C
2. Evaluate ∫xln(x)dx.
Let u=ln(x) and dv=x.
Differentiating u, we have du=x1dx.
Integrating dv, we have v=2x2.
Now, we plug u=ln(x), v=2x2, du=x1dx, and dv=x into the integration by parts formula.
∫udv=uv−∫vdu
∫xln(x)=ln(x)⋅2x2−∫2x2⋅x1dx
∫xln(x)=2x2ln(x)−21∫xdx
∫xln(x)=2x2ln(x)−21⋅2x2
∫xln(x)=2x2ln(x)−41x2+C
3. Evaluate ∫x2sin(x)dx.
Let u=x2 and dv=sin(x)dx.
Differentiating u, we have du=2xdx.
Integrating dv, we have v=−cos(x).
Now, let's plug u=x2, v=−cos(x), du=2xdx, and dv=sin(x)dx into the integration by parts formula.
∫udv=uv−∫vdu
∫x2sin(x)dx=x2(−cos(x))−∫(−cos(x))2xdx
∫x2sin(x)dx=−x2cos(x)+2∫xcos(x)dx
Sometimes, you'll have to integrate by parts more than once in the same problem. In this case, we'll need to use it again to evaluate ∫xcos(x)dx.
Let u1=x and dv1=cos(x)dx.
Differentiating u1, we have du1=1dx.
Integrating dv1, we have v1=sin(x).
Now, we plug u1=x, v1=sin(x), du1=1dx, and dv1=cos(x)dx into the integration by parts formula.
∫udv=uv−∫vdu
∫xcos(x)dx=xsin(x)−∫sin(x)dx
∫xcos(x)dx=xsin(x)−(−cos(x))
∫xcos(x)dx=xsin(x)+cos(x)+C
Now, we've found that ∫xcos(x)dx=xsin(x)+cos(x)+C. We can use substitution to plug this value into our original formula to finish the problem. Note that since C is arbitrary, we don't have to multiply it by 2 when distributing. Picking up where we left off, we have:
∫x2sin(x)dx=−x2cos(x)+2∫xcos(x)dx
∫x2sin(x)dx=−x2cos(x)+2(xsin(x)+cos(x)
∫x2sin(x)dx=−x2cos(x)+2xsin(x)+2cos(x)+C
As you can see, integration by parts is a valuable instrument in your mathematical toolbox.
Explore Outlier's Award-Winning For-Credit Courses
Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.
Check out these related courses:
Calculus I
The mathematics of change.
Intro to Statistics
How data describes our world.
Intro to Microeconomics
Why small choices have big impact.