Suppose that $f(y)-f(x) \leq (y-x)^2 $ for all $x\in \mathbb{R}$ and $y\in \mathbb{R}$. Then how can i show $f$ is a constant function.
I encountered this problem reading Calculus book written by Michael Spivak. He said that this would imply that $|f(y)-f(x)| \leq (y-x)^2$ and I could derive this exchanging y and x. And his final hint was Divide the interval from $x$ to $y$ into $n$ equal pieces.