EXAMPLE 6: Find the scalar projection and vector projection of b = 4,2,1 onto a = -2,4,3.
SOLUTION:
Since |a| = √((-2)^2 + 4^2 + 3^2) = √(4 + 16 + 9) = √29, the scalar projection of b onto a is:
proj.b = (b · a) / |a| = (4*(-2) + 2*4 + 1*3) / √29 = (-8 + 8 + 3) / √29 = 3 / √29.
The vector projection is this scalar projection times the unit vector in the direction of a, below:
proj.b = (3 / √29) * (a / |a|) = (3 / √29) * (-2/√29, 4/√29, 3/√29) = (-6/29, 12/29, 9/29).