Product rule · Exercise-PRODUCT-RULE-008

Step-by-step solved exercise: Derivatives

Differentiate \(\displaystyle f(x)=\left(x + 2\right) \cos {x}\).

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

Step-by-step solution

  1. Identify the factors: u = x + 2 and v = cos x.

    \[\displaystyle u=x+2,\ v=\cos x\]
  2. Differentiate each factor: u' = 1 and v' = −sin x.

    \[\displaystyle u'=1,\ v'=-\sin x\]
  3. Apply the product rule: (uv)' = u'v + uv'.

    \[\displaystyle (uv)'=u'v+uv'\]
  4. Substitute: f'(x) = cos x − (x + 2) sin x.

    \[\displaystyle f'(x)=\cos x-\left(x+2\right)\sin x\]

Answer

\(\displaystyle \cos {x} - \left(x + 2\right) \sin {x}\)

🎯 Build my path to this exercise