Prove that is continuous at every real number. What does the graph of looks like?
This problem concerns the Dirichlet function, a fundamental counterexample in real analysis. The key prerequisite is understanding that both rational and irrational numbers are dense in —meaning every open interval, no matter how small, contains infinitely many numbers of each type.
Given the function:
Let be any arbitrary real number.
If is rational, then . If is irrational, then .
When we take the limit as approaches , we encounter both rational and irrational numbers in any neighbourhood of (due to the density of and in ).
This means that as approaches , the function values oscillate between (at rational points) and (at irrational points). Therefore:
Since the limit fails to exist at , and was chosen as an arbitrary real number, we conclude that is discontinuous for all .
(Note: The function is actually discontinuous everywhere, contrary to the original question's premise.)
The graph of consists of two horizontal lines:
Since when is rational, one line is , representing the function's value for all rational numbers. This appears as a dense collection of uncountably many distinct points along the line .
Since when is irrational, the other line is , representing the function's value for all irrational numbers. This similarly appears as a dense collection of points along .
Due to the density of both rational and irrational numbers on the real number line, these two lines appear as dense collections of points with no gaps, but there is no connection between the two levels. It is not possible to draw a continuous curve that represents this function.