Continuity Question: Rational vs Irrational Functions

  • Context: Graduate 
  • Thread starter Thread starter kidsmoker
  • Start date Start date
  • Tags Tags
    Continuity
Click For Summary

Discussion Overview

The discussion revolves around the continuity of two specific functions defined differently for rational and irrational inputs. The first function is analyzed for continuity at irrational points, while the second function's continuity at various points is questioned, particularly at non-zero values.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant presents the first function, f(x) = 0 for irrational x and f(x) = 1/q for rational x in lowest terms, claiming it is continuous at all irrational x, supported by reasoning involving limits and distances to rational numbers.
  • Another participant challenges the assertion that the distance to the closest rational number exists, suggesting a different approach to demonstrate continuity by considering the behavior of denominators in rational approximations.
  • A third participant adds that the limit of the first function approaches 0 at all real values of x, noting that this limit equals the function value only at x=0.
  • There is a reiteration of the continuity argument for the first function, emphasizing the relationship between epsilon and the denominators of rational numbers near irrational points.
  • One participant expresses improved understanding of the continuity argument after engaging with the responses.

Areas of Agreement / Disagreement

Participants generally agree on the continuity of the first function at irrational points, but there is some contention regarding the existence of certain distances and the implications for continuity of the second function. The discussion remains unresolved regarding the second function's continuity at non-zero points.

Contextual Notes

Limitations in the discussion include assumptions about the behavior of rational numbers near irrationals and the definitions of continuity applied to the functions in question.

kidsmoker
Messages
85
Reaction score
0
Hi.

In the book I'm reading it gives the function

f(x) = 0, if x is irrational
f(x) = 1/q, if x=p/q in lowest terms.

It says this is continuous at all irrational x. This i can understand i think, because you can show that f(x) tends to zero, as x tends to a, for all a. For this you just take epsilon to be the distance from a to the closest rational number. It can be seen from the graph:

http://img80.imageshack.us/img80/7246/26351357js6.jpg


Then they give the function

f(x) = 0, if x is irrational
f(x) = x, if x is rational.

But they say this is discontinuous at all values of x other than x=0. I don't really understand why this is the case. How come you can't use the same argument as above to show that f(x) tends to zero, as x tends to a, for all a again?

Thanks!
 
Last edited by a moderator:
Physics news on Phys.org
For this you just take epsilon to be the distance from a to the closest rational number

This doesn't exist

To show that the first function is continuous, you have to notice that for every epsilon, there exists n such that 1/n<epsilon. Then there are only finitely many rationals that are 'near' (say within distance 1) an irrational x with denominator less than or equal to n, so if you pick some d smaller than the distance to the closest one of those, then

|x-y|<d implies f(y) = 1/q for some q larger than n (since if y is rational, we constructed d to force y to have a larger denominator) or f(y)=0 if y is irrational. Hence |f(x)-f(y)| = |f(y)| < 1/n < epsilon in either case. Hence f is continuous at every irrational point.
 
Actually, what you can show is that the limit is 0 at all real values of x. That is because, given any \epsilon&gt; 0, there exist only a finite number of denominators q such that p/q is within \epsilon of any given x, so, as \epsilon goes to 0, both p and q must go to infinity. Since for x rational, f(x)= x, the limit, 0, is equal to the value of the function if and only if x= 0.
 
Office_Shredder said:
This doesn't exist

To show that the first function is continuous, you have to notice that for every epsilon, there exists n such that 1/n<epsilon. Then there are only finitely many rationals that are 'near' (say within distance 1) an irrational x with denominator less than or equal to n, so if you pick some d smaller than the distance to the closest one of those, then

|x-y|<d implies f(y) = 1/q for some q larger than n (since if y is rational, we constructed d to force y to have a larger denominator) or f(y)=0 if y is irrational. Hence |f(x)-f(y)| = |f(y)| < 1/n < epsilon in either case. Hence f is continuous at every irrational point.

Okay yeah I understand it better now.

Thanks for your help!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
8K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K