Chain rule · Exercise-CHAIN-RULE-008

Step-by-step solved exercise: Derivatives

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

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

Step-by-step solution

  1. Identify the layers: cosine, logarithm, and the polynomial \(\displaystyle x^{2}+1\).

    \[\displaystyle f(x)=\cos(\ln(x^{2}+1))\]
  2. The derivative of the outer layer, the cosine, is \(\displaystyle -\sin\), evaluated at the next layer.

    \[\displaystyle -\sin(\ln(x^{2}+1))\]
  3. Differentiate the logarithm, evaluated at \(\displaystyle x^{2}+1\).

    \[\displaystyle \frac{1}{x^{2}+1}\]
  4. Differentiate the innermost polynomial.

    \[\displaystyle 2x\]
  5. Multiply all the derivatives: the result is \(\displaystyle -\frac{2x}{x^{2}+1}\sin(\ln(x^{2}+1))\).

    \[\displaystyle f'(x)=-\frac{2x}{x^{2}+1}\sin(\ln(x^{2}+1))\]

Answer

\(\displaystyle -\frac{2 x}{x^{2}+1}\sin(\ln(x^{2}+1))\)

🎯 Build my path to this exercise