Suppose we have two vectors X and Y which point in different directions. In some scenarios, we might want to try and rewrite X as a combination of two component vectors X∥ and X⊥, with one of these parallel to Y and the other perpendicular.
We call the parallel component X∥ the vector projection or the vector resolution of X onto Y. We can use the dot product to compute the vector projection through the formula
X∥=ProjYX=(Y⋅YX⋅Y)Y
We can then use this formula to find the perpendicular component using
X⊥=X−X∥
We can also define the scalar projection or scalar resolution of X onto Y, which is the length of the vector X∥. The formula for the scalar projection is also related to the dot product