Chapter 11 ยท Introduction to Three Dimensional Geometry

11.2 Distance between Two Points

Two uses of Pythagoras' theorem give the straight-line distance between $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$: $PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$ โ€” the diagonal of a box. With it we test collinearity, classify triangles and describe planes and spheres by equations.

During a big cricket match a camera glides over the field hanging from four long cables, each running from a motor on top of a floodlight tower. To move the camera to a new point, a computer works out how long each cable must be and reels it in or lets it out. Every one of those lengths is the straight-line distance between two points in space โ€” the top of a tower and the camera โ€” and the computer finds it from their coordinates in a fraction of a second. The same calculation tells a drone pilot how far away the drone is, a chemist how far apart two atoms are in a molecule, and a removal company whether a long pipe will fit diagonally into a van.

In the plane, the distance between $(x_1,y_1)$ and $(x_2,y_2)$ is $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$: Pythagoras' theorem on the right triangle with horizontal and vertical legs. In space the two points are opposite corners of a rectangular box, and we use Pythagoras twice โ€” once across the floor of the box and once up its height. The result looks exactly like the plane formula with one more square under the root. In this section we prove it, use it for distances from the origin and from the axes, test whether three points lie on a line, recognise special triangles, and turn distance conditions into equations of planes and spheres.

The Distance Formula in Space

Take $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$. Through each point draw the three planes parallel to the coordinate planes. The six planes form a rectangular box with $P$ and $Q$ at opposite corners and edges parallel to the axes, of lengths $|x_2-x_1|$, $|y_2-y_1|$ and $|z_2-z_1|$. The segment $PQ$ is a diagonal running through the inside of this box.

๐Ÿ“ Theorem 11.2 โ€” Distance between two points

The distance between $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$ is $$PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.$$

