Let $M$ be a $k$-dimensional manifold. I want to prove that $M$ can't be also of dimension $m$ where $m \ne k$. Meaning, there is no $x \in M$ and $x \in U_x$ a neighborhood of $x$, such that $M \bigcap U_x$ has a good parametrization from $V_x \subset R^m$ (where $m \ne k$).
I am not really sure how to prove it. I thought that I could use the fact that for every $x \in M$ there is a neighborhood $W_x$ where $M$ is a graph of a smooth function. Then I'll get that in the same neighborhood, $M$ is graph of two functions, each of different number of variables, which will lead to a contradiction.
However, I got stuck. Any help would be appreciated.
If $M$ is a $k$-dimensional smooth manifold then each tangent space $T_pM$ is isomorphic to $\mathbb R^k$. So if $M$ is also $m$-dimensional then $\mathbb R^m\simeq\mathbb R^k$ (as vector spaces) which implies $m=k$.