I have a problem where I have to show that for two intersecting open subsets $U$ and $V$ of a topological manifold, if we have two homeomorphisms $\phi : U \to \mathbb R^n$ and $\psi: V \to \mathbb R ^ m$, and $\psi \circ \phi ^{-1} \mid_{\phi(U\cap V)}$ and $\phi \circ \psi ^{-1} \mid_{\psi(U\cap V)}$ are $C^1$, then $n = m$.
It's obvious that this must be true because we have homeomorphisms from open subsets of $\mathbb R^n$ to $\mathbb R^m$, but we don't have access to the topological machinery required to prove that. Also, we have the extra assumption that the maps are $C^1$, which suggests a more differential geometric approach. My problem is that I'm not sure what this approach is. I took vector calculus forever ago and there are so many ways to look at this.
I tried assuming that $n \ne m$ and looking at the Jacobian at a point and showing that it must either fail to be surjective or injective, but this isn't panning out (probably just because of my lack of technical skill), and I'm not sure if it will even work, or if it is the easiest way of going about this. I have a feeling that there is an easy <3 line proof.
This is homework, so suggestions things to try would be better than direct answers.