LINEAR-ALGEBRA Β· Unit 16 Β· Video 4 Β· Interactive Practice
| Formula | Name | Description |
|---|---|---|
| QR Factorization | has orthonormal columns, is upper triangular | |
| Entry of | Inner product of -th Q-column with -th A-column | |
| Direct formula | Follows from | |
| Orthonormal inverse | The power of orthonormality |
With , each Gram-Schmidt step rewrites one column of in the orthonormal -basis, filling exactly one column of .
Gram-Schmidt forces , so for every pair of vectors.
π‘ If and line up, and Gram-Schmidt breaks down β the columns must be linearly independent.
For any matrix with independent columns, yields an upper-triangular β the sub-diagonal zeros are guaranteed by orthogonality.
π‘ Equivalently , since β once you have , no Gram-Schmidt is needed.
Question 1
In the QR factorization , what does the entry (row , column of ) equal?
β Correct! Each R entry is the inner product of a Q-column with an A-column.
β Not quite. Think about what tells us about individual entries: row , column of is .
Solution:
Each entry of is computed as:
This is the dot product of the -th column of with the -th column of .
This follows directly from : the entry of is .
Question 2
Why is in the QR factorization?
β Correct! The zeros are forced by Gram-Schmidt's orthogonalization β by construction, not coincidence.
β Not quite. The zeros aren't a convention or coincidence β they're a consequence of how Gram-Schmidt builds each q vector perpendicular to the span of earlier columns.
Solution:
Gram-Schmidt builds by subtracting from its projection onto :
This makes (and hence ) perpendicular to .
Since , we get .
In general: for , and lives in that span (since ), so .
The zeros are forced by construction, not by convention.
Question 3
True or False: If is the matrix with orthonormal columns from , then .
β Correct! Orthonormal columns give , so . That's the power of orthonormality!
β Incorrect. Since has orthonormal columns, , which means .
Solution: True
Since has orthonormal columns: .
For a square matrix, this means .
This is what makes QR especially powerful:
Compare with LU, where computing requires actual work.
Question 4
When using QR factorization to solve the least-squares problem , what system do you actually solve?
β Correct! QR turns least squares into simple back-substitution, avoiding the numerically dangerous .
β Close, but not the QR approach. The normal equations work but are numerically unstable. The whole point of QR is to avoid forming ! Instead: .
β Not quite. Start from , multiply both sides by , and use to get .
Solution:
Starting from with :
Since is upper triangular, we solve by back-substitution β fast and numerically stable.
The normal equations also work, but forming amplifies numerical errors. QR avoids this entirely, which is why it's preferred in practice.
Solved: 0 / 4