I am new to analysis and I'm afraid my approach is not detailed enough.
Here is my attempt:
"To show $S=\{(x,y)\in E^2: xy=1, x>0\}$ , $S\subset E^2$ is a closed set, we can show that $S^c$ is an open set.
Let $p\in S^c$. Then there exists an open ball of center $p$ and radius $\epsilon$, call it $B_\epsilon(p)$.
Let $q\in B_\epsilon(p)$. To ensure that $q\in S^c$, choose $\epsilon =\min\{d(p,z), z\in S\}$.
Is this enough?
This is not enough, because: (a) You don’t know that the minimum exists (though surely there is the infimum), and (b) Even if you replace the minimum with infimum, how are you sure that this infimum is nonzero?
The correct proof would take the point $(x,y)$ such that $x\gt 0, xy\ne 1$, then if you set $\epsilon=|1-xy|$, due to continuity of $(x,y)\to xy$ there is an open ball $B$ containing $(x,y)$ such that, for $(z,t)\in B$, $|zt-xy|\lt\epsilon$... but then $|1-zt|\ge|1-xy|-|zt-xy|\gt\epsilon-\epsilon=0$, i.e. $zt\ne 1$ on the whole $B$.
A more advanced way to rephrase the same proof here is to note that, in the continuous map $f:(x,y)\to xy$, we have the inverse image $f^{-1}(\{1\})$ of the closed set $\{1\}$, which is closed. Consequently, $S$ is closed as an intersection of that closed set with the closed half-plane $x\ge 0$.