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