I am a student who begins to learn topology. Here is one question that confused me a lot.
Let $E_1 \subset \mathbb{R}$ and $E_2 \subset \mathbb{R}$, and define $E=E_1 \times E_2 \subset \mathbb{R}^2$. Prove that $E$ is connected if and only if the sets $E_1$ and $E_2$ are connected.
Thank you for any help!!
HINT
First assume $E_1$ is disconnected. Can you prove $E$ is disconnected by using the same discontinuity?
Now assume $E$ is disconnected. Can both $E_1$ and $E_2$ be connected?