Chapter 11 ยท Three Dimensional Geometry

11.1 Coordinates, Direction Cosines and Lines in Space

Three numbers fix a point in space and three more fix a direction. With the distance and section formulas, the direction cosines $l,m,n$ with $l^2+m^2+n^2=1$, and the symmetric form $\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}$ you can locate, measure and describe any straight line in space.

A delivery drone takes off from a warehouse roof and flies in a straight line to a balcony on the far side of a city block. Its navigation chip does not think in "left" and "right" on a map: it uses three numbers for every position โ€” east, north and height. From the two end positions it must work out how long the flight is, which way to point, where it will be when 40% of the trip is done, and the moment it will cross a given height. A map, with two coordinates, cannot answer the last question at all. Space needs a third coordinate, and with three coordinates every one of these questions becomes a short calculation.

This section builds the tools for those calculations: coordinates of a point in space and the eight octants, the distance formula, the section formula (with centroids), the direction cosines and direction ratios that describe which way a line runs, and the equations of a straight line in space. Section 11.2 then uses them to measure angles between lines and the shortest distance between lines that never meet. In JEE Main this chapter gives one or two questions in almost every paper โ€” typically the ratio in which a coordinate plane cuts a segment, the direction cosines of a line, a point on a line at a given distance, or (from Section 11.2) a shortest distance.

Coordinates of a Point in Space

๐Ÿ“˜ Definition 11.1 โ€” Coordinates in space, coordinate planes and octants

Fix a point $O$ (the origin) and three mutually perpendicular number lines through it, the $x$-, $y$- and $z$-axes, arranged right-handed: if the fingers of your right hand curl from the positive $x$-axis towards the positive $y$-axis, your thumb points along the positive $z$-axis. Each pair of axes spans a coordinate plane: the $XY$-plane ($z=0$), the $YZ$-plane ($x=0$) and the $ZX$-plane ($y=0$).

The coordinates $(x,y,z)$ of a point $P$ are its signed perpendicular distances from the $YZ$-, $ZX$- and $XY$-planes respectively. The three coordinate planes divide space into eight octants, named by the signs of the coordinates.

octantIIIIIIIVVVIVIIVIII
signs of $(x,y,z)$$+\,+\,+$$-\,+\,+$$-\,-\,+$$+\,-\,+$$+\,+\,-$$-\,+\,-$$-\,-\,-$$+\,-\,-$

A point with a zero coordinate lies in no octant: $(4,0,-2)$ is on the $ZX$-plane, $(0,0,7)$ is on the $z$-axis. A useful picture: the point $P(x,y,z)$ is the far corner of a rectangular box whose opposite corner is $O$ and whose edges, of lengths $|x|$, $|y|$, $|z|$, run along the axes. The feet of the perpendiculars from $P$ to the axes are $(x,0,0)$, $(0,y,0)$, $(0,0,z)$, and to the coordinate planes $(x,y,0)$, $(0,y,z)$, $(x,0,z)$.

๐Ÿ“ Theorem 11.1 โ€” The distance formula

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

In particular $OP=\sqrt{x^2+y^2+z^2}$ for $P(x,y,z)$; the distance of $P$ from the $x$-axis is $\sqrt{y^2+z^2}$ (similarly $\sqrt{z^2+x^2}$ from the $y$-axis, $\sqrt{x^2+y^2}$ from the $z$-axis), and its distance from the $YZ$-plane is $|x|$ (similarly $|y|$, $|z|$).

Proof. Let $R=(x_2,y_2,z_1)$, the point at the height of $P$ directly below or above $Q$. $P$ and $R$ lie in the horizontal plane $z=z_1$, so by the plane distance formula $PR^2=(x_2-x_1)^2+(y_2-y_1)^2$. The segment $RQ$ is vertical, of length $|z_2-z_1|$, and is perpendicular to every line in that horizontal plane, in particular to $PR$. Pythagoras in the right triangle $PRQ$ gives $PQ^2=PR^2+RQ^2$, which is the formula. For the distance from the $x$-axis: the foot of the perpendicular from $P(x,y,z)$ is $(x,0,0)$, and the distance formula gives $\sqrt{0+y^2+z^2}$. $\blacksquare$ In short: the distance from an axis uses the other two coordinates; the distance from a coordinate plane is one coordinate.

โœ๏ธ Example 1 โ€” Octants, distances and a triangle in space
(a) Name the octants of $(-2,3,-1)$ and $(4,-5,6)$. (b) Find the distance between $A(1,-2,3)$ and $B(4,2,-9)$. (c) For $P(3,-4,12)$ find $OP$, the distance of $P$ from the $x$-axis and its distance from the $YZ$-plane. (d) Show that $A(0,7,10)$, $B(-1,6,6)$, $C(-4,9,6)$ are the vertices of a right-angled isosceles triangle.
(a) $(-2,3,-1)$ has signs $-\,+\,-$: octant VI. $(4,-5,6)$ has signs $+\,-\,+$: octant IV.
(b) $AB=\sqrt{3^2+4^2+(-12)^2}=\sqrt{9+16+144}=\sqrt{169}=13$.
(c) $OP=\sqrt{9+16+144}=13$. From the $x$-axis: $\sqrt{(-4)^2+12^2}=\sqrt{160}=4\sqrt{10}$. From the $YZ$-plane: $|x|=3$.
(d) $AB^2=1+1+16=18$, $BC^2=9+9+0=18$, $AC^2=16+4+16=36$. So $AB=BC=3\sqrt2$ and $AB^2+BC^2=36=AC^2$: by the converse of Pythagoras the angle at $B$ is a right angle, and the triangle is isosceles.
Check $AC=6=\sqrt2\cdot3\sqrt2$: the hypotenuse of a right isosceles triangle is $\sqrt2$ times a leg โœ“.

A condition on the distances of a moving point is called a locus condition, exactly as in coordinate geometry of the plane. In space the answer is usually a surface, not a curve.

โœ๏ธ Example 2 โ€” Two loci in space
(a) Find the equation of the set of points equidistant from $A(1,2,3)$ and $B(3,2,-1)$. (b) Find the equation of the set of points whose distance from the $z$-axis is $5$. Is it a circle?
(a) $PA^2=PB^2$: $(x-1)^2+(y-2)^2+(z-3)^2=(x-3)^2+(y-2)^2+(z+1)^2$. The squares $x^2,y^2,z^2$ cancel: $-2x+1-6z+9=-6x+9+2z+1$, i.e. $4x-8z=0$, or $x=2z$.
Meaning A first-degree equation in $x,y,z$; it describes the plane that bisects $AB$ at right angles. (It passes through the midpoint $(2,2,1)$ of $AB$: $2=2\cdot1$ โœ“.)
(b) Theorem 11.1: $\sqrt{x^2+y^2}=5$, i.e. $x^2+y^2=25$, with $z$ free. This is not a circle: every point $(3,4,z)$ satisfies it, whatever $z$ is. It is a cylinder of radius $5$ around the $z$-axis; the circle is only its slice $x^2+y^2=25,\ z=0$.

