[Math] Two Sets such that their Union and Intersection are Connected but One of the Sets is not

general-topologyreal-analysis

Can anyone think of two sets such that their intersection and union are connected, but one of the sets is not connected. I know one of the sets must be open, but I can't think of an example.

Best Answer

The easiest example I can think of is taking $A=\{0\}$ and $B=\mathbb{R}\setminus A$. Now $A\cup B=\mathbb{R}$ and $A\cap B=\emptyset$ are both connected, but $B$ is not connected. In fact, choosing $A=\{0,1\}$ and $B=\mathbb{R}\setminus A$ gives two disconnected sets, whose union and intersection are both connected.

If you do not consider the empty set connected (certain authors don't), then you can take $A=\{0,1\}\subset \mathbb{R}^2$ and $B=\mathbb{R}^2\setminus\{1\}$. Now $B$ is connected and $A$ is not, while $A\cup B=\mathbb{R}^2$ and $A\cap B=\{0\}$ are both connected.