Integration by Parts
AP Calculus BC · Unit 6 — Integration and Accumulation of Change
The product rule, run backwards
$$\int u\,dv=uv-\int v\,du,\qquad \int_a^b u\,dv=\Big[uv\Big]_a^b-\int_a^b v\,du$$The whole skill is choosing $u$. The working order is LIATE: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential — whichever type appears first in that list becomes $u$, and the rest of the integrand becomes $dv$. The reason behind the order is simple: $u$ should be something that gets simpler when differentiated, while $dv$ should be something you can actually antidifferentiate.
Three recurring shapes
Polynomial times exponential or trig. Each round drops the polynomial degree by one, so degree $n$ needs $n$ rounds. The tabular layout does all rounds at once: differentiate the polynomial down to $0$ in the left column, antidifferentiate in the right column, then multiply along the diagonals with signs $+,-,+,\dots$
A lone logarithm or inverse trig. $\int \ln x\,dx$ has no obvious $dv$; take $u=\ln x$ and $dv=dx$, giving $x\ln x-x+C$. The same trick handles $\int\arctan x\,dx$.
Cyclic integrals. For $\int e^{x}\cos x\,dx$, two rounds return the original integral. Call it $I$, solve the resulting equation for $I$ algebraically, and remember the $+C$ at the end.
Worked example: going in a circle and solving for the integral
Tính $\displaystyle\int e^{x}\sin x\,dx$.
Solution
Let $I=\int e^{x}\sin x\,dx$. Choose $u=\sin x$, $dv=e^{x}dx$:
$$I=e^{x}\sin x-\int e^{x}\cos x\,dx$$Continue with the integral on the right, keeping the same type of choice ($u$ is the trigonometric function):
$$\int e^{x}\cos x\,dx=e^{x}\cos x+\int e^{x}\sin x\,dx=e^{x}\cos x+I$$Substitute back up:
$$I=e^{x}\sin x-e^{x}\cos x-I\;\Longrightarrow\;2I=e^{x}\left(\sin x-\cos x\right)$$$$I=\frac{e^{x}}{2}\left(\sin x-\cos x\right)+C$$The vital condition: both rounds must use the same type of choice. If the first round takes the trigonometric function as $u$, so must the second. Switching types midway leads back to the identity $I=I$, which is true but useless.