The distance of the point $P(2,-3,6)$ from the $y$-axis is

The Section Formula and Centroids

Where is the point $40\%$ of the way from $P$ to $Q$? Where does the segment $PQ$ pierce the $XY$-plane? Both questions ask for a point that divides a segment in a given ratio.

๐Ÿ“ Theorem 11.2 โ€” The section formula

Let $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$, and let $m,n\gt0$. The point $R$ dividing $PQ$ internally in the ratio $m:n$ (so $R$ is between $P$ and $Q$ and $PR:RQ=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).$$

The point dividing $PQ$ externally in the ratio $m:n$ ($m\ne n$; $R$ on line $PQ$ outside the segment, $PR:RQ=m:n$) is obtained by replacing $n$ by $-n$: $\left(\dfrac{mx_2-nx_1}{m-n},\dots\right)$. The midpoint is $\left(\tfrac{x_1+x_2}2,\tfrac{y_1+y_2}2,\tfrac{z_1+z_2}2\right)$. In ratio form, the point dividing $PQ$ in the ratio $k:1$ is $\left(\dfrac{kx_2+x_1}{k+1},\dfrac{ky_2+y_1}{k+1},\dfrac{kz_2+z_1}{k+1}\right)$, internal for $k\gt0$ and external for $k\lt0$ ($k\ne-1$).

Proof. Draw the planes through $P$, $R$ and $Q$ perpendicular to the $x$-axis: they are $x=x_1$, $x=x_R$, $x=x_2$. Parallel planes cut any two lines in proportional pieces, so the segment $PQ$ and the $x$-axis are divided in the same ratio: $\dfrac{x_R-x_1}{x_2-x_R}=\dfrac mn$. Solving, $n x_R-nx_1=mx_2-mx_R$, so $x_R=\dfrac{mx_2+nx_1}{m+n}$. The $y$- and $z$-coordinates are found in the same way with planes perpendicular to the other axes. For external division $R$ is outside the segment, so the signed ratio is $-\tfrac mn$ and $n$ becomes $-n$. $\blacksquare$

๐Ÿ“ Theorem 11.3 โ€” Centroids of a triangle and of a tetrahedron

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)$. The four segments joining the vertices of a tetrahedron $ABCD$ to the centroids of the opposite faces meet at one point, its centroid, which divides each of them in the ratio $3:1$ and is the average of the four vertices: $\left(\tfrac{x_1+x_2+x_3+x_4}4,\dots\right)$.

Proof. The centroid $G$ of triangle $ABC$ divides the median from $A$ to the midpoint $M=\tfrac{B+C}2$ in the ratio $2:1$; by Theorem 11.2 (coordinate by coordinate) $G=\dfrac{2M+A}{3}=\dfrac{A+B+C}3$. For the tetrahedron, let $G_A=\tfrac{B+C+D}3$ be the centroid of the face opposite $A$. The point dividing $AG_A$ in the ratio $3:1$ is $\dfrac{3G_A+A}{4}=\dfrac{A+B+C+D}4$. This expression is the same for all four vertices, so all four segments pass through it. $\blacksquare$ (Here "$A+B$" means adding coordinates, a shorthand we use for brevity.)

The section formula also tests collinearity: three points are collinear exactly when one of them divides the segment joining the other two in some ratio โ€” and by Theorem 11.5 below, exactly when the direction ratios of $AB$ and $AC$ are proportional.

โœ๏ธ Example 3 โ€” Dividing segments
(a) Find the points dividing the join of $A(1,-2,3)$ and $B(7,4,-3)$ internally and externally in the ratio $2:1$. (b) In what ratio does the $XY$-plane divide the join of $(-2,4,7)$ and $(3,-5,-8)$? Find the point of division. (c) Show that $A(2,3,4)$, $B(-1,-2,1)$ and $C(8,13,10)$ are collinear, and find the ratio in which $A$ divides $BC$.
(a) Internal: $\left(\tfrac{2\cdot7+1}3,\tfrac{2\cdot4-2}3,\tfrac{2(-3)+3}3\right)=(5,2,-1)$. External: $\left(\tfrac{14-1}{1},\tfrac{8+2}{1},\tfrac{-6-3}{1}\right)=(13,10,-9)$.
(b) Let the ratio be $k:1$. A point of the $XY$-plane has $z=0$: $\dfrac{-8k+7}{k+1}=0$, so $k=\tfrac78$ โ€” positive, so the division is internal, $7:8$.
Point $x=\dfrac{3k-2}{k+1}=\dfrac{\tfrac{21}8-2}{\tfrac{15}8}=\tfrac13$, $\ y=\dfrac{-5k+4}{k+1}=\dfrac{-\tfrac38}{\tfrac{15}8}=-\tfrac15$: the point is $\left(\tfrac13,-\tfrac15,0\right)$.
(c) $\overrightarrow{BA}$ has components $(3,5,3)$ and $\overrightarrow{AC}$ has $(6,10,6)=2(3,5,3)$: proportional, so $B$, $A$, $C$ are collinear with $AC=2\,BA$. Hence $A$ divides $BC$ internally in the ratio $BA:AC=1:2$.
Check $\dfrac{1\cdot C+2\cdot B}{3}=\left(\tfrac{8-2}3,\tfrac{13-4}3,\tfrac{10+2}3\right)=(2,3,4)=A$ โœ“. โฑ For "ratio in which a coordinate plane divides $PQ$": $k=-\dfrac{(\text{that coordinate of }P)}{(\text{that coordinate of }Q)}$. Here $k=-\tfrac{7}{-8}=\tfrac78$.
โœ๏ธ Example 4 โ€” Recovering vertices
(a) The centroid of triangle $ABC$ is $(1,1,1)$, $A=(3,-5,7)$ and $B=(-1,7,-6)$. Find $C$. (b) The midpoints of the sides $BC$, $CA$, $AB$ of a triangle are $D(1,5,-1)$, $E(0,4,-2)$ and $F(2,3,4)$. Find the vertices and the centroid.
Find the $z$-coordinate of $C$ in (b) before you open the solution:
(a) $A+B+C=3G$: $C=(3-3+1,\ 3+5-7,\ 3-7+6)=(1,1,2)$.
(b) Idea $B+C=2D$, $C+A=2E$, $A+B=2F$. Adding, $A+B+C=D+E+F$. Subtract each equation: $A=E+F-D$, $B=F+D-E$, $C=D+E-F$.
(b) Vertices $A=(1,2,3)$, $B=(3,4,5)$, $C=(-1,6,-7)$. Centroid $\tfrac{D+E+F}3=\left(1,4,\tfrac13\right)$ โ€” the triangle of midpoints has the same centroid.
Check Midpoint of $BC$: $\left(\tfrac{3-1}2,\tfrac{4+6}2,\tfrac{5-7}2\right)=(1,5,-1)=D$ โœ“; of $AB$: $(2,3,4)=F$ โœ“.

