Consider the well known example of a discontinuous function with closed graph: $f(x)=\frac{1}{x}$ for $x>0$ and $0$ otherwise.
I'm trying to convince myself that its graph is closed. I haven't been able to come up with a proof but I've been trying to show that $G_f$ equals the union of two closed graphs, namely $\{(x, \frac{1}{x}) : x>0\}\cup \{(x, 0) : x\leq 0\}$. Is this correct? How can I prove this?
In particular, how can I show that $\{(x, \frac{1}{x}) : x>0\}$ is a closed set, i.e., that it equals its closure?