Best Approximation and Orthogonal Matrices
The orthogonal projection is not just any vector in — it is the closest vector in to . This is the Best Approximation Theorem. The proof uses the Pythagorean theorem: for any other , the vector has a right-triangle relationship to , making the hypotenuse strictly longer.
When is a square matrix with orthonormal columns, it is called an orthogonal matrix. In this case, and — the transpose is both the left and right inverse: .
Orthogonal matrices preserve lengths, distances, and angles. In they are exactly rotations and reflections. In they are rotations, reflections, and compositions thereof. Every rigid motion of space is represented by an orthogonal matrix.
Formal View
Proof sketch: . Since and , the Pythagorean theorem gives .
Interactive Visualization
Orthogonal Projection
Why This Matters
The best approximation theorem and orthogonal matrices together are the mathematical engine behind least squares, PCA, and all of modern data science.
- Ordinary least squares regression finds the projection of the response vector onto the column space of the design matrix — the best linear approximation
- Rotation matrices in robotics and 3D graphics are orthogonal — they guarantee no distortion of the object being transformed
- The QR decomposition writes any invertible matrix as , where is orthogonal — numerically stable and used in all modern eigenvalue algorithms
- Singular value decomposition expresses every matrix as where and are orthogonal — the deepest factorization in linear algebra
Quiz
For an orthogonal matrix , we have .
If is a projection matrix onto and , which statement is true?
Every orthogonal matrix in represents either a rotation or a reflection.
Common Mistakes
- Thinking gives the identity when is not square — requires to be a square orthogonal matrix.
- Applying the best approximation result to a non-orthonormal — the formula is ONLY valid when has orthonormal columns.
- Forgetting that orthogonal matrices preserve the dot product — , so angles and lengths are unchanged.