Supposed that the derivative of $f:X\to Y$ is an isomorphism whenever $x$ lies in the sub-manifold $Z \subset X$, and assume that $f$ maps $Z$ diffeomorphically onto a $f(Z)$ . Prove that $f$ map a neighborhood of $Z$ diffeomorphically on to a neighborhood of $f(Z)$
Here is what I got so far
Since the derivative of $f:X\to Y$ is an isomorphism whenever $x$ lies in the sub-manifold $Z \subset X$, for $x\in Z$, $f$ is locally diffeomorphism. and since $f$ maps $Z$ diffeomorphically onto a $f(Z)$, there is a local inverse $g_i: U_i \to X$ where $U_i$ is a locally finite collection of opensubset of $Y$ covering $f(Z)$
Let $W=\{y\in U_i:g_i(y)=g_j(y)$ whenever $y\in U_i \cap U_j\}$ Since we have $f$ is locally diffeomorphism, $g_i$ can be patch together to define a smooth inverse $g:U\to X$. According to the partition of unity properties, $g_i$ is finitely many. I know that I need to show that $W$ contain an open neighborhood of $f(Z)$, but my brain cant find any way to do so. Maybe in my previous arguments, I missed something
