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}$.
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.
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?
$\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}$.
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.
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.
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$.
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}$.
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$.
Find the length of the projection of $3\underset{\sim}{i} + 4\underset{\sim}{j}$ onto $\underset{\sim}{i}$.
$\dfrac{(3\underset{\sim}{i} + 4\underset{\sim}{j}) \cdot \underset{\sim}{i}}{|\underset{\sim}{i}|} = \dfrac{3}{1} = 3$. The projection onto $\underset{\sim}{i}$ is just the $x$ component.
The projection of $\underset{\sim}{u}$ onto $\underset{\sim}{v}$ is always:
It is $\dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}}$ times $\underset{\sim}{v}$, a multiple of $\underset{\sim}{v}$. It is a vector, and it is zero when $\underset{\sim}{u} \perp \underset{\sim}{v}$.
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$.
$\lambda = \dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}} = \dfrac{7 + 2}{1 + 4} = \dfrac95 = 1.8$.
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.
Dot product $= 4 - 3 + 12 = 13$. $|2\underset{\sim}{i} - \underset{\sim}{j} + 2\underset{\sim}{k}| = 3$. Length $= \tfrac{13}{3} \approx 4.33$.
$\underset{\sim}{u} \cdot \underset{\sim}{v} = 0$ for non-zero vectors. Then $\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u}$ is:
The multiplier $\dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}}$ is $0$. A perpendicular vector casts no shadow along $\underset{\sim}{v}$.
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.
$\underset{\sim}{u} \cdot \underset{\sim}{v} = 8 + 7 = 15$ and $\underset{\sim}{v} \cdot \underset{\sim}{v} = 5$, so the projection is $3\underset{\sim}{v} = 6\underset{\sim}{i} + 3\underset{\sim}{j}$. The perpendicular part is $(4 - 6)\underset{\sim}{i} + (7 - 3)\underset{\sim}{j} = -2\underset{\sim}{i} + 4\underset{\sim}{j}$. Check: $(-2)(2) + (4)(1) = 0$.
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}$.
Dot product $= 0 + 6 + 12 = 18$, and $|3\underset{\sim}{j} + 4\underset{\sim}{k}| = 5$. Length $= \tfrac{18}{5} = 3.6$.
Compared with $\operatorname{proj}_{\underset{\sim}{v}}\underset{\sim}{u}$, the projection $\operatorname{proj}_{-2\underset{\sim}{v}}\underset{\sim}{u}$ is:
$\dfrac{\underset{\sim}{u} \cdot (-2\underset{\sim}{v})}{(-2\underset{\sim}{v}) \cdot (-2\underset{\sim}{v})}(-2\underset{\sim}{v}) = \dfrac{-2(\underset{\sim}{u} \cdot \underset{\sim}{v})}{4\,\underset{\sim}{v} \cdot \underset{\sim}{v}}(-2\underset{\sim}{v}) = \dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{\underset{\sim}{v} \cdot \underset{\sim}{v}}\underset{\sim}{v}$. Only the line matters.
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.
$\overrightarrow{OP} = 4\underset{\sim}{i} + 7\underset{\sim}{j}$ with $|\overrightarrow{OP}|^2 = 65$. Projection length $= \dfrac{11}{\sqrt2}$, whose square is $60.5$. Distance $= \sqrt{65 - 60.5} = \sqrt{4.5} \approx 2.12$.
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.
$\overrightarrow{AB} = (2, 2, -1)$ with length $3$, and $\overrightarrow{AP} = (3, -1, 2)$ with $|\overrightarrow{AP}|^2 = 14$. $\overrightarrow{AP} \cdot \overrightarrow{AB} = 6 - 2 - 2 = 2$, so the projection length is $\tfrac23$. Distance $= \sqrt{14 - \tfrac49} = \sqrt{\tfrac{122}{9}} \approx 3.68$.
Coaching Centre