The $ZX$-plane divides the segment joining $(1,-2,3)$ and $(4,6,-5)$ in the ratio

Direction Cosines and Direction Ratios

In the plane, one number โ€” the slope, or the angle with the $x$-axis โ€” tells you which way a line runs. In space a single angle is not enough: a line making $60^\circ$ with the $x$-axis could be any line on a whole cone around that axis. We use three angles, one with each axis.

๐Ÿ“˜ Definition 11.2 โ€” Direction angles and direction cosines

Let a line be given a direction, and let $\alpha$, $\beta$, $\gamma$ be the angles ($0\le\alpha,\beta,\gamma\le\pi$) that this direction makes with the positive $x$-, $y$- and $z$-axes (if the line does not pass through $O$, use the parallel line through $O$ with the same direction). These are its direction angles, and

$$l=\cos\alpha,\qquad m=\cos\beta,\qquad n=\cos\gamma$$

are its direction cosines (DCs). Reversing the direction replaces each angle $\theta$ by $\pi-\theta$, so the DCs become $-l,-m,-n$: an undirected line has two sets of DCs, $\pm(l,m,n)$. Parallel lines have the same DCs.

๐Ÿ“ Theorem 11.4 โ€” Coordinates along a direction; $l^2+m^2+n^2=1$

If $P(x,y,z)$ lies on the directed line through $O$ with DCs $l,m,n$, on the positive side of $O$ and at distance $r=OP$ from it, then

$$x=lr,\qquad y=mr,\qquad z=nr,\qquad\text{and}\qquad l^2+m^2+n^2=1.$$

Equivalently $\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1$, so also $\sin^2\alpha+\sin^2\beta+\sin^2\gamma=2$ and $\cos2\alpha+\cos2\beta+\cos2\gamma=-1$.

Proof. Let $A=(x,0,0)$ be the foot of the perpendicular from $P$ to the $x$-axis. Triangle $OAP$ has a right angle at $A$ and the angle $\alpha$ at $O$, so the signed length $OA$ is $r\cos\alpha$; that is, $x=lr$. (If $\alpha$ is obtuse, $A$ lies on the negative $x$-axis and $\cos\alpha\lt0$ โ€” the sign takes care of itself.) The same argument with the $y$- and $z$-axes gives $y=mr$, $z=nr$. Then $r^2=x^2+y^2+z^2=r^2(l^2+m^2+n^2)$, and dividing by $r^2$ gives $l^2+m^2+n^2=1$. The other two identities follow from $\sin^2=1-\cos^2$ and $\cos2\theta=2\cos^2\theta-1$. $\blacksquare$

So a set of DCs is nothing but the coordinates of the point at distance $1$ along the line from $O$. In practice we rarely know the angles; we know some multiple of $(l,m,n)$, for instance the differences of coordinates of two points of the line.

๐Ÿ“˜ Definition 11.3 โ€” Direction ratios

Three numbers $a,b,c$, not all zero, are direction ratios (DRs) of a line with DCs $l,m,n$ if they are proportional to them: $a=kl$, $b=km$, $c=kn$ for some $k\ne0$. A line has infinitely many sets of DRs (all multiples of one set), but only two sets of DCs.

๐Ÿ“ Theorem 11.5 โ€” From direction ratios to direction cosines; the line through two points

(a) If a line has DRs $a,b,c$, its DCs are

$$l=\frac{\pm a}{\sqrt{a^2+b^2+c^2}},\quad m=\frac{\pm b}{\sqrt{a^2+b^2+c^2}},\quad n=\frac{\pm c}{\sqrt{a^2+b^2+c^2}},$$

with the same sign taken throughout. (b) The line through $P(x_1,y_1,z_1)$ and $Q(x_2,y_2,z_2)$ has DRs $x_2-x_1,\ y_2-y_1,\ z_2-z_1$, and the direction from $P$ to $Q$ has DCs $\dfrac{x_2-x_1}{PQ},\ \dfrac{y_2-y_1}{PQ},\ \dfrac{z_2-z_1}{PQ}$.

Proof. (a) From $a=kl$, $b=km$, $c=kn$: $a^2+b^2+c^2=k^2(l^2+m^2+n^2)=k^2$, so $k=\pm\sqrt{a^2+b^2+c^2}$ and $l=\tfrac ak$ and so on. (b) Slide the segment $PQ$ (without turning it) so that $P$ moves to $O$; then $Q$ moves to $R(x_2-x_1,\,y_2-y_1,\,z_2-z_1)$, and $OR$ has the same direction as $PQ$ and length $PQ$. By Theorem 11.4 the DCs of $OR$ are the coordinates of $R$ divided by $OR=PQ$. $\blacksquare$ The differences $x_2-x_1$, $y_2-y_1$, $z_2-z_1$ are also called the projections of $PQ$ on the axes.

โœ๏ธ Example 5 โ€” Direction cosines
(a) Find the DCs of a line with DRs $2,-1,-2$. (b) A line makes angles $45^\circ$ and $60^\circ$ with the positive $x$- and $y$-axes. Find its angle with the positive $z$-axis. (c) Find the DCs of the direction from $(4,3,-5)$ to $(-2,1,-8)$. (d) Can a line make angles $30^\circ$ and $45^\circ$ with the $x$- and $y$-axes? (e) Find the DCs of a line equally inclined to the three axes, and the angle it makes with each.
(a) $\sqrt{4+1+4}=3$: DCs $\pm\left(\tfrac23,-\tfrac13,-\tfrac23\right)$.
(b) $\cos^2\gamma=1-\cos^245^\circ-\cos^260^\circ=1-\tfrac12-\tfrac14=\tfrac14$, so $\cos\gamma=\pm\tfrac12$ and $\gamma=60^\circ$ or $120^\circ$ โ€” two lines fit the data.
(c) DRs $(-6,-2,-3)$, length $\sqrt{36+4+9}=7$: DCs $\left(-\tfrac67,-\tfrac27,-\tfrac37\right)$ (the direction is given, so only one sign).
(d) $\cos^2\gamma=1-\tfrac34-\tfrac12=-\tfrac14\lt0$: impossible. No line makes both of these angles.
(e) $l=m=n$ and $3l^2=1$: DCs $\pm\left(\tfrac1{\sqrt3},\tfrac1{\sqrt3},\tfrac1{\sqrt3}\right)$, and each angle is $\cos^{-1}\tfrac1{\sqrt3}\approx54.74^\circ$ (or its supplement). This is the direction of a diagonal of a cube.

