Problem

Source: Romanian I TST 2007

Tags: inequalities, function, algebra proposed, algebra



Let $f: \mathbb{Q}\rightarrow \mathbb{R}$ be a function such that \[|f(x)-f(y)|\leq (x-y)^{2}\] for all $x,y \in\mathbb{Q}$. Prove that $f$ is constant.