Given a function $f:X\to Y$, we define the graph of $f$ as the set $$G(f)=\{(x,f(x)),x\in X\}$$ Show that if $X$ is compact then $f$ is a continous function if and only if $G(f)$ is a closed subset of $X\times Y$.
As i found the answer here...Show that if $f:X\to Y$ is a continuous function if and only if the graph of $f$ is a closed subset of $X\times Y$ but im not getting in my head as im not able to understand this paragraph......
If $Y$ is not Hausdorff, then the first assertion may fail: Let $X=\{0,1\}$ with discret topology, $Y=\{0,1\}$ with trivial topology, and $f=\operatorname{id}$. It's easy to find the contradition...
PLiz elaborate this this answer with proper proof,,,,,