Fix $n\in\mathbb{N}$. A vector bundle of rank $n$ is a smooth map $\pi:E\rightarrow B$ between manifolds such that $\forall p\in B: E_p := \pi^{-1}(p)$ is an $n$-dimensional vector space and $\forall p\in B$, there exists a neighborhood $U$ of $p$ and a diffeomorphism $\psi:E\mid_U:=\pi^{-1}(U)\rightarrow U\times \mathbb{R}^n$ such that $\operatorname{pr}_1\circ\psi = \pi$ and $\psi\mid_{E_q}:E_q\rightarrow\{q\}\times\mathbb{R}^n$ is a vectorspace isomorphism for all $q\in U$.
Suppose $E$ is a vector bundle over a manifold $M$. (I suppose by this they mean there exists $\pi:E\rightarrow M$ as above). Prove that for all $x\in M$ one can construct an inner product (symmetric, positive definite, bilinear form): $g_x : E_x\times E_x\rightarrow \mathbb{R}$ which depends smoothly on $x$.
"$g$ depends smoothly on $x$" means: $g(v,w)$ is a smooth function on $M$ for all smooth sections $v,w$ of $E$.
I have tried to construct this norm by using the standard norm on $\mathbb{R}$. Take $x\in M$. There is an open neighborhood $U$ of $x$ for which there exists a diffeomorphism $\psi$ as above. Let us define $g_x((a,b)) = <\operatorname{pr}_2(\psi(a)),\operatorname{pr}_2(\psi(b))>_\mathbb{R}$. Since this is symmetric, $g_x$ will be symmetric. Since this is positive definite, $g_x$ will also be positive definite. Now for bilinearity. For $a_1,a_2\in E_x$, we have $\psi(a_1)+\psi(a_2) = \psi(a_1+a_2)$, since $\psi$ is an isomorphism. And since $\psi(a_i)\in\{x\}\times\mathbb{R}^n$. $\operatorname{pr}_2(\psi(a_1)+\psi(a_2))=\operatorname{pr}_2(\psi(a_1))+\operatorname{pr}_2(\psi(a_2))$. Since we have a vector space isomorphism we can also show this for scalar multiplication. I am unsure however what this field of scalars is exactly.
Then for the final part I need to show that $g$ depends smoothly on $x$. But here I am lost completely. How can we evaluate a section in $g$? As far as I know there is no correspondence between sections and elements of $E_x$. A hint I was given is that we can use partitions of unity, but I have no clue how this ties in with what I have constructed.