M5.6.3 Chapter 3
Vectors in 3D
How do you describe a point and a move in a room, where there is up and down as well?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Use i, j and k to write vectors in 3D
- Find the distance between two points in 3D
A point on a page needs two numbers. A point in a room needs three. Stand in a corner of a room. The floor meets two walls in two lines, and the two walls meet in a third line that goes up. These three lines are the axes. We call them x, y and z, with z pointing up. A point has three coordinates (x, y, z): how far along the x axis, how far along the y axis and how high.
The picture shows depth by drawing the x axis slanted and shorter. On paper you cannot show all three directions at true size, so measure with the numbers, never with a ruler. The three axes stand at right angles to each other. They are named so that, looking down from above, the x axis turns anticlockwise onto the y axis in the shortest way, a right handed set.
A vector in space has three components, (x, y, z): the move along x, along y and up. The unit vectors along the axes are i = (1, 0, 0), j = (0, 1, 0) and k = (0, 0, 1). Each has length 1. Every vector is a sum of multiples of them: (x, y, z) = xi + yj + zk.
So the position vector of the point (3, 4, 2) is OP = 3i + 4j + 2k. The word "position vector" means the same as in two dimensions: the move from the origin to the point.
Adding, subtracting and multiplying by a number work part by part, exactly as in the plane. The rules of the last two chapters still hold. AB = b − a. The midpoint has position vector ½(a + b). Two vectors are parallel when one is a multiple of the other.
Worked example
Find 2a − b when a = 3i − 2j + 4k and b = i + 5j − 3k.
- Work on each of the three parts, one at a time.
- The i part: 2 × 3 − 1 = 6 − 1 = 5.
- The j part: 2 × (−2) − 5 = −4 − 5 = −9.
- The k part: 2 × 4 − (−3) = 8 + 3 = 11.
- So 2a − b = 5i − 9j + 11k.
Answer: 5i − 9j + 11k
The length of a vector in space comes from Pythagoras used twice. Take the vector OP = (x, y, z). First go along the floor to the point below P. That path is the long side of a right angled triangle with sides x and y, so its length d has d² = x² + y². Then go up z. The vector OP is the long side of a second right angled triangle with sides d and z.
Put the two steps together: |OP|² = d² + z² = x² + y² + z². So the length of a vector in space is |(x, y, z)| = √(x² + y² + z²). For a distance from A to B, find the vector AB first, then its length.
Worked example
Find |OP| for P = (2, 3, 6), and find the distance between A(1, −2, 3) and B(5, 2, 5).
- |OP|² = 2² + 3² + 6² = 4 + 9 + 36 = 49.
- So |OP| = √49 = 7.
- For the distance, AB = b − a = (5 − 1, 2 − (−2), 5 − 3) = (4, 4, 2).
- |AB|² = 4² + 4² + 2² = 36.
- So the distance from A to B is √36 = 6.
Answer: |OP| = 7 and the distance AB is 6.
Dividing a line works the same way. The point P that divides AB in the ratio m : n has OP = a + m/(m + n)(b − a). Only the number of parts in each vector changes: there are three, not two.
Worked example
A is the point (2, −1, 3) and B is the point (11, 5, −3). P divides AB in the ratio 1 : 2. Find the position vector of P.
- AB = (11 − 2, 5 − (−1), −3 − 3) = (9, 6, −6).
- The total number of parts is 1 + 2 = 3, so AP = 1/3 of AB.
- AP = 1/3 × (9, 6, −6) = (3, 2, −2).
- OP = OA + AP = (2, −1, 3) + (3, 2, −2) = (5, 1, 1).
Answer: (5, 1, 1)
See it three ways
With things
Stand in the corner of a room. Walk 3 m along one wall, 4 m along the other wall, and then climb a ladder 2 m up. The place where you stand is the point (3, 4, 2).
As a picture
In words
A point in space has three coordinates. The vector from the origin to it has three parts, written with i, j and k.
In symbols
P = (3, 4, 2), OP = 3i + 4j + 2k, |OP| = √(3² + 4² + 2²) ≈ 5.39.
Try it
Measure the diagonal of a box
You need: a box with square corners, such as a shoe box or a tea box, a ruler, a piece of string.
- Measure the length, the width and the height of the box inside. Write them in centimetres.
- Work out √(length² + width² + height²) with a calculator.
- Lay the string from one inside bottom corner to the opposite top corner. Pinch the string where it reaches the corner.
- Lay the string along the ruler and read its length. Compare it with your answer.
What you will see: The string agrees with the calculation, to within a centimetre. For a box 8 cm by 12 cm by 24 cm, the diagonal is 28 cm.
A wrong idea many people have
The length of the vector (x, y, z) is x + y + z.
Why it feels right: You add the three moves to get the whole distance walked, and in one dimension that is right.
The test that breaks it: Take (2, 3, 6). Then x + y + z = 11. But a straight line from O to P is the diagonal of a box, and √(2² + 3² + 6²) = 7.
What is true: The length is the straight line from the start to the end, so it is the long side of a triangle. Square each part, add the squares, and take the square root.
A wrong idea many people have
In a picture of three axes, a ruler gives the true length along every axis.
Why it feels right: In a drawing on squared paper a ruler gives a true length. A picture of space looks as if it should do the same.
The test that breaks it: Look at the picture of the axes above. One unit along y is drawn 1 unit long. One unit along x is drawn about 0.35 across and 0.35 down, so its drawn length is only half a unit.
What is true: A picture of space keeps parallel lines parallel, and keeps lengths only along y and z. The angles at a corner are not true either. Always work from the coordinates and use the formulas, never a ruler on the picture.
Key words
- axes
- the three lines x, y and z that meet at the origin at right angles.
- coordinates
- the three numbers (x, y, z) that say where a point is.
- unit vectors
- i, j and k, the vectors of length 1 along the x, y and z axes.
- right handed
- the usual way to name the axes, with x turning onto y anticlockwise when you look down from the z axis.
Back to your guess
The answer is B: The longest straight rod that fits inside a box 3 m by 4 m by 12 m is 13 m long.
The floor of the box has a diagonal of √(3² + 4²) = 5 m. The rod then rises 12 m above the end of that diagonal. So it is the long side of a right angled triangle with sides 5 m and 12 m. Its length is √(25 + 144) = 13 m.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
Write the vector (2, −3, 5) using i, j and k.
See the answer
2i − 3j + 5k
The first number goes with i, the second with j and the third with k: 2i, −3j and 5k. So the vector is 2i − 3j + 5k.
- If you chose B: You lost the minus sign on the j part. The middle number is −3, so the j part is −3j. Read this page again.
- If you chose C: You swapped the j and k parts. The middle number goes with j and the last with k. Read this page again.
- If you chose D: You changed every sign, which makes the vector point the opposite way. Read this page again.
What is |v| for v = (1, 4, 8)?
See the answer
9
|v| = √(1² + 4² + 8²) = √(1 + 16 + 64) = √81 = 9.
- If you chose A: You added the three parts. The length is the diagonal of a box, so use √(x² + y² + z²). Read this page again.
- If you chose B: You added the squares but did not take the square root. That is |v|², not |v|. Read this page again.
- If you chose C: You left out the z part. The length uses all three parts: √(x² + y² + z²). Read this page again.
What is the distance between A(1, −3, 4) and B(3, 7, 15)?
See the answer
15
AB = (2, 10, 11). |AB| = √(2² + 10² + 11²) = √225 = 15.
- If you chose A: You added the three differences. The distance is the diagonal, so square the differences, add them and take the square root. Read this page again.
- If you chose B: You added the position vectors. For a distance, subtract them to get AB first. Read this page again.
A box has edges 2 cm, 6 cm and 9 cm. How long is the diagonal from O to P?
See the answer
11 cm
OP = √(2² + 6² + 9²) = √(4 + 36 + 81) = √121 = 11 cm.
- If you chose A: You added the three edges. The diagonal cuts across the box, so it is shorter than that. Read this page again.
- If you chose C: You did not take the square root. The sum of the squares is the diagonal squared. Read this page again.
- If you chose D: You found the diagonal of the base only. The diagonal of the box also rises by the height. Read this page again.
From an earlier chapter
M is the midpoint of AB, where A is (2, −4) and B is (8, 6). What is the position vector of M?
Find the length of the vector (4, 5, 20).
See the answer
21
√(4² + 5² + 20²) = √(16 + 25 + 400) = √441 = 21.
A is the point (1, 2, −1). B is (9, 11, 11). How far is A from B?
See the answer
17
AB = (8, 9, 12), so |AB| = √(64 + 81 + 144) = √289 = 17.
a = (2, −1, 3) and b = (1, 4, −2). Find a + 2b as (i part, j part, k part).
See the answer
(4, 7, −1)
2b = (2, 8, −4). Then a + 2b = (2 + 2, −1 + 8, 3 + (−4)) = (4, 7, −1).
A is the point (−1, 4, 2) and B is the point (8, −2, 11). P divides AB in the ratio 2 : 1. Give the position vector of P as (x, y, z).
See the answer
(5, 0, 8)
AB = (9, −6, 9). AP = 2/3 of it = (6, −4, 6). Then OP = (−1, 4, 2) + (6, −4, 6) = (5, 0, 8).
a = 2i − 4j + 6k and b = −3i + 6j − 9k. What is true about a and b?
See the answer
They are parallel and point in opposite directions.
Each part of b is −1.5 times the matching part of a, so b = −1.5a. A negative multiple points the other way.
- If you chose A: Different numbers do not rule out parallel. Check whether every part of b is the same multiple of the matching part of a. Read this page again.
- If you chose B: They are parallel, but the multiple is negative, so they point in opposite directions. Read this page again.
Keep it
Copy this into your exercise book.
A point (x, y, z). i, j, k are the unit vectors. |(x, y, z)| = √(x² + y² + z²). Distance AB = |b − a|. Everything from the plane carries over with a third part.
Draw: A box with corner O and opposite corner P, and the diagonal OP. Write √(x² + y² + z²) beside it.