Mathematics
The dot product
Multiply two vectors and get a single number back. That number tells you the angle between them.
What you need first
You can add , and that is easy to picture: hang two arrows one after the other. But how do you multiply two arrows? The answer is surprising: the result is not an arrow at all, but a single number. That is why the calculation is called the scalar product, because scalar is simply the word for an ordinary number without direction.
The calculation itself
The calculation is surprisingly simple: multiply the values, multiply the values and add the two. For and that gives . Done. No arrow, no magnitude, just the number 10. For vectors in space you simply add a third term.
Zero means perpendicular
Now comes the reason this calculation is so useful. Take , an arrow to the right, and , an arrow upwards. The dot product is . That is no accident: the dot product is zero exactly when the two vectors are perpendicular to each other. So you have a right-angle test that needs no drawing and no protractor.
The angle in between
Perpendicular is only the special case. In general the dot product is linked to the angle: . Rearranged for this gives you the angle between any two vectors without drawing anything. And because , the rule from before drops out automatically.
The sign alone already tells you something, before you calculate anything. If the dot product is positive, the two vectors roughly point the same way and the angle is less than 90°. If it is negative, they point away from each other and the angle is more than 90°. If it is 0, they are exactly perpendicular.
Exercises
0 of 6 solvedTime to try it yourself. You can't break anything, every attempt counts.
What is the result of a dot product?
Work out the dot product of and .
Which vector is perpendicular to ?
If the dot product of two vectors is 0, then they are … to each other.
How long is the vector ?
Match each dot product to what it says about the angle.