Let $$f(x)=\begin{cases}x&x\in \mathbb{Q}\\ 0&x\in \mathbb{R\setminus Q}\end{cases}$$ and $0<\epsilon$
(1) $\;\;f(x)$ approaches some $l$ (namely $0$) as $x\rightarrow a=0$
for
$$|f(x)-0|<\epsilon\iff |0-0|<\epsilon\land |x-0|<\epsilon$$ We know that $|0-0|<\epsilon$ is true and we allso know that $\exists x\mid |x-0|<\epsilon$
Therfore (1) is true.
How can I prove, in a similar fashion, that $x\rightarrow a\neq 0 \Rightarrow\nexists l, f(x)\rightarrow l$?
I´m new to limits in this fashion so I would also appreciate if you told me if (1) was successfully proven. Thanks in advance.
Hint: near $a$ there are both rational and irrational numbers.