Question. Prove that the closed unit square $S=\{x$ in $\Bbb R^2 : 0 \le x_1 \le 1, 0 \le x_2 \le1 \}$ is connected.
I understood how to prove unit interval is connected and I am trying to extend to unit square case. I imitated the procedure to prove the question above.
This is my attempt:
Suppose that $ [0,1] \times [0,1] \subset U \cup V$ where $U$ and $V$ are disjoint, opens in $\Bbb R^n$ . Without loss of generality, we may assume that $ (x_1, x_2)=(0,0) \in U.$ Then to complete the proof, it suffices to show that $ [0,1] \times [0,1] \subset U$
Step 1: Since $ (x_1, x_2)=(0,0) \in U$ and $U$ is open, there is $\varepsilon $ with $0<\varepsilon<1$ such that $N((0,0), \sqrt 2 \varepsilon) \cap S \subset U$ , implying that $[0,\varepsilon) \times [0,\varepsilon) \subset U$. Then the set $T=\{x\in [0,1] : [0,x) \times [0,x) \subset U\}$ is nonempty and bounded. Therefore, there exists $\mu=supT$. Note that $0<\varepsilon \le \mu \le 1.$
Step 2: We will show that $[0,\mu) \times [0,\mu) \subset U$. $y\in [0,\mu) \Rightarrow$ There exist $x \in T$ such that $y<x \le \mu \Rightarrow y \in [0,x) \Rightarrow x \in [0,\mu) \times [0,\mu) \subset [0,x) \times [0,x) \subset U$
Step 3: We will show that $[0,\mu] \times [0,\mu] \subset U$. To prove this, it suffices to show that $(x_1, x_2)=(\mu,0) \in U.$ Suppose to the contrary that $(x_1, x_2)=(\mu,0) \in V.$ Since V is open, there is $\varepsilon>0$ such that $N((\mu,0), \varepsilon) \cap S \subset V$.
I am stuck here. Am I doing right? Is there any simpler version of proof? I am a beginner so any kind of help would be appreciated.