Let $f: \mathbb{R} \to \mathbb{R}$ a continuous function so that $\forall x \in \mathbb{R}$
$$f_+'(x)=\lim_{\delta \to 0^+}\frac{f(x+\delta)-f(x)}{\delta}=0.$$ Prove that $f$ is constant.
This is what I've done:
Let's consider $g(x)=f(1-x)$, since $f$ is continuous, $g$ is continuous as well and $g_+'(x)=-f_+'(1-x)=0$. $$g_+'(x)=\lim_{\delta \to 0^+}\frac{g(x+\delta)-g(x)}{\delta}=\lim_{\delta \to 0^+}\frac{f(1-x-\delta)-f(1-x)}{\delta}$$ Now, with the substitutions $\lambda=-\delta$ and $y=1-x$ $$g_+'(x)=\lim_{\lambda \to 0^-}-\frac{f(y+\lambda)-g(y)}{\lambda}=-f_-'(y)$$ $\Rightarrow -f_-'(x)=g_+'(x)=0$
$\Rightarrow f_-'(x)=f_+'(x)=f'(x)=0$, $ \forall x \in \mathbb{R}$.
$f$ is continous and $f'(x)=0 \forall x \in \mathbb{R}$
$\Rightarrow$ $f$ is constant $\forall x \in \mathbb{R}$.
Is this correct? Thank you.