Assume that $\lvert f(x)-f(y) \rvert \le \lvert x-y \rvert ^2$ for all $x,y\in \mathbb{R}$. Prove that $f$ is the constant function.
My first thought was to use continuity of $f$, so that we get that $\forall x\in\mathbb{R},\forall \epsilon>0, \exists \delta>0, \forall y \in \mathbb{R}, \lvert x-y \rvert<\delta \implies \lvert f(x)-f(y) \rvert < \epsilon$.
So choosing $y$ so that the above property holds, we get that $\lvert f(x)-f(y) \rvert \le \lvert x-y \rvert ^2 <\delta^2$
Using the inequality I found (supposing it is correct), how would I continue to prove that $f(x)=f(y)$, and so their difference must be zero.