This article explains scalar and vector projections in Extension 1, with worked examples in two and three dimensions.
The scalar projection of a onto b is a signed number. The vector projection is the vector component of a along the line in the direction of b. For b ≠ 0:
Here is the dot product, found by multiplying matching components and adding. The bars in mean the magnitude, or length, of b.
The denominator comes from the vector you project onto. Scalar projection divides by its magnitude; vector projection divides by its magnitude squared, then multiplies by that vector. Projection onto the zero vector is undefined because it has no direction.
For the 2027 HSC, Extension 1 uses the 2024 syllabus. Its Year 12 outcome ME1-12-02 includes operations with 2D and 3D vectors. See NESA's implementation advice and outcomes; NESA's glossary gives the vector-projection definition.
Picture a perpendicular projection
Draw O = (0, 0), A = (2, 4) and P = (3, 1) for the first example. The arrow from O to A is a, and the arrow from O to P is b. Draw the line through O and P, then join A to P. AP meets that line at a right angle, so OP is the vector projection of a onto b.
In general, the projection runs from the shared origin to the perpendicular foot on the line through b. That foot may fall beyond the tip of b or behind the origin.
If θ is the angle between nonzero a and b, the dot-product identity gives:
That is the signed component along b. Multiplying it by b/|b|, a unit vector of length 1 pointing in the direction of b, gives the vector formula above.
Worked example: a projection in 2D
Find both projections of a = (2, 4) onto b = (3, 1).
Calculate the dot product and :
The scalar projection is:
The vector projection is:
Check the perpendicular remainder: a − p = (−1, 3), and (−1, 3) · (3, 1) = −3 + 3 = 0. The projection lies along b, while the remainder is perpendicular to it.
What a negative projection tells you
Let a = (−4, 2) and b = (1, 0). Here a · b = −4 and |b| = 1, so:
The negative scalar projection tells you that the component points opposite to b. The length of the projected vector is 4. Keep the minus sign when reporting the scalar projection; use an absolute value only when the question asks for length.
The same calculation in 3D
Project a = (2, −1, 3) onto b = (1, 2, 2). The dot product is 2 − 2 + 6 = 6, and |b|² = 1 + 4 + 4 = 9.
As a check, (a − p) · b = 4/3 − 14/3 + 10/3 = 0. The remainder is perpendicular to b, as required.
Check the denominator, answer type and direction
Return to the 2D example with a = (2, 4) and b = (3, 1). Using |a|² in the denominator gives (3/2, 1/2). Its remainder has dot product 5 with b, so the remainder is not perpendicular to b. The denominator should be |b|² = 10.
For a vector projection, multiply the coefficient by b. Here 10/10 = 1 is only the coefficient; the vector answer is (3, 1). The scalar projection uses a different denominator and equals √10.
Check the order too. Projecting b onto a gives (10/20)(2, 4) = (1, 2). Although the dot product is unchanged, swapping the vectors changes the projection.
Try two questions
- Find the scalar and vector projections of u = (5, −1) onto v = (2, 1).
- Find both projections of u = (1, 0, −2) onto v = (2, −1, 2), and state the projected length.
Solutions
- u · v = 9 and |v|² = 5. Scalar: 9/√5. Vector: (9/5)(2, 1) = (18/5, 9/5). Check: (7/5, −14/5) · (2, 1) = 0.
- u · v = −2 and |v|² = 9. Scalar: −2/3. Vector: (−2/9)(2, −1, 2) = (−4/9, 2/9, −4/9). Length: 2/3. Check: (13/9, −2/9, −14/9) · (2, −1, 2) = 0.
For more practice, use the Extension 1 past-paper guide or see Plume's Extension 1 classes and free trial times.