Assume that $f(x)$ and $g(x)$ are both continuous real functions, and that, for $x \ne 0$, $f'(x) = g(x)$.
Is then $f(x)$ differentiable at $x = 0$, with $f'(0) = g(0)$?
Assume that $f(x)$ and $g(x)$ are both continuous real functions, and that, for $x \ne 0$, $f'(x) = g(x)$.
Is then $f(x)$ differentiable at $x = 0$, with $f'(0) = g(0)$?
Yes. By the MVT, we have $$\dfrac{f(0+h)-f(0)}{h} = f'(c(h))=g(c(h))$$ where $0<c(h)<h.$ Taking the limit as $h \to 0$ of both sides yields that $f$ is differentiable with $f'(0)=g(0).$
The reason why we are able to conclude that $\lim_{h \to 0} g(c(h))= g(0)$ is because $g$ is continuous, so $\lim_{h \to 0} g(c(h))= g(\lim_{h \to 0} c(h))=g(0).$