Let $(N, h)$ and $(M, g)$ riemannian manifolds with $dim M = dim N$.
We say that M is locally isometric to N if there is a smoother application $F: M\rightarrow N$ such that $$g(v,w)=h(dF_p(v), dF_p(w)),\ \forall v,w \in T_pM,\ \forall p \in M .$$
Another definition is: M is locally isometric to N if for each $p \in M $ exists in an open $U\subset M$ (with $ p \in U $), an open $S\subset N$ and a diffeomorphism $ f : U \rightarrow S $ such that $$g(v,w)=h(df_p(v), df_p(w)),\ \forall v,w \in T_pU,\ \forall p \in U. $$
Of course the first definition implies the second. But these definitions are equivalent? If it is true, how to prove the other implication?
Thanks