Integration by parts reverses the product rule. From (uv)′ = u′v + uv′ comes ∫u dv = uv − ∫v du, which trades one integral for another. Choose u to be a factor that gets simpler when differentiated, such as a power of x or ln x, and dv a factor you can integrate, such as eˣ, sin x or cos x. Some integrals need parts twice; some come back to where they started, and then the equation can be solved for the integral.
What you'll learn
Derive integration by parts from the product rule
Choose u and dv so the new integral is simpler
Apply parts repeatedly, and solve for an integral that returns
The formula trades ∫udv for ∫vdu. The trade moves the derivative
from one factor to the other: u gets differentiated and dv gets integrated.
If differentiating u makes it simpler, as it turns x into 1, the new
integral is easier than the old. Choose u so that differentiating it
simplifies the problem.
The formula has a picture. As x runs along, the point (v,u) traces a curve.
When u and v both start at 0, the area under the curve is ∫udv and
the area to its left is ∫vdu. Together they fill a rectangle of area
uv.
the curve traced by (v, u)
Two areas that fill a rectangle
The LIATE order is a reliable guide to choosing u: take the first factor
on the list Logarithmic, Inverse trigonometric, Algebraic,
Trigonometric, Exponential. Factors late in the list have simple
antiderivatives, so they make good choices for dv.
LIATE puts the logarithm first: u=lnx, dv=xdx, v=2x2. Then 2x2lnx−∫2x2⋅x1dx=2x2lnx−4x2+C.
Find ∫arctanxdx.
Answer
xarctanx−21ln(1+x2)+C
Full solution
u=arctanx, dv=dx: xarctanx−∫1+x2xdx. Substitute w=1+x2 in the last integral to get 21ln(1+x2).
Find ∫x2exdx.
Answer
ex(x2−2x+2)+C
Full solution
u=x2: x2ex−∫2xexdx. By Example 1, ∫2xexdx=2xex−2ex. So the answer is x2ex−2xex+2ex+C.
Evaluate ∫01xexdx.
Answer
1
Full solution
[xex−ex]01=(e−e)−(0−1)=1.
Evaluate ∫1elnxdx.
Answer
1
Full solution
[xlnx−x]1e=(e−e)−(0−1)=1.
Find ∫excosxdx.
Answer
2ex(sinx+cosx)+C
Full solution
Call it J. Parts with u=cosx: J=excosx+∫exsinxdx. Parts again with u=sinx: ∫exsinxdx=exsinx−J. So J=excosx+exsinx−J, and 2J=ex(sinx+cosx).
Find ∫xsec2xdx.
Answer
xtanx+ln∣cosx∣+C
Full solution
u=x, dv=sec2xdx, v=tanx: xtanx−∫tanxdx=xtanx+ln∣cosx∣+C, using ∫tanxdx=−ln∣cosx∣+C.
A student tries ∫xexdx with u=ex and dv=xdx, gets 2x2ex−∫2x2exdx, and concludes the integral cannot be done. What went wrong?
Hint
Which factor gets simpler when differentiated?
Answer
The choice of u. With u=x and dv=exdx, the answer is xex−ex+C.
Full solution
Differentiating ex leaves it unchanged, while integrating x raises its power, so the student’s new integral is harder than the original.
Differentiating x gives 1, so taking u=x leaves ∫exdx, which is immediate.
Frequently asked questions
What is the integration by parts formula?
∫u dv = uv − ∫v du. For definite integrals, the uv term is evaluated between the limits.
How do I choose u?
Pick the factor that gets simpler when you differentiate it. The LIATE order — logarithmic, inverse trig, algebraic, trigonometric, exponential — lists the usual first choices for u.
What if the new integral is harder than the original?
Swap the choices. In ∫x eˣ dx, taking u = eˣ raises the power of x; taking u = x removes it.
What if integrating by parts brings back the original integral?
Treat the integral as an unknown I. The equation I = (something) − I can be solved: I = (something)/2, plus C.
How do I integrate ln x?
Use parts with u = ln x and dv = dx: ∫ln x dx = x ln x − x + C.