Linear-Algebra-Done-Right Β· Unit 20 Β· Video 3 Β· Interactive Practice
| Formula | Name | When it holds |
|---|---|---|
| Unitary matrix | is -by- with orthonormal columns (equivalently, orthonormal rows) | |
| Entries of | are the linearly independent columns of ; is their GramβSchmidt output and the columns of | |
| , where | Positive diagonal | Same hypotheses; because |
| Solving with QR | with unitary and upper triangular with positive diagonal |
Key Insight: GramβSchmidt and are one computation: stores the vectors , stores the coefficients, and requiring makes the pair unique.
GramβSchmidt turns the columns of into ; the coefficients it computes are the entries of .
Every unitary gives with ; only one makes upper triangular with positive diagonal.
π‘ Over the freedom is larger, with , and still forces every .
For the video's matrix , the system becomes the triangular system , solved from the last row up.
Problem 1 Β· The Factor of a Matrix
Given: β find the upper triangular factor in its QR factorization.
The columns are and . Since , and .
So , and :
Check: column 2 of is .
Problem 2 Β· Already Triangular Is Not Enough
Given: , which is already upper triangular β find the and of its QR factorization.
Run GramβSchmidt on , . First and . Then and
Taking , is the factorization with : still a unitary times an upper triangular matrix, but with a negative diagonal entry.
Problem 3 Β· A Factorization
Given: with columns , and β find and the third column of .
What is ?
What is the third column of ?
The columns are , , , and gives .
Check column 3: , with .
Problem 4 Β· Solve Without Elimination
Given: the factorization from Problem 3, and β find and the solution of .
What is ?
What is ?
is real, so is its transpose, whose rows are :
Back substitution on , from the last row up:
Check: .
Solved: 0 / 4