Tonio was assuming that you knew that a function is differentiable at x= 0 if and only if

exists. And that will be true if and only if

exists and is the same for all sequences

that converge to 0. Since a sequence will converge as long as subsequences converge, it is sufficient to consider sequences consistin only of rational numbers and only of irrational numbers.