I'm trying to find the derivative of the function $$ f(x)= \begin{cases} \frac{1}{n^2},& \text{if }x=\frac{m}{n}\text{with gcd}(m,n)=1\\ 0,&\text{if }x\text{ is irrational.} \end{cases} $$
That it is continuous in $\Bbb R\smallsetminus\Bbb Q$, and that the derivative (supposed it existed) has to be $0$ in $x\in \Bbb R\smallsetminus\Bbb Q$ is clear (since $\lim_{h\to0}\frac{f(x+h)}{h}=0 $ for $x+h \in \Bbb R\smallsetminus\Bbb Q$). But I'm struggling to find the lim for $x+h$ in $\Bbb Q$.
Any help is appreciated