The vector projection (vector resolution or vector component) of
onto a non-zero vector
is splitting
into two vectors, one is parallel to
(the vector projection) and one perpendicular to ![]()

In the above diagram
is the vector projection of
onto
and
is perpendicular to
.
How do we find
and
?

Using right trigonometry,
![]()
Remember the scalar product (dot product) of vectors is
(1) ![]()
Hence ![]()
![]()
and, ![]()
![]()
This is the scalar projection of
onto ![]()
To find the vector projection we need to multiply by
, that is find a vector with the same magnitude as
in the direction of
.
The vector projection is
![]()
![]()
![]()
Now for
, we know ![]()
Hence, ![]()
Example

(a) ![]()

![]()
(b)![]()
(c)

The shortest distance (green vector) is the vector component of
perpendicular to
, i.e. ![]()
![]()











