I am aware that it is a duplicate of this post, but I haven't seen anyone presenting the proof which I used.
Could you kindly verify whether my proof is valid please?
The intuition is as follows:
If a function is uniformly continuous, then small perturbation in $x$ results in small perturbation in $y$, namely
$\forall \epsilon > 0, \exists \delta > 0 \text{ s.t. } |x - y| < \delta \implies |f(x) - f(y)| < \epsilon $
In the case of $f(x) = x^2$, consider $x = N, y = N + \frac{1}{N}$, thus $|f(x) - f(y)| = 2 + \frac{1}{N^2}$
As $N \to \infty$, $x$ will be very close to $y$, but $2 + \frac{1}{N^2} \to 2$, thus the $y$-difference $> 2$, hence the criterion of uniform continuity fails for any $\epsilon \leq 2$.
Many thanks in advance!