18.5 Vectors in three dimensions — Learn
Prerequisites: Sections 18.1 to 18.4 — columns, length, the dot product and angles.
Objectives: write a three-dimensional vector; find its length; add vectors and find dot products in three dimensions; test for perpendicularity and find an angle.
By the end of this section you can do everything from the earlier sections with a third component, and you can see that nothing new has to be learned.
A third component
Real quantities move in space, not on a flat page. A drone can rise as well as travel across and up a map. A third component, measured along the direction, records the height.
The numbers , and are the three components. The vectors , and are the unit vectors along the three perpendicular axes. Every rule from the plane carries over, with one more component to carry.
Length in three dimensions
The length formula squares every component and adds. With three components, add three squares.
Length of a three-dimensional vector.
This is Pythagoras' theorem used twice: once across the base, and again with the height. The two horizontal components give , and that length and the height form a second right triangle.
Example 1. Find the length of .
Example 2. Find the distance from to .
First find the displacement:
Then its length:
The answer is not a whole number, so keep it as .
Adding and scaling in three dimensions
Addition, subtraction and scalar multiplication work component by component, exactly as in the plane. There is one more component to handle.
Example 3. Add and .
The middle component cancels, so the answer has no term.
The dot product in three dimensions
The dot product multiplies matching components and adds. With three components there are three products.
The dot product in three dimensions. For and ,
All the properties from Section 18.3 still hold, including and the angle formula .
Example 4. Work out .
Perpendicularity and angles in three dimensions
The tests are unchanged. Two vectors are perpendicular when their dot product is zero, and the angle between them is found from
Example 5. Show that and are perpendicular.
The dot product is zero, so the vectors meet at a right angle.
Example 6. Find the angle between and .
The dot product is . The lengths are and . So
Progress check
Back to the chapter problem, now in three dimensions. Suppose the drone's first leg is km and its second is km.
Find and the length of the return leg. Then work out . The dot product is no longer zero, so the route is no longer right-angled in space. Say whether the angle between the two legs is now acute or obtuse, and give the reason from the sign of the dot product.
You should now be able to
- write a three-dimensional vector and find its length;
- add, subtract and scale three-dimensional vectors;
- work out a dot product with three components;
- test three-dimensional vectors for perpendicularity;
- find the angle between two three-dimensional vectors;
- explain why the length formula squares all three components.