Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


$$f(x) = \begin{cases}\;\;\, x\;\;,\;\text{ if } x \in \mathbb{Q}\\ -x\;\;,\; \text{ if } x \in \mathbb{R}\setminus \mathbb{Q} \end{cases}$$

(i) Determine the point or points of continuity of $f$. (ii) Show that the point of points of continuity of $f$ are the only points.

Clearly its continuous at $0$. I'm not sure how to prove it is continuous at $0$, but I know how to prove that it has no other points of continuity.

share|cite|improve this question
up vote 0 down vote accepted

Let $\,\{x_n\}_{n\in\Bbb N}\,$ be a real sequence s.t. $\,x_n\xrightarrow [n\to\infty]{} 0\,$ (and thus also $\,-x_n\xrightarrow [n\to\infty]{} 0\,$) .

It's easy to see that we have

$$f(x_n)=\pm x_n\xrightarrow [n\to\infty]{}0=f(0)$$

And $\,f\,$ is thus continuous at $\,x=0\,$ as the above's true for any real sequence converging to zero.

share|cite|improve this answer

Let $\epsilon >0$. Then for $\delta = \epsilon$ if $|x|<\delta \Rightarrow |f(x)-f(0)|=|f(x)|=|x|<\delta=\epsilon \Rightarrow$
$f$ is continuous at $0$ .

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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