I am looking for a continuous function $f: \mathbb R \rightarrow \mathbb R$ so that $f$ is differentiable in $x$, if and only if $x \in \mathbb Q$.
I already know there is no function that is continuous everywhere in $\mathbb Q$ but nowhere outside of it, but I wonder if something similar can be said about differentiability. If not, how could one prove that?
Thanks in advance!