Prerequisites: Section 18.2 — adding vectors and multiplying by a scalar.
Objectives: work out the dot product of two vectors; use its properties; connect it to
length and to the angle between the vectors.
By the end of this section you can multiply two vectors to get a single number, and say
what that number means.
Multiplying two vectors
There are two ways to multiply vectors. One of them, the dot product, takes two
vectors and returns a single number. The number is a scalar, not a vector.
The dot product. For and
,
Multiply the matching components, then add the two products. The answer is a single
number.
Example 1. Work out .
Example 2. Work out .
A negative answer is allowed. The sign carries information, which Section 18.4 uses.
Properties of the dot product
The dot product behaves in the ways you would hope:
(the order does not matter);
;
for a scalar ;
.
The last one is worth a moment. A vector dotted with itself gives
, which is exactly the square of its length. So the dot product knows about
length.
Example 3. For ,
, and , so
. The two agree.
The dot product and the angle
The dot product carries the angle between the two vectors as well as their lengths.
The angle formula. If is the angle between the non-zero vectors
and , then
Why it is true. Take the two vectors from a common point, and join their ends. The
triangle has sides , and , and the angle
between and is .
The cosine rule applied to that triangle gives
Now expand the left side using the properties above. Because
is a vector, its squared length is
, which multiplies out to
The two expressions for are equal, so
Cancel the common terms and divide by :
This is the bridge between the algebra of components and the geometry of angles. It is
why the dot product can test for a right angle, and why it can find an angle.
The sign of the dot product
Because and are positive, the sign of the dot product is the
sign of .
If , then , so the angle is acute.
If , then , so the angle is a right
angle.
If , then , so the angle is obtuse.
So the sign of one number tells you the shape of the angle, before you find it.
Progress check
Back to the chapter problem. The drone's two legs are
km and
km.
Work out . The answer is a single number, and its sign tells
you the shape of the angle between the two legs. Write down what the sign says, then keep
the number: Section 18.4 turns it into the angle.
You should now be able to
work out the dot product of two vectors;
use the commutative, distributive and length properties;
explain why ;
state the angle formula and explain where it comes from;
use the sign of the dot product to say whether an angle is acute, right or obtuse.