Theorem (Gram-Schmidt process)

Let $V$ be an inner product space.

For any linearly independent (finite or infinite) sequence $v_1, v_2, \ldots\in V$, there exists an orthonormal sequence $e_1, e_2, \ldots \in V$ such that $$ \begin{align*} \langle e_1, \ldots, e_k\rangle = \langle v_1, \ldots, v_k\rangle \qquad \text{for all } k. \end{align*} $$ Moreover if $\set{v_1, \ldots, v_k}$ for some $k$ is already orthonormal, then $e_i = v_i$ for $i\leq k$.

Proof