A projection is a kind of linear transformation.

Matrix multiplication can project one vector space onto a different subspace:

Projections onto lower-dimensional subspaces are not invertible / surjective – there is a loss of information.

Projection

The same vector can be viewed from the perspective of different basis vectors.

The projection onto a line is the foot (closest point) of the perpendicular (dashed lines) from to that line. If the basis vectors are orthogonal, the coefficients can be computed with inner products:
Let be a unit vector in the direction of , then the projection onto a single direction is:

This way, we can write as a linear combintation of orthogonal basis vectors or :

The projection is idempotent: Applying it twice is the same as applying it once:

References

Visualization of different matrices