How do I find the basis of $R^3$ in respect of the below inner product:
$\left \langle (x,y,z)(x',y',z') \right \rangle=3xx'+3yy'+zy'+z'y+zz'$
I tried this but I'm not sure it's correct
Let $B=${$(1,0,0),(0,1,0),(0,0,1)$} be a basis of $R^3$ then the Gram matrix of the basis in respect of the inner product I'm given is:
$\begin{pmatrix} \left \langle e_1,e_1 \right \rangle & \left \langle e_1,e_2 \right \rangle & \left \langle e_1,e_3 \right \rangle\\ \left \langle e_2,e_1 \right \rangle& \left \langle e_2,e_2 \right \rangle & \left \langle e_2,e_3 \right \rangle\\ \left \langle e_3,e_1 \right \rangle & \left \langle e_3,e_2 \right \rangle& \left \langle e_3,e_3 \right \rangle \end{pmatrix}$,
$e_1=(1,0,0)$ $e_2=(0,1,0)$ $e_3=(0,0,1)$ and $<,>$ the above inner product
I Calculated the eigenvectors of the above matrix and create a basis using them.
Is this a correct solution? Thanks in advance!
With respect to a chosen basis we can express the matrix associated to the inner product by
$$B_e=\begin{pmatrix} \left \langle e_1,e_1 \right \rangle & \left \langle e_1,e_2 \right \rangle & \left \langle e_1,e_3 \right \rangle\\ \left \langle e_2,e_1 \right \rangle& \left \langle e_2,e_2 \right \rangle & \left \langle e_2,e_3 \right \rangle\\ \left \langle e_3,e_1 \right \rangle & \left \langle e_3,e_2 \right \rangle& \left \langle e_3,e_3 \right \rangle \end{pmatrix}\implies \vec x^TB_e \vec x'$$
Since the matrix is symmetric then (by spectral theorem) an orthogonal matrix $M$ exists, which has the eigenvectors as column, such that $B_v=M^TB_eM$ is diagonal with respect to that basis.