Skip to main content
ExamExplained
NSW · Maths Extension 2
Maths Extension 2 study scene
§-Syllabus dot point
NSWMaths Extension 2Syllabus dot point

How do we resolve one vector along the direction of another, and what do the scalar and vector projections measure geometrically?

Compute the projection of one vector onto another, distinguishing the scalar projection from the vector projection, and resolve a vector into parallel and perpendicular components

A focused answer to the HSC Maths Extension 2 dot point on vector projection. The scalar projection as a signed length, the vector projection formula, the parallel and perpendicular split in three dimensions, and the distance from a point to a line built up stage by stage, with verified worked examples and diagrams.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The scalar projection
  3. The vector projection
  4. Resolving a vector into components
  5. Distance from a point to a line
  6. How exam questions ask about projection

What this dot point is asking

NESA wants you to project one vector onto the direction of another. You must compute the scalar projection (a signed number measuring how much of a\mathbf{a} points along b\mathbf{b}), the vector projection (the actual vector component of a\mathbf{a} along b\mathbf{b}), and use these to split a\mathbf{a} into a part parallel to b\mathbf{b} and a part perpendicular to b\mathbf{b}. In Extension 2 this runs in three dimensions and is the engine behind one headline application: the shortest distance from a point to a line.

The scalar projection

Given vectors a\mathbf{a} and b\mathbf{b} with b0\mathbf{b} \neq \mathbf{0}, the scalar projection of a\mathbf{a} onto b\mathbf{b} measures the signed length of the shadow a\mathbf{a} casts on the line through b\mathbf{b}. Since ab=abcosθ\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta, the scalar projection is

scalar projection=acosθ=abb.\text{scalar projection} = |\mathbf{a}|\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}.

It is positive when the angle θ\theta between the vectors is acute, zero when they are perpendicular, and negative when θ\theta is obtuse. The sign carries genuine information about direction, so it must not be silently dropped.

The vector projection

The vector projection is the scalar projection multiplied by the unit vector in the direction of b\mathbf{b}, namely b^=bb\hat{\mathbf{b}} = \dfrac{\mathbf{b}}{|\mathbf{b}|}. Thus

projba=(abb)bb=abb2b=abbbb.\operatorname{proj}_{\mathbf{b}}\mathbf{a} = \left(\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}\right)\frac{\mathbf{b}}{|\mathbf{b}|} = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b} = \frac{\mathbf{a}\cdot\mathbf{b}}{\mathbf{b}\cdot\mathbf{b}}\,\mathbf{b}.

This is a vector, parallel to b\mathbf{b}, representing the component of a\mathbf{a} lying along b\mathbf{b}. Its magnitude equals the absolute value of the scalar projection, and its direction is along b\mathbf{b} (or against it, when the scalar projection is negative). Geometrically, to project a\mathbf{a} onto b\mathbf{b} you drop a perpendicular from the head of a\mathbf{a} to the line carrying b\mathbf{b} and read off the arrow from OO to the foot. In three dimensions the picture is the same, with the perpendicular now dropping through space.

Projection in three dimensions Vectors a and b from O. A perpendicular dropped from the head of a to the line of b meets it at the foot F. The vector from O to F is the parallel part (the vector projection); the drop from F to the head of a is the perpendicular part. x y z O b a perp part proj of a on b F O to F is the vector projection of a onto b.

Resolving a vector into components

Every vector a\mathbf{a} can be split into a part parallel to b\mathbf{b} and a part perpendicular to b\mathbf{b}:

a=a+a,a=projba,a=aprojba.\mathbf{a} = \mathbf{a}_{\parallel} + \mathbf{a}_{\perp}, \qquad \mathbf{a}_{\parallel} = \operatorname{proj}_{\mathbf{b}}\mathbf{a}, \qquad \mathbf{a}_{\perp} = \mathbf{a} - \operatorname{proj}_{\mathbf{b}}\mathbf{a}.

The perpendicular component is genuinely perpendicular to b\mathbf{b}. Checking the scalar product confirms it,

ab=ababb2(bb)=abab=0,\mathbf{a}_{\perp}\cdot\mathbf{b} = \mathbf{a}\cdot\mathbf{b} - \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}(\mathbf{b}\cdot\mathbf{b}) = \mathbf{a}\cdot\mathbf{b} - \mathbf{a}\cdot\mathbf{b} = 0,

since bb=b2\mathbf{b}\cdot\mathbf{b} = |\mathbf{b}|^2. The slick way to get the perpendicular part is therefore to find the vector projection first, then subtract it from a\mathbf{a}; what is left over must be perpendicular. This decomposition is the foundation for resolving forces in mechanics and for the distance from a point to a line.

Two edge cases worth knowing

  • If a\mathbf{a} is already parallel to b\mathbf{b}, the shadow is all of a\mathbf{a}: projba=a\operatorname{proj}_{\mathbf{b}}\mathbf{a} = \mathbf{a} and the perpendicular part is 0\mathbf{0}.
  • If a\mathbf{a} is perpendicular to b\mathbf{b}, then ab=0\mathbf{a}\cdot\mathbf{b} = 0, so both projections are zero: there is no shadow.

A common simplification: if b\mathbf{b} is a unit vector (b=1|\mathbf{b}| = 1), the formulas collapse to scalar projection =ab= \mathbf{a}\cdot\mathbf{b} and vector projection =(ab)b= (\mathbf{a}\cdot\mathbf{b})\,\mathbf{b}. Because both projections depend only on the direction of b\mathbf{b}, scaling b\mathbf{b} leaves the projection of a\mathbf{a} onto it unchanged.

