18.4 Perpendicularity and the angle between vectors — Learn
Prerequisites: Section 18.3 — the dot product and the angle formula.
Objectives: test two vectors for perpendicularity; find the angle between two vectors; find a vector perpendicular to a given one.
By the end of this section you can decide whether two directions meet at a right angle, and measure the angle between any two directions.
The perpendicularity test
Two non-zero vectors are perpendicular when the angle between them is . At that angle , so the angle formula gives .
Perpendicularity test. Two non-zero vectors are perpendicular exactly when their dot product is zero.
This turns a question about a picture into a calculation. To test whether two directions meet at a right angle, work out their dot product and see whether it is zero.
Example 1. Show that and are perpendicular.
The dot product is zero, so the two vectors are perpendicular.
Finding the angle
Rearranging the angle formula gives the angle itself:
The angle between two vectors. For non-zero vectors and ,
Then of that value, between and .
The value of always lies between and , because it is a cosine. If your value falls outside that range, the arithmetic has gone wrong.
Example 2. Find the angle between and .
The dot product is . The lengths are and . So
and .
Example 3. Find the angle between and , to one decimal place.
The dot product is . The lengths are and . So
The positive cosine tells you the angle is acute, which fits the small answer.
Predict, then test. Set the two vectors so that the angle in the readout is exactly degrees. Write down the four components, then work out the dot product on paper and check that it is zero. Now change one component and predict whether the angle becomes acute or obtuse. Test it, and write down how the sign of the dot product matches your prediction.
Perpendicular vectors in the plane
In two dimensions there is a quick way to write down a perpendicular vector. Swap the two components and change the sign of one of them.
For , both and are perpendicular to it. Check:
Example 4. Find a vector perpendicular to .
Swap and change one sign: . Check the dot product:
Progress check
Back to the chapter problem. The drone's two legs are km and km, and Section 18.3 showed that .
Say what that tells you about the angle at the drone's first stop. Then find the angle between the first leg and the displacement from the depot, which is km. Keep the angle: the Review uses it.
You should now be able to
- test two vectors for perpendicularity with the dot product;
- find the angle between two vectors, using exact values where they are special;
- write down a vector perpendicular to a given one;
- explain why the dot product is zero at a right angle;
- check that a calculated cosine lies between and .