Integration by parts · Exercise-INTEGRATION-BY-PARTS-006
Step-by-step solved exercise: Integrals
Compute \(\displaystyle\int x \cos {x}\,dx\).
Integration by parts · Exercise-INTEGRATION-BY-PARTS-006
Compute \(\displaystyle\int x \cos {x}\,dx\).
Take \(\displaystyle u=x\) and \(\displaystyle dv=\cos x\,dx\).
Compute \(\displaystyle du=dx\) and \(\displaystyle v=\sin x\).
Apply the formula \(\displaystyle \int u\,dv=uv-\int v\,du\).
Use \(\displaystyle \int \sin x\,dx=-\cos x\) to get the final result.
Comment: Check: the derivative of \(\displaystyle x\sin x+\cos x\) is \(\displaystyle x\cos x\).
\(\displaystyle x \sin {x} + \cos {x} + C\)