The statement of the proposition:
Proposition. For every rational number $\epsilon > 0$, there exists a non-negative rational number $x$ such that $x^{2} < 2 < (x+\epsilon)^2$.
The most common approach to proving the proposition is by using contradiction (1,2).
My question is: is it possible to prove the proposition directly? More concretely, is it possible to find a function $f: \mathbb Q^+\rightarrow \mathbb Q^+$ such that for arbitrary positive rational $\epsilon$, we have
$$f(\epsilon)^2 < 2 < (f(\epsilon) + \epsilon)^2 $$
?