Substitution undoes the chain rule. But what about ∫xe2xdx or ∫lnxdx? There is no inside function whose derivative is sitting there. These integrals come from the product rule, and integration by parts is the product rule run backwards. In AP Calculus it’s a BC-only technique (in IB it’s AA HL), and it shows up on exams both on its own and inside bigger problems (improper integrals, Taylor series, area and volume).
The product rule says dxd(uv)=udxdv+vdxdu. Integrate both sides and rearrange:
∫udv=uv−∫vdu
You split the integrand into two pieces: u (which you will differentiate) and dv (which you will integrate). The goal is a new integral ∫vdu that is easier than the one you started with.
A tidy way to organize your work is a small box:
Differentiate
Integrate
Choose
u=…
dv=…
Find
du=…
v=…
When you find v, leave off the +C. One constant at the very end is enough.
Pick u to be the factor that gets simpler when you differentiate it, and dv to be something you can actually integrate. The guide LIATE lists good choices for u, best first:
L
I
A
T
E
Logarithms
Inverse trig
Algebraic (powers of x)
Trig
Exponentials
For example, in ∫xe2xdx the x (Algebraic) comes before e2x (Exponential), so u=x. LIATE is a guide, not a law: if your choice makes the new integral worse, switch.
For ∫x2exdx, one round of parts lowers x2 to 2x, and a second round lowers it to a constant. Just do parts twice, carefully.
When u is a polynomial that eventually differentiates to 0, the tabular method (optional, but quick) keeps the bookkeeping straight. Differentiate u down one column until you reach 0, integrate dv down the other, then multiply along the diagonals with alternating signs +,−,+,… (see Example 3).
For ∫excosxdx, neither factor ever gets simpler. Do parts twice, and the original integral shows up again on the right side. Treat it as an unknown I and solve for it algebraically (Example 4).
Trig on this page is in radians, as it is throughout calculus. (Grade 11 trig used degrees; the derivative rules for sin and cos only work in radians.)
Solution. Take u=x2 and dv=sinxdx, so du=2xdx and v=−cosx:
∫x2sinxdx=−x2cosx+∫2xcosxdx
The new integral still needs parts. Take u=2x, dv=cosxdx, so du=2dx, v=sinx:
∫2xcosxdx=2xsinx−∫2sinxdx=2xsinx+2cosx
Putting it together:
∫x2sinxdx=−x2cosx+2xsinx+2cosx+C
Tabular version. Differentiate x2 down to 0; integrate sinx the same number of times:
Sign
Differentiate u
Integrate dv
+
x2
sinx
−
2x
−cosx
+
2
−sinx
0
cosx
Multiply each entry in the left column by the entry one row down in the right column, using the signs: (+)(x2)(−cosx)+(−)(2x)(−sinx)+(+)(2)(cosx), which gives the same answer.
Choosing u and dv backwards. With u=e2x and dv=xdx in Example 1, the new integral is ∫21x2⋅2e2xdx, which is worse. If the power of x goes up, switch your choice.
Sign errors in the minus sign. The formula has uv−∫vdu. When v is itself negative (like v=−cosx), the subtraction becomes addition. Put brackets around ∫vdu before simplifying.
Switching choices on the second round. In Example 4, if you used u=cosx the first time but u=ex the second time, you would just undo your first step and get I=I. Keep the same type of function as u each time.
Forgetting to evaluate uv at the limits. In a definite integral, the uv term needs [uv]ab too, not just the leftover integral.
Dropping the + C or adding it too early. Leave the constant off v; put a single +C on the final indefinite answer.
Forcing parts when substitution works.∫xex2dx is a u-substitution (u=x2), not parts. Always check for an inside function and its derivative first.
Logarithm first in LIATE: u=lnx, dv=xdx, so du=x1dx, v=21x2:
∫xlnxdx=21x2lnx−∫21x2⋅x1dx=21x2lnx−41x2+C
4. (Core) Evaluate ∫01xexdx.
Solution
u=x, dv=exdx, so du=dx, v=ex:
∫01xexdx=[xex]01−∫01exdx=e−[ex]01=e−(e−1)=1
5. (Core) Find ∫x2exdx.
Solution
Tabular method with u=x2, dv=exdx:
Sign
Differentiate
Integrate
+
x2
ex
−
2x
ex
+
2
ex
0
ex
∫x2exdx=x2ex−2xex+2ex+C=ex(x2−2x+2)+C
6. (Core) Find ∫arctanxdx.
Solution
As with lnx, use u=arctanx, dv=dx, so du=1+x21dx, v=x:
∫arctanxdx=xarctanx−∫1+x2xdx
The last integral is a substitution (w=1+x2, xdx=21dw):
∫arctanxdx=xarctanx−21ln(1+x2)+C
7. (Core) A cyclist’s velocity is v(t)=te−t/2 metres per second, for t in seconds. Find the distance she travels from t=0 to t=4. Give an exact answer and a decimal to 3 places.
Solution
Since v(t)≥0, distance =∫04te−t/2dt. Take u=t, dv=e−t/2dt, so du=dt, v=−2e−t/2: