Given an arbitrary basis $\{m_1, \dots, m_n \}$of a Hilbert space $H$ (or just think it as $\mathbb R^n$, and I think the methods should be the same) with given inner product, how can we find the coordinates of a vector $v$ in the space? Is there a solution in some elegant form for the coordinates?
I am thinking about first apply Gram-schmidt method to orthogonalize the basis, but feel the derivation too complicated.
Thanks.
The vector of coordinates $x$ can be easily found by a linear system $Ax = b$ where $A$ is the Gram Matrix of the base ${\{m_1,...,m_n\}}$ and $b$ is the vector $\{<v,m_i>\}$