A-Level Further Maths 9231 / Topic 1.6 / AS & A Level
Two lines that never meet, and the one segment that joins them best.
In three dimensions two lines can miss each other without being parallel. Between such skew lines there is exactly one shortest segment, and it is perpendicular to both lines. The vector product gives its direction, a scalar product gives its length, and two simultaneous equations give its end points.
Lines \(\mathbf{r} = \mathbf{a}_{1} + \lambda\mathbf{b}_{1}\) and \(\mathbf{r} = \mathbf{a}_{2} + \mu\mathbf{b}_{2}\) are skew when they are not parallel and do not meet. The vector \(\mathbf{n} = \mathbf{b}_{1} \times \mathbf{b}_{2}\) is perpendicular to both, and the shortest distance between them is \(d = \dfrac{|(\mathbf{a}_{2} - \mathbf{a}_{1}) \cdot \mathbf{n}|}{|\mathbf{n}|}\). To find where the shortest segment touches the lines, take general points \(P\) on the first and \(Q\) on the second and solve \(\overrightarrow{PQ} \cdot \mathbf{b}_{1} = 0\), \(\overrightarrow{PQ} \cdot \mathbf{b}_{2} = 0\); the common perpendicular is the line through \(P\) and \(Q\). A distance of zero means the lines intersect.
Fig. 1: skew lines l₁ and l₂ lie in two parallel planes. The common perpendicular PQ meets both lines at right angles and is parallel to n = b₁ × b₂; its length |PQ| is the shortest distance between the lines
Section 01
Not parallel, and never meet.
In a plane, two lines either are parallel or cross. In three dimensions there is a third possibility: lines that are not parallel but still never meet, like a road on a bridge and a railway running underneath it in a different direction. Such lines are called skew. To show that two lines are skew you must check two things, and both are needed.
Not parallel: the direction vectors \(\mathbf{b}_{1}\) and \(\mathbf{b}_{2}\) are not multiples of each other.
Do not meet: set \(\mathbf{a}_{1} + \lambda\mathbf{b}_{1} = \mathbf{a}_{2} + \mu\mathbf{b}_{2}\). That is three equations in two unknowns. Solve two of them for \(\lambda\) and \(\mu\), then substitute into the third. If the third is false, the lines do not meet.
Warm-up, point to line: the shortest distance from a point \(A\) to the line \(\mathbf{r} = \mathbf{a} + t\mathbf{b}\) is \(|AF|\), where \(F\) is the foot of the perpendicular: choose \(t\) so that \(\overrightarrow{AF} \cdot \mathbf{b} = 0\). Equivalently, \(d = \dfrac{|(\overrightarrow{OA} - \mathbf{a}) \times \mathbf{b}|}{|\mathbf{b}|}\).
Worked example Showing two lines are skew
Show that the lines \(l_{1}\) and \(l_{2}\) are skew. \[l_{1}: \mathbf{r} = \begin{pmatrix}0\\-1\\1\end{pmatrix} + \lambda\begin{pmatrix}1\\2\\0\end{pmatrix}, \qquad l_{2}: \mathbf{r} = \begin{pmatrix}1\\0\\5\end{pmatrix} + \mu\begin{pmatrix}1\\0\\-1\end{pmatrix}\]
Directions: \(\begin{pmatrix}1\\2\\0\end{pmatrix}\) is not a multiple of \(\begin{pmatrix}1\\0\\-1\end{pmatrix}\) (the second has \(y\)-component 0, the first does not), so the lines are not parallel.
From \(y\): \(\lambda = \tfrac{1}{2}\); then \(x\) gives \(\mu = -\tfrac{1}{2}\).
Check \(z\): \(l_{1}\) gives \(1\), \(l_{2}\) gives \(5 - (-\tfrac{1}{2}) = 5.5\). These differ, so there is no common point.
Answer: Not parallel and no point in common, so the lines are skew.
Worked example Distance from a point to a line
Find the shortest distance from \(A(5, -1, 1)\) to the line \(\mathbf{r} = \begin{pmatrix}1\\0\\2\end{pmatrix} + t\begin{pmatrix}2\\1\\-2\end{pmatrix}\).
General point \(F = (1 + 2t,\; t,\; 2 - 2t)\), so \(\overrightarrow{AF} = \begin{pmatrix}2t - 4\\t + 1\\1 - 2t\end{pmatrix}\).
Check with the cross product: \(\begin{pmatrix}4\\-1\\-1\end{pmatrix} \times \begin{pmatrix}2\\1\\-2\end{pmatrix} = \begin{pmatrix}3\\6\\6\end{pmatrix}\), of length 9, and \(9 \div 3 = 3\).
Answer: \(3\), with foot of the perpendicular \(F(3, 1, 0)\)
Your turn
Decide whether the lines \(\mathbf{r} = \begin{pmatrix}1\\1\\0\end{pmatrix} + \lambda\begin{pmatrix}1\\-1\\2\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}0\\-4\\4\end{pmatrix} + \mu\begin{pmatrix}1\\2\\-1\end{pmatrix}\) are parallel, intersecting or skew.
Not parallel. \(x\): \(1 + \lambda = \mu\); \(y\): \(1 - \lambda = -4 + 2\mu\). Substituting, \(1 - \lambda = -2 + 2\lambda\), so \(\lambda = 1\), \(\mu = 2\). \(z\): \(2\lambda = 2\) and \(4 - \mu = 2\) agree, so the lines intersect, at \((2, 0, 2)\).
Examiner trap
Two easy ways to lose the mark. Showing only that the directions are not parallel proves nothing about skewness: non-parallel lines can still intersect. And two of the three component equations can always be solved; the test is whether the values of \(\lambda\) and \(\mu\) also satisfy the third. Say clearly which equation fails.
Section 02
One vector perpendicular to both: the vector product.
The shortest segment between two skew lines must be perpendicular to both of them (Fig. 1); if it were not, sliding one end along its line would shorten it. You met in the last two lessons that \(\mathbf{b}_{1} \times \mathbf{b}_{2}\) is perpendicular to both \(\mathbf{b}_{1}\) and \(\mathbf{b}_{2}\), so it gives the direction of that segment.
Take any point \(A_{1}\) on the first line and any point \(A_{2}\) on the second. The vector \(\mathbf{a}_{2} - \mathbf{a}_{1}\) joins the lines, but usually not by the shortest route. Its component along \(\mathbf{n}\) is the same for every joining vector, because moving along either line changes it by a multiple of \(\mathbf{b}_{1}\) or \(\mathbf{b}_{2}\), and both have zero scalar product with \(\mathbf{n}\). That component is the shortest distance:
Any multiple of \(\mathbf{n}\) works; dividing out a common factor first keeps the numbers small.
The modulus signs matter: the scalar product may be negative, a distance is not.
If the lines are not parallel and \(d = 0\), they intersect. This is a quick test, and a way to find an unknown constant that makes two lines meet.
Worked example Shortest distance by formula
Find the shortest distance between the skew lines \(l_{1}\) and \(l_{2}\) of the first example: \[l_{1}: \mathbf{r} = \begin{pmatrix}0\\-1\\1\end{pmatrix} + \lambda\begin{pmatrix}1\\2\\0\end{pmatrix}, \qquad l_{2}: \mathbf{r} = \begin{pmatrix}1\\0\\5\end{pmatrix} + \mu\begin{pmatrix}1\\0\\-1\end{pmatrix}\]
The lines \(\mathbf{r} = \begin{pmatrix}2\\1\\0\end{pmatrix} + \lambda\begin{pmatrix}1\\-1\\1\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}0\\k\\2\end{pmatrix} + \mu\begin{pmatrix}2\\1\\0\end{pmatrix}\) intersect. Find \(k\) and the point of intersection.
Divide by \(|\mathbf{n}|\), not by \(|\mathbf{a}_{2} - \mathbf{a}_{1}|\) and not by \(|\mathbf{n}|^{2}\). And check the vector product component by component: a sign slip in the middle component (it is \(b_{3}c_{1} - b_{1}c_{3}\)) gives a vector that is not perpendicular to both lines, and the distance comes out wrong. A quick test: \(\mathbf{n} \cdot \mathbf{b}_{1}\) and \(\mathbf{n} \cdot \mathbf{b}_{2}\) must both be zero.
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
Two lines in three dimensions are skew when they
Quick check+10 XP
For the lines \(\mathbf{r} = \mathbf{a}_{1} + \lambda\mathbf{b}_{1}\) and \(\mathbf{r} = \mathbf{a}_{2} + \mu\mathbf{b}_{2}\), which vector is parallel to their common perpendicular?
Quick check+10 XP
For two skew lines, \(\mathbf{a}_{2} - \mathbf{a}_{1} = \begin{pmatrix}1\\2\\3\end{pmatrix}\) and \(\mathbf{n} = \mathbf{b}_{1} \times \mathbf{b}_{2} = \begin{pmatrix}2\\-1\\2\end{pmatrix}\). The shortest distance between the lines is
Quick check+10 XP
Two lines are not parallel, and \(\dfrac{|(\mathbf{a}_{2} - \mathbf{a}_{1}) \cdot \mathbf{n}|}{|\mathbf{n}|} = 0\). What can you conclude?
Section 03
Find the end points: the common perpendicular.
The formula gives the length of the shortest segment but not where it is. To find its end points \(P\) and \(Q\), and so the equation of the common perpendicular, work with general points on the two lines.
Write \(P = \mathbf{a}_{1} + \lambda\mathbf{b}_{1}\) and \(Q = \mathbf{a}_{2} + \mu\mathbf{b}_{2}\) in components, and form \(\overrightarrow{PQ} = Q - P\).
Solve the simultaneous equations \(\overrightarrow{PQ} \cdot \mathbf{b}_{1} = 0\) and \(\overrightarrow{PQ} \cdot \mathbf{b}_{2} = 0\).
Then \(|PQ|\) is the shortest distance (it should match the formula), and the common perpendicular is \(\mathbf{r} = \overrightarrow{OP} + t\,\overrightarrow{PQ}\).
Parallel lines are different: every perpendicular segment between them has the same length, so there is no single common perpendicular. The distance is that from any point of one line to the other, \(d = \dfrac{|(\mathbf{a}_{2} - \mathbf{a}_{1}) \times \mathbf{b}|}{|\mathbf{b}|}\). The formula with \(\mathbf{b}_{1} \times \mathbf{b}_{2}\) fails here, since that vector is zero.
Worked example End points and the common perpendicular
For the skew lines \(l_{1}: \mathbf{r} = \begin{pmatrix}0\\-1\\1\end{pmatrix} + \lambda\begin{pmatrix}1\\2\\0\end{pmatrix}\) and \(l_{2}: \mathbf{r} = \begin{pmatrix}1\\0\\5\end{pmatrix} + \mu\begin{pmatrix}1\\0\\-1\end{pmatrix}\), find the points \(P\) on \(l_{1}\) and \(Q\) on \(l_{2}\) for which \(PQ\) is perpendicular to both lines, and an equation of the common perpendicular.
Substitute: \(3 + \mu - 10\mu + 15 = 0\), so \(\mu = 2\) and \(\lambda = 1\).
\(P = (1, 1, 1)\), \(Q = (3, 0, 3)\), \(\overrightarrow{PQ} = \begin{pmatrix}2\\-1\\2\end{pmatrix}\) and \(|PQ| = 3\), the distance found by the formula. \(\overrightarrow{PQ}\) is a multiple of \(\mathbf{n} = \begin{pmatrix}-2\\1\\-2\end{pmatrix}\), as it must be.
Show that the lines \(\mathbf{r} = \begin{pmatrix}1\\2\\0\end{pmatrix} + \lambda\begin{pmatrix}1\\2\\2\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}4\\5\\0\end{pmatrix} + \mu\begin{pmatrix}-2\\-4\\-4\end{pmatrix}\) are parallel, and find the distance between them.
\(\begin{pmatrix}-2\\-4\\-4\end{pmatrix} = -2\begin{pmatrix}1\\2\\2\end{pmatrix}\), so the lines are parallel; take \(\mathbf{b} = \begin{pmatrix}1\\2\\2\end{pmatrix}\), \(|\mathbf{b}| = 3\). They are different lines, since \(\mathbf{a}_{2} - \mathbf{a}_{1} = \begin{pmatrix}3\\3\\0\end{pmatrix}\) is not a multiple of \(\mathbf{b}\).
Find the end points \(P\) and \(Q\) of the common perpendicular to \(\mathbf{r} = \begin{pmatrix}0\\0\\-2\end{pmatrix} + \lambda\begin{pmatrix}1\\0\\2\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}4\\1\\-1\end{pmatrix} + \mu\begin{pmatrix}1\\-1\\0\end{pmatrix}\), and the shortest distance.
\(\overrightarrow{PQ} = \begin{pmatrix}4 + \mu - \lambda\\1 - \mu\\1 - 2\lambda\end{pmatrix}\). The two conditions give \(6 + \mu - 5\lambda = 0\) and \(3 + 2\mu - \lambda = 0\), so \(\mu = -1\), \(\lambda = 1\): \(P(1, 0, 0)\), \(Q(3, 2, -1)\), \(\overrightarrow{PQ} = \begin{pmatrix}2\\2\\-1\end{pmatrix}\), distance \(3\).
Examiner trap
The common perpendicular passes through \(P\) and \(Q\), not through \(\mathbf{a}_{1}\) or \(\mathbf{a}_{2}\): writing \(\mathbf{r} = \mathbf{a}_{1} + t\mathbf{n}\) gives a line perpendicular to both directions that usually misses the second line altogether. Also, the two conditions are \(\overrightarrow{PQ} \cdot \mathbf{b}_{1} = 0\) and \(\overrightarrow{PQ} \cdot \mathbf{b}_{2} = 0\), with the direction vectors, never with the position vectors.
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Further Mathematics Paper 1 to 4 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
Find the shortest distance between the lines \(\mathbf{r} = \begin{pmatrix}1\\0\\0\end{pmatrix} + \lambda\begin{pmatrix}1\\1\\0\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}0\\0\\3\end{pmatrix} + \mu\begin{pmatrix}0\\1\\1\end{pmatrix}\).
Exam style+20 XP
The lines \(l_{1}: \mathbf{r} = \begin{pmatrix}0\\2\\1\end{pmatrix} + \lambda\begin{pmatrix}1\\-1\\0\end{pmatrix}\) and \(l_{2}: \mathbf{r} = \begin{pmatrix}4\\3\\2\end{pmatrix} + \mu\begin{pmatrix}0\\1\\-1\end{pmatrix}\) are skew. The common perpendicular meets \(l_{1}\) at \(P\). Find \(P\).
Exam style+20 XP
Find the distance between the parallel lines \(\mathbf{r} = \begin{pmatrix}2\\0\\1\end{pmatrix} + \lambda\begin{pmatrix}2\\-1\\2\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}2\\3\\-2\end{pmatrix} + \mu\begin{pmatrix}-4\\2\\-4\end{pmatrix}\).
Exam style+20 XP
The lines \(\mathbf{r} = \begin{pmatrix}0\\1\\2\end{pmatrix} + \lambda\begin{pmatrix}1\\2\\1\end{pmatrix}\) and \(\mathbf{r} = \begin{pmatrix}3\\k\\1\end{pmatrix} + \mu\begin{pmatrix}1\\0\\-1\end{pmatrix}\) intersect. Find \(k\).
Skill unlocked
Skew lines measured, and the vectors section complete.
This skill is now recorded on your profile. Keep the chain going.