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 u⋅v=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 W⊆Rn has orthogonal complement

W⊥={x∈Rn:x⋅w=0 for all w∈W}.

The orthogonal projection of b onto W is the unique b^∈W such that b−b^∈W⊥ .

Objects and Dimensions

Object Meaning Dimensions
W subspace k=dim⁡W
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
u⊥v u⋅v=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 a≠0 :

projab=a⋅ba⋅aa=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 u⊥v , then ∥u+v∥2=∥u∥2+∥v∥2 .

Geometric Interpretation

Worked Example

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

projab=31⟨1,0⟩=⟨3,0⟩,b−b^=⟨0,4⟩⊥a.

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/ ↩︎