given that g: real number ->real number and for all x which are quotient numbers, g(x) =o. show that g is 0 function.

what i did was i tried to divide the real line into small intervals of quotient values.

and tried to say that by intermediate value thm, all values have to be 0..but i dont think that works right?