A vector can be written uniquely as a sum of a vector in a subspace and a vector orthogonal to the subspace.

math.la.t.vec.projection.subspace