Determine all functions $f$ defined for all real numbers such that $$|f(x+h)-f(x)| \le h^2.$$
If we assume $f$ is not constant, then there exists some $ x$ and $y$ with $x \ne y$ such that $ f(x) \ne f(y) $.
Let $h = y - x$. Then
$$ |f(y) - f(x)| = |f(x + h) - f(x)| \le h^2 = (y - x)^2. $$
$ f(x) \ne f(y) \implies |f(y) - f(x)| > 0 $. However, as $y$ approaches $ x $, $ h = y - x $ approaches $0$, and $ h^2 $ approaches $0$, hence $ |f(y) - f(x)| $ approaches $0$, meaning $f(y) $ approaches $ f(x) $.
Hence a possible solution I've found is $f(x)=c$, since $|c-c|=0\le h^2$ is true.
Can someone verify this into a proper solution?
Cheers.