PDA

View Full Version : Tricky Example of a Function


Nebula
Oct26-04, 07:37 PM
I was asked to find a function that is continuous nowhere but its square is continous everywhere but 0. The domain of the function is [0,1].

I can't come up with an example...
Any help is appreaciated. Thanks

StatusX
Oct26-04, 07:48 PM
if your allowed to define it piecewise:

f(x)=
1 for x rational
-1 for x irrational

and if it absolutely needs to be discontinuous at 0

0 for x=0

Tide
Oct27-04, 12:26 AM
if your allowed to define it piecewise:

f(x)=
1 for x rational
-1 for x irrational

and if it absolutely needs to be discontinuous at 0

0 for x=0

Hmm. That raises the question: If p is a number in [0, 1], what is the "next number" after p? Is it rational or irrational? It seems rather difficult to answer for a continuum! :-)

cogitoČ
Oct27-04, 01:06 AM
One of the properties of real numbers is that there is no next number.

matt grime
Oct27-04, 07:27 AM
Hmm. That raises the question: If p is a number in [0, 1], what is the "next number" after p? Is it rational or irrational? It seems rather difficult to answer for a continuum! :-)

How on earth did you reach that conclusion?

HallsofIvy
Oct27-04, 08:40 AM
Hmm. That raises the question: If p is a number in [0, 1], what is the "next number" after p? Is it rational or irrational? It seems rather difficult to answer for a continuum! :-)

On the contrary, it's very easy to answer: there is NO "next number" in the set of real numbers or the set of rational numbers. If there were, every subset would be "well ordered" and that's a property of integers, not rational or real numbers.

Tide
Oct27-04, 06:27 PM
How on earth did you reach that conclusion?

Actually, it wasn't a conclusion. It was a question for StatusX to ponder in which he proposes a "solution" to Nebula's query by, in effect, making "every other number" change the sign of a function. The answer, of course, is that there is no "next number" in the continuum of reals. No matter how close two numbers are you can always find other numbers in between.

StatusX
Oct27-04, 06:49 PM
he wanted a function that was nowhere continous, so thats what i gave. i never said that rationals and irrationals alternate, if thats what you mean, which doesn't even make sense. all i mean is that the limit of f(x) as x goes to c does not exist for any c, and so does not equal f(c), so the function isnt continuous anywhere. maybe thats not the right way to define continuity, but i still think its obviously discontinous.

matt grime
Oct28-04, 04:23 AM
You did have a conclusion, tide: that the example 'raised the question'... how or why does it make you think of this question? The example does not make any such 'alternating sign every other number' argument. It is just +1 and -1 for two different dense subsets. Any such function is a solution, and there's no need to put quotation marks around the word as if it weren't.

There's no next number in the rationals either, and that isn't a continuum, but the question in my mind is still, 'what has this got to do with anything?'

jcsd
Oct28-04, 06:57 AM
By the defintion of continuity and the fact that the rationals and irrationals are both dense in R the function is obviously discontinious as at every point.