Theorem

Let : an matrix with linearly independent columns.

If

Then can be factored as

Procedure

  1. Apply Gram-Schmidt Orthogonalization to columns of to obtain orthogonal vectors
  2. Normalize to get orthonormal vectors
  3. Form
  4. Form

Example

Find the QR decomposition of

Using the columns and :

  1. Apply Gram-Schmidt:

  2. Normalize:

  3. Form :

  1. Compute :

Therefore: