Product rule · Exercise-PRODUCT-RULE-005

Step-by-step solved exercise: Derivatives

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

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

Step-by-step solution

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

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

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

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

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

Answer

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

🎯 Build my path to this exercise