Subject: Class 12 Mathematics Chapter: Shortest Distance Between Lines Topic: 12.6 Shortest Distance Between Lines โ Find shortest distance between lines
Two lines in space may meet at a point, they may be parallel, or they may be skew lines that never meet and are not parallel. For lines that do not intersect, we naturally want to know how far apart they are. The answer is the shortest distance between the lines, defined as the length of the shortest segment that joins them, which is always measured along a line perpendicular to both of them.
Parallel lines are easy to handle because the shortest distance is simply the length of a perpendicular drawn from a point on one line to the other. Skew lines are more subtle: the shortest segment joining them is perpendicular to both lines, and its length can be computed using the scalar triple product. This shortest segment is unique and is called the line of shortest distance between the two skew lines.
In this chapter we will derive the formula for the shortest distance between skew lines using vector algebra, obtain the special formula for parallel lines, and apply both in worked examples. We will also learn the condition under which the shortest distance becomes zero, which is precisely the condition that the lines intersect, and which will be studied in detail in the next chapter on coplanarity.
Consider two skew lines with equations r = a1 + ฮปb1 and r = a2 + ฮผb2. The shortest distance between them is the length of the component of (a2 โ a1) along the direction perpendicular to both b1 and b2. That perpendicular direction is given by the cross product b1 ร b2, and hence:
d = |(a2 โ a1) ยท (b1 ร b2)| / |b1 ร b2|
This formula is a direct application of the scalar triple product. Steps to compute the shortest distance:
Example 1: Find the shortest distance between the lines r = (i + j) + ฮป(2i โ j + k) and r = (2i + j โ k) + ฮผ(3i โ 5j + 2k).
Solution: Here a1 = (1, 1, 0), b1 = (2, โ1, 1), a2 = (2, 1, โ1), b2 = (3, โ5, 2). The vector a2 โ a1 = (1, 0, โ1). The cross product b1 ร b2:
b1 ร b2 = |i j k; 2 โ1 1; 3 โ5 2|
= i[(โ1)(2) โ (1)(โ5)] โ j[(2)(2) โ (1)(3)] + k[(2)(โ5) โ (โ1)(3)] = i[โ2 + 5] โ j[4 โ 3] + k[โ10 + 3] = 3i โ j โ 7k
Then (a2 โ a1) ยท (b1 ร b2) = 1(3) + 0(โ1) + (โ1)(โ7) = 3 + 0 + 7 = 10. And |b1 ร b2| = โ(9 + 1 + 49) = โ59. Therefore:
d = 10/โ59 units.
When the two lines are parallel they share the same direction vector b, so b1 = b2 = b. The formula for skew lines breaks down because b1 ร b2 = 0. Instead, the shortest distance is the length of the perpendicular from any point on one line to the other line:
d = |b ร (a2 โ a1)| / |b|
This measures how far the two parallel lines are shifted apart, perpendicular to their common direction.
Example 2: Find the shortest distance between the lines r = (i + 2j) + ฮป(i + j + k) and r = (2i + j + 3k) + ฮผ(i + j + k).
Solution: Here a1 = (1, 2, 0), a2 = (2, 1, 3) and b = (1, 1, 1). Then a2 โ a1 = (1, โ1, 3). The cross product:
b ร (a2 โ a1) = |i j k; 1 1 1; 1 โ1 3|
= i[(1)(3) โ (1)(โ1)] โ j[(1)(3) โ (1)(1)] + k[(1)(โ1) โ (1)(1)] = i[3 + 1] โ j[3 โ 1] + k[โ1 โ 1] = 4i โ 2j โ 2k
The magnitude is โ(16 + 4 + 4) = โ24 = 2โ6. Also |b| = โ3. Hence:
d = 2โ6 / โ3 = 2โ2 units.
Example 3: Show that the lines r = (2i + 3j) + ฮป(i + 2j) and r = (4i + 7j) + ฮผ(i + 2j) are parallel and find the distance between them.
Solution: Both lines have the same direction vector (1, 2, 0), so they are parallel. Taking a1 = (2, 3, 0) and a2 = (4, 7, 0), we get a2 โ a1 = (2, 4, 0). The cross product b ร (a2 โ a1) = |i j k; 1 2 0; 2 4 0| = k[(1)(4) โ (2)(2)] = 0k. Since the lines actually coincide in the XY-plane passing through different points along the same direction, we must check: here the vector a2 โ a1 is parallel to b, so the distance is zero and the lines coincide.
Two lines intersect if and only if the shortest distance between them is zero. From the skew line formula, this happens exactly when:
(a2 โ a1) ยท (b1 ร b2) = 0
This is precisely the condition that the three vectors a2 โ a1, b1 and b2 are coplanar, and it is the same condition we will use in the next chapter to test coplanarity. When two lines intersect, the point of intersection can be found by equating the parameters ฮป and ฮผ in their vector equations.
Example 4: Show that the lines r = (i + j + k) + ฮป(i + 2j + 3k) and r = (2i + 2j + 3k) + ฮผ(2i + 3j + 5k) intersect.
Solution: Here a1 = (1, 1, 1), b1 = (1, 2, 3), a2 = (2, 2, 3), b2 = (2, 3, 5). Then a2 โ a1 = (1, 1, 2). The cross product b1 ร b2:
= |i j k; 1 2 3; 2 3 5| = i[10 โ 9] โ j[5 โ 6] + k[3 โ 4] = i + j โ k
The dot product (a2 โ a1) ยท (b1 ร b2) = 1(1) + 1(1) + 2(โ1) = 0. Since the scalar triple product vanishes, the shortest distance is zero and the lines intersect.
Example 5: Find the point of intersection of the lines r = (i + 2j + 3k) + ฮป(i + k) and r = (2i + 3j + k) + ฮผ(2i + 3j + 3k).
Solution: Equate the two position vectors componentwise:
1 + ฮป = 2 + 2ฮผ 2 = 3 + 3ฮผ 3 + ฮป = 1 + 3ฮผ
From the second equation, 3ฮผ = โ1 so ฮผ = โ1/3. From the third, 3 + ฮป = 1 โ 1 = 0 so ฮป = โ3. The first equation gives 1 โ 3 = โ2 and 2 + 2(โ1/3) = 2 โ 2/3 = 4/3, which do not match. Since the parameters do not satisfy all three equations simultaneously, the lines do not actually intersect at a common point despite satisfying the coplanarity condition with these parameters; the correct conclusion requires solving consistently.
| Type of lines | Formula for shortest distance |
|---|---|
| Skew lines | d = |
| Parallel lines | d = |
| Intersecting lines | d = 0 |
| Condition | Meaning |
|---|---|
| (a2 โ a1) ยท (b1 ร b2) = 0 | Lines intersect, distance zero |
| (a2 โ a1) ยท (b1 ร b2) โ 0 | Lines are skew, distance positive |
| b1 = b2 (parallel directions) | Use the parallel line formula |
| Direction ratios proportional | Lines are parallel |
flowchart TD
A[Shortest Distance Between Lines] --> B[Skew Lines]
A --> C[Parallel Lines]
A --> D[Intersecting Lines]
B --> B1[d = absolute of scalar triple product over magnitude of cross product]
B --> B2[Perpendicular to both lines]
C --> C1[d = magnitude of b cross a2 minus a1 over magnitude of b]
C --> C2[Same direction vector]
D --> D1[Distance zero]
D --> D2[Scalar triple product zero]
The shortest distance between two lines measures how far apart they are when they do not meet, and it is found along a segment perpendicular to both lines. For skew lines the distance is given by the absolute value of the scalar triple product (a2 โ a1) ยท (b1 ร b2) divided by |b1 ร b2|, while for parallel lines it reduces to the simpler expression |b ร (a2 โ a1)| / |b|. When the scalar triple product vanishes, the distance is zero and the lines intersect. This machinery not only measures separation but also reveals when lines meet, setting the stage for the coplanarity tests of the next chapter.