I'm trying to prove that every smooth vector bundle $\pi:E\to M$ with rank $k$ can be given transition functions $g_{\alpha\beta}: U_\alpha\cap U_\beta\to GL(k)$ having values on the orthogonal group $O(k)$.
I know that we can define a metric $<\cdot,\cdot>$ on
$E$ and I'm pretty sure I'm supposed to use it here, but I still don't know how.
I've tried to take each of local trivialization $\phi_\alpha:\pi^{-1}(U_\alpha)\to U_\alpha \times \mathbb{R}^k$ and modify it a little so that $\phi_\alpha\circ \phi_\beta^{-1}$ would give rise to orthogonal transformations, but I got stuck, since we can have many $\beta$s. Anyway, I couldn't find a way to use the global metric $<\cdot,\cdot>$, so I don't know where to go.
Any suggestions?
Show that on $E$ you can introduce an inner product. That is, there exists a family of $E_m$ for all $m$ such that for any two local lifts $v$, $w$ $$m \mapsto v(m), w(m)$$ is smooth. This uses a partition of unity. If $E$ is the tangent bundle of a manifold you get a Riemannian metric.
As an observation, it is essential to consider positive definite inner products. If we wanted another signature it may not work ( translation: not all vector bundles can be reduced to $O(k-l,l)$).
Once you do that, around every $x_i \in M$ take $U_i$ of $B$ and $(u_{i1}, \ldots, u_{ik})$ a frame of the bundle. We may further reduce $U_i$ to $V_i$ so that $(v_{i1}, \ldots, v_{ik})$ can be Gram-Schmidt reduced to an orthonormal frame $(v_{i1}, \ldots, v_{ik})$. These will be our local frames. The fiber coordinate change on $V_i \cap V_j$ are given by smooth maps $$V_i \cap V_i \ni m \mapsto g_{ij}(m) \in O(k)$$