The shadow of a on b
Projection of a on b = a · b/|b| (a · p̂ on a line with unit vector p̂).
A shadow
Shine a light straight down onto the line of b: the vector a casts a shadow along it. Its length, with a sign for the direction, is the projection of a on b.
If a is perpendicular to b, the projection of a on b is …
What this lesson covers
The idea
If p̂ is the unit vector along a line l, the projection of a on l is a · p̂; the projection of a on b is a · b/|b|.
A shadow
Shine a light straight down onto the line of b: the vector a casts a shadow along it. Its length, with a sign for the direction, is the projection of a on b.
If a is perpendicular to b, the projection of a on b is …
- 0
- |a|
- |b|
Move a
Drag the tip of a. The thick bar on the line of b is the projection: green when it points along b, red when it points the other way.
Projection of a vector
If p̂ is the unit vector along a line l, the projection of a on l is a · p̂. The projection of a on b is a · b̂ = (a · b)/|b|.
It equals |a| cos θ: positive when θ is acute, 0 when a ⊥ b, negative when θ is obtuse.
Example 16: the projection of 2î + 3ĵ + 2k̂ on î + 2ĵ + k̂ is (2 + 6 + 2)/√6 = 10/√6 = (5/3)√6.
The components a₁, a₂, a₃ of a are its projections on the x-, y- and z-axes.
Notes
Projection of a on b = a · b̂ = (a · b)/|b| = |a| cos θ. On a line with unit vector p̂: a · p̂.
Check yourself
Exercise 10.3, Q3: the projection of î − ĵ on î + ĵ is …
Answer: 0
(î − ĵ) · (î + ĵ) = 1 − 1 = 0, so the projection is 0: the vectors are perpendicular.
Exercise 10.3, Q4: the projection of î + 3ĵ + 7k̂ on 7î − ĵ + 8k̂ is …
The projection of a on b and the projection of b on a are …
Example 16: the projection of 2î + 3ĵ + 2k̂ on î + 2ĵ + k̂, as a decimal.
Answer: 4.08
10/√6 = (5/3)√6 ≈ 4.08.
- 60/(√59 √114). That is cos θ. For the projection divide by |b| only.
- 60/√59. Divide by |b| = √(49 + 1 + 64) = √114, not by |a|.
- 60/√114 — correct. Yes! a · b = 60 and |b| = √114.
- always equal. They are a · b/|b| and a · b/|a|, which differ when |a| ≠ |b|.
- equal when |a| = |b| — correct. Yes! Both have a · b on top; the bottoms are |b| and |a|. (Both are 0 if a ⊥ b.)
- never, as a · b ≠ b · a. a · b = b · a. The two projections differ only through |b| and |a|.