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$.
-
If $V$ is finite-dimensional, then performing Gram-Schmidt on a basis produces an orthonormal basis.
-
If $V$ is finite-dimensional and $E\subseteq V$ is an orthonormal set, then we can extend to a basis for $V$ and perform Gram-Schmidt to obtain an orthonormal basis for $V$ containing $E$.