Let $f:[0,1] \to \mathbb R$, \begin{eqnarray} f(x)= \begin{cases} 0&\quad\text {if } x \in \mathbb R - \mathbb Q \cr 1\over q&\quad\text{if } x = \frac{p}{q} \in \mathbb Q \cr \end{cases} \end{eqnarray}
Show that $f$ isnt differentiable in any point the range of $(0, 1)$, at point $x_0$
To $f(x)$: in the upper case, $x=0$ is also possible, lower case $p, q \in \mathbb N$, largest common factor is $1$. Didn't know how to edit that in.
I'm trying to look for the answer from the case of $x_0 \in \mathbb R - \mathbb Q$, but I'm not making any progres..