QR Factorization
Orthogonal directions plus triangular coordinates
A reduced QR factorization A = QR expresses a tall full-column-rank matrix using Q with orthonormal columns and an upper-triangular square R. The columns of Q span the same column space as A; R records how the original columns are built from those orthonormal directions.
Gram-Schmidt construction makes the geometry explicit: normalize the first column, subtract its projection from the next column, then normalize the remainder. The check is mechanical and important: QTQ must be the identity and QR must reproduce A within the relevant precision.
For least squares, A = QR turns min ||Ax−b|| into R x = QTb. Q extracts the coordinates of b in the column space and R is solved by back-substitution. Full QR adds unused orthogonal directions; reduced QR already contains what this solve needs.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Let A have columns a1 = (3, 0)T and a2 = (0, 4)T. Give a reduced QR factorization A = QR.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
A reduced QR factorization has QTb = (5, -2)T and R = [[2, 1], [0, 3]]. Solve the least-squares triangular system R x = QTb for x.