Let $f:\mathbb{R}\rightarrow \mathbb{R}$ be differentiable. Must there exist a continuous function $g:\{(a,b)\in \mathbb{R}^2: a<b\}\rightarrow \mathbb{R}$ such that:
For every two distinct real numbers $a,b$ (with $a<b$) we have: $g(a,b)\in [a,b]$ and $f'(g(a,b))=\frac{f(b)-f(a)}{b-a}$
If the answer is no, does it at least hold if we add the condition that $f$ is continuously differentiable ?
The mean value theorem (along with axiom of choice) guarantees that such a function $g$ must exist if we don't insist on continuity of $g$.
Thank you.