Let $P=(2,3,6)$. Before using the viewer, predict the angle that $OP$ makes with the positive $z$-axis.

Set $x=2$, $y=3$, $z=6$. The readouts show $r=7$, $(l,m,n)=(0.2857,\ 0.4286,\ 0.8571)$, $l^2+m^2+n^2=1.0000$ and $(\alpha,\beta,\gamma)=(73.4^\circ,\ 64.6^\circ,\ 31.0^\circ)$. The green triangle $O$โ€“$(0,0,6)$โ€“$P$ has a right angle at $(0,0,6)$, so $\cos\gamma=\tfrac67$ and $\gamma\approx31^\circ$: the line is steep because $z$ is the largest coordinate. $59^\circ$ is $90^\circ-\gamma$ (the angle with the $XY$-plane); $65^\circ$ and $73^\circ$ are the angles with the $y$- and $x$-axes.
Interactive 1 โ€” 3-D Viewer: the Direction-Cosine Box

Set the coordinates of $P$ with the sliders. $P$ is the far corner of the dashed box. The red, blue and green dashed lines are the perpendiculars from $P$ to the three axes, and the arcs at $O$ are the direction angles $\alpha$, $\beta$, $\gamma$: each right triangle shows $x=r\cos\alpha$, $y=r\cos\beta$, $z=r\cos\gamma$ (Theorem 11.4). Drag the picture to turn it (Play turns it for you). "Reverse" points the line the other way.

236
$r=OP$โ€”
$(l,\,m,\,n)$โ€”
$l^2+m^2+n^2$โ€”
$(\alpha,\,\beta,\,\gamma)$โ€”
positionโ€”

Which of the following can be the direction cosines of a line?

Equations of a Line in Space

A line in space is fixed by one of its points and its direction. A point $P(x,y,z)$ is on the line through $A(x_1,y_1,z_1)$ with DRs $a,b,c$ exactly when the segment $AP$ has that direction, i.e. when the DRs $x-x_1$, $y-y_1$, $z-z_1$ of $AP$ are proportional to $a,b,c$.

๐Ÿ“ Theorem 11.6 โ€” Equations of a line

The line through $A(x_1,y_1,z_1)$ with DRs $a,b,c$ has the symmetric (Cartesian) form

$$\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}$$

and the parametric form $x=x_1+a\lambda$, $y=y_1+b\lambda$, $z=z_1+c\lambda$ ($\lambda\in\mathbb{R}$); $(x_1+a\lambda,\ y_1+b\lambda,\ z_1+c\lambda)$ is the general point of the line. The line through two points $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ is $\dfrac{x-x_1}{x_2-x_1}=\dfrac{y-y_1}{y_2-y_1}=\dfrac{z-z_1}{z_2-z_1}$. If $(a,b,c)=(l,m,n)$ are DCs, then $|\lambda|$ is the distance from $A$: the two points at distance $r$ from $A$ on the line are $(x_1\pm lr,\ y_1\pm mr,\ z_1\pm nr)$.

Proof. $AP$ has the direction $(a,b,c)$ exactly when $(x-x_1,y-y_1,z-z_1)=\lambda(a,b,c)$ for some $\lambda$ โ€” that is the parametric form, and eliminating $\lambda$ gives the symmetric form. With DCs, $AP=\sqrt{\lambda^2(l^2+m^2+n^2)}=|\lambda|$ by Theorem 11.4. $\blacksquare$ A zero in a denominator is a convention, not a division: $\dfrac{x-2}{3}=\dfrac{y+1}{0}=\dfrac{z-4}{-2}$ means $y=-1$ (the general point $(2+3\lambda,\,-1,\,4-2\lambda)$ never changes its $y$), so the line lies in the plane $y=-1$. In vector language (Chapter 12) the parametric form reads $\vec r=\vec a+\lambda\vec b$, where $\vec a$ is the position vector of $A$ and $\vec b=a\hat i+b\hat j+c\hat k$; we will not need vectors in this chapter.

๐Ÿงญ Problem-solving strategy โ€” reading a line given in a non-standard form
  1. Make the coefficient of $x$, $y$ and $z$ in each numerator equal to $+1$ by dividing numerator and denominator: $\dfrac{2x-1}{3}=\dfrac{x-\tfrac12}{\tfrac32}$ and $\dfrac{4-y}{2}=\dfrac{y-4}{-2}$.
  2. Read the point from the numerators and the DRs from the denominators: $\dfrac{2x-1}3=\dfrac{4-y}2=\dfrac{z+1}1$ passes through $\left(\tfrac12,4,-1\right)$ with DRs $\tfrac32,-2,1$, or (times $2$) $3,-4,2$.
  3. A line written as $px=qy=rz$ (all three equal to $t$) has general point $\left(\tfrac tp,\tfrac tq,\tfrac tr\right)$: it passes through $O$ with DRs $\tfrac1p,\tfrac1q,\tfrac1r$.
  4. Before using any formula, write the line as "point $+\lambda\cdot$direction". Every later question โ€” a point at a given distance, a crossing with a coordinate plane, a foot of a perpendicular โ€” is then a question about $\lambda$.
