What is the projection of <0,8,5><0,8,5> onto <1,2,-4><1,2,4>?

1 Answer
Apr 26, 2016

-4/sqrt(21)421

Explanation:

The projection of a vector AA along a direction thetaθ with itself is given as |A|costheta|A|cosθ

Lets say here A = <0,8,5>A=<0,8,5>
And B = <1,2,-4>B=<1,2,4>

Their dot product is |A| |B| costheta = 0+16-20 =-4|A||B|cosθ=0+1620=4

So the projection is (|A||B|costheta)/(|B|) = (-4)/sqrt(1^2+2^2+4^2) = -4/sqrt(21)|A||B|cosθ|B|=412+22+42=421