I learned that the derivative of a continuous function $f$ (if it exists) is $$ f'(x):=\lim\limits_{h\to0}\frac{f(x+h)-f(x)}{h}, $$ or any other "equivalent" definition. Since $\mathbb{Q}$ is dense, if $f'(x)$ is defined in $\mathbb{R}$, can the derivative be defined over $\mathbb{Q}$ as well?
I feel like I can see $f'$ defined for $f:\mathbb{Q}\to\mathbb{Q}$, where $f(x)=x^2$, and $f'$ failing to be defined for $g:\mathbb{Q}^+\to\mathbb{R}$, where $g(x)=\ln(x)$, or $h:\mathbb{Q}^+\to\mathbb{R}$, where $h(x)=\sqrt{x}$. For this last example $h$, could it be "pointwise differentiable" at square numbers?
Are there any additional rules for whether a function is differentiable over $\mathbb{Q}$, if that's ever possible at all?