โœ๏ธ Example 6 โ€” Writing and reading lines
(a) Find the line through $A(2,-1,3)$ parallel to $\dfrac{x-1}2=\dfrac{y+2}3=\dfrac{z}{-6}$, and the two points on it at distance $14$ from $A$. (b) Find the line through $(1,2,-1)$ and $(3,-2,5)$, and the point where it meets the $XY$-plane. Does $(5,-6,11)$ lie on it? (c) Find a point and the DCs of the line $\dfrac{3-x}{2}=\dfrac{2y+1}{4}=\dfrac{z-2}{-1}$.
(a) Parallel lines share DRs $(2,3,-6)$: $\dfrac{x-2}2=\dfrac{y+1}3=\dfrac{z-3}{-6}$. Since $\sqrt{4+9+36}=7$, the DCs are $\left(\tfrac27,\tfrac37,-\tfrac67\right)$ and the points at distance $14$ are $(2,-1,3)\pm14\left(\tfrac27,\tfrac37,-\tfrac67\right)$: $(6,5,-9)$ and $(-2,-7,15)$.
(b) DRs $(2,-4,6)$, or $(1,-2,3)$: $\dfrac{x-1}1=\dfrac{y-2}{-2}=\dfrac{z+1}3$, general point $(1+\lambda,\,2-2\lambda,\,-1+3\lambda)$. On the $XY$-plane $z=0$: $\lambda=\tfrac13$, giving $\left(\tfrac43,\tfrac43,0\right)$. For $(5,-6,11)$: $x$ gives $\lambda=4$, and then $y=2-8=-6$ โœ“, $z=-1+12=11$ โœ“ โ€” it lies on the line.
(c) Rewrite: $\dfrac{x-3}{-2}=\dfrac{y+\tfrac12}{2}=\dfrac{z-2}{-1}$. Point $\left(3,-\tfrac12,2\right)$, DRs $(-2,2,-1)$, $\sqrt{4+4+1}=3$: DCs $\pm\left(-\tfrac23,\tfrac23,-\tfrac13\right)$.
Check (a) The distance from $A$ to $(6,5,-9)$ is $\sqrt{16+36+144}=\sqrt{196}=14$ โœ“.
โœ๏ธ Example 7 โ€” Hard example: a line, two points on it and its crossings
The line $L$ passes through $A(1,2,3)$ and has DRs $2,-2,1$. (a) Find the points $P$ and $Q$ of $L$ at distance $6$ from $A$ (take $P$ in the direction of the given DRs). (b) Find where $L$ meets each coordinate plane. (c) In what ratio does the $XY$-plane divide $PQ$?
Find the $y$-coordinate of the point where $L$ meets the $XY$-plane:
(a) $\sqrt{4+4+1}=3$, DCs $\left(\tfrac23,-\tfrac23,\tfrac13\right)$. $P=A+6\left(\tfrac23,-\tfrac23,\tfrac13\right)=(5,-2,5)$ and $Q=A-6\left(\tfrac23,-\tfrac23,\tfrac13\right)=(-3,6,1)$.
(b) General point $(1+2\lambda,\ 2-2\lambda,\ 3+\lambda)$. $XY$-plane ($z=0$): $\lambda=-3$, point $(-5,8,0)$. $YZ$-plane ($x=0$): $\lambda=-\tfrac12$, point $\left(0,3,\tfrac52\right)$. $ZX$-plane ($y=0$): $\lambda=1$, point $(3,0,4)$.
(c) The $z$-coordinates of $P$ and $Q$ are $5$ and $1$ โ€” same sign, so the $XY$-plane cuts the line outside the segment. $k=-\tfrac51=-5$: the division is external, $5:1$.
Check External $5:1$: $\dfrac{5Q-P}{5-1}=\left(\tfrac{-15-5}4,\tfrac{30+2}4,\tfrac{5-5}4\right)=(-5,8,0)$, the point found in (b) โœ“.

Take $P(5,-2,5)$ and $Q(-3,6,1)$ from Example 7, and let a point $X$ travel along line $PQ$ starting at $P$. Where does $X$ reach the $XY$-plane?

Choose the preset Example 7 (A = P, B = Q) and drag $\lambda$ to $1.25$. The readouts show $X=(-5,\,8,\,0)$, the green marker "z = 0" lights up, and the ratio reads $AX:XB=5:1$ externally. Both $P$ and $Q$ are above the $XY$-plane ($z=5$ and $z=1$), so the line must go past $Q$ before it gets down to $z=0$; $z$ drops by $4$ per unit of $\lambda$, so it reaches $0$ at $\lambda=\tfrac54$.
Interactive 2 โ€” Line Tracer: the Section Formula and the Coordinate Planes

The point $X=A+\lambda(B-A)$ runs along the line through $A$ and $B$: $\lambda=0$ at $A$, $\lambda=1$ at $B$, $0\lt\lambda\lt1$ between them. By the section formula $X$ divides $AB$ in the ratio $\lambda:(1-\lambda)$ โ€” internally between $A$ and $B$, externally outside. The squares mark where the line pierces the three coordinate planes; the dashed drop from $X$ shows its height above the faint $XY$-plane. Move $\lambda$ or press Play, and drag the picture to turn it.

0.40
$X$โ€”
$AX:XB$โ€”
$\frac{x-x_1}{x_2-x_1}=\frac{y-y_1}{y_2-y_1}=\frac{z-z_1}{z_2-z_1}$โ€”
โš ๏ธ JEE Main traps

1. Axis or plane? The distance of $(x,y,z)$ from the $x$-axis is $\sqrt{y^2+z^2}$; from the $YZ$-plane it is $|x|$. Mixing the two is the most common slip of this chapter.

2. One equation in space is a surface. $x^2+y^2=25$ is a cylinder, and $x=2z$ is a plane. A circle or a line in space needs two equations (for example $x^2+y^2=25,\ z=0$).

3. DCs versus DRs. Direction cosines satisfy $l^2+m^2+n^2=1$; direction ratios need not. "DCs proportional to $2,-1,2$" means divide by $3$. Two sets of DCs, $\pm(l,m,n)$, describe the same line; a stated direction (or "makes an acute angle with the $z$-axis") picks one.

4. Non-standard forms. In $\dfrac{2x-1}{3}=\dfrac{4-y}{2}=\dfrac{z}{1}$ the DRs are $\tfrac32,-2,1$, not $3,2,1$: the coefficient of $x$ must be $1$, and $4-y$ flips the sign. A zero denominator means that coordinate is constant.

5. Internal or external? A coordinate plane divides $PQ$ internally when the relevant coordinates of $P$ and $Q$ have opposite signs, externally when they have the same sign. The ratio $k:1$ is measured from the first point.

The line $\dfrac{1-x}{2}=\dfrac{y+3}{1}=\dfrac{2z-1}{4}$ has direction ratios

Exercises

