Projection vector of on is
Let θ be the angle between .
From figure we can see that , length OL is the projection of .
In Δ OLA ,we have
⇒ OL = OA cosθ
⇒
Now,