Integration by parts · Exercise-INTEGRATION-BY-PARTS-003

Step-by-step solved exercise: Integrals

Compute \(\displaystyle\int x \sin {x}\,dx\).

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Take \(\displaystyle u=x\) and \(\displaystyle dv=\sin x\,dx\).

    \[\displaystyle u=x,\quad dv=\sin x\,dx\]
  2. Compute \(\displaystyle du=dx\) and \(\displaystyle v=-\cos x\), since the derivative of \(\displaystyle -\cos x\) is \(\displaystyle \sin x\).

    \[\displaystyle du=dx,\quad v=-\cos x\]
  3. Apply the formula \(\displaystyle \int u\,dv=uv-\int v\,du\).

    \[\displaystyle \int x\sin x\,dx = -x\cos x-\int(-\cos x)\,dx\]
  4. Simplify, using \(\displaystyle \int \cos x\,dx=\sin x\), to get the final result.

    \[\displaystyle -x\cos x+\sin x+C\]

    Comment: Check: the derivative of \(\displaystyle -x\cos x+\sin x\) is \(\displaystyle x\sin x\).

Answer

\(\displaystyle - x \cos {x} + \sin {x} + C\)

🎯 Build my path to this exercise