Scalar Projection — Definition, Formula & Example
Scalar projection is the signed length of the shadow that one vector casts onto the line of another vector. It is a single number, positive when the two vectors point roughly the same way and negative when they point roughly opposite ways.
For vectors with , the scalar projection of onto is the real number , where is the unit vector in the direction of . If and is the angle between and , this equals .
Key Formula
Where:
- = The vector being projected
- = The nonzero vector whose direction you project onto
- = The dot product of the two vectors
- = The magnitude (length) of b
- = The angle between a and b, with 0 ≤ θ ≤ 180°
Worked Example
Problem: Find the scalar projection of onto , and explain what its sign tells you.
Step 1: Compute the dot product of a and b.
Step 2: Find the magnitude of b, the vector you project onto.
Step 3: Divide the dot product by the magnitude of b.
Answer: The scalar projection is . The shadow of on the line through has length 6, and the negative sign means it points opposite to . So the angle between the vectors is greater than .
Why It Matters
In multivariable calculus, the directional derivative is the scalar projection of the gradient onto the unit direction . In physics, the work done by a constant force equals the scalar projection of the force onto the displacement times the distance moved.
Common Mistakes
Mistake: Dividing the dot product by the magnitude of a, the vector being projected, instead of b.
Correction: You divide by the length of the vector you project onto. For the example, , while is the scalar projection of b onto a, a different number.
