So, let's consider the function
$$ f(x)=\begin{cases} \sin\left(\frac{1}{x}\right) & x\neq 0 \\ 0 & x=0 \end{cases} $$
I want to prove the above function is discontinuous at $x=0$.
Let $\epsilon=\frac{1}{2}$. And let's consider $x_n=\frac{2}{(4n+1)\pi}$. Suppose $ \frac{2}{(4n+1)\pi} < \delta$ for $\delta>0$. If the function were continuous we should have $|f(x_n)-0|<\epsilon$. But clearly $f(x_n)=1$ for all n, then we have $|f(x_n)|>\epsilon=\frac{1}{2}$. Thus, the function isn't continous at x=0. Is it correct?