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 u,v in Rn are orthogonal if uv=0 . A set is orthogonal if every pair of distinct vectors is orthogonal; it is orthonormal if it is orthogonal and each vector has length 1 .

A subspace WRn has orthogonal complement

W={xRn:xw=0 for all wW}.

The orthogonal projection of b onto W is the unique b^W such that bb^W .

Objects and Dimensions

Object Meaning Dimensions
W subspace k=dimW
Q matrix with orthonormal columns n×k
P projection matrix onto a subspace n×n
b^ projection of b onto W n×1

Notation

Symbol Meaning
uv uv=0
projWb orthogonal projection of b onto W
QTQ=I orthonormal columns of Q

Conditions / Assumptions

Matrix / Vector Form

Projection onto a line spanned by a0 :

projab=abaaa=aTbaTaa.

Projection onto Col(A) when A has linearly independent columns:

b^=Ax^,ATAx^=ATb, b^=A(ATA)1ATb.

The matrix P=A(ATA)1AT is the orthogonal projection matrix onto Col(A) : PT=P and P2=P .

Orthonormal columns Q : projection simplifies to

b^=QQTb.

Pythagorean theorem: if uv , then u+v2=u2+v2 .

Geometric Interpretation

Worked Example

Project b=3,4 onto a=1,0 :

projab=311,0=3,0,bb^=0,4a.

Common Mistakes

Connections

References

Orthogonality and projections follow MIT 18.06.[1]


  1. MIT OpenCourseWare, 18.06 Linear Algebra, https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/ ↩︎