Consider the inner product in $\mathbb{R}^3$ with the following orthonormal basis:
$\{(1, 0,-1),(0,1,0),(-1,0,2)\}$
Show that the inner product is defined by the application $<,>:\mathbb{R}^3 . \mathbb{R}^3\rightarrow\mathbb{R}$ is given by:
$<(x_1,x_2,x_3),(y_1,y_2, y_3)>=5x_1y_1+3x_1y_3+x_2y_2+3x_3y_1+2x_3y_3$
Inner product is defined by the matrix A such that: $$<x,x>=x^TAx$$
Let v be a vector orthonormal with respect to the inner product, then:
$$<v,v>=v^TAv=v^Tv$$
Let $Q$ the matrix with an orthonormal basis as column vectors, then with respect to this basis:
$$x^TQ^TAQx=x^Tx$$
Thus:
$$Q^TAQ=I$$
Finally:
$$A=(Q^T)^{-1}Q^{-1}=Q^{-1}Q^{-1}$$