DerivativesMedium

Chain rule — composite function

Calculate the derivative of f(x) = sin(ln(x² + 1)) using the chain rule.
Given data
f(x) = sin(ln(x² + 1))
Review the theory: Derivate
Steps
0 / 5
  1. Identify the layered structure: f = sin(u), u = ln(v), v = x² + 1.
  2. Differentiate the outer layer: d/du sin(u) = ?
  3. Differentiate the middle layer: d/dv ln(v) = ?
  4. Differentiate the inner layer: d/dx (x² + 1) = ?
  5. Multiply everything: f'(x) = cos(ln(x²+1)) · 1/(x²+1) · 2x = ?
Full worked solution
  1. Identify the layered structure: f = sin(u), u = ln(v), v = x² + 1.
    f=sin⁡(u),u=ln⁡(v),v=x2+1f = \sin(u),\quad u = \ln(v),\quad v = x^2 + 1
    f(x)=sin⁡(ln⁡(x2+1))f(x) = \sin(\ln(x^2+1)) has three layers: outer sin⁡\sin, middle ln⁡\ln, inner x2+1x^2+1. We differentiate from outside in using the chain rule.
  2. Differentiate the outer layer: d/du sin(u) = ?
    ddusin⁡(u)=cos⁡(u)\dfrac{d}{du}\sin(u) = \cos(u)
    ddusin⁡(u)=cos⁡(u)=cos⁡(ln⁡(x2+1))\frac{d}{du}\sin(u) = \cos(u) = \cos(\ln(x^2+1)). The derivative of the outer sine function evaluated at the middle layer.
  3. Differentiate the middle layer: d/dv ln(v) = ?
    ddvln⁡(v)=1v\dfrac{d}{dv}\ln(v) = \dfrac{1}{v}
    ddvln⁡(v)=1v=1x2+1\frac{d}{dv}\ln(v) = \frac{1}{v} = \frac{1}{x^2+1}. The derivative of the natural logarithm of the inner function.
  4. Differentiate the inner layer: d/dx (x² + 1) = ?
    ddx(x2+1)=2x\dfrac{d}{dx}(x^2 + 1) = 2x
    ddx(x2+1)=2x\frac{d}{dx}(x^2+1) = 2x. The derivative of the innermost polynomial.
  5. Multiply everything: f'(x) = cos(ln(x²+1)) · 1/(x²+1) · 2x = ?
    f′(x)=2xcos⁡(ln⁡(x2+1))x2+1f'(x) = \dfrac{2x \cos(\ln(x^2+1))}{x^2+1}
    f′(x)=cos⁡(ln⁡(x2+1))⋅1x2+1⋅2x=2x cos⁡(ln⁡(x2+1))x2+1f'(x) = \cos(\ln(x^2+1)) \cdot \frac{1}{x^2+1} \cdot 2x = \mathbf{\frac{2x\,\cos(\ln(x^2+1))}{x^2+1}}. Multiplying the derivatives of all three layers gives the final result.
Result:f'(x) = 2x·cos(ln(x²+1)) / (x²+1).