Projections
Introduction / Definition
Projection maps a vector onto a subspace. Orthogonal projection gives the closest point in the subspace to the original vector. The residual is perpendicular to the subspace. Projections are central to least-squares approximation.
Syntax / Mathematical Form
projᵤ(v)=((vᵀu)/(uᵀu))u
Detailed Explanation
For a single direction u, compute the dot products and scale u accordingly. For an orthonormal basis Q, projection onto its span is QQᵀv.
Example
u=(2,0), v=(3,4)
vᵀu=6, uᵀu=4
projᵤ(v)=(3,0).
Output
Projection = (3,0).
Important Points / Notes
- Residual v−proj is orthogonal to u.
- u must be nonzero.
- Orthonormal bases simplify projection.
Mini Practice Question
Project (2,5) onto (1,0).
CheckpointTest Yourself