What this lesson covers

In the plane, two numbers fix a point. In space we need three. This lesson sets up the rectangular cartesian coordinate system in three dimensions, explains how a point gets its coordinates, divides space into octants, and gives the distance formulas.

The rectangular cartesian coordinate system

Let XOX′↔\overleftrightarrow{XOX'}, YOY′↔\overleftrightarrow{YOY'} and ZOZ′↔\overleftrightarrow{ZOZ'} be three mutually perpendicular lines in space meeting at a point OO, called the origin. Picture the XX axis running left to right, the YY axis running up and down on the page, and the ZZ axis coming out of the page towards you, all three crossing at OO.

  • These lines are called the xx axis, yy axis and zz axis respectively.
  • The plane through XOX′↔\overleftrightarrow{XOX'} and YOY′↔\overleftrightarrow{YOY'} is called the xyxy plane (or XOYXOY plane). Similarly we have the yzyz plane and the zxzx plane.
  • The xyxy, yzyz and zxzx planes are called the coordinate planes, and they are mutually perpendicular.
  • This system of axes is called the rectangular cartesian coordinate system.

Coordinates of a point in space

Let PP be a point in space. Draw PMPM perpendicular to the XOYXOY plane, so MM is the foot of the perpendicular in that plane. From MM draw MNMN perpendicular to the xx axis; then MNMN is parallel to the yy axis. The lengths ONON, NMNM and MPMP are the xx coordinate, yy coordinate and zz coordinate of PP. If ON=xON = x, NM=yNM = y and MP=zMP = z, then (x,y,z)(x, y, z) are the coordinates of PP.

In words: walk xx units along the xx axis to NN, then yy units parallel to the yy axis to MM, then zz units straight up, parallel to the zz axis, to reach PP. The coordinates of the origin are (0,0,0)(0, 0, 0).

Points on the axes and the coordinate planes

Let P=(px,py,pz)P = (p_x, p_y, p_z). Then

  • PP lies on the xx axis   ⟺  py=0\iff p_y = 0 and pz=0p_z = 0;
  • PP lies on the yy axis   ⟺  px=0\iff p_x = 0 and pz=0p_z = 0;
  • PP lies on the zz axis   ⟺  px=0\iff p_x = 0 and py=0p_y = 0;
  • PP lies on the xoyxoy plane   ⟺  pz=0\iff p_z = 0;
  • PP lies on the yozyoz plane   ⟺  px=0\iff p_x = 0;
  • PP lies on the zoxzox plane   ⟺  py=0\iff p_y = 0.

Octants

The three coordinate planes divide space into eight equal parts called octants. The octant bounded by the edges OX→\overrightarrow{OX}, OY→\overrightarrow{OY}, OZ→\overrightarrow{OZ} is the first octant, written OXYZOXYZ. The octant whose bounding edges are OXOX, OY′OY', OZ′OZ' is written OXY′Z′OXY'Z', and the others are named in the same way. The signs of the coordinates in each octant are:

Octant xx yy zz
I: OXYZOXYZ ++ ++ ++
II: OX′YZOX'YZ −- ++ ++
III: OX′Y′ZOX'Y'Z −- −- ++
IV: OXY′ZOXY'Z ++ −- ++
V: OXYZ′OXYZ' ++ ++ −-
VI: OX′YZ′OX'YZ' −- ++ −-
VII: OX′Y′Z′OX'Y'Z' −- −- −-
VIII: OXY′Z′OXY'Z' ++ −- −-

A primed letter in the name means that coordinate is negative.

Distance formulas

The distance between (x1,y1,z1)(x_1, y_1, z_1) and (x2,y2,z2)(x_2, y_2, z_2) is

(x1−x2)2+(y1−y2)2+(z1−z2)2.\sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2 + (z_1 - z_2)^2}.

This is Pythagoras used twice: once across the base and once up the height. The distance of (x1,y1,z1)(x_1, y_1, z_1) from the origin is x12+y12+z12\sqrt{x_1^2 + y_1^2 + z_1^2}.

The perpendicular distances of P(x,y,z)P(x, y, z) from the axes and planes are:

From Distance
xx axis y2+z2\sqrt{y^2 + z^2}
yy axis x2+z2\sqrt{x^2 + z^2}
zz axis x2+y2\sqrt{x^2 + y^2}
xyxy plane ∣z∣\lvert z \rvert
yzyz plane ∣x∣\lvert x \rvert
xzxz plane ∣y∣\lvert y \rvert

The distance from an axis ignores the coordinate along that axis; the distance from a plane is just the size of the coordinate that is missing from that plane.

Example 1

In which octant does (−2,3,−1)(-2, 3, -1) lie?

The signs are (−,+,−)(-, +, -), so it lies in octant VI, OX′YZ′OX'YZ'.

Example 2

Find the distance between (1,2,3)(1, 2, 3) and (4,−2,3)(4, -2, 3).

32+42+02=25=5.\sqrt{3^2 + 4^2 + 0^2} = \sqrt{25} = 5.

Example 3

For P(3,−4,12)P(3, -4, 12) find the distance from the origin, the xx axis, the zz axis and the xyxy plane.

From the origin, 9+16+144=13\sqrt{9 + 16 + 144} = 13. From the xx axis, 16+144=160=410\sqrt{16 + 144} = \sqrt{160} = 4\sqrt{10}. From the zz axis, 9+16=5\sqrt{9 + 16} = 5. From the xyxy plane, ∣12∣=12|12| = 12.

Example 4

Show that A(1,2,3)A(1, 2, 3), B(2,3,1)B(2, 3, 1) and C(3,1,2)C(3, 1, 2) form an equilateral triangle.

AB=1+1+4=6AB = \sqrt{1 + 1 + 4} = \sqrt{6}, BC=1+4+1=6BC = \sqrt{1 + 4 + 1} = \sqrt{6} and CA=4+1+1=6CA = \sqrt{4 + 1 + 1} = \sqrt{6}. All three sides are equal.

Practice

  1. In which octant does (4,−1,−3)(4, -1, -3) lie?
  2. Find the distance between (2,−1,3)(2, -1, 3) and (−1,3,3)(-1, 3, 3).
  3. Find the distance of (2,3,6)(2, 3, 6) from the origin and from the yy axis.
  4. Find the point on the xx axis equidistant from (1,2,3)(1, 2, 3) and (3,0,1)(3, 0, 1).
  5. Show that (0,7,10)(0, 7, 10), (−1,6,6)(-1, 6, 6) and (−4,9,6)(-4, 9, 6) form a right angled isosceles triangle.
  6. Find xx if the distance between (x,1,−1)(x, 1, -1) and (2,3,1)(2, 3, 1) is 3.

Answers

Show answers
  1. Signs (+,−,−)(+, -, -): octant VIII, OXY′Z′OXY'Z'.
  2. 9+16+0=5\sqrt{9 + 16 + 0} = 5.
  3. From the origin 4+9+36=7\sqrt{4 + 9 + 36} = 7; from the yy axis 4+36=210\sqrt{4 + 36} = 2\sqrt{10}.
  4. (x−1)2+13=(x−3)2+1(x - 1)^2 + 13 = (x - 3)^2 + 1 gives 4x=−44x = -4, so the point is (−1,0,0)(-1, 0, 0).
  5. The squared sides are 1818, 1818 and 3636. Two sides are equal and 18+18=3618 + 18 = 36, so the triangle is right angled and isosceles.
  6. (x−2)2+4+4=9(x - 2)^2 + 4 + 4 = 9 gives (x−2)2=1(x - 2)^2 = 1, so x=1x = 1 or x=3x = 3.