Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2013/ib/paper-1/18c/solution
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 1 18C Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-07
For a full-column-rank matrix, a thin QR decomposition has , where and is nonsingular upper triangular. Extend to an orthogonal matrix . Orthogonality givesThus the unique least-squares solution satisfies , with residual norm . In a rank-deficient problem is singular and uniqueness needs separate treatment.
A Givens rotation is the identity except for the rows/columns , whose block is with . Its transpose times itself has that block equal to the identity, so it is orthogonal. Choose in rows two and three. ThenBack substitution in the first three rows givesThe fourth row of the rotated residual is the unavoidable value , while the other three rows vanish. Thus this rotation also directly exhibits the least-squares optimality.
New to topics? Read the docs here!