Continuity on a piece-wise function

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 5K views
varygoode
Messages
45
Reaction score
0
[SOLVED] Continuity on a piece-wise function

Problem:

Suppose:

[tex]f(x)=\left\{\begin{array}{cc}x^2, &<br /> x\in\mathbb{Q} \\ -x^2, & x\in\mathbb{R}\setminus\mathbb{Q}\end{array}\right[/tex]

At what points is [tex]f[/tex] continuous?

Relevant Questions:

This is in a classical analysis course, not a real analysis course. So we use the metric defininition of continuity:

A function [tex]f:X \rightarrow Y[/tex], with [tex]X, Y[/tex] metric spaces and the distance between [tex]x, x_0 \in X, y, y_0 \in Y[/tex]
denoted as [tex]d_X(x, x_0), d_Y(y, y_0)[/tex], respectively, is called [tex]continuous \ at \ a \ point \ x_0[/tex] if, [tex]\forall \ \varepsilon > 0 \ \exists \ \delta > 0[/tex] such that:

[tex]d_X(x, x_0) \leq \delta \Rightarrow d_Y(f(x), f(x_0)) \leq \varepsilon[/tex]​

So, I'm just assuming that our distances are regular distance in [tex]\mathbb{R}[/tex], as this assumption is normal in my class when both sets are over subsets of [tex]\mathbb{R}[/tex].

Now, my question is as follows: should there be four cases here? One with both [tex]x, x_0[/tex] (as in the definition) in [tex]\mathbb{Q}[/tex], one with both in [tex]\mathbb{R}\setminus\mathbb{Q}[/tex], and two with one in each? Is there more, less? Am I looking at this the wrong way?

Solution Attempt:

I started doing it with the four situation case, and I was getting that it is continuous only when [tex]x, x_0 \in \mathbb{R}\setminus\mathbb{Q}[/tex]. But I may be thinking about this all wrong.

Any ideas/suggestions/corrections/praise?
 
Physics news on Phys.org
Another characterization of continuity that you will recognize from your real analysis course is that f is continuous at x0 iff for all sequences x_n that converge to x0, the sequence of images f(x_n) converges to x0.

In particular, if you can find a sequence such that x_n-->x0 but f(x_n) does not converge to f(x0), then you will have shown that f is not continuous at x0.
 
Where do you suggest I start?

I know a sequence of rationals exists that converges to an arbitrary real number; that's a widely-known theorem.

But I don't know what number I should try to make such a sequence to converge to in order to arrive at some concrete conclusion(s).

Also, any other ideas (especially using the given definition) would be just as great.

Thanks!
 
I don't what what more to say without giving it away. I'll just repeat my hint:

"If you can find a sequence such that x_n-->x0 but f(x_n) does not converge to f(x0), then you will have shown that f is not continuous at x0."
 
You might try graphing that function! Actually, you can't graph individual rational and irrational values but you get basically the same thing by graphing y= x2 and y= -x2. That should make it obvious where your function is continuous!
 
Is it continuous only at 0?

This is interesting, indeed.

I think I can rule out it being continuous at any irrational point. Since I can always find a sequence of rationals (only) to converge to any real number, I can find (in particular) such a sequence to converge to any irrational. But then f(sequence of rationals) will stay positive, but f(irrational) will be the opposite of whatever it was. So, if the irrational is positive, it's opposite will be negative. So any sequence of all positive numbers won't converge to a negative number. But I'm not sure what's going on for a negative irrational.

Or for the rationals, for that matter.

But I get the feeling 0 may be the only continuous point here. Just I don't see why yet.
 
your intuition is correct.

think some more about this and convince yourself that the argument you applied (my hint) for any point except 0.

then prove it is continuous at 0.

note: there is also an infinity of irrationnal numbers in any interval. (In fact, you could say that there are MORE irrationals than rationals in any interval because there are countably many rationals, but uncountably many irrationals)
 
If x0 is not 0, then x02 is positive. Take [itex]\epsilon= x_0^2/2[/itex]. Now, either x0 is rational or x0 is irrational.

If x0 is rational, then f(x0)= -x02. But, for any [itex]\delta> 0[/itex], there exist irrational x, with [itex]|x- x_0|< \delta[/itex]. For such an x, f(x)= x2> 0 and so not within [itex]\epsilon[/itex] of f(x0).

I'll leave "if x0 is irrational" to you.