# Prove $\sin(1/x)$ is discontinuous at 0 using epsilon delta definition of continuity

Let $$f(x) = \begin{cases} 0 &\text{ if x=0,}\\ \sin(1/x) &\text{ otherwise.} \end{cases}$$ Prove that $f$ is discontinuous at $0$ using the $\epsilon \delta$ definition of continuity.

I know that the $\epsilon, \delta$ criterion is as follows: for all $\epsilon>0$ there exists $\delta \gt 0$ such that for all $x\in A$, if $|x-x_0|\lt \delta$ implies that $|f(x)-f(x_0)|\lt \epsilon$.

I am unsure how to go about writing the proof and any help would be appreciated! Thank you.

• Can you see intuitively why the function is not continuous (and your question is just with expressing that intuition as a proof), or do you need help understanding why it is discontinuous at all? – hmakholm left over Monica Nov 10 '14 at 11:43
• Both would be helpful! Thanks. – user191323 Nov 10 '14 at 11:44
• Have you tried sketching a graph of the function? – hmakholm left over Monica Nov 10 '14 at 11:45
• Ok, yeah, I can see why it's discontinuous, thanks. – user191323 Nov 10 '14 at 11:47
• Does it make sense to show that lim sin as x goes to infinity is not well defined and thus lim sin (1/x) as x goes to 0 is not well defined? – Jacob Wakem Nov 18 '16 at 12:51

Take the sequence $x_n = \frac{2}{(4n+1) \pi}$. Then $x_n \to 0$ so if $f$ was continuous, we would have $f(x_n) \to f(0) = 0$. However, $f(x_n) = 1$ for all $n$, so clearly we can't have $f(x_n) \to 0$ and thus $f$ isn't continuous.
Using $\epsilon, \delta$: set $\epsilon = 1/2$. Then for any $\delta >0$, we can find $n$ so that $x_n = \frac{2}{(4n+1) \pi} < \delta$. Then $\lvert f(x_n) - f(0) \rvert = \lvert f(x_n) \rvert = 1 \ge \epsilon.$ That is, for this specific $\epsilon$, there is no $\delta > 0$ which guarantees $\lvert f(x) - f(0) \rvert < \epsilon$ for all $\lvert x - 0 \rvert < \delta$. Hence $f$ is not continuous at $0$.