Let $F:\mathbb{R}^n\to\mathbb{R}^m$ have an inverse function ${F^{-1}}:\mathbb{R}^m\to\mathbb{R}^n$ .If $F$ is differentiable at $a\in R^{n}$ and $F^{-1}$ is differentiable at $b=F(a)\in R^{m}$, then show that $m=n$.
Hint: $tr(AB)=tr(BA)$, $A$ is a $m \times n$ matrix and $B$ is a $n \times m$ matrix.
I have considered $DF(a)$, inverse function theorem, etc. I just don't know how to use the hint to solve it. Can somebody teach me how to use that hint?
$$tr(D(F^{-1} \cdot F)(a)) = tr(DF^{-1}(b) \cdot DF(a)) = tr(DF(a) \cdot DF^{-1}(b)) = tr(D(F\cdot F^{-1} )(b))$$ $$tr(D(F^{-1} \cdot F)(a)) = tr (I_n) = n$$ $$tr(D(F\cdot F^{-1} )(b)) = tr (I_m) = m$$ So $ n = m $