How does one prove this?

I have come across with a function, which, allegedly, is only continuous at one point.

Consider this function defined over R \mathbb{R} .

f(x)={xforxQ0forxQ f(x) = \begin{cases} x \: \text{for} \: x \in \mathbb{Q} \\ 0 \: \text{for} \: x \notin \mathbb{Q} \end{cases}

How does one prove its continuity at x=0x=0 (and the fact that it is only continuous at that point) using the delta-epsilon definition of continuity? Thank you!

#Calculus

Note by Efren Medallo
4 years, 8 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Continuity at x=0x=0 :

We first show that limx0f(x)\lim\limits_{x\to 0}f(x) exists and equals 00. To do this, we need to show that for all ϵ>0\epsilon\gt 0, there exists a δ>0\delta\gt 0 such that x<δ    f(x)<ϵ|x|\lt\delta\implies |f(x)|\lt\epsilon. If we choose δ=ϵ\delta=\epsilon, then for all rationals xx satisfying x<δ|x|\lt\delta, we have f(x)=x<δ=ϵ|f(x)|=|x|\lt\delta=\epsilon, i.e., f(x)<ϵ|f(x)|\lt\epsilon. For the irrationals xx satisfying x<δ|x|\lt\delta, we have f(x)=0<ϵ|f(x)|=0\lt\epsilon. So, choosing δ=ϵ\delta=\epsilon, we conclude using the epsilon-delta definition of limit that limx0f(x)=0\lim\limits_{x\to 0}f(x)=0. Also, we note that f(0)=0f(0)=0 from the definition of ff. Hence, we conclude that ff is continuous at x=0x=0.


Discontinuity at all other points :

We need to show that ff is discontinuous at x=r0x=r\neq 0, i.e., we need to show that there exists ϵ>0\epsilon\gt 0 such that for all δ>0\delta\gt 0, there exists xRx\in\Bbb R such that xr<δ    f(x)f(r)ϵ|x-r|\lt\delta\implies |f(x)-f(r)|\not\lt\epsilon.

Consider ϵ=r\epsilon=|r| and δ>0\delta\gt 0.

Let rQr\notin\Bbb Q. Since Q\Bbb Q is dense in R\Bbb R, there exist r1,r2Qr_1,r_2\in\Bbb Q such that rδ<r1<r<r2<r+δr-\delta\lt r_1\lt r\lt r_2\lt r+\delta. If r<0r\lt 0, choose x=r1x=r_1 and if r>0r\gt 0, choose x=r2x=r_2. In both cases, we have f(x)f(r)=f(x)ϵ|f(x)-f(r)|=|f(x)|\not\lt\epsilon. This shows that ff is discontinuous at x=rx=r for all irrationals rr.

Now, let rQ{0}r\in\Bbb Q\setminus\{0\}. Since RQ\Bbb R\setminus\Bbb Q is also dense in R\Bbb R, there exist i1RQi_1\in\Bbb R\setminus\Bbb Q such that rδ<i1<r<r+δr-\delta\lt i_1\lt r\lt r+\delta. Choose x=i1x=i_1 and then we have f(x)f(r)=0r=rϵ|f(x)-f(r)|=|0-r|=|r|\not\lt\epsilon. This shows that ff is discontinuous at x=rx=r for all non-zero rationals rr.

So, we conclude that ff is discontinuous at x=rx=r for all rR{0}r\in\Bbb R\setminus\{0\}.

Prasun Biswas - 4 years, 8 months ago

Log in to reply

Thanks for that! I knew I was on the right track on trying to prove its continuity at x=0 x = 0 , but I could never find the mathematical backing in proving its discontinuity elsewhere!

Efren Medallo - 4 years, 8 months ago
×

Problem Loading...

Note Loading...

Set Loading...