Show that the dimension of a connected topological manifold is defined without ambiguity. Meaning that if $\dim M=n$, with the change of charts, the dimension still is $n$. Then show that this is true for a $C^r$ connected manifold using Inverse Function Theorem.
Let us start showing the dimension of a connected topological manifold is defined without ambiguity.
First note the following lemma.
Lemma 1: If $U$ is an open set of $\Bbb R^n$, $V$ is an open set of $\Bbb R^k$ and there is a homeomorphism $h : U \to V$ then $n=k$.
This lemma is a consequence of the Invariance of Domain Theorem (which is a theorem in algebraic topology).
Now let $\{(U_\alpha,\phi_\alpha)\}_\alpha$ be a topological atlas of $M$. For each $\alpha$, $\phi_\alpha : U_\alpha \subset M \to \phi(U_\alpha) \subset \mathbb{R}^{n_\alpha}$ is a homeomorphism.
Let us define a function $f: M \to \Bbb N$, in the following way: given any $p\in M$ there is $\alpha$ such that $p \in U_\alpha$, define $f(p) = n_\alpha$.
If there is $\beta$ such that $p \in U_\beta$, then $\phi_\beta \circ \phi_\alpha^{-1}$ is a homeomorphism from $\phi_\alpha(U_\alpha \cap U_\beta) \subset \Bbb R^{n_\alpha}$ onto $\phi_\beta(U_\alpha \cap U_\beta) \subset \Bbb R^{n_\beta}$, so, by the lemma above, $n_\alpha=n_\beta$. So $f$ is well defined.
Now, for all $n \in \Bbb N$, if $p \in f^{-1}(\{n\})$ then there is $\alpha$ such that $p \in U_\alpha$, $n = n_\alpha$ and $U_\alpha \subseteq f^{-1}(\{n\})$. So, for all $n \in \Bbb N$, $f^{-1}(\{n\})$ is open.
Suppose there are $n, m \in \Bbb N$ such that $n\neq m$ and $n, m \in \text{Image}(f)$. Then $f^{-1}(\{n\})$ and $f^{-1}(\Bbb N \setminus \{n\})$ are non-empty disjoint open sets covering $M$. But this contradicts the connectness of $M$. So $f$ must be constant.
The only value of $f$ is the dimension of $M$. This completes the proof of the first part.
Now, since a $C^r$ connected manifold is a connected topological manifold, it follows immediately that the dimension of a $C^r$ connected manifold is defined without ambiguity.
The second part consists in showing that in the case of a $C^r$ connected manifold, we can prove that the dimension of the manifold is defined without ambiguity, without using the lemma 1 above (and so without using the Invariance of Domain Theorem and algebraic topology).
The proof is very similar to the proof above. We are going to use the following lemma.
Lemma 2: If $U$ is an open set of $\Bbb R^n$, $V$ is an open set of $\Bbb R^k$ and there is a $C^r$ diffeomorphism $h : U \to V$ then $n=k$.
Lemma 2 is a consequence of the Inverse Function Theorem. In fact, by such theorem, we know that at each point of $p\in U$, $h'(p)$ is an invertible linear transformation from $\Bbb R^n$ onto $\Bbb R^k$. So, $n=k$.
Now let $\{(U_\alpha,\phi_\alpha)\}_\alpha$ be a $C^r$ atlas of $M$. For each $\alpha$, $\phi_\alpha : U_\alpha \subset M \to \phi(U_\alpha) \subset \mathbb{R}^{n_\alpha}$ is a $C^r$ diffeomorphism.
Let us define a function $f: M \to \Bbb N$, in the following way: given any $p\in M$ there is $\alpha$ such that $p \in U_\alpha$, define $f(p) = n_\alpha$.
If there is $\beta$ such that $p \in U_\beta$, then $\phi_\beta \circ \phi_\alpha^{-1}$ is a $C^r$ diffeomorphism from $\phi_\alpha(U_\alpha \cap U_\beta) \subset \Bbb R^{n_\alpha}$ onto $\phi_\beta(U_\alpha \cap U_\beta) \subset \Bbb R^{n_\beta}$, so, by the lemma 2 above, $n_\alpha=n_\beta$. So $f$ is well defined.
Now, exactly as above, we prove that, for all $n \in \Bbb N$, $f^{-1}(\{n\})$ is open and then we prove that $f$ is be constant.
The only value of $f$ is the dimension of $M$. This completes the proof of the second part.
Why do we need "Inverse Function theorem" to answer it??We don't. That doesn't make much sense to be honest. Alsoand n is constant for all the charts.requires a proof. This is typically done by considering $f:M\to\mathbb{R}$, $f(x)=\text{local dimension around }x$ and proving that $f$ is continuous (and so constant if $M$ is connected). What you've proven is that $f$ is well defined (i.e. independent on the choice of atlas). – freakish May 31 '19 at 07:59