3
$\begingroup$

$$f(x)= \left\{\begin{array}{ll} x-x^2 &\mbox{if $x$ is rational,}\\ x+x^2 &\mbox{if $x$ is irrational.} \end{array}\right.$$ Show that $f'(0)=1$ and yet there is no neighborhood $I$ of the point $0$ on which this function is monotonically increasing.

2 Answers 2