2G

Projections

The projection of one vector onto another, its length, the component of a vector perpendicular to another, resolving a vector into perpendicular parts, and the distance from a point to a line.

Hold a pen above a desk with a lamp directly overhead. Its shadow on the desk is its projection: the part of the pen that lies along the desk. Projections split a vector into "the part in the direction I care about" and "the part at right angles to it", which is exactly what you need for forces on a slope or the distance from a point to a line.

The projection of one vector onto another

Draw $\underset{\sim}{u}$ and $\underset{\sim}{v}$ tail to tail, and drop a perpendicular from the head of $\underset{\sim}{u}$ onto the line of $\underset{\sim}{v}$. The arrow from the tail to the foot of that perpendicular is the projection of $\underset{\sim}{u}$ onto $\underset{\sim}{v}$.

Projection of u onto v
$$\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u} = \frac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}}\,\underset{\sim}{v} \qquad \text{length} = \frac{|\underset{\sim}{u} \cdot \underset{\sim}{v}|}{|\underset{\sim}{v}|}$$
Watch the shadow

v runs from the origin to A (faint line shows its direction), u runs from the origin to B. The solid segment on the line is the projection of u onto v, and the dashed segment is the perpendicular part.

Try this

Drag $B$ until the projection disappears. What is $\underset{\sim}{u} \cdot \underset{\sim}{v}$ then? Now drag $B$ so the projection points backwards, and check the sign of the multiplier. Finally, move $A$ further out along the same line: does the projection change?

Example 1●●

$\underset{\sim}{u} = 5\underset{\sim}{i} + \underset{\sim}{j}$ and $\underset{\sim}{v} = 2\underset{\sim}{i} + \underset{\sim}{j}$. Find the projection of $\underset{\sim}{u}$ onto $\underset{\sim}{v}$, and the component of $\underset{\sim}{u}$ perpendicular to $\underset{\sim}{v}$.

$\underset{\sim}{u} \cdot \underset{\sim}{v} = 10 + 1 = 11$ and $\underset{\sim}{v} \cdot \underset{\sim}{v} = 4 + 1 = 5$.
Two dot products first.
$\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u} = \tfrac{11}{5}(2\underset{\sim}{i} + \underset{\sim}{j}) = 4.4\underset{\sim}{i} + 2.2\underset{\sim}{j}$
The projection is a multiple of v.
$\underset{\sim}{u} - \operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u} = 0.6\underset{\sim}{i} - 1.2\underset{\sim}{j}$
Whatever is left over must be the perpendicular part.
$(0.6)(2) + (-1.2)(1) = 0$. Correct.
Check: this should be perpendicular to v.

Resolving into two parts

Two quick facts follow from the picture. If $\underset{\sim}{u} \perp \underset{\sim}{v}$, the projection is $\underset{\sim}{0}$. Replacing $\underset{\sim}{v}$ by any non-zero multiple of itself, such as $3\underset{\sim}{v}$ or $-\underset{\sim}{v}$, does not change the projection, because only the line of $\underset{\sim}{v}$ matters.

Example 2: in 3D●●

Find the projection of $\underset{\sim}{u} = 2\underset{\sim}{i} + 3\underset{\sim}{j} - \underset{\sim}{k}$ onto $\underset{\sim}{v} = \underset{\sim}{i} + 2\underset{\sim}{j} + 2\underset{\sim}{k}$, and its length.

$\underset{\sim}{u} \cdot \underset{\sim}{v} = 2 + 6 - 2 = 6$ and $\underset{\sim}{v} \cdot \underset{\sim}{v} = 1 + 4 + 4 = 9$.
$\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u} = \tfrac69\underset{\sim}{v} = \tfrac23\underset{\sim}{i} + \tfrac43\underset{\sim}{j} + \tfrac43\underset{\sim}{k}$
Length $= \tfrac63 = 2$.
Length = |u · v| / |v|, and |v| = 3.

Distance from a point to a line

The shortest distance from a point $P$ to a line is along the perpendicular. Take any point $A$ on the line and a direction vector $\underset{\sim}{d}$. The perpendicular part of $\overrightarrow{AP}$ is the distance you want. Pythagoras gets it without finding the vector: distance$^2 = |\overrightarrow{AP}|^2 - (\text{projection length})^2$.

