Let $M:=[0,1] \cup [2,3]$ be a metric space.
How to show that $[0,1]$ is open and closed under the euclidean metric $||x-y||=\sqrt{(x-y)^2}$?
My idea was:
To show that $[0,1]$ is open in $M$, I have to show that
$\forall x \in [0,1] \exists \epsilon >0: \lbrace y \in [0,1]\cup [2,3]: ||x-y||<\epsilon \rbrace \subset [0,1]$
But if I take $x=0$ and $\epsilon =4$, I get $||0-3||=3<4$, so $\lbrace3\rbrace \not \subset [0,1] $
How can it be shown correctly?