Differentiable function which sends rationals to rationals and irrationals to irrationals
$f$ differentiable, $f(x)$ rational if $x$ rational; $f(x)$ irrational if $x$ irrational. Is $f$ a linear function?