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

How do we find the projection of one vector onto another, and what does it mean geometrically?

Compute the scalar and vector projection of one vector onto another and interpret it geometrically

A focused answer to the HSC Maths Extension 1 dot point on vector projection. The scalar projection and the vector projection, their formulas, the stage-by-stage construction (drop a perpendicular, mark the right angle, draw the projection vector), the parallel and perpendicular decomposition, and applications, with worked examples.

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

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

What this dot point is asking

NESA wants you to find the shadow of one vector on another: the scalar projection (the signed length of that shadow) and the vector projection (the shadow as a vector), and to interpret them as the part of one vector that lies along the direction of the other. The same idea, run once more, splits any vector into a part parallel to a chosen direction and a part perpendicular to it, which is the move behind resolving forces and a string of geometric proofs.

The answer

Picture both vectors starting at a point OO. To project a\mathbf{a} onto b\mathbf{b}, shine a light straight down onto the line of b\mathbf{b} and read off the shadow of a\mathbf{a}. Formally, drop a perpendicular from the head of a\mathbf{a} to the line through b\mathbf{b}: the shadow runs from OO to the foot of that perpendicular. Building this up one stage at a time is the clearest way to see where every formula comes from.

Stage 1, the two vectors. Draw a\mathbf{a} and b\mathbf{b} from the same point OO. We are going to project a\mathbf{a} onto the direction of b\mathbf{b}, so b\mathbf{b} sets the direction and a\mathbf{a} is the vector being projected.

Stage 1: the two vectors Vectors a and b drawn from a common point O. We will project a onto the direction of b. b a O We will project a onto the direction of b.

Stage 2, drop a perpendicular. From the head of a\mathbf{a}, drop a line straight down onto the line of b\mathbf{b}. It meets that line at a right angle at the foot FF. This perpendicular is the key construction; the right-angle marker is what makes the projection "the closest point of b\mathbf{b}'s line to the head of a\mathbf{a}".

Stage 2: drop a perpendicular from the head of a A perpendicular is dropped from the head of a onto the line of b, meeting it at the foot F with a right angle marked. b a F O Drop a perpendicular from the head of a; it meets b's line at F.

Stage 3, the vector projection. The arrow from OO to FF, heavy below, is the vector projection of a\mathbf{a} onto b\mathbf{b}. It points along b\mathbf{b} (or directly opposite, if the angle is obtuse) and reaches exactly as far as the shadow of a\mathbf{a}.

Stage 3: the vector projection is O to F The segment from O to the foot F, drawn heavy, is the vector projection of a onto b. b a proj of a on b F O

Stage 4, the parallel and perpendicular split. The original a\mathbf{a}, the projection (from OO to FF) and the dropped perpendicular (from FF to the head of a\mathbf{a}) form a right triangle. So a\mathbf{a} is the sum of a parallel part (the vector projection, along b\mathbf{b}) and a perpendicular part (at right angles to b\mathbf{b}). That decomposition is what "resolve a\mathbf{a} into components" means.

Stage 4: a splits into parallel and perpendicular parts Vector a is the sum of its vector projection onto b (the parallel part, from O to F) and the perpendicular part (from F to the head of a). The three vectors form a right triangle. b a parallel part perpendicular part F O

Scalar projection

The scalar projection of a\mathbf{a} onto b\mathbf{b} is the signed length of that shadow (the length OFOF, with a sign):

projbscalara=abb=acosθ,\operatorname{proj}_{\mathbf{b}}^{\text{scalar}} \mathbf{a} = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|} = |\mathbf{a}| \cos \theta,

where θ\theta is the angle between a\mathbf{a} and b\mathbf{b}. The two forms agree because ab=abcosθ\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta, and dividing by b|\mathbf{b}| leaves acosθ|\mathbf{a}|\cos\theta, which is the adjacent side of the right triangle in Stage 4. The sign is positive when the angle is acute (the shadow points along b\mathbf{b}) and negative when it is obtuse (the shadow points the opposite way).

Vector projection

The vector projection of a\mathbf{a} onto b\mathbf{b} is the shadow as an actual vector (the arrow OF\overrightarrow{OF}):

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

Read it as "scalar projection times the unit vector b^\hat{\mathbf{b}}": take the signed length, then point it along b\mathbf{b}. Writing b/b2\mathbf{b}/|\mathbf{b}|^2 rolls the two steps into one, which is why the formula has b2|\mathbf{b}|^2 (one b|\mathbf{b}| turns the length into the right size, the other normalises b\mathbf{b}).

The parallel and perpendicular decomposition

Stage 4 says it in symbols. Any vector a\mathbf{a} splits uniquely into a part along b\mathbf{b} and a part at right angles to b\mathbf{b}:

a=projbaparallel to b+aperpendicular to b,a=aprojba.\mathbf{a} = \underbrace{\operatorname{proj}_{\mathbf{b}} \mathbf{a}}_{\text{parallel to } \mathbf{b}} + \underbrace{\mathbf{a}_{\perp}}_{\text{perpendicular to } \mathbf{b}}, \qquad \mathbf{a}_{\perp} = \mathbf{a} - \operatorname{proj}_{\mathbf{b}} \mathbf{a}.

The slick way to get the perpendicular part is to find the vector projection first, then subtract it from a\mathbf{a}; what is left over must be perpendicular to b\mathbf{b}. You can always check by dotting the leftover with b\mathbf{b} and getting 00.

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}.

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).
  • "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 component of the force in the direction of motion": a projection of the force onto the direction vector (resolve forces).
  • "Find the distance from a point to a line": often the magnitude of the perpendicular part of a displacement onto the line's direction.

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.

HSC-style3 marksFind the vector projection of a=(5,2)\mathbf{a} = (5, 2) onto b=(1,2)\mathbf{b} = (1, 2).
Show worked answer →

Vector projection is abb2b\frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|^2} \mathbf{b}.

ab=(5)(1)+(2)(2)=5+4=9\mathbf{a} \cdot \mathbf{b} = (5)(1) + (2)(2) = 5 + 4 = 9.

b2=12+22=5|\mathbf{b}|^2 = 1^2 + 2^2 = 5.

Projection =95(1,2)=(95,185)= \frac{9}{5} (1, 2) = \left( \frac{9}{5}, \frac{18}{5} \right).

HSC-style4 marksResolve a=(4,7)\mathbf{a} = (4, 7) into a component parallel to b=(2,1)\mathbf{b} = (2, 1) and a component perpendicular to b\mathbf{b}.
Show worked answer →

ab=(4)(2)+(7)(1)=8+7=15\mathbf{a} \cdot \mathbf{b} = (4)(2) + (7)(1) = 8 + 7 = 15, and b2=22+12=5|\mathbf{b}|^2 = 2^2 + 1^2 = 5.

Parallel component (vector projection): 155(2,1)=3(2,1)=(6,3)\frac{15}{5} (2, 1) = 3 (2, 1) = (6, 3).

Perpendicular component: a(6,3)=(46,73)=(2,4)\mathbf{a} - (6, 3) = (4 - 6, \, 7 - 3) = (-2, 4).

Check: (2,4)(2,1)=4+4=0(-2, 4) \cdot (2, 1) = -4 + 4 = 0, so it is perpendicular to b\mathbf{b}. And (6,3)+(2,4)=(4,7)=a(6, 3) + (-2, 4) = (4, 7) = \mathbf{a}.

ExamExplained