Product rule · Exercise-PRODUCT-RULE-009

Step-by-step solved exercise: Derivatives

Differentiate \(\displaystyle f(x)=x \sin {x}\, e^{x}\) by applying the product rule twice.

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

Step-by-step solution

  1. Group the factors: u = x sin x and v = eˣ.

    \[\displaystyle u=x\sin x,\ v=e^{x}\]
  2. Apply the product rule to u·v: f' = u'v + uv'.

    \[\displaystyle f'=u'v+uv'\]
  3. Differentiate u = x sin x with the product rule: u' = sin x + x cos x.

    \[\displaystyle u'=\sin x+x\cos x\]
  4. Substitute u' and v' = eˣ into the expression for f'.

    \[\displaystyle f'=\left(\sin x+x\cos x\right)e^{x}+x\sin x\,e^{x}\]
  5. Factor out eˣ: f'(x) = eˣ(sin x + x cos x + x sin x).

    \[\displaystyle f'(x)=e^{x}\left(\sin x+x\cos x+x\sin x\right)\]

Answer

\(\displaystyle e^{x}\left(\sin {x} + x \cos {x} + x \sin {x}\right)\)

🎯 Build my path to this exercise