3

Related question:-

My question is a generalization of this question.

WARNINGS:-

$(1)$ This question might not have all the needed tags.

$(2)$ I am not a mathematician. So if this question doesn't make sense then please forgive me.

Clarification of the title of this question:-

Some people might ask what do I mean by

infinitely dense on the real number line.

So let me clarify the title with an example. If you take $\mathbb{Z}$ then it is not infinitely dense because in a finite interval on the real line, there exists only finitely many elements of $\mathbb{Z}$

But if you take, for example $\mathbb{Q}$ then it is infinitely dense because in a finite interval of the real line, there exists infinitely many elements of $\mathbb{Q}$.

How I got interested:-

I started wondering about this question after watching a few youtube videos about roots of a function and fractals.

Let,$\mathcal{R}(f)$ be the set of the roots of $f$

If you take $f=sin(x)$ then $\mathcal{R}(f)$ is infinite but not infinitely dense.

I started thinking about that how cool the graph of a function $f$ would look like if $\mathcal{R}(f)$ is infinitely dense because then the graph would intersect the $x$ axis infinitely many times

My questions:-

$(1)$ Let, $f$ be a continuous function.

Then, does there exist $f$ such that $\mathcal{R}(f)$ is infinitely dense?

$(2)$ If the answer to $(1)$ is "no" then why? If "yes" then how to construct such functions?

(If the question is poorly written in mathematical terms then sorry, I am not a mathematician)

user1892304
  • 2,808
  • 2
    Density is indeed a well-defined term in mathematics and refers to exactly what you mean, see: https://en.m.wikipedia.org/wiki/Dense_set. The answer to your question is yes, there does exist a continuous function whose zeroes are dense: the zero function. This is the only such function: the continuity condition forced the function to be zero if it vanishes on a dense set. Hope this helps – user1892304 Apr 01 '21 at 12:07
  • 1
    Let $f:\Bbb R\to \Bbb R$ be continuous such that $C:=f^{-1}(0)$ is dense in $\Bbb R$, i.e. $\overline C=\Bbb R$. Now, continuity of $f$ tells $f\left(\overline C\right)\subseteq \overline{f(C)}$ so that $f(\Bbb R)\subseteq \overline{{0}}={0}$, hence, $f(\Bbb R)={0}$. – Sumanta Apr 01 '21 at 12:08
  • To add to above comment $f^{-1}(0)$ is closed because it is the inverse image of ${0}$. If a set is closed and dense then it is equal to $\mathbb R$. – Kavi Rama Murthy Apr 01 '21 at 12:11
  • Try to convince yourself that if $f$ is continuous and if $f(a)\ne0$, then there is a (small) open interval $I$ containing $a$ such that $f(x)\ne0$ for all $x\in I$. Then, you will be sure the only function which you describe is the zero function – David Mitra Apr 01 '21 at 12:48
  • Can you guys write a complete answer. So that I can better understand what you are trying to say. – Rounak Sarkar Apr 01 '21 at 13:00
  • @user1892304. Is the zero function continuous? – Rounak Sarkar Apr 01 '21 at 13:18
  • @Antnamus. Can you please give an answer explaining what are you trying to say? The notations are a little bit confusing, I don't know what does the bars mean. And how do you apply function to sets where you wrote $f(\mathbb{R})$? – Rounak Sarkar Apr 01 '21 at 13:21
  • 1
    @RanjitKumarSarkar Yes, the zero function is continuous. https://en.wikipedia.org/wiki/Continuous_function. May I suggest that you provide some information about your mathematical background? If you know about convergence of sequences for example this might help users write an appropriately framed answer to your question. Otherwise some might assume knowledge you don't have which might be confusing and unhelpful to you – user1892304 Apr 01 '21 at 19:08

1 Answers1

3

Since you say that you're not from a mathematical background, I'll try to exaplain the basics as much as I can. Please feel free to ask for further clarification.

That said, first note that what you're calling infinitely dense is actually simply called dense in the mathematical literature. A dense subset of $\Bbb R$ is

any subset $S$ of $\Bbb R$ such that $S \cap (a,b) \neq \phi$ for any $a,b \in \Bbb R (a \neq b)$.

Now, any function $f : \Bbb R \to \Bbb R$ is is called continuous at $x \in \Bbb R$ if

for any $\epsilon>0$, there is $\delta>0$ such that $|y-x|<\delta$ implies $|f(y)-f(x)|<\epsilon$.

This is also known as the $\epsilon-\delta$ definition of continuity. $f$ is called continuous (on $\Bbb R$) if it is continuous at each $x \in \Bbb R$.

Now that we're done with the basics, let's come to your question. As pointed out in the comments, there is an unique function that satisfies your criteria, the zero function i.e.

$f : \Bbb R \to \Bbb R$ such that $f(x)=0$ for any $x \in \Bbb R$.

Let's actually verify that it's continuous. Choose any $\epsilon>0$. Let $\delta=1$ (or anything else that you fancy). Then, $|y-x| < \delta$ implies $|f(y)-f(x)|=|0-0|=0<\epsilon$. So, the zero function is continuous.

Also, $\mathcal R(f)=\Bbb R$, so the density property is clearly satisfied.

That deals with existence. For the uniqueness part, let $g$ be another such function. Then, if for any $x \in \Bbb R$, consider $\epsilon = {1 \over n}$ for some $n \in \Bbb N$. Then, by continuity, there must be $\delta$ such that $|y-x|<\delta$ implies $|f(y)-f(x)|<\epsilon={1 \over n}$.

By density of $\mathcal R(f)$, there is $y_0 \in (x-\epsilon,x+\epsilon)$ such that $f(y_0)=0$. But then $|f(x)-f(y_0)|=|f(x)|<{1 \over n}$. This is true for each such $n$, so $f(x)=0$.

This is true for each $x \in R$, so $f$ is the zero function. We are done.