Let $V$ be a vector space over $\mathbb{R}$ with $\dim V = n$ Let $B = (b_{ij})$ be an $n \times n$ diagonal matrix which represents a bilinear form on $V$ with respect to a basis of $V$ , $\{v_1,\ldots,v_n\}$. Show that $B$ represents an inner product if and only if $b_{ii}>0$ for all $1 \leq i \leq n$.
I am grateful for any hints on how to solve this.
Hint:
It seems that implicit to this exercise is that the matrix defines positive-definite real inner product space over $V$.
Recall then that by this definition, $\forall\textbf{v}_1,\textbf{v}_2,\textbf{v}_3\in V,\forall c_1,c_2\in\mathbb{R}$, the following should hold:
Now suppose $B$ represents our potential inner product, where $\langle \textbf{v}_1,\textbf{v}_2\rangle=\textbf{v}_1^TB\textbf{v}_2$.
I recommend you first show that the above is indeed an inner product if $b_{ii}>0$. Then, in the opposite direction, rely on the fact that the definition holds for all $\textbf{v}\in V$, such as ${\boldsymbol\delta}_i$, to force $B$ into having positive entries, given that it is diagonal.