How to find scalar and vector projections
When we project one vector onto another, we’re finding how much of the first vector points along the second. We can express that amount as a signed number or as a vector in the direction we’re projecting onto.
Find the signed scalar projection
To project onto a nonzero vector , first find and divide by the length of . This is the dot product with a unit vector in the direction of .
The number is positive when the projection points along and negative when it points in the opposite direction. It’s zero when the two vectors are perpendicular.
Turn the scalar projection into a vector
Multiply the scalar projection by the unit vector . This puts the signed amount in the direction of the line we’re projecting onto.
Find both projections in a worked example
Let and . Find their dot product and the magnitude of .
Divide by to get the scalar projection. For the vector projection, divide by and multiply that factor by .
The scalar projection tells us the signed amount along . The vector projection gives that part of in coordinate form.
For a different use of perpendicular directions, see how to find a normal vector to a plane.