Exercise 4.18

Exercise 18: Every rational x can be written in the form x = m n , where n > 0 and m and n are integers without any common divisors. When x = 0 , we take n = 1 . Consider the function f defined on R by

f ( x ) = { 0 x irrational 1 n x = m n .

Prove that f is continuous at every irrational point, and that f has a simple discontinuity at every rational point.

Answers

(Matt “frito” Lundy)
Because every point x R is a limit point of R , we can show that for r Q , we have lim x r f ( x ) = 0 f ( r ) and for y R , y Q , we have lim x y f ( x ) = 0 = f ( y ) .

Fix x R . Let { x n } be a sequence in R such that x n x and x n x as n .

If { x n } has only finitely many x n Q , then there exists some N N such that n N implies that f ( x n ) = 0 < 𝜀 , because each x n is irrational after some finite number of terms. If { x n } has infinitely many x n Q , let { x n l } be a subsequence of { x n } consisting of all the rational x n . x n l must converge to x because x n converges to x .

Each x n l = p n l q n l where p n l Z , q n l N and gcd ( p n l , q n l ) = 1 . We claim that q n l + , as n l + , so that

lim n l f ( x n l ) = lim n l 1 q n l = 0 .

Suppose that lim n l q n l + , then there exists some M N such that q n l < M for all n l . Then we have:

| x x n l | = | x p n l q n l | (1) = | q n l x p n l q n l | (2) > | q n l x p n l | M . (3)

If { p n l } is unbounded, then, { q n l } bounded means that (3) is unbounded. If { p n l } is bounded, then there are finitely many values of p n l and q n l . x x n means that q n l x p n l 0 for any n l , so let η = min ( | q n l x p n l | ) > 0 then:

| x x n l | > | q n l x p n l | M (4) > η M . (5)

So,

lim n l q n l +

leads to

x n l

not converging to

x

, a contradiction. So

q n l

, and for any

p R

,

lim p x f ( x ) = 0

, and thus

f ( x )

is continuous at every irrational

p

, and discontinuous at every rational

p

.

User profile picture
2023-08-07 00:00
Comments