2C

The dot product

The dot product or scalar product defined geometrically, the angle between two vectors, perpendicular vectors, the algebraic laws for the dot product, and using it to prove geometric results.

Vectors can be added and scaled, but so far there is no way to measure an angle with them. The dot product fills that gap. It takes two vectors and returns a single number that "knows" the angle between them, and it is the key to every perpendicularity proof in this course.

The angle between two vectors

The angle $\theta$ between $\underset{\sim}{u}$ and $\underset{\sim}{v}$ is measured with the two arrows drawn tail to tail, and always satisfies $0^\circ \le \theta \le 180^\circ$.

The definition

Dot product (scalar product)
$$\underset{\sim}{u} \cdot \underset{\sim}{v} = |\underset{\sim}{u}|\,|\underset{\sim}{v}|\cos\theta$$

The answer is a number, not a vector, which is why it is also called the scalar product. The sign of $\cos\theta$ controls the sign of the answer:

Angle $\theta$$\underset{\sim}{u} \cdot \underset{\sim}{v}$
acute, $0^\circ \le \theta \lt 90^\circ$positive
right angle, $\theta = 90^\circ$zero
obtuse, $90^\circ \lt \theta \le 180^\circ$negative
Example 1●

(a) $|\underset{\sim}{u}| = 4$, $|\underset{\sim}{v}| = 5$ and the angle between them is $120^\circ$. Find $\underset{\sim}{u} \cdot \underset{\sim}{v}$. (b) In equilateral triangle $ABC$ with sides $6$, find $\overrightarrow{AB} \cdot \overrightarrow{AC}$ and $\overrightarrow{AB} \cdot \overrightarrow{BC}$.

(a) $4 \times 5 \times \cos120^\circ = 20 \times \left(-\tfrac12\right) = -10$
cos 120° = −1/2.
(b) $\overrightarrow{AB} \cdot \overrightarrow{AC} = 6 \times 6 \times \cos60^\circ = 18$
AB and AC both start at A, so the angle is the 60° of the triangle.
$\overrightarrow{AB} \cdot \overrightarrow{BC} = 36\cos120^\circ = -18$
AB and BC are head to tail. Tail to tail, the angle is 120°.

The algebra of dot products

Dot products expand just like ordinary brackets. These laws all follow from the definition (the distributive law takes a projection diagram to prove):

  • $\underset{\sim}{u} \cdot \underset{\sim}{v} = \underset{\sim}{v} \cdot \underset{\sim}{u}$
  • $\underset{\sim}{u} \cdot (\underset{\sim}{v} + \underset{\sim}{w}) = \underset{\sim}{u} \cdot \underset{\sim}{v} + \underset{\sim}{u} \cdot \underset{\sim}{w}$
  • $(\lambda\underset{\sim}{u}) \cdot \underset{\sim}{v} = \lambda(\underset{\sim}{u} \cdot \underset{\sim}{v})$

Combined with $\underset{\sim}{u} \cdot \underset{\sim}{u} = |\underset{\sim}{u}|^2$, they give a vector version of a perfect square:

Length of a sum or difference
$$|\underset{\sim}{a} \pm \underset{\sim}{b}|^2 = |\underset{\sim}{a}|^2 \pm 2\,\underset{\sim}{a} \cdot \underset{\sim}{b} + |\underset{\sim}{b}|^2$$
Example 2●●

$|\underset{\sim}{a}| = 3$, $|\underset{\sim}{b}| = 2$ and $\underset{\sim}{a} \cdot \underset{\sim}{b} = 1$. Find $(\underset{\sim}{a} + 2\underset{\sim}{b}) \cdot (\underset{\sim}{a} - \underset{\sim}{b})$.

$= \underset{\sim}{a} \cdot \underset{\sim}{a} - \underset{\sim}{a} \cdot \underset{\sim}{b} + 2\underset{\sim}{b} \cdot \underset{\sim}{a} - 2\underset{\sim}{b} \cdot \underset{\sim}{b}$
Expand like (x + 2y)(x − y): four products.
$= 9 + \underset{\sim}{a} \cdot \underset{\sim}{b} - 2 \times 4 = 9 + 1 - 8 = 2$
b · a = a · b, and a · a, b · b are the squared lengths.

Geometry proofs

To prove two lines are perpendicular, write each as a vector and show their dot product is zero. Equal lengths turn into equal dot products: $|\underset{\sim}{a}| = |\underset{\sim}{b}|$ means $\underset{\sim}{a} \cdot \underset{\sim}{a} = \underset{\sim}{b} \cdot \underset{\sim}{b}$.

Example 3: the diagonals of a rhombus●●●

$OABC$ is a rhombus with $\overrightarrow{OA} = \underset{\sim}{a}$ and $\overrightarrow{OC} = \underset{\sim}{c}$. Prove its diagonals are perpendicular.

