Define $A=\{(x,y):y=\sin(1/x), x\neq 0\}$ and $B=\{(0,y):-1\leq y \leq 1\}$.
How do I prove that $A\cup B$ is connected?
I can see this is not path connected but cannot prove why it is connected..
Define $A=\{(x,y):y=\sin(1/x), x\neq 0\}$ and $B=\{(0,y):-1\leq y \leq 1\}$.
How do I prove that $A\cup B$ is connected?
I can see this is not path connected but cannot prove why it is connected..
Assume $X=A\cup B$ is the union of two open sets, $X=U\cup V$, with $U\cap V=\emptyset$. Wlog. $(0,0)\in U$. Then $U\cap A\ne\emptyset$ and $U\cap B\ne\emptyset$. As $A,B$ are (clearly, in fact pathwise) connected, we conclude $A\subseteq U$ and $B\subseteq U$, hence $V=\emptyset$.
Let us deal first with the same problem for $A=\{(x,y); y=\sin\frac1x, x>0\}$. (Then you can get the set from the original problem simply as a union of two connected sets with a non-empty intersection.)
Notice that $A=\{(x,y); y=\sin\frac1x, x>0\}$ is connected - it is a continuous image of the connected space $(0,\infty)$.
If you notice that $A\cup B$ is precisely the closure of $A$, it suffices to show that closure of a connected set is again connected.
The proof of this lemma is not very difficult and it can be found in other posts on this site or elsewhere, for example:
It is also useful to know that this is called Closed topologist's sine curve.