If f:R->R is continuous on a dense set of points in R, then f is continuous on R.

In summary, the function f is not continuous on the set of all real numbers. However, it is continuous on the set of rational numbers. Furthermore, continuity on a dense subset of the rational numbers allows to conclude that Cauchy sequences will be preserved.
  • #1
mrchris
31
0

Homework Statement


T or F, If f:ℝ→ℝ is continuous on a dense set of points in ℝ, then f is continuous on ℝ.


Homework Equations


definition of continuity using sequences, maybe?


The Attempt at a Solution


false. Take f(x)= {1 if x[itex]\in[/itex] Q(rational numbers) and 0 if x[itex]\in[/itex] (ℝ-Q)(irrational numbers)}. Then take some point x0[itex]\in[/itex]ℝ. there exists a sequence {xn}of numbers in Q that converge to x0. then take the limit as n→∞ of f({xn}) which equals 1. Since this limit equals f(x0), f(x) is continuous for all x[itex]\in[/itex]Q. however, we know that due to the density of rationals and irrationals, there also exists a sequence {in} of numbers in (ℝ-Q) that also converges to x0. If we then take the limit as n→∞ of f({in}), we see it equals 0. since this does not equal 1, f(x) is not continuous on ℝ
 
Physics news on Phys.org
  • #2
You have shown that your function (the Dirichlet function) is NOT continuous on the set of all real numbers. What about on the rational numbers?
 
  • #3
I thought from the question that all I had to do was show that the function is continuous on a set of dense points (Q) but not continuous for all ℝ. did I somehow not do that? I'm not trying to be a smart-a but I am new to proofs like this.
 
  • #4
Try working with 1/(x-a) , for some choice of a.
 
  • #5
i'm still not sure what I haven't done correctly. I'm not doubting you guys, but I thought that I had shown that even though f(x) is continuous on the rationals, a dense set of points in R, f(x) is not continuous for all R. Can someone please explain what is wrong with my answer instead of suggesting new answers?
 
  • #6
Sorry. Yes, your OP is on the right track. You have a continuous function on Q, but not so
on R, it is a valid counterexample.
 
  • #7
Bacle2 said:
Sorry. Yes, your OP is on the right track. You have a continuous function on Q, but not so
on R, it is a valid counterexample.

Except that it's not. The Dirichlet function is discontinuous everywhere. You show that [itex]f|_{\mathbb{Q}}[/itex] is continuous on [itex]\mathbb{Q}[/itex] and that [itex]f[/itex] is discontinuous on [itex]\mathbb{R} \setminus \mathbb{Q}[/itex] (and as I said, it is actually discontinuous everywhere). This does not mean that [itex]f[/itex] is continuous on [itex]\mathbb{Q}[/itex] and discontinuous on [itex]\mathbb{R} \setminus \mathbb{Q}[/itex] as I have already noted.
 
  • #8
jgens said:
Except that it's not. The Dirichlet function is discontinuous everywhere. You show that [itex]f|_{\mathbb{Q}}[/itex] is continuous on [itex]\mathbb{Q}[/itex] and that [itex]f[/itex] is discontinuous on [itex]\mathbb{R} \setminus \mathbb{Q}[/itex] (and as I said, it is actually discontinuous everywhere). This does not mean that [itex]f[/itex] is continuous on [itex]\mathbb{Q}[/itex] and discontinuous on [itex]\mathbb{R} \setminus \mathbb{Q}[/itex] as I have already noted.

I interpreted the OP to refer to the restriction of the function to Q; the restriction of the characteristic function to Q is the constant function 1, which is continuous.

There may be a technical issue of defining the function on Q as a stand-alone space, so that f==1 is continuous, or in defining it in Q as a subspace of R, in which case it is not.
 
  • #9
Bacle2 said:
I interpreted the OP to refer to the restriction of the function to Q; the restriction of the characteristic function to Q is the constant function 1, which is continuous.

