Calculus › Section L · Vectors and the geometry of space › Topic L.2

Coordinates and vectors in space

Add one perpendicular axis and the flat picture of points and vectors becomes a model of the room you are sitting in. Distances grow a third square root term, circles inflate into spheres, and everything else carries over intact.

The third axis

Plane geometry runs on two axes; the physical world needs three. Introduce a \(z\)-axis perpendicular to both the \(x\)- and \(y\)-axes, and every point in space gets coordinates \((x, y, z)\): across, across, then up. The axes are arranged in a right-handed system: point your right index finger along the positive \(x\)-axis and your middle finger along the positive \(y\)-axis, and your thumb gives the positive \(z\)-axis. This convention is universal in mathematics and physics, so that formulas involving directions, like the cross product later in this section, give the same answer for everyone. The three coordinate planes, the \(xy\)-, \(xz\)- and \(yz\)-planes, slice space into eight regions called octants, the three-dimensional analogue of quadrants.

Distance and midpoint in space

The distance formula grows one term, exactly as you would hope. Between \(P(x_1, y_1, z_1)\) and \(Q(x_2, y_2, z_2)\),

d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}

This is still the Pythagorean theorem, applied twice: once across the floor of the room and once up the wall. The midpoint formula also just averages all three coordinates:

M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2}\right)

Both formulas specialise to their two-dimensional versions when the \(z\)-coordinates agree, so nothing you learned earlier is wasted.

Worked example: distance and midpoint

Find the distance and midpoint between \(P(2, -1, 3)\) and \(Q(6, 5, -1)\). The changes are \(6 - 2 = 4\), \(5 - (-1) = 6\) and \(-1 - 3 = -4\), so

d = \sqrt{4^2 + 6^2 + (-4)^2} = \sqrt{16 + 36 + 16} = \sqrt{68} = 2\sqrt{17} \approx 8.25

The midpoint is \(\left(\frac{2 + 6}{2}, \frac{-1 + 5}{2}, \frac{3 + (-1)}{2}\right) = (4, 2, 1)\). As a check, the midpoint should be equidistant from both endpoints: from \(M\) to \(P\) is \(\sqrt{4 + 9 + 4} = \sqrt{17}\), and from \(M\) to \(Q\) is also \(\sqrt{17}\), exactly half of \(2\sqrt{17}\).

Spheres

In the plane, all points at distance \(r\) from a centre form a circle; in space they form a sphere. Writing the distance condition with the three-dimensional formula, the sphere centred at \((a, b, c)\) with radius \(r\) is

(x - a)^2 + (y - b)^2 + (z - c)^2 = r^2

A point \((x, y, z)\) is on, inside or outside the sphere according to whether the left-hand side equals, is less than, or is greater than \(r^2\), the same test used for circles. When the equation arrives expanded, complete the square separately in \(x\), \(y\) and \(z\) to recover the centre and radius, just as with circle equations.

Worked example: completing the square three times

Find the centre and radius of \(x^2 + y^2 + z^2 - 4x + 2y - 6z + 4 = 0\). Group by variable and complete each square. The \(x\)-terms \(x^2 - 4x\) need \(4\); the \(y\)-terms \(y^2 + 2y\) need \(1\); the \(z\)-terms \(z^2 - 6z\) need \(9\). Adding all three to both sides:

(x - 2)^2 + (y + 1)^2 + (z - 3)^2 = -4 + 4 + 1 + 9 = 10

The centre is \((2, -1, 3)\) and the radius is \(\sqrt{10} \approx 3.16\). A quick check: at the centre every bracket in the standard form is 0, which is consistent with the original equation, because the general form is just the standard form's left side minus 10.

Vectors in three dimensions

