Countably Many Discontinuities


The function g is continuous precisely at the irrational numbers, and discontinuous at all rational numbers.

Incidentally, it is impossible to have a function that is continuous only at the rationals, which will be proved in the section on Metric spaces and Baire categories.


Proof:

The actual proof is left as an exercise. However, you may want to make use of the following fact:


Lemma


Proof of Lemma:

Take any sequence {} of rational numbers converging to a fixed number a (which could be rational or irrational). Since the sequence converges, it is bounded. For simplicity assume that all rational numbers are in the interval [0, K] for some integer K. Now take any > 0 and pick an integer M such that 1 / M < . Because each rational number is the quotient of two positive integers, we have: In total, at most finitely many of the can have a denominator less than or equal to K. That means, however, that there exists an integer N such the denominator of is bigger than M for all n > N. But then Since > 0 was arbitrary, that means that the limit of f() must be zero, as needed. Our assumption that the numbers were all positive can easily be dropped, and a similar proof would work again.

Using this lemma it should not be too hard to prove the original assertion.


Primer | Next Function | Prev. Function | Glossary | Map
(bgw)