Consider the topological space $G \cup Y,$ where $G = \{(x, \frac{1}{x}) \,:\, \mathbb{R} - \{0 \} \}$ and $Y = \{(0,y) \,:\, y \in \mathbb{R} \}$ with the subspace topology inherited from $\mathbb{R}^2.$ I am interested in whether or not this space is connected. Earlier, I convinced myself -- with the help of two colleagues -- that this space is indeed connected; however, our professor provided this proof that it is not connected.
Claim. $G \cup Y$ is not connected.
Proof. Consider the subsets $P = \{(x,y) \,:\, xy < \frac{1}{2} \}$ and $Q = \{(x,y) \,:\, xy > \frac{1}{2} \}$ of $\mathbb{R}^2.$ We note that both $P$ and $Q$ are open in $\mathbb{R}^2.$ Furthermore, we have that $G \subset Q$ since $xy = 1$ in $G$ and $Y \subset P$ since $xy = 0$ in $Y.$ We have therefore that $G \cup Y = (Q \cap G) \cup (P \cap Y)$ gives a nontrivial decomposition of the space $G \cup Y$ into clopen subsets, hence $G \cup Y$ is not connected.
But I cannot fathom why these intersections are clopen. From what I can tell, $Q \cap G$ is simply $G,$ and $P \cap Y$ is simply $Y.$ Furthermore, $G$ does not appear to be closed since it does not possess its limit points of $\pm \infty,$ and $Y$ does not appear to be open since its complement in $G \cup Y$ is not closed.
Could someone provide some insight into whether or not this space is connected?
(1) There are no limit points $\pm \infty$ here because there are no "points at infinity" in the set $\Bbb R^2$.
Limit points are defined within a space. You can always take a non-empty set $X$ and any topology $T_X$ on $X$ and take a point $p\not \in X,$ and define a topology on $Y=X\cup \{p\}$ such that the subspace topology on $X,$ as a subspace of $Y,$ is $T_X,$ and such that $p$ is a limit point of $X$ in the space $Y.$ But $p$ is a not a limit point of $X$ in the space $X$ because $p\not \in X.$
(2) The topology $T'$ on $G\cup Y,$ as a subspace of $\Bbb R^2,$ is $\{t\cap (G\cup Y):t\in T_{\Bbb R^2}\}$ where $T_{\Bbb R^2}$ is the set of all open subsets of $\Bbb R^2.$ This is the definition of "subspace topology".
$P$ and $Q$ are members of $T.$ For brevity let $P'=P\cap (G\cup Y)$ and $Q'=Q\cap (G\cup Y).$ So $P'$ and $Q'$ belong to $T'. $ That is, $P'$ and $Q'$ are open subsets of the $space $ $ G\cup Y.$
Furthermore $P'\cap Q'=\emptyset$ and $P'\cap Q'=G\cup Y.$ So the space $G\cup Y$ is the union of two non-empty disjoint open subsets ($P'$ and $Q'$), so it is not a connected space.