Again, let’s use Carathéodory.
We know that there are \(\Phi\) so that \(f(x)=f(c)+\Phi(x)(x-c)\) and \(\Psi\) so that \(g(y)=g(f(c))+\Psi(y)(y-f(c))\text{.}\) So we have
\begin{align*}
g(f(x))&=g(f(c))+\Psi(f(x))(f(x)-f(c))\\
&g(f(c))+\Psi(f(x))\left(\Psi(x)(x-c)\right)
\end{align*}
So that setting \(\Theta(x)=\Psi(f(x))\Psi(x)\text{,}\) we have
\begin{equation*}
g(f(x))=g(f(c))+\Theta(x)(x-c)\ \ .
\end{equation*}
Since \(\Phi\) is continuous at \(c\) and \(\Psi\) is continuous at \(f(c)\text{,}\) we get that \(\Theta\) is continuous at \(c\text{.}\) Thus \(g\circ f\) is differentiable according to Carathéodory at \(c\text{.}\)
Evaluating
\(\Theta(c)\) gives the claimed formula for
\(D(g\circ f)\text{.}\)