I
Coordinates and distances.
  • 1 Name the octant (or the plane) containing each point: $(-3,1,-2)$, $(2,-5,-1)$, $(-1,-1,4)$, $(4,0,-2)$.
  • 2 Find the distance between $(2,-1,3)$ and $(-4,1,0)$.
  • 3 For $P(4,-3,12)$ find its distances from the origin, from each axis and from the $XY$-plane.
  • 4 Show that $A(1,0,2)$, $B(3,4,5)$, $C(6,5,3)$, $D(4,1,0)$ are the vertices of a parallelogram $ABCD$, but not of a rectangle.
  • 5 The distance between $(x,2,-1)$ and $(3,-4,1)$ is $7$. Find the possible values of $x$ and their sum.
  • 6 Find the point on the $y$-axis equidistant from $A(3,1,2)$ and $B(5,5,2)$.
  • 7 Find the equation of the locus of a point whose distance from the $x$-axis equals its distance from the $YZ$-plane.
  • 8 Show that $A(2,3,5)$, $B(-1,3,2)$, $C(3,5,-2)$ form a right-angled triangle and find its area.
1 $(-,+,-)$: VI; $(+,-,-)$: VIII; $(-,-,+)$: III; $(4,0,-2)$ has $y=0$, so it lies on the $ZX$-plane, in no octant.
2 $\sqrt{36+4+9}=\sqrt{49}=7$.
3 $OP=\sqrt{16+9+144}=13$; $x$-axis $\sqrt{9+144}=3\sqrt{17}$; $y$-axis $\sqrt{16+144}=4\sqrt{10}$; $z$-axis $\sqrt{16+9}=5$; $XY$-plane $12$.
4 $B-A=(2,4,3)=C-D$: the sides $AB$ and $DC$ are equal and parallel, so $ABCD$ is a parallelogram. Its diagonals are $AC=\sqrt{25+25+1}=\sqrt{51}$ and $BD=\sqrt{1+9+25}=\sqrt{35}$, which are unequal, so it is not a rectangle.
5 $(x-3)^2+36+4=49$, $(x-3)^2=9$: $x=0$ or $x=6$; sum $6$.
6 $(0,y,0)$: $9+(y-1)^2+4=25+(y-5)^2+4$ gives $8y-24=16$, $y=5$. The point is $(0,5,0)$ (both distances $\sqrt{29}$).
7 $\sqrt{y^2+z^2}=|x|$, i.e. $y^2+z^2=x^2$ (a double cone around the $x$-axis).
8 $AB^2=18$, $BC^2=36$, $CA^2=54=AB^2+BC^2$: right angle at $B$. Area $=\tfrac12\cdot AB\cdot BC=\tfrac12\cdot3\sqrt2\cdot6=9\sqrt2\approx12.73$.
II
The section formula, centroids and collinearity.
  • 1 Find the points dividing the join of $A(-1,3,4)$ and $B(5,-3,1)$ internally and externally in the ratio $1:2$.
  • 2 In what ratio does the $YZ$-plane divide the join of $(-2,4,7)$ and $(3,-5,8)$? Find the point of division.
  • 3 Find the two points that trisect the join of $(1,-2,3)$ and $(4,7,-6)$.
  • 4 Show that $A(3,-2,4)$, $B(1,1,1)$, $C(-3,7,-5)$ are collinear and find the ratio in which $B$ divides $AC$.
  • 5 The centroid of the triangle with vertices $(a,1,3)$, $(-2,b,-5)$, $(4,7,c)$ is the origin. Find $a+b+c$.
  • 6 Find the centroid of the tetrahedron with vertices $(1,2,3)$, $(2,-1,4)$, $(4,5,-1)$, $(-3,6,2)$.
  • 7 In triangle $ABC$ with $A(0,0,0)$, $B(2,1,2)$, $C(4,-4,-2)$, the bisector of angle $A$ meets $BC$ at $D$. Using $BD:DC=AB:AC$, find $D$.
  • 8 The point $(p,2,q)$ lies on the line through $A(1,-1,2)$ and $B(3,3,6)$. Find $p+q$.
1 Internal: $\dfrac{1\cdot B+2A}{3}=(1,1,3)$. External: $\dfrac{1\cdot B-2A}{1-2}=2A-B=(-7,9,7)$.
2 $x=0$: $k=-\tfrac{-2}{3}=\tfrac23$, internally $2:3$. Point $\dfrac{2(3,-5,8)+3(-2,4,7)}5=\left(0,\tfrac25,\tfrac{37}5\right)$.
3 Ratios $1:2$ and $2:1$: $(2,1,0)$ and $(3,4,-3)$.
4 $B-A=(-2,3,-3)$ and $C-B=(-4,6,-6)=2(B-A)$: collinear, $BC=2AB$, so $B$ divides $AC$ internally in the ratio $1:2$.
5 $a-2+4=0$, $1+b+7=0$, $3-5+c=0$: $a=-2$, $b=-8$, $c=2$; $a+b+c=-8$.
6 Average of the four vertices: $\left(\tfrac44,\tfrac{12}4,\tfrac84\right)=(1,3,2)$.
7 $AB=\sqrt{4+1+4}=3$ and $AC=\sqrt{16+16+4}=6$, so $BD:DC=1:2$ and $D=\dfrac{2B+C}{3}=\left(\tfrac83,-\tfrac23,\tfrac23\right)$.
8 $(p-1,\,3,\,q-2)$ must be proportional to $B-A=(2,4,4)$; the ratio is $\tfrac34$, so $p-1=\tfrac32$ and $q-2=3$: $p=\tfrac52$, $q=5$, $p+q=7.5$.
III
Direction cosines and direction ratios.
  • 1 Find the DCs of a line with DRs $6,-2,3$.
  • 2 Find the DCs of the line through $(-2,4,-5)$ and $(1,2,3)$.
  • 3 A line makes angles $\alpha,\beta,\gamma$ with the axes. Find $\sin^2\alpha+\sin^2\beta+\sin^2\gamma$ and $\cos2\alpha+\cos2\beta+\cos2\gamma$.
  • 4 A line makes $60^\circ$ with the positive $x$-axis and $45^\circ$ with the positive $z$-axis. Find its angle with the positive $y$-axis.
  • 5 A line makes equal angles $\theta$ with the positive $x$- and $y$-axes and $45^\circ$ with the positive $z$-axis. Find $\theta$.
  • 6 Using direction ratios, show that $A(2,3,-4)$, $B(1,-2,3)$, $C(3,8,-11)$ are collinear.
  • 7 The projections of a segment on the $x$-, $y$- and $z$-axes are $2$, $-3$ and $6$. Find its length and its DCs.
  • 8 Which of these triples can be the direction angles of a line? (a) $45^\circ,60^\circ,120^\circ$ (b) $30^\circ,45^\circ,60^\circ$ (c) $90^\circ,135^\circ,45^\circ$.