Distance from a point to a line

The perpendicular component is what makes the distance from a point PP to a line accessible. The shortest distance is the length of the perpendicular dropped from PP to the line, because any slanted segment to the line is the hypotenuse of a right triangle with the perpendicular as one leg, hence longer. Build the construction up one stage at a time.

Stage 1, the line and the point. Take a line through a known point AA with direction d\mathbf{d}, and an external point PP. We want the shortest distance from PP to the line.

Stage 1: a line and a point off it A line through A with direction d, and a point P that is not on the line. We want the shortest distance from P to the line. x y z O the line d A P A line through A with direction d, and a point P off it.

Stage 2, drop the perpendicular. From PP, the perpendicular to the line meets it at the foot FF. There are two equivalent ways to find FF. Either project AP\overrightarrow{AP} onto d\mathbf{d} to get AF=projdAP\overrightarrow{AF} = \operatorname{proj}_{\mathbf{d}}\overrightarrow{AP}, so F=A+AFF = A + \overrightarrow{AF}; or write F=A+λdF = A + \lambda\mathbf{d} and impose FPd=0\overrightarrow{FP}\cdot\mathbf{d} = 0, which gives one equation for λ\lambda. Both encode the same condition: the connector to PP is perpendicular to the direction.

Stage 2: drop the perpendicular to the line From P, the perpendicular to the line meets it at the foot F. The connecting vector FP is perpendicular to the direction d, which fixes F. x y z O the line A P F FP is perpendicular to d; that condition fixes the foot F.

Stage 3, read off the distance. The shortest distance is the length FP|\overrightarrow{FP}| of the perpendicular. Equivalently, it is the magnitude of the perpendicular component of AP\overrightarrow{AP} relative to d\mathbf{d}, that is APprojdAP\bigl|\overrightarrow{AP} - \operatorname{proj}_{\mathbf{d}}\overrightarrow{AP}\bigr|.

Stage 3: the shortest distance is FP The length of the perpendicular FP is the shortest distance from P to the line. Any other point on the line is further from P. x y z O the line distance A P F The shortest distance from P to the line is the length FP.

How exam questions ask about projection

  • "Find the scalar projection of a\mathbf{a} onto b\mathbf{b}" or "the component of a\mathbf{a} in the direction of b\mathbf{b}": compute abb\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|} (a number, possibly negative).
  • "Find the vector projection of a\mathbf{a} onto b\mathbf{b}" or "the projection vector": compute abb2b\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\mathbf{b} (a vector).
  • "Show that aabbbb\mathbf{a} - \frac{\mathbf{a}\cdot\mathbf{b}}{\mathbf{b}\cdot\mathbf{b}}\mathbf{b} is perpendicular to b\mathbf{b}": this is the standard HSC phrasing of the perpendicular component; dot it with b\mathbf{b} and get 00.
  • "Resolve a\mathbf{a} into components parallel and perpendicular to b\mathbf{b}": the parallel part is the vector projection; the perpendicular part is a\mathbf{a} minus it.
  • "Find the shortest (perpendicular) distance from the point PP to the line": find the foot FF via the projection or the FPd=0\overrightarrow{FP}\cdot\mathbf{d} = 0 condition, then report FP|\overrightarrow{FP}|.
  • "Find the component of the force in the direction of motion": a projection of the force onto the direction vector.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2024 HSC3 marksThe vector a is (1, 2, 3) and the vector b is (2, 0, -4). (i) Find (a . b / (b . b)) b. (ii) Show that a - (a . b / (b . b)) b is perpendicular to b.
Show worked answer →

The expression (a . b / (b . b)) b is the vector projection of a onto b; subtracting it from a leaves the component of a perpendicular to b.

Part (i). Compute the dot products:
a . b = (1)(2) + (2)(0) + (3)(-4) = 2 + 0 - 12 = -10.
b . b = (2)^2 + 0^2 + (-4)^2 = 4 + 0 + 16 = 20.

So a . b / (b . b) = -10/20 = -1/2, and the projection is

(-1/2)(2, 0, -4) = (-1, 0, 2).

Part (ii). The perpendicular component is
a - (-1, 0, 2) = (1 - (-1), 2 - 0, 3 - 2) = (2, 2, 1).

Check it is perpendicular to b by taking the dot product:
(2, 2, 1) . (2, 0, -4) = (2)(2) + (2)(0) + (1)(-4) = 4 + 0 - 4 = 0.

Since the dot product is 0, a - (a . b / (b . b)) b is perpendicular to b.

Mark notes: part (i) 1 mark for the projection (-1, 0, 2). Part (ii): 1 mark for the perpendicular component (2, 2, 1), 1 mark for showing its dot product with b is 0.

2021 HSC1 marksConsider the two non-zero complex numbers z and w as vectors. Which of the following expressions is the projection of z onto w? A. (Re(z times conjugate of w)/|w|^2) w. B. (z/|w|) w. C. Re(z/w) w. D. (Re(z)/|w|^2) w.
Show worked answer →

The vector projection of one vector onto another is (dot product divided by the squared length of the target) times the target: proj = ((z . w)/(w . w)) w.

When complex numbers are treated as vectors, the dot product z . w equals Re(z times conjugate of w), and w . w = |w|^2.

Substituting gives proj = (Re(z times conjugate of w)/|w|^2) w, which is option A.

Options B, C and D do not give a real scalar multiple equal to the projection coefficient (Re(z times conjugate of w))/|w|^2, so they are incorrect.

The answer is A.

ExamExplained