Im trying to prove that if $f\colon \mathbb{R}\to\mathbb{R}$ such that for all $x,y\in\mathbb{R}$ we have $\lvert f(x)-f(y)\rvert \leq (x-y)^2$ then $f$ is constant.
I have shown that if $f$ is differentiable, then the statement is true. But without the differentiability condition, I'm having a hard time.
Hint: $$0 \leq \lim_{x \to y} \frac{\lvert f(x)-f(y) \rvert}{\lvert x-y \rvert} \leq \lim_{x \to y} \lvert x-y \rvert.$$