1 $\sqrt{36+4+9}=7$: $\pm\left(\tfrac67,-\tfrac27,\tfrac37\right)$.
2 DRs $(3,-2,8)$, $\sqrt{9+4+64}=\sqrt{77}$: $\pm\left(\tfrac3{\sqrt{77}},-\tfrac2{\sqrt{77}},\tfrac8{\sqrt{77}}\right)$.
3 $\sum\sin^2=3-\sum\cos^2=2$; $\ \sum\cos2\alpha=\sum(2\cos^2\alpha-1)=2-3=-1$.
4 $\cos^2\beta=1-\tfrac14-\tfrac12=\tfrac14$: $\beta=60^\circ$ or $120^\circ$.
5 $2\cos^2\theta+\tfrac12=1$, $\cos^2\theta=\tfrac14$: $\theta=60^\circ$ or $120^\circ$.
6 DRs of $AB$: $(-1,-5,7)$; of $AC$: $(1,5,-7)$ โ€” proportional (ratio $-1$), and $A$ is common, so the points are collinear ($A$ is in fact the midpoint of $BC$).
7 The projections are $x_2-x_1$, $y_2-y_1$, $z_2-z_1$: length $\sqrt{4+9+36}=7$, DCs $\left(\tfrac27,-\tfrac37,\tfrac67\right)$.
8 Add the squares of the cosines: (a) $\tfrac12+\tfrac14+\tfrac14=1$ โœ“; (b) $\tfrac34+\tfrac12+\tfrac14=\tfrac32$ โœ—; (c) $0+\tfrac12+\tfrac12=1$ โœ“. So (a) and (c).
IV
Equations of lines.
  • 1 Write the symmetric and parametric equations of the line through $(-2,4,-5)$ with DRs $3,5,-6$.
  • 2 Find the equations of the line through $(3,-2,-5)$ and $(3,-2,6)$. To which axis is it parallel?
  • 3 Find a point on, and the DCs of, the line $\dfrac{2x-3}{4}=\dfrac{1-y}{2}=\dfrac{3z+1}{6}$.
  • 4 Which of the points $(7,-3,8)$ and $(4,-2,6)$ lie on the line $\dfrac{x-1}{3}=\dfrac{y+1}{-1}=\dfrac{z-2}{3}$?
  • 5 Find the points on $\dfrac{x+2}{2}=\dfrac{y+1}{-1}=\dfrac{z-3}{2}$ at distance $6$ from $(-2,-1,3)$.
  • 6 Find where the line through $(2,-3,1)$ and $(3,-4,-5)$ meets the $ZX$-plane, and the ratio in which the $ZX$-plane divides the join of these points.
  • 7 Find the line through $(1,2,3)$ parallel to the line $6x=3y=-2z$.
  • 8 A drone flies in a straight line at constant speed $7$ m/s from $A(0,0,10)$ to $B(60,30,30)$ (coordinates in metres, $z$ = height). Find the flight time, the DCs of its direction, its position after $4$ s, and the moment it is at height $22$ m.
1 $\dfrac{x+2}3=\dfrac{y-4}5=\dfrac{z+5}{-6}$; $\ x=-2+3\lambda$, $y=4+5\lambda$, $z=-5-6\lambda$.
2 DRs $(0,0,11)$, i.e. $(0,0,1)$: $\dfrac{x-3}0=\dfrac{y+2}0=\dfrac{z+5}1$, meaning $x=3$, $y=-2$, $z$ free. It is parallel to the $z$-axis.
3 $\dfrac{x-\tfrac32}{2}=\dfrac{y-1}{-2}=\dfrac{z+\tfrac13}{2}$: point $\left(\tfrac32,1,-\tfrac13\right)$, DRs $(1,-1,1)$, DCs $\pm\left(\tfrac1{\sqrt3},-\tfrac1{\sqrt3},\tfrac1{\sqrt3}\right)$.
4 General point $(1+3\lambda,\,-1-\lambda,\,2+3\lambda)$. $(7,-3,8)$: $\lambda=2$ from every coordinate โœ“. $(4,-2,6)$: $\lambda=1$ from $x$ and $y$, but then $z=5\ne6$ โœ—. Only the first lies on the line.
5 DCs $\left(\tfrac23,-\tfrac13,\tfrac23\right)$; points $(-2,-1,3)\pm6\left(\tfrac23,-\tfrac13,\tfrac23\right)$: $(2,-3,7)$ and $(-6,1,-1)$.
6 General point $(2+\lambda,\,-3-\lambda,\,1-6\lambda)$; $y=0$ at $\lambda=-3$: $(-1,0,19)$. Ratio $k=-\tfrac{-3}{-4}=-\tfrac34$: externally $3:4$ (both $y$-coordinates are negative).
7 $6x=3y=-2z=t$ gives $\left(\tfrac t6,\tfrac t3,-\tfrac t2\right)$, DRs $\tfrac16,\tfrac13,-\tfrac12$, or $1,2,-3$: $\dfrac{x-1}1=\dfrac{y-2}2=\dfrac{z-3}{-3}$.
8 $AB=\sqrt{3600+900+400}=70$ m, time $10$ s; DCs $\left(\tfrac67,\tfrac37,\tfrac27\right)$. After $4$ s it has flown $28$ m: $A+28\left(\tfrac67,\tfrac37,\tfrac27\right)=(24,12,18)$. Height $z=10+2t$ (it climbs $20$ m in $10$ s), so $z=22$ at $t=6$ s.
๐ŸŽฏ Exam corner JEE Main ยท MCQJEE Main ยท Numerical

E1. JEE Main ยท MCQ The $YZ$-plane divides the segment joining $A(-2,5,1)$ and $B(4,-1,7)$ in the ratio $k:1$ at the point $R$. Then (A) $k=\tfrac12$, $R=(0,3,3)$ (B) $k=2$, $R=(0,1,5)$ (C) $k=-\tfrac12$, $R=(0,11,-5)$ (D) $k=\tfrac12$, $R=(0,2,4)$

Ratio $x=0$: $\dfrac{4k-2}{k+1}=0$, $k=\tfrac12$ (internal โ€” the $x$-coordinates $-2$, $4$ have opposite signs).
Point $R=\dfrac{\tfrac12B+A}{\tfrac32}=\dfrac{B+2A}3=\left(0,\tfrac{-1+10}3,\tfrac{7+2}3\right)=(0,3,3)$.
Answer (A).
โฑ Shortcut $k=-\tfrac{x_A}{x_B}=\tfrac24$. (B) inverts the ratio; (D) has the right $k$ but a wrong point โ€” check that $R$'s $x$-coordinate really comes out $0$ with the same formula.