A vector in space is a directed length with three components: \(\mathbf{v} = \langle v_1, v_2, v_3\rangle\), the changes in \(x\), \(y\) and \(z\) from tail to head. From \(P\) to \(Q\) it is \(\langle q_1 - p_1, q_2 - p_2, q_3 - p_3\rangle\). Addition and scalar multiplication stay componentwise: \(\langle 1, 2, 3\rangle + \langle 4, 0, -1\rangle = \langle 5, 2, 2\rangle\), and \(2\langle 1, 2, 3\rangle = \langle 2, 4, 6\rangle\), with a negative scalar reversing direction. The geometric pictures, tip-to-tail addition and the parallelogram, carry over unchanged; they simply live in space now. The standard unit vectors gain a third member, \(\mathbf{k} = \langle 0, 0, 1\rangle\), so every vector resolves as \(\langle v_1, v_2, v_3\rangle = v_1\mathbf{i} + v_2\mathbf{j} + v_3\mathbf{k}\).

Magnitude and unit vectors in space

The magnitude adds the third squared component:

\|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}

Dividing by the magnitude still produces a unit vector, the pure direction of \(\mathbf{v}\) with length 1. These computations answer everyday questions about 3-D positions: a drone hovering 2 km east, 3 km north and 6 km up from its controller is at position \(\langle 2, 3, 6\rangle\) kilometres, and its straight-line distance from the controller is \(\sqrt{4 + 9 + 36} = \sqrt{49} = 7\) km, much shorter than the \(2 + 3 + 6 = 11\) km of travelling along each axis in turn.

Worked example: a drone's displacement

A drone flies from \((1, 0, 2)\) to \((3, 2, 8)\), coordinates in kilometres. Its displacement vector is \(\langle 3 - 1, 2 - 0, 8 - 2\rangle = \langle 2, 2, 6\rangle\), with magnitude \(\sqrt{4 + 4 + 36} = \sqrt{44} = 2\sqrt{11} \approx 6.63\) km. The unit vector in the direction of travel is \(\frac{\langle 2, 2, 6\rangle}{\sqrt{44}} = \left\langle \frac{2}{\sqrt{44}}, \frac{2}{\sqrt{44}}, \frac{6}{\sqrt{44}} \right\rangle \approx \langle 0.30, 0.30, 0.90\rangle\). Each component says how much of each metre of flight goes east, north or up: about 30, 30 and 90 centimetres, and \(0.30^2 + 0.30^2 + 0.90^2 \approx 1\) confirms the length is 1. If the drone repeats this exact direction for another 10 km, its new displacement is \(10\langle 0.30, 0.30, 0.90\rangle\).

Common mistakes to avoid

The most common slip is dropping the \(z\)-term from the distance formula, which reports the flat-ground distance instead of the true distance, as with the drone's \(\sqrt{44} \approx 6.63\) km versus its ground distance of \(\sqrt{8} \approx 2.83\) km. The second is completing the square only in \(x\) and \(y\) for a sphere equation and stopping as if it were a circle. The third is adding magnitudes instead of vectors: two displacements of 7 km and 4 km in different directions do not make 11 km of travel; add the components first, then take the root.

Key takeaways

Space adds a right-handed \(z\)-axis: points are \((x, y, z)\), distance is \(\sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2}\), and the midpoint averages all three coordinates. A sphere with centre \((a, b, c)\) and radius \(r\) is \((x - a)^2 + (y - b)^2 + (z - c)^2 = r^2\), recovered from general form by completing the square three times. Vectors in space have three components, add and scale componentwise, resolve as \(v_1\mathbf{i} + v_2\mathbf{j} + v_3\mathbf{k}\), and have magnitude \(\sqrt{v_1^2 + v_2^2 + v_3^2}\); dividing by the magnitude gives the unit direction vector.

Flashcards

Flashcard

Right-handed system

Pointing x toward y aims the right thumb along z

Right hand: fingers x, curled to y, thumb z.

Test your understanding

Question 1 of 5

What is the distance between (1, 2, 3) and (4, 6, 3)?

Question 2 of 5

What is the midpoint of (2, −1, 3) and (6, 5, −1)?

Question 3 of 5

The sphere x² + y² + z² − 4x + 2y − 6z + 4 = 0 has centre:

Question 4 of 5

What is the magnitude of ⟨2, 3, 6⟩?

Question 5 of 5

A drone's displacement is ⟨2, 2, 6⟩ km. Roughly how much of each kilometre flown goes upward?

Standards: Beyond AP

← Previous topicNext topic →