Let $f: \mathbb{R} \to \mathbb{R}$ be continuously differentiable. Suppose $f’(x) = 0$ only possibly at “individual points” $x$, by which I mean that for any open interval $(c,d)$, there is $x \in (c,d)$ such that $f’(x) \neq 0$.
Consider an open interval $(a,b)$. By the Mean Value Theorem, we can get a function $g$ as follows: for any $t \geq 0$, let $g(t) = c$ where $c \in (a, b+t)$ and $\displaystyle f’(c) = \frac{f(b+t) - f(a)}{(b+t) - a}$.
It's possible to have many such functions $g$, since given $(a, b+t)$ there could be many choices for $c$. In particular, some choices of $g$ may not be continuous. My question is: Does there always exist such a function $g$ that is continuous?
I have looked at this answer but the counterexample presented has $f’ = 0$ over the interval $[1,2]$.