7

I do not know an example. Will ask question if in doubt of the proofs provided thank you!!

Ayman Hourieh
  • 39,603
Maximiliano
  • 1,121

3 Answers3

13

Let $g(x)=1$ if $x$ is rational, and $0$ if $x$ is irrational. Let $f(x)=xg(x)$.

André Nicolas
  • 507,029
4

$$ F(x) = \left\{ \begin{array}{rcl} x,& \mbox{if} & x \in \mathbb{Q}\\ -x , & \mbox{if} & x \notin \mathbb{Q} \\ \end{array} \right. $$

$|x-0| < \varepsilon \Rightarrow |f(x) - f(0)| = |x| <\varepsilon$. If $x_0 > 0$. There is $x \notin \mathbb{Q}$ sufficiently near $x_0$ such that $f(x) = -x$ is sufficiently near $-x_0$. Thus do not sufficiently near $f(x_0) = x_0$.

user29999
  • 5,211
3

$$ f(x) = \left\{ \begin{array}{rl} x^{2} &\mbox{ if $x$ is rational} \\ -x^{2} &\mbox{ otherwise} \end{array} \right. $$

Tomás
  • 22,559