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.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

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.

Three axes meet at the origin O. The z axis points up the page, the y axis points to the right and the x axis points down and to the left, towards the reader. The point P at (3, 4, 2) is the far corner of a box with one corner at O. Three dashed steps from O to P along the box edges are labelled 3, 4 and 2. Its edges run 3 along x, 4 along y and 2 up. The axes are named x, y and z.xyz342PO
The point P = (3, 4, 2) is 3 along x, 4 along y and 2 up. The x axis is drawn at half its true length, the usual way to draw space on paper. Read a point by following the dashed box edges back to the axes, not straight across.

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.

Three axes named x, y and z meet at the origin. Three short bold arrows start at the origin, one along each axis. They are named i, j and k. The arrow i points along x, the arrow j along y and the arrow k up along z.xyzijk
The unit vectors i, j and k each have length 1. i points along x, j along y and k up along z.

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.

  1. Work on each of the three parts, one at a time.
  2. The i part: 2 × 3 − 1 = 6 − 1 = 5.
  3. The j part: 2 × (−2) − 5 = −4 − 5 = −9.
  4. The k part: 2 × 4 − (−3) = 8 + 3 = 11.
  5. 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.

Three axes named x, y and z, and a box with one corner at the origin O and the opposite corner at P, (2, 3, 6). A solid arrow named OP joins O to P. Three dashed arrows go along the box edges from O to P, labelled 2, 3 and 6.xyzOP236P
The three edges 2, 3 and 6 lead from O to P. The diagonal OP is √(2² + 3² + 6²).

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).

  1. |OP|² = 2² + 3² + 6² = 4 + 9 + 36 = 49.
  2. So |OP| = √49 = 7.
  3. For the distance, AB = b − a = (5 − 1, 2 − (−2), 5 − 3) = (4, 4, 2).
  4. |AB|² = 4² + 4² + 2² = 36.
  5. So the distance from A to B is √36 = 6.

Answer: |OP| = 7 and the distance AB is 6.

A box with the points A and B at opposite corners, and a solid arrow named AB joining them. The box has edges along the three axes. Three dashed arrows from A to B run along the edges and are labelled 4, 4 and 2.AB442AB
The move from A to B is made of three right angled steps: 4, 4 and 2. The distance is √(4² + 4² + 2²) = 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.

  1. AB = (11 − 2, 5 − (−1), −3 − 3) = (9, 6, −6).
  2. The total number of parts is 1 + 2 = 3, so AP = 1/3 of AB.
  3. AP = 1/3 × (9, 6, −6) = (3, 2, −2).
  4. 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

Three axes named x, y and z, and a box with one corner at the origin O and the opposite corner at the point P, (3, 4, 2). The edges of the box run 3 along x, 4 along y and 2 up. Three dashed steps from O to P along the edges are labelled 3, 4 and 2.xyz342PO

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.

  1. Measure the length, the width and the height of the box inside. Write them in centimetres.
  2. Work out √(length² + width² + height²) with a calculator.
  3. Lay the string from one inside bottom corner to the opposite top corner. Pinch the string where it reaches the corner.
  4. 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.

If you cannot try it, this is what happens.
A table with the heads edges in cm and diagonal. The row reads 8, 12, 24 and 28.edges in cmdiagonal8, 12, 2428

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.

  1. Write the vector (2, −3, 5) using i, j and k.

    Tap your answer.
    1. Yes, that is right. 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.

    2. Not this one. You lost the minus sign on the j part. The middle number is −3, so the j part is −3j. Read this page again. Try another.

    3. Not this one. You swapped the j and k parts. The middle number goes with j and the last with k. Read this page again. Try another.

    4. Not this one. You changed every sign, which makes the vector point the opposite way. Read this page again. Try another.

    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.
  2. What is |v| for v = (1, 4, 8)?

    Tap your answer.
    1. Not this one. You added the three parts. The length is the diagonal of a box, so use √(x² + y² + z²). Read this page again. Try another.

    2. Not this one. You added the squares but did not take the square root. That is |v|², not |v|. Read this page again. Try another.

    3. Not this one. You left out the z part. The length uses all three parts: √(x² + y² + z²). Read this page again. Try another.

    4. Yes, that is right. |v| = √(1² + 4² + 8²) = √(1 + 16 + 64) = √81 = 9.

    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.
  3. What is the distance between A(1, −3, 4) and B(3, 7, 15)?

    Tap your answer.
    1. Not this one. 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. Try another.

    2. Not this one. You added the position vectors. For a distance, subtract them to get AB first. Read this page again. Try another.

    3. Yes, that is right. AB = (2, 10, 11). |AB| = √(2² + 10² + 11²) = √225 = 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.
  4. A box has edges 2 cm, 6 cm and 9 cm. How long is the diagonal from O to P?

    Three axes named x, y and z, and a box with one corner at the origin O and the opposite corner at P. A solid arrow named OP joins O to P. The edges of the box are 2 cm along x, 6 cm along y and 9 cm up.xyzOPPO
    Tap your answer.
    1. Not this one. You added the three edges. The diagonal cuts across the box, so it is shorter than that. Read this page again. Try another.

    2. Yes, that is right. OP = √(2² + 6² + 9²) = √(4 + 36 + 81) = √121 = 11 cm.

    3. Not this one. You did not take the square root. The sum of the squares is the diagonal squared. Read this page again. Try another.

    4. Not this one. You found the diagonal of the base only. The diagonal of the box also rises by the height. Read this page again. Try another.

    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.
  5. 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?

    Tap your answer.
    1. Not this one. That is OA + OB. The midpoint is half of the sum. Go to M5.6.2. Try another.

    2. Yes, that is right. OM = ½(a + b) = ½(10, 2) = (5, 1).

    3. Not this one. That is half of AB, which is the move from A to M. The position vector of M adds it to a. Go to M5.6.2. Try another.

    See the answer

    (5, 1)

    OM = ½(a + b) = ½(10, 2) = (5, 1).

    • If you chose A: That is OA + OB. The midpoint is half of the sum. Go to M5.6.2.
    • If you chose C: That is half of AB, which is the move from A to M. The position vector of M adds it to a. Go to M5.6.2.
  6. Find the length of the vector (4, 5, 20).

    See the answer

    21

    √(4² + 5² + 20²) = √(16 + 25 + 400) = √441 = 21.

  7. 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.

  8. 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).

  9. 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).

  10. a = 2i − 4j + 6k and b = −3i + 6j − 9k. What is true about a and b?

    Tap your answer.
    1. Not this one. 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. Try another.

    2. Not this one. They are parallel, but the multiple is negative, so they point in opposite directions. Read this page again. Try another.

    3. Yes, that is right. Each part of b is −1.5 times the matching part of a, so b = −1.5a. A negative multiple points the other way.

    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.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (864 KB). It opens on any phone.