Let $V$ be an inner product space over $\mathbb{R}$ or $\mathbb{C}$, and let $e_1, e_2, \dots, e_n$ be a collection of vectors in $V$, not necessarily orthonormal. (Here, $n$ has nothing to do with the dimension of $V$.) Let $\langle\cdot,\cdot\rangle$ denote the inner product in $V$, and form the $n \times n$ matrix $A$ with entries $\langle e_i, e_j\rangle$ (where $i, j = 1, \dots, n$). Are the vectors $e_i$ linearly independent if and only if the matrix $A$ is nonsingular?
My thoughts on the problem so far. Let $F$ be $\mathbb{R}$ or $\mathbb{C}$ and $f$ the linear map $F^n \to V$ which sends the $i$th standard basis vector to $e_i$. I want to show that, if $v \in F^n$ is nonzero, then $Av$ is nonzero. I've observed that $v^t Av = \langle f(v), f(v)\rangle$ (which is positive). But I don't know what to do next. Can someone help me out?