The problem: If $f$ is defined on $E$, the graph of $f$ is the set of points $(x,f(x))$, for $x \in E$. In particular, if $E$ is a set of real numbers, and $f$ is real-valued, the graph of $f$ is a subset of the plane. Suppose $E$ is compact, and prove that $f$ is continuous on $E$ if and only if its graph is compact.
I'm struggling with a couple things with this problem:
- I'm having trouble understanding the graph definition. As I understand it, the graph is a subset of the set $E \times f(E)$?
Below is my proof for the if direction.
(if direction) Let the graph of $f$ be notated by $G(f)$.
Let $\phi_1: G(f) \rightarrow E$ be defined as $\phi_1((x,f(x))) = x$ for $(x,f(x)) \in G(f).$ Also let $\phi_2: G(f) \rightarrow f(E)$ be defined as $\phi_2((x,f(x))) = f(x)$ for $(x,f(x)) \in G(f)$.
Let $\{G_{\alpha}\}_{\alpha \in A}$ be an open cover of $G(f)$. Because $f$ is continuous and $E$ is compact, $f(E)$ is also compact.
Hence there exists $M \in \mathbb{N}$ such that $E \subset \bigcup\limits_{i = 1}^{M} \phi_1(G_{\alpha_i}),$ where $G_{\alpha_i} \in \{G_{\alpha}\}_{\alpha \in A}$ for $i = 1,2,..., m$. There also exists $N \in \mathbb{N}$ such that $E \subset \bigcup\limits_{i = 1}^{N} \phi_2(G_{\beta_i}),$ where $G_{\beta_i} \in \{G_{\alpha}\}_{\alpha \in A}$ for $i = 1,2,..., n$.
From this it follows that $G(f) \subset \left(\bigcup\limits_{i = 1}^{M} G_{\alpha_i}\right)\cup \left(\bigcup\limits_{i = 1}^{N} G_{\beta_i}\right),$ so we have a finite subcover of the open cover above that contains $G(f)$.
I'm completely sure that my proof is non-rigorous, as I need to prove that the $\phi$ functions allow for the open cover defined to be open covers for $E$ and $f(E)$. Also the leap from the finite subcovers of $E$ and $f(E)$ to a finite subcover of $G(f)$ seems unclear. I would really appreciate if someone could look over my misunderstandings and proofs! Thank you.