Determine the existence of function $f$ such that $f$ is defined for all $x$ in $\mathbb{R}$, $f$ is differentiable, $f'(x) = 0$ for all rational number $x$, and $f'(x) \ne 0$ for all irrational number $x$.
I found examples where $f'(x) = 0$ for all rational number $x$ but $f$ is not constant : Link 1 Link 2
But these do not provide whether there exists an irrational number $\alpha$ such that $f'(\alpha) = 0$. Is this possible?
EDIT : It is impossible since the zero-set of a Pompeiu derivative must be a residual set. That is, the elements in the zero-set should be uncountable. However, since $\mathbb{Q}$, which is the zero-set in this case, is countable, it is a contradiction.
EDIT 2 : What if we change the conditions to $f'(x) = 0$ for all irrational number $x$ and $f'(x) \ne 0$ for all rational number $x$?
The answer is still a No. Since $f'(x) \ne 0$ for all rational numbers, we can find an arbitrary rational number $q$ such that $f'(q) \ne 0$. Pick an arbitrary irrational number $p$ that is smaller than $q$; then by Darboux's Theorem the derivative of $f$ should take all values from $0$ to $f'(q)$. That is, for all $t \in (0, f'(q))$ or $t \in (f'(q), 0)$ there exists $c \in (p, q)$ such that $f'(c) = t$.
Since $f'(x) = 0$ for all irrational number $x$, $c$ is rational.
Meanwhile, there are countable rational numbers in the interval $(p, q)$, but there are uncountable values(real values) between $0$ and $f'(q)$. This is a contradiction since we just discovered a surjection sending a countable set to an uncountable set - which is impossible.
So, both cases don't work.