Proof. Let $A=(x_2,y_1,z_1)$ and $N=(x_2,y_2,z_1)$, two more corners of the box. The points $P$, $A$, $N$ all have $z$-coordinate $z_1$, so they lie in the horizontal plane $z=z_1$. In that plane $PA$ is parallel to the $x$-axis with length $|x_2-x_1|$, $AN$ is parallel to the $y$-axis with length $|y_2-y_1|$, and the angle $PAN$ is a right angle. By Pythagoras' theorem in triangle $PAN$, $$PN^2=(x_2-x_1)^2+(y_2-y_1)^2.$$ Next, $N$ and $Q$ differ only in their $z$-coordinates, so $NQ$ is parallel to the $z$-axis, with length $|z_2-z_1|$. A vertical line is perpendicular to every line in the horizontal plane $z=z_1$, in particular to $PN$; so angle $PNQ$ is a right angle. Pythagoras' theorem in triangle $PNQ$ gives $$PQ^2=PN^2+NQ^2=(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2.$$ Taking the positive square root proves the formula. $\blacksquare$

The order of the points does not matter, because $(x_1-x_2)^2=(x_2-x_1)^2$; and nor do the signs of the coordinates โ€” just subtract carefully. When $z_1=z_2$ the formula reduces to the plane distance formula, as it should.

๐Ÿ“ Theorem 11.3 โ€” Distances from the origin and from the axes

For a point $P(x,y,z)$:

  • its distance from the origin is $OP=\sqrt{x^2+y^2+z^2}$;
  • its distance from the $z$-axis is $\sqrt{x^2+y^2}$, from the $x$-axis $\sqrt{y^2+z^2}$, and from the $y$-axis $\sqrt{z^2+x^2}$.

Proof. The first is Theorem 11.2 with $Q=O(0,0,0)$. For the second, the foot of the perpendicular from $P$ to the $z$-axis is $C(0,0,z)$ (Section 11.1), so the distance from the axis is $PC=\sqrt{x^2+y^2+0^2}$; the other two axes are the same with the letters moved round. $\blacksquare$

Notice the pattern: the distance from an axis uses the two coordinates other than that axis's own, while the distance from a coordinate plane (Section 11.1) uses only the one coordinate measured from it.

โœ๏ธ Example 1 โ€” Using the distance formula
Find the distance between
(a) $P(1,-3,4)$ and $Q(-4,1,2)$;   (b) the origin and $R(2,-6,3)$;   (c) $A(2,-1,3)$ and $B(-2,1,3)$.
(a) Differences: $\Delta x=-4-1=-5$, $\Delta y=1-(-3)=4$, $\Delta z=2-4=-2$. $\ PQ=\sqrt{25+16+4}=\sqrt{45}=3\sqrt5$.
(b) $OR=\sqrt{2^2+(-6)^2+3^2}=\sqrt{4+36+9}=\sqrt{49}=7$.
(c) $\Delta x=-4$, $\Delta y=2$, $\Delta z=0$: $AB=\sqrt{16+4+0}=\sqrt{20}=2\sqrt5$. Both points are in the plane $z=3$, so this is really a plane distance.
Check (a) In the other order, $\Delta x=5$, $\Delta y=-4$, $\Delta z=2$ โ€” the same squares, the same $3\sqrt5\approx6.71$ โœ“.
โœ๏ธ Example 2 โ€” Distances from the origin, the axes and the planes
For $P(3,-4,12)$ find its distance from (a) the origin, (b) each coordinate axis, (c) each coordinate plane.
(a) $OP=\sqrt{9+16+144}=\sqrt{169}=13$.
(b) $z$-axis: $\sqrt{3^2+(-4)^2}=5$. $\ x$-axis: $\sqrt{16+144}=\sqrt{160}=4\sqrt{10}$. $\ y$-axis: $\sqrt{144+9}=\sqrt{153}=3\sqrt{17}$.
(c) $XY$-plane $|z|=12$, $YZ$-plane $|x|=3$, $ZX$-plane $|y|=4$.
Check $P$, its foot $(0,0,12)$ on the $z$-axis and $O$ form a right triangle with legs $5$ and $12$: $5^2+12^2=13^2$ โœ“.
Interactive 1 โ€” The Distance as the Diagonal of a Box

$P$ and $Q$ are opposite corners of a box with edges parallel to the axes. Press Play to build $PQ$ in three steps: walk $\Delta x$ along the box (red), then $\Delta y$ across it (blue) โ€” the green floor diagonal $PN$ is the hypotenuse of the first right triangle โ€” then $\Delta z$ straight up (purple), and $PQ$ is the hypotenuse of the second. Move $Q$ with the sliders, choose $P$, and drag the picture to see the two right angles from any side.

231
$\Delta x$โ€”
$\Delta y$โ€”
$\Delta z$โ€”
$PN=\sqrt{\Delta x^2+\Delta y^2}$โ€”
$PQ$โ€”
โš ๏ธ Common mistakes with distances

1. Sign slips in the differences. For $(1,-3,4)$ and $(-4,1,2)$, $\Delta y=1-(-3)=4$, not $-2$. Write each difference in brackets before squaring.

2. Adding coordinates instead of subtracting. The formula uses $x_2-x_1$, never $x_2+x_1$.

3. Forgetting the third square. $\sqrt{(\Delta x)^2+(\Delta y)^2}$ is only the floor diagonal $PN$; the distance in space needs $(\Delta z)^2$ as well.

4. Taking the root term by term. $\sqrt{9+16+144}=13$, but $\sqrt9+\sqrt{16}+\sqrt{144}=19$ is the length of the path along three edges of the box, not the straight line.

5. Mixing up "from an axis" and "from a plane". $P(3,-4,12)$ is $5$ from the $z$-axis but $12$ from the $XY$-plane.

Collinear Points and Special Triangles

For any three points $A$, $B$, $C$, the straight route from $A$ to $C$ is never longer than the detour through $B$: $AC\le AB+BC$. Equality holds exactly when $B$ lies on the segment $AC$. So three points are collinear exactly when the longest of the three distances between them equals the sum of the other two โ€” and then the point not at an end of the longest distance is the one in the middle. If the longest distance is less than the sum of the other two, the points are the corners of a genuine triangle, and its side lengths tell us its type.

๐Ÿงญ Problem-solving strategy โ€” Three points in space
  1. Find $AB$, $BC$ and $CA$ with Theorem 11.2. Keep surds exact and simplify them (e.g. $\sqrt{56}=2\sqrt{14}$) so that sums are easy to compare.
  2. Collinear? If the largest distance equals the sum of the other two, the points are collinear; the middle point is the one shared by the two shorter distances.
  3. Otherwise a triangle. Two sides equal โ€” isosceles; all three equal โ€” equilateral; the squares satisfy $a^2+b^2=c^2$ for the longest side $c$ โ€” right-angled, with the right angle opposite $c$ (converse of Pythagoras' theorem).
  4. Answer in words: "collinear, with $B$ between $A$ and $C$", or "a right-angled isosceles triangle with the right angle at $B$".
โœ๏ธ Example 3 โ€” Showing that points are collinear
Show that $A(-2,3,5)$, $B(1,2,3)$ and $C(7,0,-1)$ are collinear, and say which point lies between the other two.
Distances $AB=\sqrt{3^2+(-1)^2+(-2)^2}=\sqrt{14}$. $\ BC=\sqrt{6^2+(-2)^2+(-4)^2}=\sqrt{56}=2\sqrt{14}$. $\ AC=\sqrt{9^2+(-3)^2+(-6)^2}=\sqrt{126}=3\sqrt{14}$.
Compare The largest is $AC=3\sqrt{14}$, and $AB+BC=\sqrt{14}+2\sqrt{14}=3\sqrt{14}=AC$.
Answer The points are collinear, and $B$ lies between $A$ and $C$ (one third of the way from $A$).
Check The differences $B-A=(3,-1,-2)$ and $C-A=(9,-3,-6)$ are in the ratio $1:3$ coordinate by coordinate, so $C$ is reached from $A$ by going three times as far in the same direction โœ“.
โœ๏ธ Example 4 โ€” What kind of triangle?
(a) Show that $A(2,-1,1)$, $B(1,-3,-5)$, $C(3,-4,-4)$ are the vertices of a right-angled triangle, and find where the right angle is.
(b) Show that $P(1,0,0)$, $Q(0,1,0)$, $R(0,0,1)$ form an equilateral triangle, and find its perimeter.
(a) Sides $AB^2=1+4+36=41$, $\ BC^2=4+1+1=6$, $\ CA^2=1+9+25=35$.
(a) Test $BC^2+CA^2=6+35=41=AB^2$. By the converse of Pythagoras' theorem the triangle is right-angled, with the right angle opposite the longest side $AB$ โ€” at $C$. (It is a genuine triangle: $\sqrt6+\sqrt{35}\approx8.37\gt\sqrt{41}\approx6.40$.)
(b) $PQ=\sqrt{1+1+0}=\sqrt2$, $\ QR=\sqrt{0+1+1}=\sqrt2$, $\ RP=\sqrt{1+0+1}=\sqrt2$. All three sides are equal: equilateral, perimeter $3\sqrt2$.
Picture In (b) the three points are where the axes cross the slanting face that cuts the corner off a unit cube โ€” a nice triangle to sketch.
โœ๏ธ Example 5 โ€” Unknown coordinates from distances
(a) Find the point on the $y$-axis that is equidistant from $A(3,1,2)$ and $B(5,5,2)$.
(b) The distance between $A(2,-1,3)$ and $B(a,3,-1)$ is $9$. Find $a$.
(a) Set up A point on the $y$-axis is $P(0,y,0)$. Squaring both sides of $PA=PB$ (both are positive): $9+(y-1)^2+4=25+(y-5)^2+4$.
(a) Solve $y^2-2y+14=y^2-10y+54$, so $8y=40$ and $y=5$: the point $(0,5,0)$.
(b) $(a-2)^2+4^2+(-4)^2=81$, so $(a-2)^2=49$, $a-2=\pm7$: $a=9$ or $a=-5$. Both points are $9$ units from $A$.
Check (a) $PA^2=9+16+4=29$ and $PB^2=25+0+4=29$ โœ“.
Interactive 2 โ€” Collinear or a Triangle?

$P$ and $Q$ are fixed. The point $R$ moves a distance $t$ times $PQ$ along the line $PQ$ and then a distance $s$ off it. The readouts compare the longest of $PQ$, $QR$, $PR$ with the sum of the other two. Press Play and watch the gap close to exactly $0$ each time $R$ crosses the line โ€” that is the collinearity test. Drag the picture to turn it.

1.52
$R$โ€”
$PQ$, $QR$, $PR$โ€”
sum of two shorter โˆ’ longestโ€”
typeโ€”

Sets of Points Defined by Distances

A condition on distances picks out a set of points, and the distance formula turns the condition into an equation in $x$, $y$, $z$. Two cases are especially important.

๐Ÿ“˜ Definition 11.5 โ€” Sphere

The sphere with centre $C(a,b,c)$ and radius $r\gt0$ is the set of all points of space at distance $r$ from $C$. By Theorem 11.2, $P(x,y,z)$ lies on it exactly when $$(x-a)^2+(y-b)^2+(z-c)^2=r^2.$$ Points with $(x-a)^2+(y-b)^2+(z-c)^2\lt r^2$ lie inside the sphere and points with a larger value lie outside.

Points equidistant from two points. If $A$ and $B$ are fixed, the condition $PA=PB$ is equivalent to $PA^2=PB^2$ (both sides are non-negative). When both squares are expanded, the terms $x^2$, $y^2$, $z^2$ appear on both sides and cancel, leaving a linear equation $px+qy+rz+d=0$. In the plane the points equidistant from $A$ and $B$ formed the perpendicular bisector โ€” a line; in space they form a plane, the plane that cuts $AB$ at right angles through its middle.

โœ๏ธ Example 6 โ€” A plane and a sphere from distance conditions
(a) Find the equation of the set of points $P$ that are equidistant from $A(2,-1,3)$ and $B(4,1,-1)$.
(b) Write the equation of the sphere with centre $(1,-2,3)$ and radius $4$ in expanded form, and show that $(1,2,3)$ lies on it.
(a) Square $PA^2=PB^2$: $(x-2)^2+(y+1)^2+(z-3)^2=(x-4)^2+(y-1)^2+(z+1)^2$.
(a) Expand After cancelling $x^2+y^2+z^2$: $-4x+2y-6z+14=-8x-2y+2z+18$, i.e. $4x+4y-8z-4=0$.
(a) Answer $x+y-2z-1=0$ โ€” a plane. Check: $(3,0,1)$ satisfies it ($3+0-2-1=0$), and its squared distances from $A$ and $B$ are $1+1+4=6$ and $1+1+4=6$ โœ“.
(b) $(x-1)^2+(y+2)^2+(z-3)^2=16$. Expanding: $x^2+y^2+z^2-2x+4y-6z+1+4+9-16=0$, that is $$x^2+y^2+z^2-2x+4y-6z-2=0.$$ For $(1,2,3)$: $(1-1)^2+(2+2)^2+(3-3)^2=16$ โœ“, so it is on the sphere โ€” straight "north" of the centre in the $y$-direction.

Other distance conditions give other surfaces. For instance, the points whose distances from two fixed points add up to a constant form an egg-shaped surface (an ellipsoid) โ€” the three-dimensional cousin of the ellipse of Chapter 10. Exercise III.5 asks you to find one.

๐Ÿ“˜ In the CBSE syllabus โ€” school assessment only (not in the year-end board exam)

Taught and tested in school, but not in the year-end board exam; JEE Main and JEE Advanced both list the section formula in three dimensions, and JEE problems use the centroid that comes with it. Both work exactly as in the plane, with a third coordinate.

Section formula. The point $R$ dividing the join of $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$ internally in the ratio $m:n$ is $$R\left(\frac{mx_2+nx_1}{m+n},\ \frac{my_2+ny_1}{m+n},\ \frac{mz_2+nz_1}{m+n}\right).$$ (Project onto each axis: each coordinate is divided in the same ratio $m:n$.) With $m=n$ this is the mid-point $\left(\tfrac{x_1+x_2}{2},\tfrac{y_1+y_2}{2},\tfrac{z_1+z_2}{2}\right)$. The centroid of the triangle with vertices $(x_i,y_i,z_i)$, $i=1,2,3$, is $\left(\tfrac{x_1+x_2+x_3}{3},\tfrac{y_1+y_2+y_3}{3},\tfrac{z_1+z_2+z_3}{3}\right)$.

Worked example. Find the point dividing the join of $A(1,-2,3)$ and $B(3,4,-5)$ internally in the ratio $2:3$.
Solution. $m=2$, $n=3$: $\left(\tfrac{2\cdot3+3\cdot1}{5},\tfrac{2\cdot4+3(-2)}{5},\tfrac{2(-5)+3\cdot3}{5}\right)=\left(\tfrac95,\tfrac25,-\tfrac15\right)$. Check: its distances from $A$ and $B$ are $\tfrac{2}{5}AB$ and $\tfrac35AB$, with $AB=\sqrt{4+36+64}=2\sqrt{26}$ โœ“.

Exercises

I
Distances.
  • 1 Find the distance between $(2,3,5)$ and $(4,3,1)$.
  • 2 Find the distance between $(-3,7,2)$ and $(2,4,-1)$.
  • 3 Find the distance between $(-1,3,-4)$ and $(1,-3,4)$.
  • 4 Find the distance between $(5,-2,-3)$ and $(-1,1,3)$.
  • 5 Find the distance of $(-6,2,-3)$ from the origin.
  • 6 Find the distance of $P(-8,4,1)$ from the origin and from each of the three axes.
  • 7 Find $a$ if the distance between $(a,0,1)$ and $(0,1,2)$ is $\sqrt{27}$.
  • 8 Find the points on the $x$-axis at distance $13$ from $(2,3,4)$.
Check: distance between any two points, as an exact surd
$(\Delta x,\Delta y,\Delta z)$โ€”
$PQ^2$โ€”
$PQ$โ€”
1 $\sqrt{2^2+0^2+(-4)^2}=\sqrt{20}=2\sqrt5$.
2 $\sqrt{5^2+(-3)^2+(-3)^2}=\sqrt{43}$.
3 $\sqrt{2^2+(-6)^2+8^2}=\sqrt{104}=2\sqrt{26}$.
4 $\sqrt{(-6)^2+3^2+6^2}=\sqrt{81}=9$.
5 $\sqrt{36+4+9}=\sqrt{49}=7$.
6 $OP=\sqrt{64+16+1}=9$. From the $x$-axis $\sqrt{4^2+1^2}=\sqrt{17}$; from the $y$-axis $\sqrt{1^2+8^2}=\sqrt{65}$; from the $z$-axis $\sqrt{64+16}=\sqrt{80}=4\sqrt5$.
7 $a^2+1+1=27$, $a^2=25$, $a=\pm5$.
8 $(x-2)^2+9+16=169$, $(x-2)^2=144$, $x=14$ or $x=-10$: the points $(14,0,0)$ and $(-10,0,0)$.
II
Collinear points, triangles and equidistant points.
  • 1 Show that $P(1,-2,3)$, $Q(2,1,1)$ and $R(4,7,-3)$ are collinear, and say which point is between the other two.
  • 2 Are $A(0,1,2)$, $B(1,3,4)$ and $C(2,4,5)$ collinear?
  • 3 Show that $A(0,7,10)$, $B(-1,6,6)$ and $C(-4,9,6)$ are the vertices of a right-angled isosceles triangle.
  • 4 Show that $(1,2,3)$, $(3,2,1)$ and $(1,4,1)$ are the vertices of an equilateral triangle.
  • 5 Find the perimeter of the triangle with vertices $O(0,0,0)$, $A(3,4,0)$ and $B(3,4,12)$, and show that it is right-angled.
  • 6 Find the point on the $z$-axis equidistant from $(1,5,7)$ and $(5,1,-4)$.
  • 7 Find the point in the $XY$-plane that is equidistant from $(2,0,3)$, $(0,3,2)$ and $(0,0,1)$.
  • 8 Find the point equidistant from the four points $O(0,0,0)$, $A(a,0,0)$, $B(0,b,0)$ and $C(0,0,c)$.
1 $PQ=\sqrt{1+9+4}=\sqrt{14}$, $QR=\sqrt{4+36+16}=2\sqrt{14}$, $PR=\sqrt{9+81+36}=3\sqrt{14}=PQ+QR$: collinear, with $Q$ between $P$ and $R$.
2 $AB=\sqrt{1+4+4}=3$, $BC=\sqrt{1+1+1}=\sqrt3$, $AC=\sqrt{4+9+9}=\sqrt{22}$. $AB+BC=3+\sqrt3\approx4.732$ but $AC\approx4.690$. Not collinear: they form a (very flat) triangle.
3 $AB^2=1+1+16=18$, $BC^2=9+9+0=18$, $AC^2=16+4+16=36$. $AB=BC=3\sqrt2$ (isosceles) and $AB^2+BC^2=36=AC^2$ (right angle at $B$).
4 The three squared distances are $4+0+4=8$, $0+4+4=8$ and $4+4+0=8$: every side is $2\sqrt2$.
5 $OA=5$, $AB=12$, $OB=\sqrt{9+16+144}=13$. Perimeter $30$; $5^2+12^2=13^2$, so the right angle is at $A$.
6 $(0,0,z)$: $1+25+(z-7)^2=25+1+(z+4)^2$, so $-14z+49=8z+16$, $z=\tfrac32$: the point $\left(0,0,\tfrac32\right)$.
7 $(x,y,0)$ with $(x-2)^2+y^2+9=x^2+(y-3)^2+4=x^2+y^2+1$. The first and third give $-4x+13=1$, $x=3$; the second and third give $-6y+13=1$, $y=2$. The point $(3,2,0)$, at distance $\sqrt{14}$ from all three.
8 $x^2+y^2+z^2=(x-a)^2+y^2+z^2$ gives $2ax=a^2$, $x=\tfrac a2$ (for $a\ne0$); similarly $y=\tfrac b2$, $z=\tfrac c2$. The point $\left(\tfrac a2,\tfrac b2,\tfrac c2\right)$ โ€” the centre of the box with $O$ and $(a,b,c)$ as opposite corners.
III
Planes and spheres from distance conditions.
  • 1 Find the equation of the set of points equidistant from $(1,2,3)$ and $(3,2,-1)$.
  • 2 Write the equation of the sphere with centre $(2,-3,1)$ and radius $5$ in expanded form.
  • 3 Decide whether $(5,1,1)$ and $(4,0,4)$ lie on, inside or outside the sphere of part 2.
  • 4 Find the centre and radius of the sphere $x^2+y^2+z^2-6x+4y-2z-11=0$.
  • 5 $A=(0,3,0)$ and $B=(0,-3,0)$. Find the equation of the set of points $P$ with $PA+PB=10$.
  • 6 $A=(1,2,0)$ and $B=(-1,0,4)$. Find the equation of the set of points $P$ with $PA^2+PB^2=30$, and show that it is a sphere; find its centre and radius.
1 $(x-1)^2+(y-2)^2+(z-3)^2=(x-3)^2+(y-2)^2+(z+1)^2$ gives $-2x-6z+10=-6x+2z+10$, i.e. $4x-8z=0$: the plane $x-2z=0$.
2 $(x-2)^2+(y+3)^2+(z-1)^2=25$, i.e. $x^2+y^2+z^2-4x+6y-2z-11=0$.
3 $(5,1,1)$: $9+16+0=25$ โ€” on the sphere. $(4,0,4)$: $4+9+9=22\lt25$ โ€” inside (distance $\sqrt{22}\lt5$ from the centre).
4 Complete the squares: $(x-3)^2+(y+2)^2+(z-1)^2=11+9+4+1=25$. Centre $(3,-2,1)$, radius $5$.
5 $\sqrt{x^2+(y-3)^2+z^2}=10-\sqrt{x^2+(y+3)^2+z^2}$. Squaring and simplifying: $20\sqrt{x^2+(y+3)^2+z^2}=100+12y$, i.e. $5\sqrt{x^2+(y+3)^2+z^2}=25+3y$. Squaring again: $25(x^2+y^2+6y+9+z^2)=625+150y+9y^2$, which gives $$25x^2+16y^2+25z^2=400.$$
6 $(x-1)^2+(y-2)^2+z^2+(x+1)^2+y^2+(z-4)^2=30$ gives $2x^2+2y^2+2z^2-4y-8z+22=30$, i.e. $x^2+y^2+z^2-2y-4z-4=0$. Completing squares: $x^2+(y-1)^2+(z-2)^2=9$ โ€” a sphere with centre $(0,1,2)$ and radius $3$.
IV
Applications.
  • 1 In a stadium the origin is the centre of the ground, the $z$-axis is vertical and the unit is $1\ \text{m}$. A cable camera is at $C(10,-20,15)$ and one of its cables runs to a pulley at $T(60,40,45)$ on a tower. Find the length of that cable, to the nearest $0.1\ \text{m}$.
  • 2 A room is $5\ \text{m}$ long, $4\ \text{m}$ wide and $3\ \text{m}$ high. What is the longest straight rod that fits in it?
  • 3 A drone flies in a straight line from $A(0,0,20)$ to $B(30,40,20)$ and then straight up to $C(30,40,60)$ (metres). Find the length of its path and the length of the direct flight from $A$ to $C$.
  • 4 A radar station (in km, $z$ up) shows two aircraft at $(-12,5,3)$ and $(4,-7,3.5)$. How far apart are they, to three significant figures?
  • 5 In a model of a methane molecule the carbon atom is at the origin and the hydrogen atoms at $(1,1,1)$, $(1,-1,-1)$, $(-1,1,-1)$ and $(-1,-1,1)$. Show that all four Cโ€“H distances are equal, and that all six Hโ€“H distances are equal.
1 $\Delta=(50,60,30)$: $CT=\sqrt{2500+3600+900}=\sqrt{7000}=10\sqrt{70}\approx83.7\ \text{m}$.
2 The longest rod is the box diagonal from one corner to the opposite one: $\sqrt{5^2+4^2+3^2}=\sqrt{50}=5\sqrt2\approx7.07\ \text{m}$.
3 $AB=\sqrt{900+1600+0}=50\ \text{m}$ and $BC=40\ \text{m}$: path $90\ \text{m}$. Direct: $AC=\sqrt{900+1600+1600}=\sqrt{4100}=10\sqrt{41}\approx64.0\ \text{m}$.
4 $\Delta=(16,-12,0.5)$: $\sqrt{256+144+0.25}=\sqrt{400.25}\approx20.0\ \text{km}$. (The height difference of $0.5\ \text{km}$ hardly changes the answer.)
5 Each Cโ€“H distance is $\sqrt{1+1+1}=\sqrt3$. Any two hydrogen positions agree in exactly one coordinate and differ by $2$ in the other two, so each Hโ€“H distance is $\sqrt{4+4+0}=2\sqrt2$. (The hydrogens are the corners of a regular tetrahedron โ€” four equilateral faces.)
๐ŸŽฏ Exam corner Board ยท 1 markBoard ยท 3 marksBoard ยท Case studyJEE Main

How this is examined: Board papers ask for a distance or a distance from an axis (1 mark), a proof that three points are collinear or form a right-angled or isosceles triangle (2โ€“3 marks), an equation from a distance condition (3 marks), and case studies on cables, drones or rooms. JEE Main mixes the distance formula with the 3-D section formula and centroid (see the ๐Ÿ“˜ box).

E1. Board ยท 1 mark The distance of $(3,-4,5)$ from the origin is   (A) $5\sqrt2$   (B) $50$   (C) $5$   (D) $12$

Idea $\sqrt{9+16+25}=\sqrt{50}=5\sqrt2$.
Trap (B) forgets the square root; (D) adds $3+4+5$ along the edges of the box; (C) leaves out the $z$-coordinate.
Answer (A).

E2. Board ยท 1 mark The distance of the point $(-2,6,3)$ from the $x$-axis is   (A) $2$   (B) $3\sqrt5$   (C) $7$   (D) $\sqrt{13}$

Idea The foot on the $x$-axis is $(-2,0,0)$; the distance is $\sqrt{y^2+z^2}=\sqrt{36+9}=\sqrt{45}=3\sqrt5$.
Trap (A) is $|x|$, the distance from the $YZ$-plane; (C) is the distance from the origin; (D) uses $x$ and $z$ (distance from the $y$-axis).
Answer (B).

E3. Board ยท 3 marks Using the distance formula, show that $A(3,-5,1)$, $B(2,-3,3)$ and $C(0,1,7)$ are collinear.

Distances $AB=\sqrt{1+4+4}=3$, $\ BC=\sqrt{4+16+16}=6$, $\ AC=\sqrt{9+36+36}=9$. (2 marks)
Conclude $AB+BC=3+6=9=AC$, so $A$, $B$, $C$ are collinear, with $B$ between $A$ and $C$. (1 mark)

E4. Board ยท Case study A cable camera hangs over a football ground. Take the origin at the centre of the ground, the $z$-axis vertical and the unit $1\ \text{m}$. Two cable pulleys are at $T_1(50,40,30)$ and $T_2(-50,40,30)$ on top of two towers, and the camera is at $C(10,20,10)$. (i) Find the length $CT_1$ in simplest surd form. (1 mark) (ii) Find $CT_2$. (1 mark) (iii) The camera is moved along the vertical line through $(10,20,0)$ until $CT_1=45\ \text{m}$. Find the possible heights of the camera. (2 marks)

(i) $\Delta=(40,20,20)$: $CT_1=\sqrt{1600+400+400}=\sqrt{2400}=20\sqrt6\approx49.0\ \text{m}$. (1 mark)
(ii) $\Delta=(-60,20,20)$: $CT_2=\sqrt{3600+400+400}=\sqrt{4400}=20\sqrt{11}\approx66.3\ \text{m}$. (1 mark)
(iii) set up The camera is at $(10,20,h)$: $40^2+20^2+(h-30)^2=45^2$, so $(h-30)^2=2025-2000=25$. (1 mark)
Answer $h-30=\pm5$: the camera is at height $25\ \text{m}$ or $35\ \text{m}$. (1 mark)

E5. JEE Main The point on the $x$-axis equidistant from $(1,2,3)$ and $(3,5,-2)$ is   (A) $(6,0,0)$   (B) $(-6,0,0)$   (C) $\left(\tfrac32,0,0\right)$   (D) $(2,0,0)$

Idea $(x,0,0)$: $(x-1)^2+4+9=(x-3)^2+25+4$, so $-2x+14=-6x+38$, $4x=24$, $x=6$.
Trap (D) is the $x$-coordinate of the mid-point of the two points โ€” but the mid-point is not on the $x$-axis, and the equidistant plane meets the axis elsewhere.
Answer (A). Check: both squared distances are $25+4+9=9+25+4=38$ โœ“.

E6. JEE Main Numerical answer. The vertices of a triangle are $A(3,-1,2)$, $B(1,2,-4)$ and $C(-1,5,8)$. Find the distance of its centroid from the origin.

Centroid (๐Ÿ“˜ box) $G=\left(\tfrac{3+1-1}{3},\tfrac{-1+2+5}{3},\tfrac{2-4+8}{3}\right)=(1,2,2)$.
Answer $OG=\sqrt{1+4+4}=3$.
๐Ÿ”ฌ Researchโ€“Teaching NexusMini project ยท about 45 minutes

Research question. How long must the cables of a model cable camera be to put the camera at a chosen point โ€” and does the distance formula predict the lengths you actually measure?

Why it matters. Cable cameras in stadiums, cable-driven robots in warehouses and the tension cables of suspension structures are all controlled by distances in space. An error in one coordinate changes every cable length, so engineers check their models against measurements.

What to do.

  1. In a room (or a large cardboard box), choose a floor corner as $O$ with right-handed axes. Fix four "pulleys" (hooks or drawing pins) high up near the four corners and measure their coordinates.
  2. Hang a small weight (the "camera") from four strings tied to the hooks. Measure the coordinates of the weight with a tape measure: distances from two walls and the height above the floor.
  3. Predict the four string lengths with the distance formula, then measure them. Record the percentage error for each.
  4. Move the camera to two more positions and repeat. Which coordinate is hardest to measure accurately, and how much does a $1\ \text{cm}$ error in it change the predicted lengths?

Tools: String, a small weight, four hooks or pins, a measuring tape, a spreadsheet for the calculations

Hand in: A labelled sketch with coordinates, a table of predicted and measured lengths with percentage errors, and a short paragraph explaining the main sources of error.

Going further. Write a spreadsheet that takes the camera's target $(x,y,z)$ and outputs all four cable lengths. Then plan a straight-line move of the camera in $10$ equal steps and tabulate how each cable must change. Do the cables change at a constant rate?

Instructor note: errors of $1$โ€“$3\%$ are typical; most come from measuring the height and from string stretch and knots. In the "going further" task the cable lengths do not change at a constant rate even when the camera moves at constant speed along a line โ€” a good way to see that the distance is not a linear function of the coordinates.

๐Ÿงช Self-check quiz

0/5 correct

Q1. The distance between $(1,2,3)$ and $(4,6,3)$ is

Q2. The distance of $(2,-3,6)$ from the origin is

Q3. The distance of $P(x,y,z)$ from the $z$-axis is

Q4. For three points, $AB=\sqrt{14}$, $BC=2\sqrt{14}$ and $AC=3\sqrt{14}$. Then

Q5. The set of all points equidistant from $(0,0,1)$ and $(0,0,-1)$ is