[step:Use a local unitary frame to trivialize the unitary frame bundle]Let $V\subset M$ be an [open set](/page/Open%20Set) carrying a smooth local $h$-unitary frame $v_1,\dots,v_r:V\to E$. Define, for each $p\in V$, the complex-[linear map](/page/Linear%20Map)
\begin{align*}
u_{p,0}:\mathbb C^r\to E_p,\qquad u_{p,0}(z_1,\dots,z_r):=\sum_{i=1}^r z_i v_i(p).
\end{align*}
Since $v_1(p),\dots,v_r(p)$ is an $h_p$-[orthonormal basis](/page/Orthonormal%20Basis), $u_{p,0}$ is a unitary isomorphism from $(\mathbb C^r,(\cdot,\cdot)_{\mathbb C^r})$ to $(E_p,h_p)$.
Define
\begin{align*}
\Phi_V:V\times U(r)\to \operatorname{Fr}_U(E,h)|_V,\qquad \Phi_V(p,A):=u_{p,0}\circ A.
\end{align*}
For $A\in U(r)$ and $z,w\in \mathbb C^r$,
\begin{align*}
h_p(\Phi_V(p,A)z,\Phi_V(p,A)w)=h_p(u_{p,0}(Az),u_{p,0}(Aw))=(Az,Aw)_{\mathbb C^r}=(z,w)_{\mathbb C^r},
\end{align*}
so $\Phi_V(p,A)\in \operatorname{Fr}_U(E,h)_p$.
The map $\Phi_V$ is fibrewise bijective. If $u\in \operatorname{Fr}_U(E,h)_p$, define
\begin{align*}
A:=(u_{p,0})^{-1}\circ u:\mathbb C^r\to \mathbb C^r.
\end{align*}
Then $A$ is complex-linear and, for all $z,w\in \mathbb C^r$,
\begin{align*}
(Az,Aw)_{\mathbb C^r}=h_p(u_{p,0}(Az),u_{p,0}(Aw))=h_p(uz,uw)=(z,w)_{\mathbb C^r}.
\end{align*}
Thus $A\in U(r)$ and $u=\Phi_V(p,A)$. Uniqueness follows because $u_{p,0}$ is an isomorphism.
Smoothness of $\Phi_V$ and of its inverse follows from the standard smooth structure on the complex frame bundle induced by the local frame $v_1,\dots,v_r$: in that trivialization, $\Phi_V$ is exactly the inclusion of $V\times U(r)$ into $V\times GL(r,\mathbb C)$.
We now justify the embedded-submanifold assertion for $U(r)$. Let $M_r(\mathbb C)$ denote the real vector space of all complex $r\times r$ matrices, and let $\mathcal H_r\subset M_r(\mathbb C)$ denote the real vector subspace of Hermitian complex $r\times r$ matrices. Define the smooth map
\begin{align*}
F:GL(r,\mathbb C)\to \mathcal H_r,\qquad F(A):=A^*A.
\end{align*}
Then $U(r)=F^{-1}(I_r)$. For $A\in U(r)$ and $B\in M_r(\mathbb C)$, the differential of $F$ at $A$ is
\begin{align*}
dF_A(B)=B^*A+A^*B.
\end{align*}
If $K\in\mathcal H_r$, take $B=\frac{1}{2}AK$. Since $A^*A=I_r$ and $K^*=K$, we get $dF_A(B)=K$. Thus $dF_A:M_r(\mathbb C)\to\mathcal H_r$ is surjective at every $A\in U(r)$. By the [regular value theorem](/theorems/3903), $I_r$ is a regular value of $F$ and $U(r)=F^{-1}(I_r)$ is an embedded smooth submanifold of $GL(r,\mathbb C)$. Therefore $V\times U(r)$ is an embedded smooth submanifold of $V\times GL(r,\mathbb C)$, and $\operatorname{Fr}_U(E,h)|_V$ is a smooth submanifold of $\operatorname{Fr}_{\mathbb C}(E)|_V$ locally diffeomorphic to $V\times U(r)$.[/step]