And I noted in my last post that he does in fact show [itex]f|_{\mathbb{Q}}[/itex] is continuous. But the problem almost surely wants him to find a function [itex]f[/itex] such that [itex]f[/itex] is continuous on a dense subset of [itex]\mathbb{R}[/itex] but discontinuous somewhere on [itex]\mathbb{R}[/itex]. That is different that showing that [itex]f|_{\mathbb{Q}}[/itex] is continuous on a dense subset of [itex]\mathbb{R}[/itex] but that [itex]f[/itex] is discontinuous on [itex]\mathbb{R}[/itex]. So the OP most certainly does not have a valid solution.
 
  • #10
Well, if the OP wanted the case you described, he is not done. Only he knows what he wants.

At any rate , a way of approaching the issue is: like the OP said, continuity implies sequential continuity, so that we want (xn→x)→(f(xn)→f(x)).
Does continuity on a dense subset allow to conclude this will happen ? (hint: do continuous functions always take Cauchy sequences to Cauchy sequences?)
 
  • #11
so could you possibly give me a suggestion to point me in the right direction?
 
  • #12
Sure; if you can have a function f send Cauchy sequences to Cauchy sequences, (using the fact that ℝ is complete) , then the Cauchy sequence xn, with xn→x
will be sent to the Cauchy sequence f(xn) , which will then converge to f(x), giving you continuity.

Problem is that continuity of f alone is not strong-enough to guarantee this preservation of Cauchy sequences. An example is that of f(x)= 1/(x-a) , for certain choices of a. This f is continuous on Q (given the right choice of a) , but Cauchy sequences near 'a' will not map to Cauchy sequences.

Does that help?
 
  • #13
maybe i am thinking too simply here, but how about something like f(x)= 1/(x-[itex]\sqrt{2}[/itex]). this function would be continuous on Q, but discontinuous at x=[itex]\sqrt{2}[/itex], therefore discontinuous on (ℝ-Q)?
 
  • #14
No, perfect, that is what I was implying. Note that by adding a few of these, you can have discontinuities where you choose.
Now, a followup you may want to consider: what added condition on f would guarantee that Cauchy seqs. are sent to Cauchy seqs.? If you prefer, I'll just tell you and you can prove it works.
 
  • #15
that would be great i am cramming for a big test tomorrow morning
 
  • #16
O.K: Uniform continuity does preserve Cauchy seqs. Good luck on the test.
 
  • #17
thanks for the help, this thread cleared that up nicely i think
 
  • #18
Good to hear that; no problem.
 
  • #19
I don't think this thread has really gotten anywhere near the crucial example. There's a pretty well known function that is continuous for all irrational points in R and discontinous for all rational points.
 
  • #20
Maybe not the crucial example, but I think the key issue --preservation of Cauchy sequences-- has been brought up, together with the result that uniformly-continuous functions preserve Cauchy seqs.

I guess you're referring to f(x)=1/q for x=p/q, and f(x)=0 otherwise.
 
  • #21
Bacle2 said:
Maybe not the crucial example, but I think the key issue --preservation of Cauchy sequences-- has been brought up, together with the result that uniformly-continuous functions preserve Cauchy seqs.

I guess you're referring to f(x)=1/q for x=p/q, and f(x)=0 otherwise.

You bet I am. I'm not sure what this has to do with uniformly continuous functions. They won't give you a counterexample.
 
  • #22
Dick said:
You bet I am. I'm not sure what this has to do with uniformly continuous functions. They won't give you a counterexample.

