Find the number of values of x for which is continuous,
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We claim that the only point of continuity is 2 1 . Indeed, we will prove that f ( x ) is continuous at 2 1 and discontinuous at any a such that a = 2 1 . Let us prove the continuity of f ( x ) at 2 1 . If x ≥ 2 1 then 1 − x ≤ f ( x ) ≤ x , and if x ≤ 2 1 , then x ≤ f ( x ) ≤ 1 − x . Applying the Sandwich theorem we get that lim x → 2 1 f ( x ) = 2 1 = f ( 2 1 ) . So the function f ( x ) is continuous at 2 1 .
Now let us consider any real number a such that a = 2 1 . We have to consider two cases: a can be rational or irrational.
Case 1 . If a is irrational, we can always construct a sequence of rational numbers a n that tends to a , for example, a n = 1 0 n ⌊ 1 0 n a ⌋ . Since a n is a sequence of rational numbers then lim n → ∞ f ( a n ) = lim n → ∞ a n = a = 1 − a = f ( a ) . Therefore, f is discontinuous at a .
Case 2 . When a rational and different from 2 1 . In this case, we can construct a sequence of irrational numbers a n that tends to a , for example by making a n = a − n 2 . Then we have that lim n → ∞ f ( a n ) = lim n → ∞ ( 1 − a n ) = 1 − a = a = f ( a ) . Therefore f is discontinuous at a also in this case.
So our proof is complete.