Orthogonality and Projections
Summary
Orthogonality means a zero inner product. Orthonormal bases make coordinates and projections simple. Orthogonal projections solve nearest-point problems and are the geometric engine of least squares.
Prerequisites
Vector Spaces and Bases, Vectors and Dot Product. Hub: Linear Algebra.
Definition / Statement
Vectors
A subspace
The orthogonal projection of
Objects and Dimensions
| Object | Meaning | Dimensions |
|---|---|---|
|
|
subspace |
|
|
|
matrix with orthonormal columns |
|
|
|
projection matrix onto a subspace |
|
|
|
projection of
|
|
Notation
| Symbol | Meaning |
|---|---|
|
|
|
|
|
orthogonal projection of
|
|
|
orthonormal columns of
|
Conditions / Assumptions
- Standard Euclidean inner product on
. - Projection onto
with uses the formula below. - For a matrix
with full column rank, the projection onto uses the normal equations (see Least Squares and QR).
Matrix / Vector Form
Projection onto a line spanned by
Projection onto
The matrix
Orthonormal columns
Pythagorean theorem: if
Geometric Interpretation
-
is the closest point in to . - Residual
is perpendicular to every vector in . - Orthonormal frames measure lengths of coordinates by the ordinary Euclidean norm of the coefficient vector.
Worked Example
Project
Common Mistakes
- Using
instead of (or ). - Forgetting that
is the projection only when columns of are orthonormal (for orthogonal but not unit columns, scale correctly). - Confusing
(always for orthonormal columns) with (only if ).
Connections
- Related: Vectors and Dot Product, Vector Spaces and Bases, Least Squares and QR
- Next: Least Squares and QR
- Spectral: real symmetric matrices have orthonormal eigenbases (Eigenvalues and Eigenvectors)
References
Orthogonality and projections follow MIT 18.06.[1]
MIT OpenCourseWare, 18.06 Linear Algebra, https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/ ↩︎