Home page for accesible maths 4 Continuity vs. discontinuity

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.3 Discontinuities. Variation of a theme

Proposition 4.3.1

There exists a function f:RR such that f is not continuous at ANY xR.

Proof:  Let f be defined the following (completely legitimate) way.

  • Let f(x)=0 if x is a rational number.

  • Let f(x)=1 if x is an irrational number.

If x, then there exists a sequence of rational numbers {qn}n=1 tending to x, that is f(qn)0. Also, there exists a sequence of irrational numbers {rn}n=1 tending to x, that is f(rn)1. Therefore by the Sequential Definition, f cannot be continuous at x.

Now we make a small twist of this trick.

Proposition 4.3.2

There exists a function f:RR such that f is continuous at one single point.

Let g(x)=f(x)x2, where f is the function in the previous proposition. Then we “ruined” the discontinuity at zero! Indeed, if xn0, then f(xn)xn20 as well, since the sequence {f(xn)}n=1 is bounded and xn20 (Proposition 2.4.1). On the other hand, we have not ruined the discontinuity at any other point. In fact, if x0, then we will have a convergent sequence of irrational numbers rnx such that g(rn)x2>0 and a convergent sequence of rational numbers qnx such that g(qn)0.

Proposition 4.3.3

There exists a function f:RR such that f is continuous at xR if and only if x is an irrational number.

Note: There exists NO function f:RR such that f is continuous at xR if and only if x is an rational number. This is not easy to show.

Proof:  The function f is defined the following way. If x is irrational number then f(x)=0. If q is a rational number in the form of ab such that q is its lowest terms (so a and b are relative primes, that is they do not have common prime factors), then let f(q)=1b. Clearly, f is not continuous at x if x is a rational number. Indeed, there exists a sequence of irrational numbers {rn}n=1 tending to x and f(rn)=0, f(x)0. On the other hand, a bit surprisingly f is continuous at x if x is an irrational number. Why?

Lemma 4.3.1

Let a,b,c,d be integer numbers such that c,d<n and abcd, then |ab-cd|1n2.

Proof:  |ab-cd|=|ad-bcbd|. Now, |ad-bcbd|1bd provided that ad-bc0. Hence the lemma follows.

Let x be an irrational number and ε>0. Pick an integer n>0 such that 1n<ε. Then, by the previous lemma in the interval [x-14n2,x+14n2] there is at most one rational number q such that f(q)1/n. Indeed, if there are two such numbers ab and cd then, b,dn and thus |ab-cd|1n2. It is impossible since the length of the interval is 14n2. Let us chose δ>0 in such a way that there is NO rational number q on the interval [x-δ,x+δ] such that f(q)1/n. This means that if |x-y|<δ, then |f(x)-f(y)|<1n<ε. So, the function f is continuous at x.

Proposition 4.3.4

There exists a function f:RR such that f is continuous at x if and only if x is not an integer number.

Proof:  Let f be defined the following way. f(x)=exp(x) if x is an integer number. Otherwise, let f(x)=0. If x is an integer, then f(x)0. On the other hand, there is a convergence sequence of non-integers {xn}n=1 tending to x, so f(xn)=0 for any n1, hence f is not continuous at x. Again, if x is not an integer, than there exists a δ>0 such that if |y-x|<δ, then y is also not an integer, hence |f(x)-f(y)|=0. This shows that f is continuous at x.

Theorem 4.3.1 (WITHOUT PROOF!!!)

Let CR be a closed subset. Then there exists a function f:RR such that set of continuity of f is exactly C. If g:RR is a function, then its set of continuities D can be a non-closed set (see the proposition above), but it can always be written as n=1Fn, where all the Fn’s are closed sets.