Lemonmath
Tiếng Việt

Coordinate system in space

Lesson 2.2 · 22 min read · Updated

A classroom is 88 m long, 66 m wide and 33 m high. A lamp hangs 22 m from the front wall, 33 m from the left wall and 2.52.5 m above the floor. A smoke sensor sits in the opposite floor corner, 88 m and 66 m from those two walls. How far is the lamp from the sensor?

In the plane, two numbers are enough to fix the position of a point. In space we need three, and those three numbers let us find distances without drawing anything.

The coordinate system OxyzOxyz

Exploring: three numbers for one position

Take the floor corner between the front wall and the left wall as the origin OO. From OO, the three lines where the floor and the two walls meet give three pairwise perpendicular directions: along the left wall, along the front wall, and straight up. To reach the lamp we go 22 m in the first direction, 33 m in the second, then 2.52.5 m up. The triple (2,3,2.5)(2, 3, 2.5) fixes exactly one position in the room, and the sensor corresponds to (8,6,0)(8, 6, 0).

If i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k} are the vectors of length 11 m in those three directions, then by the parallelepiped rule (previous lesson) the vector from OO to the lamp is 2i⃗+3j⃗+2.5k⃗2\vec{i}+3\vec{j}+2.5\vec{k}.

Coordinates of a point and of a vector

So the coordinates of the point MM are exactly the coordinates of the vector OM→\overrightarrow{OM}. In particular i⃗=(1,0,0)\vec{i}=(1, 0, 0), j⃗=(0,1,0)\vec{j}=(0, 1, 0), k⃗=(0,0,1)\vec{k}=(0, 0, 1) and 0⃗=(0,0,0)\vec{0}=(0, 0, 0).

OxyzABCO'A'B'C'
The cuboid OABC.O′A′B′C′OABC.O'A'B'C' in the system OxyzOxyz

The first example reads coordinates from the cuboid above, whose edges run along the three axes.

Points on the axes and the coordinate planes

From the definition, we can read the position of a point from the coordinates that are 00:

Position of MM Condition
on the axis OxOx / OyOy / OzOz y=z=0y=z=0 / z=x=0z=x=0 / x=y=0x=y=0
in the plane (Oxy)(Oxy) / (Oyz)(Oyz) / (Ozx)(Ozx) z=0z=0 / x=0x=0 / y=0y=0

The orthogonal projection of M(x,y,z)M(x, y, z) onto a coordinate plane is found by setting the remaining coordinate to 00; onto an axis, keep only that axis's coordinate. The distance from MM to the plane (Oxy)(Oxy) is ∣z∣|z|, because MM is exactly ∣z∣|z| away from its projection (x,y,0)(x, y, 0).

Coordinates of the vector AB→\overrightarrow{AB}

Since AB→=OB→−OA→\overrightarrow{AB}=\overrightarrow{OB}-\overrightarrow{OA}, we subtract component by component along i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k}. For A(xA,yA,zA)A(x_A, y_A, z_A) and B(xB,yB,zB)B(x_B, y_B, z_B):

AB→=(xB−xA, yB−yA, zB−zA).\overrightarrow{AB}=(x_B-x_A,\ y_B-y_A,\ z_B-z_A).

The familiar rule again: end point minus start point. Two vectors are equal if and only if their three corresponding coordinates are equal.

Distance, midpoint and centroid

Write AB→=ai⃗+bj⃗+ck⃗\overrightarrow{AB}=a\vec{i}+b\vec{j}+c\vec{k} with a=xB−xAa=x_B-x_A, b=yB−yAb=y_B-y_A, c=zB−zAc=z_B-z_A. When we square, the scalar products i⃗⋅j⃗\vec{i}\cdot\vec{j}, j⃗⋅k⃗\vec{j}\cdot\vec{k}, k⃗⋅i⃗\vec{k}\cdot\vec{i} are 00, so AB2=a2+b2+c2AB^2=a^2+b^2+c^2. This is also the diagonal of a cuboid with edges ∣a∣|a|, ∣b∣|b|, ∣c∣|c|.

