next Signal Projection Problems
previous General Conditions
up Signal Reconstruction from Projections   Contents   Global Contents
global_index Global Index   Index   Search

Gram-Schmidt Orthogonalization



Theorem: Given a set of $ N$ linearly independent vectors $ \underline{s}_0,\ldots,\underline{s}_{N-1}$ from $ {\bf C}^N$, we can construct an orthonormal set $ \underline{{\tilde s}}_0,\ldots,\underline{{\tilde s}}_{N-1}$ which are linear combinations of the original set and which span the same space.

Proof: We prove the theorem by constructing the desired orthonormal set $ \{\underline{{\tilde s}}_k\}$ sequentially from the original set $ \{\underline{s}_k\}$. This procedure is known as Gram-Schmidt orthogonalization.

  1. Set $ \underline{{\tilde s}}_0 \isdef \frac{\underline{s}_0}{\left\Vert\,\underline{s}_0\,\right\Vert}$.
  2. Define $ \underline{y}_1$ as the $ \underline{s}_1$ minus the projection of $ \underline{s}_1$ onto $ \underline{{\tilde s}}_0$:

    $\displaystyle \underline{y}_1 \isdef \underline{s}_1 - {\bf P}_{\underline{{\ti...
... \left<\underline{s}_1,\underline{{\tilde s}}_0\right>\underline{{\tilde s}}_0
$

    The vector $ \underline{y}_1$ is orthogonal to $ \underline{{\tilde s}}_0$ by construction. (We subtracted out the part of $ \underline{s}_1$ that wasn't orthogonal to $ \underline{{\tilde s}}_0$.)
  3. Set $ \underline{{\tilde s}}_1 \isdef \frac{\underline{y}_1}{\left\Vert\,\underline{y}_1\,\right\Vert}$ (i.e., normalize the result of the preceding step).
  4. Define $ \underline{y}_2$ as the $ \underline{s}_2$ minus the projection of $ \underline{s}_2$ onto $ \underline{{\tilde s}}_0$ and $ \underline{{\tilde s}}_1$:

    $\displaystyle \underline{y}_2 \isdef \underline{s}_2 - {\bf P}_{\underline{{\ti...
... \left<\underline{s}_2,\underline{{\tilde s}}_1\right>\underline{{\tilde s}}_1
$

  5. Normalize: $ \underline{{\tilde s}}_2 \isdef \frac{\underline{y}_2}{\left\Vert\,\underline{y}_2\,\right\Vert}$.
  6. Continue this process until $ \underline{{\tilde s}}_{N-1}$ has been defined.

The Gram-Schmidt orthogonalization procedure will construct an orthonormal basis from any set of $ N$ linearly independent vectors. Obviously, by skipping the normalization step, we could also form simply an orthogonal basis. The key ingredient of this procedure is that each new orthonormal basis vector is obtained by subtracting out the projection of the next linearly independent vector onto the vectors accepted so far in the set. We may say that each new linearly independent vector $ \underline{s}_k$ is projected onto the subspace spanned by the vectors $ \{\underline{{\tilde s}}_0,\ldots,\underline{{\tilde s}}_{k-1}\}$, and any nonzero projection in that subspace is subtracted out of $ \underline{s}_k$ to make the new vector orthogonal to the entire subspace. In other words, we retain only that portion of each new vector $ \underline{s}_k$ which points along a new dimension. The first direction is arbitrary and is determined by whatever vector we choose first ( $ \underline{s}_0$ here). The next vector is forced to be orthogonal to the first. The second is forced to be orthogonal to the first two, and so on.

This chapter can be considered an introduction to some of the most important concepts from linear algebra. The student is invited to pursue further reading in any textbook on linear algebra, such as [38].

Matlab/Octave examples related to this chapter appear in Appendix I.


next Signal Projection Problems
previous General Conditions
up Signal Reconstruction from Projections   Contents   Global Contents
global_index Global Index   Index   Search

``Mathematics of the Discrete Fourier Transform (DFT)'', by Julius O. Smith III, W3K Publishing, 2003, ISBN 0-9745607-0-7.

(Browser settings for best viewing results)
(How to cite this work)
(Order a printed hardcopy)

Copyright © 2003-10-09 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA  (automatic links disclaimer)