When an antiderivative is not immediately obvious, we sometimes use a substitution. Substitution is a good choice when we have one part of the integrand โlooks likeโ the derivative of another part of the integrand.
๐ Example375Compute \(\ds \int \, \cos x\sin x \ dx\).
Since the derivative of \(\cos x\) is \(-\sin x\) which "looks like" \(\sin x\text{,}\) then \(u\)-substitution (with \(u=\cos x\)) works well. Note, \(u=\sin x\) would also work.
\begin{align*}
\int \cos x\sin x dx
\amp = \int u \sin x \left[-\frac{1}{\sin x}du\right] \\
\amp = -\int u du \\
\amp = -\frac{u^2}{2} + C \\
\amp = -\frac{1}{2}\cos^2 x + C
\end{align*}
Substitution is a good choice here because we have a natural log function we have \(\ds \frac{1}{x},\) which is the derivative of the natural log. So we would choose
We usually pause to confirm that the new integral is simpler than the original. In this case, it certainly is, so we proceed to integrate and then change back to the original variable, \(x\text{.}\)