If and
are two non zero vectors, the projection of
onto
is
.
The projection of onto
is
.
.
The projection of onto
is
.
Consider the vector .
\
The decomposition of into
and
, where
is parallel to
and
is orthogonal to
is
and
.
.
Consider .
.
.
Therefore, .
.
The projection of onto
is
.
.