Show that the following set is connected subset of $\mathbb R^2$ :
$$\left\{\left(x,\sin \frac{1}{x}\right)\in \mathbb R^2|0<x<\infty\right\}\cup\left\{(0,0)\right\}$$
Attempt : Here $A=\left\{\left(x,\sin \frac{1}{x}\right)\in \mathbb R^2|0<x<\infty\right\}$ is connected as, $f:(0,\infty) \to \mathbb R^2$ defined by $f(x)=\left(x,\sin \frac{1}{x}\right)$ is continuous and $(0,\infty)$ is connected. Again $B=\{(0,0)\}$ is also connected. $A\cap B=\emptyset$. So how can I prove that $A\cup B$ is connected ?
If $A$ and $B$ are connected and $A\cap B\not=\emptyset$ then $A\cup B$ is also connected. But it is a sufficient condition. So I can't conclude that $A\cup B$ is disconnected.