Unit 2 · Length, angle and the dot product
Lesson 14 · Available to read
Projection
The projection of a onto b is the 'shadow' a casts on the line of b, telling us how much of a lies along b.
Imagine light shining perpendicular to the line through b. The shadow that a casts on that line is the projection of a onto b. It answers the question: how much of a points in the direction of b?
The projection is computed with dot products:
proj_b(a) = (a · b / b · b) b.
The fraction a · b / b · b is a scalar that says how many copies of b make up the shadow. For a = [2, 3] and b = [4, 0], a · b = 8 and b · b = 16, so proj_b(a) = 0.5 b = [2, 0]. The signed length of the shadow, a · b / ‖b‖, is the scalar projection, here 2.
What remains, a − proj_b(a) = [0, 3], is orthogonal to b, as its dot product with b confirms. Every vector therefore splits into two parts: one parallel to b and one perpendicular to it. If a is orthogonal to b, its projection is the zero vector; if a is parallel to b, the projection is a itself.
This decomposition appears throughout science and engineering, for example in resolving a force into components along and across a slope. It is also the geometric idea behind least-squares fitting, studied in Unit 8.
The takeaway
proj_b(a) = (a · b / b · b) b; the remainder a − proj_b(a) is orthogonal to b.
Practice
0 of 5 attempted
- 1Calculate
Project a = [3, 4] onto b = [1, 0].
Saved in this browser
- 2Calculate
Project a = [1, 3] onto b = [1, 1], and find the remainder.
Saved in this browser
- 3Multiple choice
If a is orthogonal to b, what is the projection of a onto b?
- 4Explain in your own words
Show that the remainder r = a − proj_b(a) is orthogonal to b.
Saved in this browser
- 5Apply
A wind blows with velocity [6, 8] km/h. A runner heads along [1, 0]. What component of the wind acts along the runner's path?
Saved in this browser