The projection of onto is given by .
This is essentially taking the component of parallel to . We can also see that is the component of perpendicular to . This means .