The last two formulas come from OM→=12(OA→+OB→)\overrightarrow{OM}=\frac12(\overrightarrow{OA}+\overrightarrow{OB}) and OG→=13(OA→+OB→+OC→)\overrightarrow{OG}=\frac13(\overrightarrow{OA}+\overrightarrow{OB}+\overrightarrow{OC}): we take the mean of each coordinate, just as in the plane.

Now we answer the opening question.

Key terms

Summary

  • OxyzOxyz: three pairwise perpendicular axes with unit vectors i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k} of length 11, pairwise perpendicular.
  • M(x,y,z)  ⟺  OM→=xi⃗+yj⃗+zk⃗M(x, y, z)\iff\overrightarrow{OM}=x\vec{i}+y\vec{j}+z\vec{k}; a⃗=(x,y,z)  ⟺  a⃗=xi⃗+yj⃗+zk⃗\vec{a}=(x, y, z)\iff\vec{a}=x\vec{i}+y\vec{j}+z\vec{k}.
  • In (Oxy)(Oxy): z=0z=0; on OxOx: y=z=0y=z=0. The projection of (x,y,z)(x, y, z) onto (Oxy)(Oxy) is (x,y,0)(x, y, 0).
  • AB→=(xB−xA, yB−yA, zB−zA)\overrightarrow{AB}=(x_B-x_A,\ y_B-y_A,\ z_B-z_A); ABAB is the square root of the sum of three squares.
  • Midpoint, centroid: the mean of each coordinate.

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

a) Find the coordinates of the point MM given OM→=2i⃗−3j⃗+k⃗\overrightarrow{OM}=2\vec{i}-3\vec{j}+\vec{k}.

b) Find the coordinates of the vector a⃗=−i⃗+4k⃗\vec{a}=-\vec{i}+4\vec{k}.

What you need and how to start

What you need: OM→=xi⃗+yj⃗+zk⃗  ⟺  M(x,y,z)\overrightarrow{OM}=x\vec{i}+y\vec{j}+z\vec{k}\iff M(x, y, z); a missing component has coefficient 00.

Steps:

  1. Read off the coefficients of i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k} in turn.
  2. b) The coefficient of j⃗\vec{j} is 00.
Show solution

a) The coefficients are 22, −3-3, 11, so M(2,−3,1)M(2, -3, 1).

b) a⃗=−1⋅i⃗+0⋅j⃗+4k⃗\vec{a}=-1\cdot\vec{i}+0\cdot\vec{j}+4\vec{k}, so a⃗=(−1,0,4)\vec{a}=(-1, 0, 4).

Answer. a) M(2,−3,1)M(2, -3, 1); b) a⃗=(−1,0,4)\vec{a}=(-1, 0, 4).

Exercise 2

Let N(4,−1,3)N(4, -1, 3). Find the projections of NN onto the planes (Oxy)(Oxy), (Oyz)(Oyz), (Ozx)(Ozx) and onto the axis OyOy. Find the distance from NN to the plane (Ozx)(Ozx).

What you need and how to start

What you need: projection onto a coordinate plane: set the remaining coordinate to 00; the plane (Ozx)(Ozx) is y=0y=0.

Steps:

  1. Write the three projections onto the three planes.
  2. Onto the axis OyOy: keep only the y-coordinate.
  3. The distance to (Ozx)(Ozx) is ∣y∣|y|.
Show solution

(Oxy)(Oxy): (4,−1,0)(4, -1, 0); (Oyz)(Oyz): (0,−1,3)(0, -1, 3); (Ozx)(Ozx): (4,0,3)(4, 0, 3); axis OyOy: (0,−1,0)(0, -1, 0). The distance to (Ozx)(Ozx) is ∣−1∣=1|-1|=1.

Answer. (4,−1,0)(4, -1, 0), (0,−1,3)(0, -1, 3), (4,0,3)(4, 0, 3), (0,−1,0)(0, -1, 0); the distance is 11.

Exercise 3

Let A(2,−1,3)A(2, -1, 3) and B(−1,3,3)B(-1, 3, 3). Find the coordinates of AB→\overrightarrow{AB} and the length ABAB.

What you need and how to start

What you need: AB→=(xB−xA, yB−yA, zB−zA)\overrightarrow{AB}=(x_B-x_A,\ y_B-y_A,\ z_B-z_A); AB=a2+b2+c2AB=\sqrt{a^2+b^2+c^2}.

