I'm attempting to prove the following statement:
Let $f:\mathbb{R}\to\mathbb{R}$ be a function and suppose that $|f(x)-f(y)|\leq (x-y)^2$ for all $x,y\in\mathbb{R}$, therefore f is constant.
I was trying to prove it by a theorem that states that; Let f be a differentiable function in $(a,b)$. Therefore if $f'(x)=0$ for all $x,y\in(a,b)$, then f is constant.
But i'm stuck trying to prove that f is differentiable to use the above theorem.