E2. JEE Main ยท Numerical A line makes an angle of $60^\circ$ with the positive $x$-axis, $45^\circ$ with the positive $y$-axis and an acute angle $\gamma$ with the positive $z$-axis. Find $\gamma$ in degrees. Give the answer to the nearest integer.

Identity $\cos^2\gamma=1-\cos^260^\circ-\cos^245^\circ=1-\tfrac14-\tfrac12=\tfrac14$ (Theorem 11.4).
Acute $\cos\gamma=+\tfrac12$.
Answer $60$.

E3. JEE Main ยท MCQ In the triangle with vertices $A(2,-1,4)$, $B(1,3,-2)$ and $C(5,-3,6)$, the length of the median through $A$ is (A) $\tfrac{2\sqrt6}3$ (B) $\sqrt6$ (C) $\tfrac{3\sqrt6}2$ (D) $2\sqrt6$

Midpoint $M=\tfrac{B+C}2=(3,0,2)$.
Length $AM=\sqrt{1^2+1^2+(-2)^2}=\sqrt6$.
Answer (B).
โฑ Shortcut (A) is $AG$, the distance to the centroid, which is $\tfrac23$ of the median โ€” read whether the question asks for the median or for $AG$.

E4. JEE Main ยท Numerical The points $A(2,-1,3)$, $B(5,1,-1)$ and $C(\alpha,\beta,11)$ are collinear. Find $\alpha^2+\beta^2$. Give the answer to the nearest integer.

Line $C=A+t(B-A)=(2+3t,\,-1+2t,\,3-4t)$.
Use $z$ $3-4t=11$ gives $t=-2$: $C=(-4,-5,11)$ ($C$ lies beyond $A$, on the side away from $B$).
Answer $16+25=41$.

E5. JEE Main ยท MCQ A line has direction ratios $2,-1,2$ and makes an obtuse angle with the positive $z$-axis. Its direction cosines are (A) $\left(\tfrac23,-\tfrac13,\tfrac23\right)$ (B) $\left(\tfrac29,-\tfrac19,\tfrac29\right)$ (C) $\left(-\tfrac23,\tfrac13,-\tfrac23\right)$ (D) $\left(-\tfrac23,-\tfrac13,-\tfrac23\right)$

DCs $\sqrt{4+1+4}=3$, so the DCs are $\pm\left(\tfrac23,-\tfrac13,\tfrac23\right)$ (Theorem 11.5).
Sign Obtuse with the $z$-axis means $n\lt0$: take the minus sign throughout.
Answer (C).
โฑ Shortcut (B) divides by $a^2+b^2+c^2$ instead of its square root; (D) changes only some signs and is not proportional to $(2,-1,2)$.

E6. JEE Main ยท MCQ The locus of a point whose distance from the $z$-axis is twice its distance from the $XY$-plane is (A) $x^2+y^2=2z$ (B) $x^2+y^2=2z^2$ (C) $x^2+y^2=3z^2$ (D) $x^2+y^2=4z^2$

Distances From the $z$-axis: $\sqrt{x^2+y^2}$. From the $XY$-plane: $|z|$.
Equation $\sqrt{x^2+y^2}=2|z|$; squaring, $x^2+y^2=4z^2$ (a cone).
Answer (D).
โฑ Shortcut (C) comes from using the distance from the origin, $\sqrt{x^2+y^2+z^2}=2|z|$; (B) forgets to square the $2$.
๐Ÿ”ฌ Researchโ€“Teaching NexusResearch-tutored ยท optional, about 60 minutes

Research question. Warehouse robots, hospital equipment tags and football-tracking systems locate objects indoors, where satellite signals are weak, by measuring their distances from a few fixed radio beacons. How many beacons are needed to fix a point in space, and how do measurement errors move the answer?

Why it matters. Each measured distance $d_i$ to a beacon $B_i$ says that the tag lies on a sphere, $(x-x_i)^2+(y-y_i)^2+(z-z_i)^2=d_i^2$ โ€” the distance formula of Theorem 11.1. Subtracting two such equations cancels $x^2+y^2+z^2$ and leaves a first-degree equation, exactly as in Example 2(a). Ultra-wideband positioning, used in factories and sports arenas, works this way with errors of a few centimetres.

What to do.

  1. Put beacons at $B_0(0,0,0)$, $B_1(10,0,0)$, $B_2(0,8,0)$ and $B_3(0,0,4)$ (metres, the corners of a room). Choose a secret tag position, say $T(3,5,1.5)$, and compute the four distances $d_0,\dots,d_3$.
  2. Subtract the sphere equation of $B_0$ from that of $B_1$, $B_2$, $B_3$ in turn. Show that you get $x=\dfrac{d_0^2-d_1^2+100}{20}$ and similar formulas for $y$ and $z$, and check that they return $T$.
  3. Now round each distance to the nearest $0.1$ m (a realistic sensor) and recompute $T$. How far (Theorem 11.1) is the computed point from the true one? Repeat for a tag near the far corner of the room.
  4. Explain why three beacons alone leave two possible positions (two spheres meet in a circle, a third sphere cuts that circle in two points), and why the beacons must not all lie in one plane.

Tools: A calculator or spreadsheet; optionally a few lines of Python to repeat step 3 many times with random errors.

Hand in: Your formulas from step 2, a table of computed positions and errors for at least three tag positions, and a short paragraph on where in the room the system is most accurate.

Going further. Real systems use more than four beacons and choose the point that fits all the spheres best (least squares). How would you measure "fits best"? What happens if one beacon is blocked by a metal shelf and reports a distance that is too long?

Instructor note: with $B_0$ at the origin and the others on the axes, step 2 gives $x=\frac{d_0^2-d_1^2+a^2}{2a}$, and the error in $x$ is roughly $\frac{d_0\,\delta d_0-d_1\,\delta d_1}{a}$, so errors grow for tags far from the beacons and for beacons close together โ€” a good discussion of conditioning. Students who place all four beacons on the floor discover that $z$ is determined only up to sign, which is the "coplanar beacons" failure of step 4.

๐Ÿงช Self-check quiz

0/5 correct

Q1. The point $(-3,0,5)$ lies

Q2. The distance between $(1,1,1)$ and $(3,3,2)$ is

Q3. The direction cosines of the direction from $O$ to $(1,-2,2)$ are

Q4. The centroid of the tetrahedron with vertices $(0,0,0)$, $(4,0,0)$, $(0,4,0)$, $(0,0,4)$ is

Q5. The line $\dfrac{x-2}{3}=\dfrac{y+1}{0}=\dfrac{z-4}{-2}$