Steps:

  1. Subtract coordinate by coordinate.
  2. Add the three squares and take the square root.
Show solution

AB→=(−3,4,0),AB=9+16+0=5.\overrightarrow{AB}=(-3, 4, 0),\qquad AB=\sqrt{9+16+0}=5.

Answer. AB→=(−3,4,0)\overrightarrow{AB}=(-3, 4, 0); AB=5AB=5.

Exercise 4

Let A(2,1,−3)A(2, 1, -3), B(0,5,1)B(0, 5, 1), C(4,−3,5)C(4, -3, 5). Find the midpoint MM of ABAB and the centroid GG of triangle ABCABC.

What you need and how to start

What you need: midpoint and centroid: the mean of each coordinate.

Steps:

  1. Add each coordinate of AA and BB, then divide by 22.
  2. Add each coordinate of AA, BB, CC, then divide by 33.
Show solution

M(2+02, 1+52, −3+12)=M(1,3,−1),G(63, 33, 33)=G(2,1,1).M\left(\frac{2+0}{2},\ \frac{1+5}{2},\ \frac{-3+1}{2}\right)=M(1, 3, -1),\qquad G\left(\frac{6}{3},\ \frac{3}{3},\ \frac{3}{3}\right)=G(2, 1, 1).

Answer. M(1,3,−1)M(1, 3, -1); G(2,1,1)G(2, 1, 1).

Exercise 5

Let A(1,−2,3)A(1, -2, 3) and M(2,0,1)M(2, 0, 1). Find the point NN such that MM is the midpoint of ANAN.

What you need and how to start

What you need: MM is the midpoint of ANAN   ⟺  \iff xM=xA+xN2x_M=\dfrac{x_A+x_N}{2} (and likewise), that is xN=2xM−xAx_N=2x_M-x_A.

Steps:

  1. Double the coordinates of MM.
  2. Subtract the coordinates of AA.
Show solution

N(2⋅2−1, 2⋅0+2, 2⋅1−3)=N(3,2,−1).N(2\cdot2-1,\ 2\cdot0+2,\ 2\cdot1-3)=N(3, 2, -1). Check. The midpoint of A(1,−2,3)A(1, -2, 3) and N(3,2,−1)N(3, 2, -1) is (2,0,1)=M(2, 0, 1)=M.

Answer. N(3,2,−1)N(3, 2, -1).

Exercise 6

A control station is at the origin OO of a system OxyzOxyz (unit: metre; OxOx points east, OyOy north, OzOz up). A drone is flying at the point P(120,−50,60)P(120, -50, 60). How many metres is the drone from the station? (Round to the nearest whole number.)

What you need and how to start

What you need: OP=x2+y2+z2OP=\sqrt{x^2+y^2+z^2}.

Steps:

  1. Square the three coordinates and add them.
  2. Take the square root and round.
Show solution

OP=1202+(−50)2+602=14400+2500+3600=20500≈143.18.OP=\sqrt{120^2+(-50)^2+60^2}=\sqrt{14400+2500+3600}=\sqrt{20500}\approx143.18.

Answer. 143143.

Exercise 7

Let M(3,−4,12)M(3, -4, 12). Is each claim true or false?

a) The projection of MM onto the plane (Oxy)(Oxy) is (3,−4,0)(3, -4, 0).

b) The distance from MM to the plane (Oyz)(Oyz) is 44.

c) OM=13OM=13.

d) The distance from MM to the axis OxOx is 44.

What you need and how to start

What you need: the distance to (Oyz)(Oyz) is ∣x∣|x|; the distance to the axis OxOx is y2+z2\sqrt{y^2+z^2}.

Steps:

  1. Write the projection onto (Oxy)(Oxy).
  2. Find OMOM from the three coordinates.
  3. Decide which coordinates each distance uses.
Show solution

a) True. Keep xx, yy and set z=0z=0.

b) False. The distance to (Oyz)(Oyz) is ∣x∣=3|x|=3.

c) True. OM=9+16+144=169=13OM=\sqrt{9+16+144}=\sqrt{169}=13.

