- 1. Scalar or vector? Quantities that point somewhere
- 2. Which way does it point? Direction cosines and direction ratios
- 3. Zero, unit, equal, collinear: the types of vectors
- 4. Adding vectors: the triangle and parallelogram laws
- 5. Stretch, shrink, flip: multiplying a vector by a scalar
- 6. Components: writing a vector with î, ĵ and k̂
- 7. Head minus tail, and the section formula
- 8. The dot product: multiply two vectors, get a number
- 9. Projection: does one vector cast a shadow on another?
- 10. The cross product and the right-hand rule
- 11. Areas with the cross product
- Review
9 of 11·NCERT §10.6.2·6 min
Projection: does one vector cast a shadow on another?
The big ideaThe projection of \( \vec{a} \) on \( \vec{b} \) is the length of the shadow \( \vec{a} \) casts on the line of \( \vec{b} \): \( \vec{a}\cdot\hat{b} = \frac{\vec{a}\cdot\vec{b}}{|\vec{b}|} \).
In simple words
Hold a stick out in the noon sun, when the light falls straight down. The dark strip it makes on the ground is its shadow. A stick held flat makes a shadow as long as itself. A stick standing straight up makes almost no shadow. The shadow tells you how much of the stick goes along the floor.
Projection on a line
Let \( \vec{a} = \overrightarrow{AB} \) make an angle θ with a directed line l. Drop perpendiculars from A and B to l, meeting it at A′ and C. The vector \( \vec{p} = \overrightarrow{A'C} \) along l is the projection vector of \( \vec{a} \) on l. Its length is \( |\vec{a}|\,|\cos\theta| \). It points along l when cos θ > 0 and against l when cos θ < 0. The number \( |\vec{a}|\cos\theta \) is called the projection of \( \vec{a} \) on l.
If \( \hat{p} \) is the unit vector along l, then \( |\vec{a}|\cos\theta = |\vec{a}|\,|\hat{p}|\cos\theta = \vec{a}\cdot\hat{p} \). So a projection is just a dot product with a unit vector.
Projection of one vector on another
Projection of \( \vec{a} \) on \( \vec{b} \)
- As a number: \( \vec{a}\cdot\hat{b} = \vec{a}\cdot\dfrac{\vec{b}}{|\vec{b}|} = \dfrac{\vec{a}\cdot\vec{b}}{|\vec{b}|} \). A minus sign means the shadow falls backwards along \( \vec{b} \).
- As a vector: \( \left(\dfrac{\vec{a}\cdot\vec{b}}{|\vec{b}|^2}\right)\vec{b} \).
- θ = 0 or θ = π: \( \vec{a} \) already lies along the line, so its projection vector is \( \vec{a} \) itself.
- θ = \( \frac{\pi}{2} \) or \( \frac{3\pi}{2} \) (perpendicular): the projection vector is \( \vec{0} \): no shadow.
Order matters here. The projection of \( \vec{a} \) on \( \vec{b} \) divides by \( |\vec{b}| \); the projection of \( \vec{b} \) on \( \vec{a} \) divides by \( |\vec{a}| \). Unlike the dot product itself, they are usually different.
Components are projections. For \( \vec{a} = a_1\hat{i} + a_2\hat{j} + a_3\hat{k} \), the projection on the x-axis is \( \vec{a}\cdot\hat{i} = a_1 \). So the scalar components are the projections on the three axes, and \( \cos\alpha = \frac{a_1}{|\vec{a}|},\ \cos\beta = \frac{a_2}{|\vec{a}|},\ \cos\gamma = \frac{a_3}{|\vec{a}|} \). A unit vector is \( \cos\alpha\,\hat{i} + \cos\beta\,\hat{j} + \cos\gamma\,\hat{k} \).
Worked examples
- A positive shadow. Projection of \( \vec{a} = 2\hat{i} + \hat{j} + 3\hat{k} \) on \( \vec{b} = \hat{i} + 2\hat{j} + 2\hat{k} \): \( \vec{a}\cdot\vec{b} = 2 + 2 + 6 = 10 \), \( |\vec{b}| = 3 \), so the projection is \( \frac{10}{3} \). The projection vector is \( \frac{10}{9}(\hat{i} + 2\hat{j} + 2\hat{k}) \).
- A backwards shadow. Projection of \( 3\hat{i} - 4\hat{j} + \hat{k} \) on the same \( \vec{b} \): \( (3 - 8 + 2)/3 = -1 \). The shadow is 1 unit long and points against \( \vec{b} \).
- No shadow. Projection of \( \hat{i} + \hat{j} \) on \( \hat{i} - \hat{j} \): \( (1 - 1)/\sqrt{2} = 0 \). They are perpendicular.
Try it: drag the arrows and switch which one casts the shadow. The bars below test the two inequalities as you go.
Squaring a sum
Since \( |\vec{v}|^2 = \vec{v}\cdot\vec{v} \), we can expand like algebra:
\[ |\vec{a} + \vec{b}|^2 = |\vec{a}|^2 + 2\,\vec{a}\cdot\vec{b} + |\vec{b}|^2, \] \[ |\vec{a} - \vec{b}|^2 = |\vec{a}|^2 - 2\,\vec{a}\cdot\vec{b} + |\vec{b}|^2. \]Example: \( |\vec{a}| = 3,\ |\vec{b}| = 4,\ \vec{a}\cdot\vec{b} = 6 \). Then \( |\vec{a} + \vec{b}| = \sqrt{9 + 12 + 16} = \sqrt{37} \) and \( |\vec{a} - \vec{b}| = \sqrt{9 - 12 + 16} = \sqrt{13} \). Note \( \sqrt{37} \approx 6.08 < 3 + 4 \).
Three vectors. Suppose \( |\vec{a}| = 1,\ |\vec{b}| = 2,\ |\vec{c}| = 2 \), and each is perpendicular to the sum of the other two. Then \( \vec{a}\cdot(\vec{b} + \vec{c}) = \vec{b}\cdot(\vec{c} + \vec{a}) = \vec{c}\cdot(\vec{a} + \vec{b}) = 0 \); adding, \( 2(\vec{a}\cdot\vec{b} + \vec{b}\cdot\vec{c} + \vec{c}\cdot\vec{a}) = 0 \). So \( |\vec{a} + \vec{b} + \vec{c}|^2 = 1 + 4 + 4 + 0 = 9 \) and \( |\vec{a} + \vec{b} + \vec{c}| = 3 \).
Two famous inequalities
For any vectors \( \vec{a}, \vec{b} \)
- Cauchy–Schwarz inequality: \( |\vec{a}\cdot\vec{b}| \le |\vec{a}|\,|\vec{b}| \). Reason: \( |\vec{a}\cdot\vec{b}| = |\vec{a}|\,|\vec{b}|\,|\cos\theta| \) and \( |\cos\theta| \le 1 \).
- Triangle inequality: \( |\vec{a} + \vec{b}| \le |\vec{a}| + |\vec{b}| \).
Proof of the triangle inequality. \( |\vec{a} + \vec{b}|^2 = |\vec{a}|^2 + 2\,\vec{a}\cdot\vec{b} + |\vec{b}|^2 \le |\vec{a}|^2 + 2|\vec{a}|\,|\vec{b}| + |\vec{b}|^2 = (|\vec{a}| + |\vec{b}|)^2 \), using Cauchy–Schwarz in the middle step. Take square roots. (If \( \vec{a} \) or \( \vec{b} \) is \( \vec{0} \), it is obvious.)
When is it an equality? In triangle ABC with \( \vec{a} = \overrightarrow{AB} \) and \( \vec{b} = \overrightarrow{BC} \), equality says AC = AB + BC. Then there is no real triangle: A, B and C lie on one straight line (they are collinear). This gives a test for three points: if one of the three distances equals the sum of the other two, the points are collinear.
Don't mix these up
- Projection of \( \vec{a} \) on \( \vec{b} \): divide \( \vec{a}\cdot\vec{b} \) by \( |\vec{b}| \), the vector you project onto.
- Projection (a number, can be negative) vs projection vector (an arrow along \( \vec{b} \)).
- \( |\vec{a} + \vec{b}|^2 \) has a middle term \( 2\,\vec{a}\cdot\vec{b} \); it is not \( |\vec{a}|^2 + |\vec{b}|^2 \) unless \( \vec{a} \perp \vec{b} \).
- Projection
- \( \vec{a}\cdot\hat{b} \): the signed length of the shadow of \( \vec{a} \) on the line of \( \vec{b} \).
- Projection vector
- The shadow itself, an arrow along the line.
- Directed line
- A line with a chosen direction.
- Cauchy–Schwarz inequality
- \( |\vec{a}\cdot\vec{b}| \le |\vec{a}|\,|\vec{b}| \).
- Triangle inequality
- \( |\vec{a} + \vec{b}| \le |\vec{a}| + |\vec{b}| \): one side is never longer than the other two together.
Words to know
What is the projection of \( \vec{a} = 4\hat{i} + 3\hat{k} \) on \( \vec{b} = 3\hat{i} + 4\hat{j} \)?
- \( \frac{12}{5} \)
- \( \frac{12}{25} \)
- 12
\( |\vec{a}| = 2,\ |\vec{b}| = 5,\ \vec{a}\cdot\vec{b} = 3 \). What is \( |\vec{a} - \vec{b}| \)?
- 3
- \( \sqrt{23} \)
- \( \sqrt{35} \)
The projection of \( \vec{a} \) on \( \vec{b} \) is negative. What does that tell you?
- There is a mistake: projections are never negative
- The angle between them is obtuse
- They are perpendicular
Picture and video credits