Let $f: \mathbb R \to \mathbb R$, \begin{eqnarray} f(x)= \begin{cases} x-x^2&\quad\text {if } x \in \mathbb Q \cr x+x^2&\quad\text{if } x \notin \mathbb Q \cr \end{cases} \end{eqnarray}
Show that $f'(0)=1$ but $f$ isnt increasing in the neighborhood of $0$.
I derivated both of $f(x)$ and both result in $f'(0)=1$ (not sure if both are needed, or just the one where $x \in \mathbb Q$).
Can anyone help if I've misunderstood anything, is it about being continuous/differentiable? Since $x+x^2$ is over $x-x^2$, after $0$ it isnt increasing, but how do I prove it