Question:
Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be continuous and $|f(x) - f(y)| > |x-y|$ for all $x,y \in \mathbb{R}$ and $x \neq y$. Prove that the range of $f$ is $\mathbb{R}$
Answer: I have a hard time writing this.
For any [$x_0, x_1$], it must be that the function within this interval is strictly increasing or decreasing. Otherwise, there is a max (or min) value $f(x_2)$ such that $x_2 \in (x_0,x_1)$. Applying the Intermediate Value Theorem on $[x_0,x_2]$ and $[x_2,x_1]$, then there exists a point $a \in [x_0,x_2]$ and $b \in [x_2,x_1]$ such that $f(a)=f(b)$, contradicting $|f(x) - f(y)| > |x-y|$ for all $x,y \in \mathbb{R}$.
Furthermore, for arbitrary $y_0, y_1, y_2$, if $|f(y_2)-f(y_1)| > |y_2-y_1|$ and $|f(y_1)-f(y_0)| > |y_1-y_0|$ then we have $|f(y_2)-f(y_0)| > |y_2-y_0|$. Otherwise it means that the function on $[y_0,y_1]$ and $[y_1,y_2]$ were not both strictly increasing or strictly decreasing, which leads to the same contradiction, that there exist a $c \in [y_0,y_1]$,$d\in [y_1,y_2]$ on each interval respectively where $f(c)=f(d)$.
Would I be able to then conclude that the range is $\mathbb{R}$? Logically it seems like I can, but it also doesn't seem to be based on any "theorem". I'm essentially just saying "dot dot dot and so on". I don't know if I'm missing anything, or if the arguments are not sound.
Is there a more rigorous way to prove this?