f(x)=1/(x-√2) is continuous , but not uniformly continuous, and cannot be extended continuously. Any uniformly-continuous function can be extended, by declaring the value at f(x) to be the limit of f(xn) , as xn→ x ( to generalize, we need the function to be defined in a complete metric space). By sequential continuity, if f is continuous at x, then it is also sequentially-continuous; if f takes Cauchy sequences to Cauchy sequences, then {f(xn)} will be Cauchy and convergent; if f does not preserve Cauchy, then {f(xn} will not be Cauchy for some {xn}, and will therefore not converge.
 
  • #23
Bacle2 said:
f(x)=1/(x-√2) is continuous , but not uniformly continuous, and cannot be extended continuously. Any uniformly-continuous function can be extended, by declaring the value at f(x) to be the limit of f(xn) , as xn→ x ( to generalize, we need the function to be defined in a complete metric space). By sequential continuity, if f is continuous at x, then it is also sequentially-continuous; if f takes Cauchy sequences to Cauchy sequences, then {f(xn)} will be Cauchy and convergent; if f does not preserve Cauchy, then {f(xn} will not be Cauchy for some {xn}, and will therefore not converge.

Sorry, I'm not really seeing what this has to do with showing you can have a discontinuous function that is continuous on a dense set of R. Am I missing something?
 
  • #24
Yes, you're right; the OP is a little ambiguous, since you can choose to define f in anyway you want outside of the dense subset. The question ultimately became--as I saw it--one of extending a continuous function from a dense subset into the superset; in that case, it is U.Continuity that guarantees that it is possible to do the extension.
 
  • #25
Ok, so you are working on a totally different problem. Showing you can extend a function continuous on a dense subset to one continuous the whole set? I don't think the OP was all that ambiguous. The OP was asking "If f:ℝ→ℝ is continuous on a dense set of points in ℝ, then f is continuous on ℝ." That means ALL extensions have to be continuous. Not just the continuous one.
 
  • #26
You're right, but if f is only defined on a dense subset, we can define the function to have any value outside of the dense subset. Don't we have just one possible continuous extension? We may be using extension differently.
 
  • #27
Bacle2 said:
You're right, but if f is only defined on a dense subset, we can define the function to have any value outside of the dense subset. Don't we have just one possible continuous extension? We may be using extension differently.

Bacle2, you are confusing two things. There is one possible continuous extension. You don't want that one. You want a counterexample. You CAN'T define the function to be anything you want outside of the dense set. The definition has to be consistent with being continuous on the dense set. The Dirichlet extension is discontinuous everywhere. Thomae's function (or popcorn function) is an extension that is still continuous on the dense set R/Q. And sure it's not unique. It's just one of the simplest.
 
Last edited:

1. What does it mean for a set of points to be dense in R?

A set of points is considered dense in R if every open interval in R contains at least one point from the set. In other words, the points in the set are closely packed and there are no gaps between them.

2. How is continuity defined for a function on a dense set?

A function f is continuous on a dense set of points in R if for any point x in R, the limit of f as x approaches x exists and is equal to f(x). This means that the function has no sudden jumps or breaks at any point in the dense set.

3. What does it mean for a function to be continuous on R?

A function f is continuous on R if it is continuous at every point in R. This means that the function has no sudden jumps or breaks at any point, and it can be drawn without lifting the pencil from the paper.

4. Why is it important for f to be continuous on a dense set in order for it to be continuous on R?

If a function is continuous on a dense set in R, it means that it has no sudden jumps or breaks at any point in the set. This allows us to extend the continuity of the function to all points in R, as there are no gaps or disruptions in the function's behavior on the dense set.

5. Can a function be continuous on a dense set and not continuous on R?

No, if a function is continuous on a dense set of points in R, it will also be continuous on R. This is because the continuity of a function on a dense set allows us to extend it to all points in R without any sudden jumps or breaks in the function's behavior.

Similar threads

  • Calculus and Beyond Homework Help
Replies
30
Views
2K
  • Calculus and Beyond Homework Help
2
Replies
39
Views
4K
  • Calculus and Beyond Homework Help
Replies
4
Views
303
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
23
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
2
Replies
51
Views
3K
  • Calculus and Beyond Homework Help
Replies
3
Views
277
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top