An orthogonal projection of a vector onto a subspace of is the vector in such that is orthogonal to every vector in .

Formally, given a subspace with an orthonormal basis , the orthogonal projection of onto is given by:

where is the dot product of and .

See also Projection (projection matrix).