The dot product with components
The component formula for the dot product in two and three dimensions, its proof from the distributive law, finding angles between vectors, testing for perpendicular vectors, and finding unknown components.
The definition $\underset{\sim}{u} \cdot \underset{\sim}{v} = |\underset{\sim}{u}|\,|\underset{\sim}{v}|\cos\theta$ needs the angle, which is usually the thing you don't know. With components, the dot product comes from plain multiplication, and then the definition can be run backwards to find the angle.
The component formula
In 2D, just leave out the $z$ terms.
a runs from the origin to A, and b from the origin to B. Drag either point.
Leave $A$ at $(3, 1)$. Find three different positions of $B$ that make $\underset{\sim}{a} \cdot \underset{\sim}{b} = 0$. What do they have in common? Then predict the sign of the dot product before you drag $B$ to make the angle obtuse.
Find the angle between $\underset{\sim}{u} = 3\underset{\sim}{i} - \underset{\sim}{j} + 2\underset{\sim}{k}$ and $\underset{\sim}{v} = \underset{\sim}{i} + 4\underset{\sim}{j} - 2\underset{\sim}{k}$, to the nearest tenth of a degree.
Perpendicular vectors and unknowns
Setting the dot product equal to zero gives an equation, which is how you find an unknown component. In 2D there is also a quick way to write down a perpendicular vector: swap the components and change one sign. $\begin{pmatrix} a \\ b \end{pmatrix} \cdot \begin{pmatrix} -b \\ a \end{pmatrix} = -ab + ab = 0$.
Find $k$ so that $\begin{pmatrix} k \\ 2 \\ -1 \end{pmatrix}$ and $\begin{pmatrix} 3 \\ k \\ 4 \end{pmatrix}$ are perpendicular.
Angles in a triangle
Find $\angle ABC$ for $A(1, 0, 2)$, $B(2, 1, 0)$ and $C(0, 3, 1)$, to the nearest tenth of a degree.
Your turn
Find all values of $k$ for which $\begin{pmatrix} k \\ k \\ 1 \end{pmatrix}$ and $\begin{pmatrix} k \\ -3 \\ 2 \end{pmatrix}$ are perpendicular.
Show the working
$k^2 - 3k + 2 = 0$, so $(k - 1)(k - 2) = 0$ and $k = 1$ or $k = 2$.
Find $\begin{pmatrix} 2 \\ -3 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ 1 \end{pmatrix}$.
$2 \times 4 + (-3) \times 1 = 8 - 3 = 5$.
Find $(\underset{\sim}{i} + 2\underset{\sim}{j} - 3\underset{\sim}{k}) \cdot (4\underset{\sim}{i} - \underset{\sim}{j} + 2\underset{\sim}{k})$.
$4 - 2 - 6 = -4$.
Which vector is perpendicular to $\begin{pmatrix} 3 \\ 4 \end{pmatrix}$?
$3 \times (-8) + 4 \times 6 = -24 + 24 = 0$. Swapping alone (option 1) gives $24$, not $0$: one sign must change too.
$\begin{pmatrix} k \\ 3 \end{pmatrix}$ is perpendicular to $\begin{pmatrix} 2 \\ -6 \end{pmatrix}$. Find $k$.
$2k - 18 = 0$, so $k = 9$.
Find the angle between $\underset{\sim}{i} + \underset{\sim}{j}$ and $7\underset{\sim}{i} + \underset{\sim}{j}$, to the nearest degree.
Dot product $= 7 + 1 = 8$. Lengths $\sqrt2$ and $\sqrt{50}$, with product $\sqrt{100} = 10$. So $\cos\theta = 0.8$ and $\theta \approx 36.87^\circ$, which is $37^\circ$.
Find the angle between $\begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}$ and $\begin{pmatrix} 2 \\ -2 \\ 1 \end{pmatrix}$, in degrees.
$2 - 4 + 2 = 0$, so the vectors are perpendicular and the angle is $90^\circ$.
Find $\underset{\sim}{v} \cdot \underset{\sim}{v}$ for $\underset{\sim}{v} = 2\underset{\sim}{i} - \underset{\sim}{j} + 3\underset{\sim}{k}$.
$4 + 1 + 9 = 14$, which is $|\underset{\sim}{v}|^2$.
To find $\angle PQR$, you should calculate the dot product of:
The angle at $Q$ is between the two vectors leaving $Q$. Options 1 and 4 are head to tail and give the supplement.
Exam style: $A = (3, 1, 0)$, $B = (1, 1, 1)$ and $C = (1, 3, 3)$. Find $\angle ABC$ to the nearest degree.
$\overrightarrow{BA} = (2, 0, -1)$ and $\overrightarrow{BC} = (0, 2, 2)$. The dot product is $0 + 0 - 2 = -2$. The lengths are $\sqrt5$ and $\sqrt8$. So $\cos\angle ABC = \dfrac{-2}{\sqrt{40}} \approx -0.316$, giving $\angle ABC \approx 108.4^\circ$, which is $108^\circ$.
Exam style: find all values of $m$ for which $\begin{pmatrix} m \\ 1 \\ m \end{pmatrix}$ and $\begin{pmatrix} m \\ -3 \\ -2 \end{pmatrix}$ are perpendicular. Enter both values separated by &.
The dot product is $m^2 - 3 - 2m$. Setting it to zero: $m^2 - 2m - 3 = 0$, so $(m - 3)(m + 1) = 0$ and $m = 3$ or $m = -1$.
Coaching Centre