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.

  • $\begingroup$ 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? $\endgroup$ – hmakholm left over Monica Nov 10 '14 at 11:43
  • $\begingroup$ Both would be helpful! Thanks. $\endgroup$ – user191323 Nov 10 '14 at 11:44
  • $\begingroup$ Have you tried sketching a graph of the function? $\endgroup$ – hmakholm left over Monica Nov 10 '14 at 11:45
  • $\begingroup$ Ok, yeah, I can see why it's discontinuous, thanks. $\endgroup$ – user191323 Nov 10 '14 at 11:47
  • $\begingroup$ 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? $\endgroup$ – 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$.


Let y=1/x . The limit as y goes to infinity of sin(y) is undefined because sin is periodic. But this is the limit from the right of sin(1/x) as x goes to 0 (and is still undefined). In particular the right-hand limit is not 0 and thus the general limit is not 0. It follows that the function is discontinuous at 0.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.