d) False. The projection onto OxOx is H(3,0,0)H(3, 0, 0), so MH=16+144=160=410MH=\sqrt{16+144}=\sqrt{160}=4\sqrt{10}.

Answer. a) True; b) False; c) True; d) False.

Exercise 8

The cube ABCD.A′B′C′D′ABCD.A'B'C'D' with edge 44 is placed in OxyzOxyz so that AA is at OO, B(4,0,0)B(4, 0, 0), D(0,4,0)D(0, 4, 0), A′(0,0,4)A'(0, 0, 4). Find the coordinates of C′C', of the centre II of the face A′B′C′D′A'B'C'D', and the length IBIB.

What you need and how to start

What you need: the parallelepiped rule AC′→=AB→+AD→+AA′→\overrightarrow{AC'}=\overrightarrow{AB}+\overrightarrow{AD}+\overrightarrow{AA'}; the centre of a square is the midpoint of a diagonal.

Steps:

  1. Add the three edge vectors to get C′C'.
  2. II is the midpoint of A′C′A'C'.
  3. Find IBIB with the distance formula.
Show solution

AC′→=(4,0,0)+(0,4,0)+(0,0,4)=(4,4,4)\overrightarrow{AC'}=(4, 0, 0)+(0, 4, 0)+(0, 0, 4)=(4, 4, 4), so C′(4,4,4)C'(4, 4, 4). The midpoint of A′(0,0,4)A'(0, 0, 4) and C′C' is I(2,2,4)I(2, 2, 4). Then IB=(4−2)2+(0−2)2+(0−4)2=24=26.IB=\sqrt{(4-2)^2+(0-2)^2+(0-4)^2}=\sqrt{24}=2\sqrt6.

Answer. C′(4,4,4)C'(4, 4, 4), I(2,2,4)I(2, 2, 4), IB=26≈4.90IB=2\sqrt6\approx4.90.

Exercise 9

(Revisiting Vectors in the coordinate plane.) In the plane OxyOxy, let A(1,2)A(1, 2) and B(4,6)B(4, 6).

a) Find ABAB with the grade-10 formula.

b) Regard AA, BB as the points A(1,2,0)A(1, 2, 0), B(4,6,0)B(4, 6, 0) of the plane (Oxy)(Oxy) in space. Lift BB straight up to B′(4,6,12)B'(4, 6, 12). Find AB′AB'.

What you need and how to start

What you need: AB=(xB−xA)2+(yB−yA)2AB=\sqrt{(x_B-x_A)^2+(y_B-y_A)^2} in the plane; in space there is an extra (zB−zA)2(z_B-z_A)^2.

Steps:

  1. a) Find the two coordinate differences.
  2. b) Add the height difference 1212 and notice that ABB′ABB' has a right angle at BB.
Show solution

a) AB=32+42=5AB=\sqrt{3^2+4^2}=5.

b) AB′→=(3,4,12)\overrightarrow{AB'}=(3, 4, 12), so AB′=9+16+144=13AB'=\sqrt{9+16+144}=13. This is exactly Pythagoras' theorem in triangle ABB′ABB' with the right angle at BB: 52+122=1325^2+12^2=13^2.

Answer. a) AB=5AB=5; b) AB′=13AB'=13.

Exercise 10 Challenge

Find the point MM on the axis OzOz that is equidistant from A(1,2,3)A(1, 2, 3) and B(−1,0,5)B(-1, 0, 5).

What you need and how to start

What you need: a point on OzOz has the form M(0,0,t)M(0, 0, t); MA=MB  ⟺  MA2=MB2MA=MB\iff MA^2=MB^2.

Steps:

  1. Write MA2MA^2 and MB2MB^2 in terms of tt.
  2. Set them equal; the t2t^2 terms cancel.
Show solution

MA2=1+4+(t−3)2=t2−6t+14,MB2=1+0+(t−5)2=t2−10t+26.MA^2=1+4+(t-3)^2=t^2-6t+14,\qquad MB^2=1+0+(t-5)^2=t^2-10t+26. t2−6t+14=t2−10t+26  ⟺  4t=12  ⟺  t=3.t^2-6t+14=t^2-10t+26\iff 4t=12\iff t=3. Check. MA=1+4+0=5MA=\sqrt{1+4+0}=\sqrt5 and MB=1+0+4=5MB=\sqrt{1+0+4}=\sqrt5.

