Constructing a Piecewise Continuous Function at a Single Point

AI Thread Summary
A function can be constructed to be continuous at a specific point, such as x=0, while being discontinuous at all other points by defining it piecewise. One proposed function is f(x) = 0 for rational x and f(x) = x for irrational x. This function is continuous at x=0 because both rational and irrational sequences converging to 0 yield the same limit. However, it is discontinuous elsewhere due to the density of rationals and irrationals in any interval. The discussion emphasizes the use of sequences to demonstrate continuity and discontinuity effectively.
gaborfk
Messages
53
Reaction score
0

Homework Statement



For each a\in\mathbb{R}, find a function f that is continuous at x=a but discontinuous at all other points.


The Attempt at a Solution



I guess I am not getting the question. I need to come up with a function, I was thinking of a piecewise defined one, half rational half irrational, which is continuous on one but not the other? Is this possible?

Thank you in advance
 
Physics news on Phys.org
what about f(x)={0, x-rational, x, where x irrational.
take a sequence {a} that converges to 0, from this sequence let's take two subsequences {b} of rationals, and {c} of irrationals, since {a} converges to 0 also {b} and {c} should converge to zero. now let's take the corresponding sequence of the function

f({a})-->0

f({b})-->x-->0

So this function i guess is continuous at x=0, since also f(0)=0, but it is discontinuous everywhere else.

Let's see what other guys have to say on this, cuz, i am not 100% sure that what i did actually works.
 
Thank you!

That sound great.
 
gaborfk said:
Thank you!

That sound great.

Can you show why the function that i took as an example, from the top of my head, is everywhere else discontinous, because i left this part for you to show.?
 
Because there are infinitely many irrational numbers which would make the graph continuous on the irrationals, but on an interval there would be rationals mixed in between the irrationals?
 
gaborfk said:
Because there are infinitely many irrational numbers which would make the graph continuous on the irrationals, but on an interval there would be rationals mixed in between the irrationals?

Well, try to use the same logic i used to show that it is continuous at 0. In other words try to use sequences and see if you can come up with sth. It is quite trivial frome here, i guess.
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top