What is a function that is continuous at all points except the rationals?

  • MHB
  • Thread starter Dustinsfl
  • Start date
  • Tags
    Function
In summary: function $f(x)$ to be discontinuous at every rational point and continuous at every irrational point, the condition $|x-x_{0}|<\delta$ must be true for any $x$, rational and irrational.
  • #1
Dustinsfl
2,281
5
Construct a function on $(0,1)$ that is continuous at all points except the rationals, is monotone increasing, is right continuous at all points on $(0,1)$, and such that $f(0) = 0$ and $f(1) = 1$.

$$
f(x) = \sum_{n=1}^{\infty}\frac{a_{n+1} - a_n}{a_na_{n+1}}H_n(x-\mathbb{Q})
$$
where $H_n$ is the Heaviside function and the rationals are of the form $\frac{1}{a_n}$.
Is this correct?
 
Physics news on Phys.org
  • #2
dwsmith said:
Construct a function on $(0,1)$ that is continuous at all points except the rationals, is monotone increasing, is right continuous at all points on $(0,1)$, and such that $f(0) = 0$ and $f(1) = 1$.

$$
f(x) = \sum_{n=1}^{\infty}\frac{a_{n+1} - a_n}{a_na_{n+1}}H_n(x-\mathbb{Q})
$$
where $H_n$ is the Heaviside function and the rationals are of the form $\frac{1}{a_n}$.
Is this correct?
I think that you have the right general idea, though I don't understand the actual formula that you are proposing (and to be blunt, I don't think it makes any sense at all). The key thing must be that there are countably many rationals in the unit interval. Let $\{r_1,r_2,r_3,\ldots\}$ be an enumeration of the rationals in $(0,1)$, and define $$f(x) = \sum_{n=1}^{\infty}2^{-n}H(x-r_n),$$ where $H$ is the Heaviside function.
 
  • #3
dwsmith said:
Construct a function on $(0,1)$ that is continuous at all points except the rationals...

I think that this concept would be a little better specified. Calling $\varphi(x)$ this function if $x_{0}$ is irrational, under Your hypothesis, for an $\varepsilon>0$ it exists a $\delta>0$ for which for all x for which $|x-x_{0}| < \delta$ is $|\varphi(x) - \varphi(x_{0})|< \varepsilon$. Now in any interval $(x,x_{0})$ there are infinite rational values of x so that, swapping the roles of $x_{0}$ and $x$ we conclude that $\varphi(x)$ is continuos also per rational values of x... contradiction!...

Kind regards

$\chi$ $\sigma$
 
  • #4
chisigma said:
I think that this concept would be a little better specified. Calling $\varphi(x)$ this function if $x_{0}$ is irrational, under Your hypothesis, for an $\varepsilon>0$ it exists a $\delta>0$ for which for all x for which $|x-x_{0}| < \delta$ is $|\varphi(x) - \varphi(x_{0})|< \varepsilon$. Now in any interval $(x,x_{0})$ there are infinite rational values of x so that, swapping the roles of $x_{0}$ and $x$ we conclude that $\varphi(x)$ is continuos also per rational values of x... contradiction!...
That argument is false, and it neatly illustrates the importance of order of choice in analysis proofs.

When you use the fact that $\varphi$ is continuous at $x_0$, you start with two given elements: the point $x_0$ and the number $\varepsilon>0$. You then obtain a number $\delta>0$ (which depends on $x_0$ and $\varepsilon$) and you choose a rational point $x$ such that $|x-x_0|<\delta$. Thus $x$ depends on $x_0$, $\varepsilon$ and $\delta$.

You then claim that "swapping the roles of $x_{0}$ and $x$ we conclude that $\varphi(x)$ is continuous" at $x$. But that is not allowed. The roles of $x_0$ and $x$ are not symmetrical, because $x$ depends on $x_0$. To prove that $\varphi(x)$ is continuous at $x$, you would need to start with $x$ and $\varepsilon$, and find a $\delta>0$ such that $|\varphi(x') - \varphi(x)|<\varepsilon$ whenever $|x'-x|<\delta.$ But you cannot use the $\delta$ from the previous paragraph, because that was chosen before $x$. To prove continuity at $x$, you have to start with $x$ before knowing $\delta$. The order of choice is wrong, and the "proof" fails.

In fact, it is quite possible to have a function that is discontinuous at every rational point and continuous at every irrational point. See the function that Wikipedia calls Thomae's function.
 
  • #5
Opalg said:
... when you use the fact that $\varphi$ is continuous at $x_0$, you start with two given elements: the point $x_0$ and the number $\varepsilon>0$. You then obtain a number $\delta>0$ (which depends on $x_0$ and $\varepsilon$) and you choose a rational point $x$ such that $|x-x_0|<\delta$. Thus $x$ depends on $x_0$, $\varepsilon$ and $\delta$...

That is not what I said... the condition $|x-x_{0}|<\delta$ must be true for any x, rational and irrational...

Anyway the question is complex and requires to me adequate 'reflection time'...

Kind regards

$\chi$ $\sigma$
 
  • #6
Before to proceed in this discussion an important detail: I'm not a Mathematician and all what is about 'abstact logic',' patological functions', 'indeterminate forms' and 'removable singularties' is very far from how my brain works...

Now I'try to clarify a little, and with benefit for anyone, the question about the function that is contonous for irrationals and discontinuos for rationals. Let br f(x) such a functions and for clarity sake we will use the following [pure explicative...] pitcure... View attachment 462

Let be $x_{0}$ an irrational and 'by definition' f(x) is continuos in $x=x_{0}$. That means that, given an $\varepsilon>0$ it exists a $\delta>0$ for which for any $|x-x_{0}|<\delta$ is $|f(x)-f(x_{0}| < \varepsilon$. Now we choose two rational values of x in $(x_{0},x_{0}+\delta)$ with $x_{2}-x_{1}= \sigma>0$. According with what we have said is $|f(x_{1})-f(x_{0}| < \varepsilon$ and $|f(x_{2})-f(x_{0}| < \varepsilon$ and that means that $|f(x_{2})-f(x_{1})|< 2\ \varepsilon$ for $|x_{2}-x_{1}| < \sigma$...

... in other words f(x) seems to be continuous both in $x_{2}$ and $x_{1}$...

For the reasons I explained before this is my last post on this thread... Kind regards $\chi$ $\sigma$
 

Attachments

  • MHB72.PNG
    MHB72.PNG
    749 bytes · Views: 64

FAQ: What is a function that is continuous at all points except the rationals?

What is a discontinuity of a function?

A discontinuity of a function occurs when there is a break or a gap in the graph of the function. This means that the function is not continuous at that point.

How can you identify a discontinuity of a function?

A discontinuity can be identified by looking for breaks, jumps, or holes in the graph of the function. It can also be identified by checking for any points where the function is undefined.

What causes a discontinuity of a function?

A discontinuity can be caused by several factors, including a removable discontinuity where there is a hole in the graph, a jump discontinuity where there is a sudden change in the graph, or an essential discontinuity where the function is undefined at a certain point.

How do discontinuities affect the behavior of a function?

Discontinuities can greatly affect the behavior of a function. In some cases, they can cause the function to be undefined at certain points, making it difficult to analyze or make predictions. They can also cause sudden changes or jumps in the graph, making it non-smooth and less predictable.

Can a function have multiple discontinuities?

Yes, a function can have multiple discontinuities. These can be a combination of different types of discontinuities such as removable, jump, or essential discontinuities. It is important to identify and understand the discontinuities of a function in order to fully comprehend its behavior and properties.

Similar threads

Back
Top