Let $ U$ be an open set in $\mathbb{R}^n$, and let $f: U \to \mathbb{R}^k$ be a continuous map. The graph of the function $f $, denoted $\Gamma(f)$, is defined as $ \Gamma(f) = \{(x, y) : x \in U, y = f(x)\}.$
Prove that $\Gamma(f) $ is an $n $-dimensional topological manifold.
Define the projection map $\pi_1: \mathbb{R}^n \times \mathbb{R}^k \to \mathbb{R}^n $, and let $\varphi $ be the restriction of $ \pi_1 $ to $ \Gamma(f) $.
I already know that $ \Gamma(f) $ is a Hausdorff space and is second-countable. However, regarding the third condition in the definition of a topological manifold, I don't fully understand how $ \varphi $ can be homeomorphic to an open subset of $ \mathbb{R}^n $. Below is my attempt.
Since $ \pi_1 $, as a projection map, is continuous, its restriction to $ \Gamma(f) $, i.e., $ \varphi $, is also continuous. Now I attempt to prove that its inverse is also continuous. Since $ \Gamma(f) $ is a subspace of $ \mathbb{R}^n \times \mathbb{R}^k $, each open set $ O $ in $ \Gamma(f) $ has the following form: $ O = (S \times T) \cap \Gamma(f) = (S \times T) \cap \{(x, y) : x \in U, y = f(x)\}, $ where $ S $ is an open set in $ \mathbb{R}^n $ and $ T $ is an open set in $ \mathbb{R}^k $. Hence, $ \varphi(O) = S \cap U, $ and by the definition of open sets in a topological space, $ S \cap U $ is an open set.
Is there any problem with my proof, or is there anything that needs improvement?