Let $f:\mathbb{R}\to\mathbb{R}$ be continuous and such that $f(x)\in \mathbb{Q}$ if $x\in\mathbb{Q}$. My question is: can the function be nowhere differentiable or is there a point where it has a derivative?
Other than the Weierstrass function, I am not familiar with any other nowhere differentiable functions, especially ones that map the rationals to the rationals. My feeling is that there must be a point where the derivative exists but I have no idea where to even start thinking about this question, so any suggestions are appreciated.