Answer. M(0,0,3)M(0, 0, 3).

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. In the system OxyzOxyz, the point MM satisfies OM→=3i⃗−k⃗\overrightarrow{OM}=3\vec{i}-\vec{k}. The coordinates of MM are
Question 2. The orthogonal projection of the point A(2,−5,4)A(2, -5, 4) onto the plane (Oyz)(Oyz) is
Question 3. Let A(1,−2,3)A(1, -2, 3) and B(3,0,−1)B(3, 0, -1). The midpoint II of the segment ABAB is
Question 4. The distance from the point M(3,−4,6)M(3, -4, 6) to the axis OzOz is

Part II. True or false

Question 1. In the system OxyzOxyz, let A(1,2,−1)A(1, 2, -1), B(3,−2,3)B(3, -2, 3), C(−1,3,1)C(-1, 3, 1).
a) AB→=(2,−4,4)\overrightarrow{AB}=(2, -4, 4).
b) AB=6AB=6.
c) The centroid of triangle ABCABC is G(3,3,3)G(3, 3, 3).
d) The point DD that makes ABCDABCD a parallelogram is D(−3,7,−3)D(-3, 7, -3).

Part III. Short answer

Question 1. Let A(1,0,0)A(1, 0, 0), B(0,2,0)B(0, 2, 0), C(0,0,2)C(0, 0, 2). Find the perimeter of triangle ABCABC, giving your answer to 1 decimal place.

Question 2. In a system OxyzOxyz attached to a training ground (unit: metre), two drones are at the points P(10,20,15)P(10, 20, 15) and Q(40,−20,45)Q(40, -20, 45). How far apart are the drones, in metres? Give your answer to 1 decimal place.

Show answers and explanations
  1. Part I, question 1: C. The coefficients of i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k} are 33, 00, −1-1. Option B forgets that a missing j⃗\vec{j} means the y-coordinate is 00.
  2. Part I, question 2: B. The plane (Oyz)(Oyz) is x=0x=0, so we keep yy, zz and set x=0x=0. Option A is the projection onto the axis OxOx, and option C is the projection onto (Oxy)(Oxy).
  3. Part I, question 3: D. Take the mean of each coordinate: (1+32,−2+02,3−12)\left(\dfrac{1+3}{2}, \dfrac{-2+0}{2}, \dfrac{3-1}{2}\right). Option B is 12AB→\dfrac12\overrightarrow{AB}, option C forgets to divide by 22, and option A is AB→\overrightarrow{AB}.
  4. Part I, question 4: A. The projection of MM onto OzOz is H(0,0,6)H(0, 0, 6), so MH=32+42=5MH=\sqrt{3^2+4^2}=5. Option B is the distance to (Oxy)(Oxy), option C is OMOM, and option D is the distance to the axis OxOx.
  5. Part II, question 1: a) True; b) True; c) False; d) True. a) True: end point minus start point. b) True: 4+16+16=6\sqrt{4+16+16}=6. c) False: G(1,1,1)G(1, 1, 1); (3,3,3)(3, 3, 3) is the sum of the coordinates before dividing by 33. d) True: ABCDABCD is a parallelogram when AB→=DC→\overrightarrow{AB}=\overrightarrow{DC}, so D=(−1−2,3+4,1−4)=(−3,7,−3)D=(-1-2, 3+4, 1-4)=(-3, 7, -3).
  6. Part III, question 1: 7.3. AB=1+4=5AB=\sqrt{1+4}=\sqrt5, AC=1+4=5AC=\sqrt{1+4}=\sqrt5, BC=4+4=22BC=\sqrt{4+4}=2\sqrt2. The perimeter is 25+22≈7.302\sqrt5+2\sqrt2\approx7.30, which rounds to 7.37.3.
  7. Part III, question 2: 58.3. PQ→=(30,−40,30)\overrightarrow{PQ}=(30, -40, 30), so PQ=900+1600+900=3400≈58.31PQ=\sqrt{900+1600+900}=\sqrt{3400}\approx58.31, which rounds to 58.358.3 m.