$\overrightarrow{OB} = \underset{\sim}{a} + \underset{\sim}{c}$ and $\overrightarrow{AC} = \underset{\sim}{c} - \underset{\sim}{a}$.
From 2A, the diagonals of a parallelogram are a + c and c − a.
$\overrightarrow{OB} \cdot \overrightarrow{AC} = (\underset{\sim}{c} + \underset{\sim}{a}) \cdot (\underset{\sim}{c} - \underset{\sim}{a}) = |\underset{\sim}{c}|^2 - |\underset{\sim}{a}|^2$
Expand. The middle terms a · c and −c · a cancel, just like the difference of squares.
$= 0$, so the diagonals are perpendicular.
A rhombus has all sides equal, so |a| = |c|.

Your turn

$AB$ is a diameter of a circle with centre $O$, and $P$ is any other point on the circle. Let $\overrightarrow{OA} = \underset{\sim}{a}$ and $\overrightarrow{OP} = \underset{\sim}{p}$. Prove that $\angle APB = 90^\circ$.

Show the working

Since $AB$ is a diameter, $\overrightarrow{OB} = -\underset{\sim}{a}$. Then $\overrightarrow{PA} = \underset{\sim}{a} - \underset{\sim}{p}$ and $\overrightarrow{PB} = -\underset{\sim}{a} - \underset{\sim}{p}$.

$\overrightarrow{PA} \cdot \overrightarrow{PB} = (\underset{\sim}{a} - \underset{\sim}{p}) \cdot (-\underset{\sim}{a} - \underset{\sim}{p}) = -|\underset{\sim}{a}|^2 - \underset{\sim}{a} \cdot \underset{\sim}{p} + \underset{\sim}{p} \cdot \underset{\sim}{a} + |\underset{\sim}{p}|^2 = |\underset{\sim}{p}|^2 - |\underset{\sim}{a}|^2$.

Both are radii, so $|\underset{\sim}{p}| = |\underset{\sim}{a}|$ and the dot product is $0$. So $PA \perp PB$, and $\angle APB = 90^\circ$.

Flashcards
Definition of $underset{sim}{u} cdot underset{sim}{v}$
$|\underset{\sim}{u}|\,|\underset{\sim}{v}|\cos\theta$, with the vectors tail to tail.
Test for perpendicular
$\underset{\sim}{u} \cdot \underset{\sim}{v} = 0$ (non-zero vectors)
$underset{sim}{u} cdot underset{sim}{u}$
$|\underset{\sim}{u}|^2$
$|underset{sim}{a} + underset{sim}{b}|^2$
$|\underset{\sim}{a}|^2 + 2\,\underset{\sim}{a} \cdot \underset{\sim}{b} + |\underset{\sim}{b}|^2$
Practice
  1. $|\underset{\sim}{u}| = 3$, $|\underset{\sim}{v}| = 8$ and the angle between them is $60^\circ$. Find $\underset{\sim}{u} \cdot \underset{\sim}{v}$.

  2. The angle between two non-zero vectors is obtuse. Their dot product is:

  3. $|\underset{\sim}{u}| = 5$. Find $\underset{\sim}{u} \cdot \underset{\sim}{u}$.

  4. $\underset{\sim}{u} \cdot \underset{\sim}{v} = -6$, $|\underset{\sim}{u}| = 2$ and $|\underset{\sim}{v}| = 6$. Find the angle between them, in degrees.

  5. $ABC$ is equilateral with side $4$. Then $\overrightarrow{AB} \cdot \overrightarrow{BC} =$

  6. $|\underset{\sim}{a}| = 4$, $|\underset{\sim}{b}| = 1$ and $\underset{\sim}{a} \cdot \underset{\sim}{b} = -2$. Find $(\underset{\sim}{a} + 2\underset{\sim}{b}) \cdot (\underset{\sim}{a} - \underset{\sim}{b})$.

  7. $|\underset{\sim}{a}| = 3$, $|\underset{\sim}{b}| = 5$ and $\underset{\sim}{a} \cdot \underset{\sim}{b} = 4$. Find $|\underset{\sim}{a} + \underset{\sim}{b}|^2$.

  8. Which statement about the dot product is false?

  9. Exam style: $|\underset{\sim}{a}| = |\underset{\sim}{b}| = 4$ and $|\underset{\sim}{a} - \underset{\sim}{b}| = 4$. Find $\underset{\sim}{a} \cdot \underset{\sim}{b}$.

  10. Exam style: $|\underset{\sim}{a}| = 2$, $|\underset{\sim}{b}| = 3$ and $|\underset{\sim}{a} + \underset{\sim}{b}| = \sqrt{19}$. Find the angle between $\underset{\sim}{a}$ and $\underset{\sim}{b}$, in degrees.

Formula sheet