Substitution handles integrals built from the chain rule, but it can't touch something as simple-looking as ∫xcosxdx or ∫lnxdx. Integration by parts is the reverse of the product rule, and it is the main tool for integrating a product of two different kinds of functions.
Where the formula comes from
Start with the product rule for two functions u and v of x:
dxd(uv)=udxdv+vdxdu.
Integrate both sides and rearrange:
uv=∫udv+∫vdu⟹∫udv=uv−∫vdu.
Integration by parts
∫udv=uv−∫vdu
For definite integrals:
∫abudv=[uv]ab−∫abvdu.
The idea is to split the integrand into two pieces: a piece u that you will differentiate, and a piece dv that you will integrate. The formula trades your original integral for ∫vdu. The method works when that new integral is easier than the one you started with.
Choosing u and dv
The choice is the whole game. You want u to get simpler when you differentiate it, and you need dv to be something you can integrate. A common guide is LIATE: choose u as the first type on this list that appears in the integrand.
Letter
Type
Examples
L
Logarithmic
lnx
I
Inverse trig
arctanx, arcsinx
A
Algebraic
x, x2, 3x+1
T
Trigonometric
sinx, cos2x
E
Exponential
ex, e−3x
Logs and inverse trig functions sit at the top because their derivatives (x1, 1+x21) are algebraic and much simpler, while their antiderivatives are hard. Exponentials and sines sit at the bottom because they are easy to integrate over and over.
Worked example: A polynomial times a trig function
Find ∫xcosxdx.
Algebraic comes before trig, so let u=x and dv=cosxdx. Then du=dx and v=sinx.
∫xcosxdx=xsinx−∫sinxdx=xsinx+cosx+C.
Check: dxd(xsinx+cosx)=sinx+xcosx−sinx=xcosx.
Common mistake
If you choose u=cosx and dv=xdx instead, the formula gives 2x2cosx+∫2x2sinxdx, which is harder than the original. When the new integral gets worse, switch your choice of u and dv.
Integrating ln x and arctan x
Some integrals don't look like products at all. Write them as a product with 1 and let dv=dx.
Worked example: The integral of ln x
Find ∫lnxdx.
Let u=lnx and dv=dx. Then du=x1dx and v=x.
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−∫1dx=xlnx−x+C.
The same trick with u=arctanx gives ∫arctanxdx=xarctanx−21ln(1+x2)+C, where the last integral needs a quick substitution.
Definite integrals by parts
With limits, evaluate the uv term at both endpoints and keep the limits on the new integral.
Worked example: A definite integral
Evaluate ∫01xexdx.
Let u=x, dv=exdx, so du=dx and v=ex.
∫01xexdx=[xex]01−∫01exdx=(e−0)−(e−1)=1.
Repeated integration by parts
If u is x2 or x3, one round of parts lowers the power by one, so you apply the formula again. A tabular layout keeps the signs straight. Differentiate u down to zero in one column, integrate dv repeatedly in another, then multiply along the diagonals with alternating signs +,−,+,…
Worked example: Parts twice, in a table
Find ∫x2exdx.
sign
derivatives of x2
integrals of ex
+
x2
ex
−
2x
ex
+
2
ex
0
ex
Multiply each entry in the middle column by the entry one row down in the right column, using the sign in its row:
∫x2exdx=x2ex−2xex+2ex+C=ex(x2−2x+2)+C.
Tip
Sometimes parts brings back the original integral, as in ∫exsinxdx. After two rounds you get an equation like I=exsinx−excosx−I. Solve it algebraically: 2I=ex(sinx−cosx), so I=21ex(sinx−cosx)+C.
Parts with functions given by tables
AP free-response questions often give values of f and f′ instead of a formula. Integration by parts still works, because you only need the uv term at the endpoints and the value of the leftover integral. For example, with u=x and dv=f′(x)dx:
∫abxf′(x)dx=[xf(x)]ab−∫abf(x)dx.
The last practice problem uses this.
Practice
Practice 1
∫xe2xdx=
Practice 2
Evaluate ∫0πxsinxdx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Evaluate ∫1elnxdx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Find the antiderivative F(x) of f(x)=xex that satisfies F(0)=0.
Enter an expression, e.g. 3x^2 - 2x + 1
Practice 5
Evaluate ∫1exlnxdx. Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
∫x2cosxdx=
Practice 7
Evaluate ∫01arctanxdx. Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
The function f is differentiable, with f(0)=1, f(2)=5, and ∫02f(x)dx=3. Find ∫02xf′(x)dx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.