Define function $g$ on $[-1, 1]$ by $g(x) = \cos(1/x)$, if $x \neq 0$ and $g(x) = 0$, if $x = 0$.
Prove that g is not continuous 0.
I have looked at using the negation of the definition:
For $\{x_n\}_{n=1}^\infty \subset I$ with $\lim_{x\to c} x_n=c$ then $\lim_{x\rightarrow c} f(x)=f(c)$