0

Let $f: \mathbb{R} \to \mathbb{R} $. $f$ is discontinuous in a point $p$ iff

$$\lim_{x\to p}f(x) \neq f(p)$$

I am searching for an $f$ which is discontinuous in all $p \in \mathbb{R}$ (a simple one). So, we have that

$$\lim_{x\to p}f(x) = f(p) \iff \forall \epsilon >0, (\exists \delta>0\ (0<|x-p|<\delta) \implies |f(x) - f(p)|<\epsilon)$$

so

$$\lim_{x\to p}f(x) \neq f(p) \iff \exists \epsilon\gt 0\Biggl(\forall \delta\gt 0\Bigl( \exists x\bigl( (0\lt|x-p|\lt \delta)\wedge (|f(x)-f(p)|\geq \epsilon)\bigr)\Bigr)\Biggr)$$

then

$$\exists \epsilon\gt 0\Biggl(\forall \delta\gt 0\Bigl( \exists x\bigl( (0\lt|x-p|\lt \delta)\wedge (|f(x)-f(p)|\geq \epsilon)\bigr)\Bigr)\Biggr)$$

I can´t see hoe the I can produce a discontinuous function from here. Can anyone help me?

Thanks to Arturo Magidin for the edition suggested

Thanks for your attention and help Thanks to Arturo Magidin for the edition suggested

  • 1
    You've incorrectly negated $|f(x)-f(p)\lt \epsilon$. You wrote $\epsilon\gt |f(x)-f(p)|$, but this is the exact same thing. The negation of $|f(x)-f(p)|\lt\epsilon$ is $|f(x)-f(p)|\geq \epsilon$. – Arturo Magidin Oct 15 '21 at 21:35
  • 1
    You are also missing an existential quantifier. There is an implied "For all $x$" after $\forall \delta\gt 0$, which when negateded becomes "there exists $x$ such that". Right now, your negation is incorrect because $x$ is not bounded, so it would be interpreted as something that is required for all $x$. – Arturo Magidin Oct 15 '21 at 21:36
  • 1
    So the correct negation is $$\exists \epsilon\gt 0\Biggl(\forall \delta\gt 0\Bigl( \exists x\bigl( (0\lt|x-p|\lt \delta)\wedge (|f(x)-f(p)|\geq \epsilon)\bigr)\Bigr)\Biggr)$$ – Arturo Magidin Oct 15 '21 at 21:37
  • You can choose any non-constant periodic function without a smallest period. And you definitely know such a function cannot be monotonic. – PinkyWay Oct 15 '21 at 21:41
  • 1

2 Answers2

2

Think about what continuity intuitively is about: it means "close" input values get mapped to "close" output values. But with the constant $0$ function of course all values in the image will be close to each other no matter how far the input values are apart - it's basically as continuous as it gets.

Explanations for why your derivation is incorrect are already given in the comments multiple times so I won't go into that. There's also another answer with a solution (the so-called Dirichlet function - the indicator function of the set of rational numbers) but it doesn't really go into why this is a "natural" solution.

We've already noticed that the $0$ function is as continuous as it gets - it's perfectly smooth. So lets start with that and modify it such that it has a discontinuity. At the beginning I've said that continuity is about closeness, that we can make our output values be as close to one another as we want by simply considering small and smaller input intervals - which functions don't statisfy this property? Surely if we had a function $f$ such that $|f(x) - f(y)|$ was constant for $x \neq y$ we'd have this. So lets define exactly this kind of function. Let $x_0 \in \Bbb R$ and define $$ f_0(x) = \begin{cases} 1, &\text{if }x = x_0 \\0, & \text{otherwise.} \end{cases} $$ Then no matter how small a ball (so a set of the form $(x_0 - \delta, x_0 + \delta)$ for $\delta > 0$) we draw around $x_0$ there'll always be some point $x$ in it that is not equal to $x_0$ and thus we'll have $|f(x) - f(x_0)| = 1$. So the prototypical discontinuous functions are precisely the jump functions - another commonly used example are step functions like $f(x) = \begin{cases} 1, &\text{if }x > x_0 \\0, & \text{otherwise.} \end{cases}$

To add more discontinuities we can just add up functions that look like $f_0$, which of course has the same effect as adding more branches that check for equality or we replace the equality check by a single set membership check. So for some real numbers $x_0, ..., x_n$ the function $$f_1(x) = \begin{cases} 1, &\text{if }x \in \{x_0, ..., x_n \}\\0, & \text{otherwise} \end{cases}$$ will have discontinuities precisely at the points $x_0,...,x_n$. And now we just need to blow up this set of discontinuities in some way. We'll denote the function that is $1$ for all $x$ in some set $A$ and $0$ elsewhere by $\chi_A$ and call it the indicator function of $A$. Lets note some properties that we want our set $A$ to have such that $\chi_A$ will be everywhere discontinuous:

  • $A$ should be infinite, because for any finite set we'll easily find some interval on which the function $\chi_A$ is identically $0$
  • $A$ can't contain any interval, because otherwise $\chi_A$ would be continuous precisely on this interval
  • in the same way $\Bbb R \setminus A$ can't contain any intervals, lest we'd have continuity on that.

So we're looking for an infinite set that doesn't contain any intervals itself and breaks up all possible intervals. For any such set $A$ the function $\chi_A$ will be everywhere discontinuous.In topological terms we're looking for a dense subset of $\Bbb R$.

What infinite subsets of the real numbers are there that we might consider? The simplest one that probably comes to mind are the natural numbers and the integers but clearly they both don't "break up all intervals". The next "bigger" set that we often times deal with are the rationals $\Bbb Q$ and we can quickly check for ourselves that they do indeed have all the properties we want. Thus $\chi_{\Bbb Q}$ is everywhere discontinuous.

SV-97
  • 1,101
-1

Try $$ f(x)= \begin{cases} 0 &\text{if } x\in\mathbb{Q},\\ 1&\text{otherwise}. \end{cases} $$

  • Before searching, avoid posting an answer to a question that is likely to be a duplicate. You can comment. The question has been updated anyways. However, I'm not the downvoter. (: – PinkyWay Oct 15 '21 at 21:51