Lesson 6 of 8 · 18 min
Scalar and vector projections
Find how much of one vector lies along another, as a signed length (scalar projection) and as a vector (vector projection), and split a vector into parts parallel and perpendicular to a direction.
What you will be able to do
- Calculate the scalar projection of on , , and interpret its sign.
- Calculate the vector projection of on , .
- Write as the sum of a vector parallel to and a vector perpendicular to , and use this to find perpendicular distances.
Hold a pencil above your desk with a light shining straight down. Its shadow is the part of the pencil that lies along the desk. A projection is that shadow: the part of one vector that lies along the direction of another.
The projection of on is drawn along the line of . Drag so the angle is obtuse: which way does the projection point now?
Definition
Scalar projection
The scalar projection of on is the signed length of the shadow:
For non-zero vectors, it is positive when (the shadow points along ), zero when , and negative when (the shadow points against ).
Find the exact scalar projection of on .
Definition
Vector projection
The vector projection of on is the shadow as a vector: the scalar projection times the unit vector .
The last form is the easiest to use: one dot product on top, underneath, and no surds.
Where the last form comes from
, so
using .
splits into a part along (the vector projection) and a part perpendicular to .
Worked example
Projections of on and the perpendicular part
Let and .
(a) Find the scalar projection of on .
(b) Find the vector projection of on .
(c) Write as the sum of a vector parallel to and a vector perpendicular to .
Step 1: Find the dot product and |b|
, , .
Step 2: (a) Scalar projection
Step 3: (b) Vector projection
Step 4: (c) Subtract to get the perpendicular part
Check it really is perpendicular: . ✓
Step 5: Write the decomposition
Try it yourself first, then check the working one step at a time.
Answer
(a) . (b) . (c) .
Method
Scalar projection .
Vector projection .
Perpendicular part vector projection; check its dot product with is 0.
Watch out for
Dividing by instead of .
Giving the scalar projection when the vector projection is asked for, or the reverse.
Find the vector projection of on .
Key idea
Splitting a vector into two perpendicular parts
The magnitude of the perpendicular part is the shortest distance from the tip of to the line through the origin in the direction of . Check it by dotting with : you should get 0.
Worked example
The shortest distance from a point to a line
A straight path passes through in the direction of . A drinking fountain is at . Units are metres. Find the point on the path closest to the fountain and the shortest distance from the path to the fountain.
Step 1: Find the vector from A to the point
Step 2: Project it onto the path direction
The closest point is where the perpendicular from meets the path, so is the part of along the path: its vector projection.
Step 3: Locate F
Step 4: Find the distance and check the right angle
, so . Check: ✓.
Try it yourself first, then check the working one step at a time.
Answer
The closest point is , and the shortest distance is m.
Method
Join a known point on the line to the outside point.
Vector projection onto the direction gives the foot of the perpendicular.
The perpendicular part gives the shortest distance; check with a dot product.
Watch out for
Taking as the shortest distance: that is the distance to , not to the path.
Common mistake
Which is which
The scalar projection is a number with underneath. The vector projection is a vector with underneath, multiplied by . And "the projection of on " is along : swapping the vectors changes the answer.
Tip
Reasonableness
A shadow is never longer than the object: , with equality only when and are parallel.
Summary
Scalar projection of on : , a signed length.
Vector projection of on : , a vector along .
The perpendicular part is minus its vector projection; its magnitude is a shortest distance.
Negative scalar projection means the angle between the vectors is obtuse or straight.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.