Gram-Schmidt Process (G.S)

The Gram-Schmidt process is a method for orthonormalizing a set of vectors in an vector space, most commonly the Euclidean space . The process takes a finite, linearly independent set of vectors and generates an orthogonal basis for the subspace spanned by those vectors.

Process

Given a basis of the subspace , the G.S. process will construct an orthogonal basis using the basis .

Consider the following set if in .

  1. Set
  2. For to :

Compute the projection of onto each of the previous :

Subtract these projections from to get :

  1. (Optional) Normalize each to get an orthonormal set :

Example

Consider the following basis:

The process is as follows

As this is a basis, we can also set and multiply by some constant to simplicity.

Now we continue

The orthogonal basis is now

The General Case

Given , a subspace of , and , we construct an orthogonal basis with the process:

Or in other words