2F

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

Dot product with components
$$\begin{pmatrix} x_1 \\ y_1 \\ z_1 \end{pmatrix} \cdot \begin{pmatrix} x_2 \\ y_2 \\ z_2 \end{pmatrix} = x_1x_2 + y_1y_2 + z_1z_2$$

In 2D, just leave out the $z$ terms.

Dot product and angle

a runs from the origin to A, and b from the origin to B. Drag either point.

Try this

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.

Example 1●●

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.

$\underset{\sim}{u} \cdot \underset{\sim}{v} = 3 - 4 - 4 = -5$
Multiply matching components and add.
$|\underset{\sim}{u}| = \sqrt{9 + 1 + 4} = \sqrt{14}$ and $|\underset{\sim}{v}| = \sqrt{1 + 16 + 4} = \sqrt{21}$
$\cos\theta = \dfrac{-5}{\sqrt{14}\sqrt{21}}$, so $\theta \approx 106.9^\circ$.
The dot product is negative, so expect an obtuse angle.

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$.

Example 2●●

Find $k$ so that $\begin{pmatrix} k \\ 2 \\ -1 \end{pmatrix}$ and $\begin{pmatrix} 3 \\ k \\ 4 \end{pmatrix}$ are perpendicular.

$3k + 2k - 4 = 0$
Perpendicular means the dot product is zero.
$k = \tfrac45$

Angles in a triangle

Example 3●●●

Find $\angle ABC$ for $A(1, 0, 2)$, $B(2, 1, 0)$ and $C(0, 3, 1)$, to the nearest tenth of a degree.

$\overrightarrow{BA} = \begin{pmatrix} -1 \\ -1 \\ 2 \end{pmatrix}$ and $\overrightarrow{BC} = \begin{pmatrix} -2 \\ 2 \\ 1 \end{pmatrix}$
The angle at B is between the two arrows that START at B.
$\overrightarrow{BA} \cdot \overrightarrow{BC} = 2 - 2 + 2 = 2$, $|\overrightarrow{BA}| = \sqrt6$, $|\overrightarrow{BC}| = 3$
$\cos\angle ABC = \dfrac{2}{3\sqrt6}$, so $\angle ABC \approx 74.2^\circ$.

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$.

Flashcards
$underset{sim}{u} cdot underset{sim}{v}$ in components
$x_1x_2 + y_1y_2 + z_1z_2$
Angle between vectors
$\cos\theta = \dfrac{\underset{\sim}{u} \cdot \underset{\sim}{v}}{|\underset{\sim}{u}|\,|\underset{\sim}{v}|}$
A vector perpendicular to $egin{pmatrix} a \ b end{pmatrix}$
$\begin{pmatrix} -b \\ a \end{pmatrix}$
Practice
  1. Find $\begin{pmatrix} 2 \\ -3 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ 1 \end{pmatrix}$.

  2. Find $(\underset{\sim}{i} + 2\underset{\sim}{j} - 3\underset{\sim}{k}) \cdot (4\underset{\sim}{i} - \underset{\sim}{j} + 2\underset{\sim}{k})$.

  3. Which vector is perpendicular to $\begin{pmatrix} 3 \\ 4 \end{pmatrix}$?

  4. $\begin{pmatrix} k \\ 3 \end{pmatrix}$ is perpendicular to $\begin{pmatrix} 2 \\ -6 \end{pmatrix}$. Find $k$.

  5. Find the angle between $\underset{\sim}{i} + \underset{\sim}{j}$ and $7\underset{\sim}{i} + \underset{\sim}{j}$, to the nearest degree.

  6. Find the angle between $\begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}$ and $\begin{pmatrix} 2 \\ -2 \\ 1 \end{pmatrix}$, in degrees.

  7. Find $\underset{\sim}{v} \cdot \underset{\sim}{v}$ for $\underset{\sim}{v} = 2\underset{\sim}{i} - \underset{\sim}{j} + 3\underset{\sim}{k}$.

  8. To find $\angle PQR$, you should calculate the dot product of:

  9. Exam style: $A = (3, 1, 0)$, $B = (1, 1, 1)$ and $C = (1, 3, 3)$. Find $\angle ABC$ to the nearest degree.

  10. 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 &.

Formula sheet