Determine whether $\lim_{x\to0}{f(x)}$ exists.

epsilon-deltalimitsreal-analysis

Determine whether $\lim_{x\to0}{f(x)}$ exists, If $f(x)$ is a real valued function and,
$$f(x)=\begin{cases}1/2 & \text{if } x\in\mathbb{Q} \\ 0 & \text{if } x\notin\mathbb{Q} \\\end{cases}$$

Acccording to the limit definition, If the limit exists,
$$\forall\epsilon\;\exists\delta\; |x-0|<\delta \implies |f(x)-L|<\epsilon$$
At $x=0$, $f(x) = 1/2.$ But regarding the above function we cannot guarantee that for a given $\epsilon$, we can find a $\delta$ satisfying the above definition. So the limit doesn't exist. (I feel since no matter what $\delta$ we choose there will be $x\notin\mathbb{Q}$, So we cannot guarantee the above definition will be satisfied.)
I don't see how to show this rigourously. Please correct me and give me a more rigourous way of showing whether the limit exists or not.

Best Answer

Consider the sequences $a_{n} = 1/n$ and $b_{n} = \sqrt{2}/n$, both of which converges to $0$.

Let us suppose that $f(x)$ converges to $L$ as $x$ approaches zero.

If it was the case, we would have that \begin{align*} L = \lim_{n\rightarrow\infty}f(a_{n}) = \lim_{n\rightarrow\infty}f(1/n) = \lim_{n\rightarrow\infty}\frac{1}{2} = \frac{1}{2} \end{align*}

On the other hand, we would also have that \begin{align*} L = \lim_{n\rightarrow\infty}f(b_{n}) = \lim_{n\rightarrow\infty}f(\sqrt{2}/n) = \lim_{n\rightarrow\infty}0 = 0 \end{align*} whence we conclude that $L = 0$ and $L = 1/2$, which is impossible, since the limit is unique.

Consequently, $f$ does not converge as $x$ approaches $0$.