Example 3●●●

Find the distance from $P(6, 1)$ to the line through $A(1, 2)$ with direction $\underset{\sim}{d} = 3\underset{\sim}{i} + 4\underset{\sim}{j}$.

$\overrightarrow{AP} = 5\underset{\sim}{i} - \underset{\sim}{j}$, so $|\overrightarrow{AP}|^2 = 26$.
$\overrightarrow{AP} \cdot \underset{\sim}{d} = 15 - 4 = 11$, so the projection length is $\tfrac{11}{5} = 2.2$.
The projection length is |AP · d| / |d|, and |d| = 5.
Distance $= \sqrt{26 - 2.2^2} = \sqrt{21.16} = 4.6$.
Right-angled triangle with hypotenuse AP.
$\dfrac{|24 - 3 + 2|}{5} = 4.6$. Same answer.
Check with the Year 11 perpendicular distance formula: the line is 4x − 3y + 2 = 0.

Your turn

Resolve $\underset{\sim}{u} = 3\underset{\sim}{i} + 5\underset{\sim}{j}$ into parts parallel and perpendicular to $\underset{\sim}{v} = \underset{\sim}{i} + \underset{\sim}{j}$.

Show the working

$\underset{\sim}{u} \cdot \underset{\sim}{v} = 8$ and $\underset{\sim}{v} \cdot \underset{\sim}{v} = 2$, so the parallel part is $4\underset{\sim}{v} = 4\underset{\sim}{i} + 4\underset{\sim}{j}$. The perpendicular part is $\underset{\sim}{u} - (4\underset{\sim}{i} + 4\underset{\sim}{j}) = -\underset{\sim}{i} + \underset{\sim}{j}$. Check: $(-1)(1) + (1)(1) = 0$.

Flashcards
Projection of $underset{sim}{u}$ onto $underset{sim}{v}$
$\dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}}\,\underset{\sim}{v}$
Length of the projection
$\dfrac{|\underset{\sim}{u} \cdot \underset{\sim}{v}|}{|\underset{\sim}{v}|}$
Perpendicular part of $underset{sim}{u}$
$\underset{\sim}{u} - \operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u}$
Practice
  1. Find the length of the projection of $3\underset{\sim}{i} + 4\underset{\sim}{j}$ onto $\underset{\sim}{i}$.

  2. The projection of $\underset{\sim}{u}$ onto $\underset{\sim}{v}$ is always:

  3. The projection of $\underset{\sim}{u} = 7\underset{\sim}{i} + \underset{\sim}{j}$ onto $\underset{\sim}{v} = \underset{\sim}{i} + 2\underset{\sim}{j}$ is $\lambda\underset{\sim}{v}$. Find $\lambda$.

  4. Find the length of the projection of $2\underset{\sim}{i} + 3\underset{\sim}{j} + 6\underset{\sim}{k}$ onto $2\underset{\sim}{i} - \underset{\sim}{j} + 2\underset{\sim}{k}$, correct to $2$ decimal places.

  5. $\underset{\sim}{u} \cdot \underset{\sim}{v} = 0$ for non-zero vectors. Then $\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u}$ is:

  6. Find the component of $\underset{\sim}{u} = 4\underset{\sim}{i} + 7\underset{\sim}{j}$ perpendicular to $\underset{\sim}{v} = 2\underset{\sim}{i} + \underset{\sim}{j}$. Enter it as an ordered pair.

  7. Find the length of the projection of $\underset{\sim}{i} + 2\underset{\sim}{j} + 3\underset{\sim}{k}$ onto $3\underset{\sim}{j} + 4\underset{\sim}{k}$.

  8. Compared with $\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u}$, the projection $\operatorname{proj}_{-2\underset{\sim}{v}}\underset{\sim}{u}$ is:

  9. Exam style: find the distance from $P(4, 7)$ to the line through the origin with direction $\underset{\sim}{i} + \underset{\sim}{j}$, correct to $2$ decimal places.

  10. Exam style: find the distance from $P(4, -1, 3)$ to the line through $A(1, 0, 1)$ and $B(3, 2, 0)$, correct to $2$ decimal places.

Formula sheet