Theorem
Let : an matrix with linearly independent columns.
If
- is an matrix with orthonormal columns
- is an upper triangular matrix with positive diagonal entries
Then can be factored as
Procedure
- Apply Gram-Schmidt Orthogonalization to columns of to obtain orthogonal vectors
- Normalize to get orthonormal vectors
- Form
- Form
Example
Find the QR decomposition of
Using the columns and :
-
Apply Gram-Schmidt:
-
Normalize:
-
Form :
- Compute :
Therefore: