Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Let $D=[0,1]$, and $f(x)=x$ if $x$ is rational, $f(x)=1-x$ if $x$ is irrational, at what point of $I$ is $f$ continuous?

I think the answer is $1/2$, using sequential criteria, let $(x_n)$ converges to $1/2$, then no matter $x_n$ is rational or irrational, $f(x_n)$ converges to $1/2=f(1/2)$,

but how about $(x_n)$ is mixed with rational and irrational term, say $x_n=a_n+b_n$, where $a_n$ is rational , $b_n$ is irrational, then $f(a_n+b_n)=a_n+(1-b_n)$, which is not converges to $1/2$, what is wrong with me?

share|improve this question
    
For the mixed sequence, if the sequence has infinitely-many Rationals, Irrationals, then there are subsequences of Rationals, Irrationals, and the subsequences will have to converge to the same limit. Still, careful, you seem to be assuming that $f$ is linear with $f(a_n+b_n) \rightarrow f(a)+f(b)$, and that is only (necessarily) true for $f$ linear. –  user99680 Mar 31 at 18:24
    
@user99680 Thanks for your help, I fully understand it now. –  ZHJ Mar 31 at 18:28
    
Excellent, good to know. –  user99680 Mar 31 at 18:31

1 Answer 1

up vote 4 down vote accepted

You're right that it is only at x=1/2.Since both Rationals, Irrationals , are dense in $\mathbb R$, for any $x$, you can always find both a sequence of Rationals and a sequence of Irrationals that converge to $x$. You then must have, for the sequence of Rationals that $$x_n \rightarrow x $$, so that, by continuity, $f(x_n)=x_n \rightarrow f(x)=x $. Similarly, for the sequence of irrationals, you will have that $$y_n \rightarrow x $$ and, again by (assumed) continuity of $f$, you need $f(y_n)=1-y_n \rightarrow f(x)=1-x$. Like you said, this only happens at $x=1/2$.

Now, if {$z_n$} is a sequence of both Rationals and Irrationals (having infinitely-many of each) that converges to $x$, then we would have subsequences of each Rationals, Irrationals, and these would converge respectively to $x$ , $1-x$, and the above argument applies.

share|improve this answer
    
You beat me to it, +1 –  Jean-Sébastien Mar 31 at 18:02
    
@Jean-Sébastien: Thanks; I guess that double espresso helped ;). –  user99680 Mar 31 at 18:03
    
@user99680 My confusion is, how about the sequence containing both rational and irrational terms? –  ZHJ Mar 31 at 18:06
    
@user127534: You can argue that the mixed sequence must have convergent subsequences of Rationals, Irrationals respectively, and that these must respectively converge to $x$ and to $1-x$. –  user99680 Mar 31 at 18:11
    
Why the downvote? –  user99680 Apr 3 at 4:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.