# Thread: [Continuity Problem] Is f(x) which is continuous at x=a necessarily...

1. ## [Continuity Problem] Is f(x) which is continuous at x=a necessarily...

First thanks for taking time to view my question.

Is f(x) which is continuous at x=A necessarily continuous at a certain neighborhood of A?

I am quite confused since many people say yes. But if f(x) is also continuous at say, B, which is in the neighborhood of A, then this process would be infinite, and so f(x) should be continuous everywhere.

Sorry for my English. I really need your help.

2. Originally Posted by kevin_chn
Is f(x) which is continuous at x=A necessarily continuous at a certain neighborhood of A?
The answer is No. The standard counterexample is the function defined by $\displaystyle f(x) = \begin{cases}x&\text{if }x\text{ is rational,}\\0&\text{if }x\text{ is irrational.}\end{cases}$
This function is continuous at 0 but nowhere else.

3. A simpler example $\displaystyle f(x):\{ 0 \} \mapsto \mathbb{R}$ defined as $\displaystyle f(0)=0$.