Skip to content

Mathematics · Ch 11 — Three-Dimensional Geometry

Distance Between Parallel Lines

11.5.2

Distance Between Parallel Lines

11.5.2 Distance Between Parallel Lines

When two lines in space are parallel, the shortest distance between them is the length of the perpendicular segment connecting a point on one line to the other. This distance is constant — it does not depend on which point you choose.

Why the perpendicular distance?

For parallel lines, a single perpendicular to one line is automatically perpendicular to the other, so the shortest distance is simply the perpendicular distance from any point on one line to the other line.


Formula for the distance between two parallel lines

Let the two parallel lines be given in vector form:

r⃗=a⃗1+λb⃗andr⃗=a⃗2+μb⃗\vec{r} = \vec{a}_1 + \lambda \vec{b} \quad \text{and} \quad \vec{r} = \vec{a}_2 + \mu \vec{b}

Here a⃗1\vec{a}_1 and a⃗2\vec{a}_2 are position vectors of points on the two lines, and b⃗\vec{b} is the common direction vector. The shortest distance dd is:

d=∣(a⃗2−a⃗1)×b⃗∣∣b⃗∣d = \frac{|(\vec{a}_2 - \vec{a}_1) \times \vec{b}|}{|\vec{b}|}


Derivation of the formula
›Proof

Let PP (position a⃗1\vec{a}_1) be a point on the first line and QQ (position a⃗2\vec{a}_2) on the second, so PQ⃗=a⃗2−a⃗1\vec{PQ} = \vec{a}_2 - \vec{a}_1. The magnitude ∣(a⃗2−a⃗1)×b⃗∣|(\vec{a}_2 - \vec{a}_1) \times \vec{b}| equals the area of the parallelogram formed by a⃗2−a⃗1\vec{a}_2 - \vec{a}_1 and b⃗\vec{b}. With b⃗\vec{b} as base, the perpendicular distance from QQ to the line is the height of this parallelogram:

d=∣(a⃗2−a⃗1)×b⃗∣∣b⃗∣d = \frac{|(\vec{a}_2 - \vec{a}_1) \times \vec{b}|}{|\vec{b}|}


Alternative form using unit vector

If b^=b⃗∣b⃗∣\hat{b} = \frac{\vec{b}}{|\vec{b}|} is the unit direction vector, the distance can also be written as:

d=∣(a⃗2−a⃗1)×b^∣d = |(\vec{a}_2 - \vec{a}_1) \times \hat{b}|

Important observation

The distance dd is independent of the choice of points a⃗1\vec{a}_1 and a⃗2\vec{a}_2. Picking different points changes a⃗2−a⃗1\vec{a}_2 - \vec{a}_1, but its component perpendicular to b⃗\vec{b} stays the same.

Note

This formula is valid only when the lines are parallel. For skew lines (non-parallel, non-intersecting), a different formula is used.


Worked example

Problem: Find the shortest distance between the parallel lines

r⃗=i^+2j^+3k^+λ(2i^+3j^+4k^)\vec{r} = \hat{i} + 2\hat{j} + 3\hat{k} + \lambda (2\hat{i} + 3\hat{j} + 4\hat{k})

and

r⃗=2i^+4j^+5k^+μ(2i^+3j^+4k^)\vec{r} = 2\hat{i} + 4\hat{j} + 5\hat{k} + \mu (2\hat{i} + 3\hat{j} + 4\hat{k})

Solution:

Here a⃗1=i^+2j^+3k^\vec{a}_1 = \hat{i} + 2\hat{j} + 3\hat{k}, a⃗2=2i^+4j^+5k^\vec{a}_2 = 2\hat{i} + 4\hat{j} + 5\hat{k}, and b⃗=2i^+3j^+4k^\vec{b} = 2\hat{i} + 3\hat{j} + 4\hat{k}.

a⃗2−a⃗1=i^+2j^+2k^\vec{a}_2 - \vec{a}_1 = \hat{i} + 2\hat{j} + 2\hat{k}

(a⃗2−a⃗1)×b⃗=∣i^j^k^122234∣=i^(8−6)−j^(4−4)+k^(3−4)=2i^+0j^−k^(\vec{a}_2 - \vec{a}_1) \times \vec{b} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 1 & 2 & 2 \\ 2 & 3 & 4 \end{vmatrix} = \hat{i}(8 - 6) - \hat{j}(4 - 4) + \hat{k}(3 - 4) = 2\hat{i} + 0\hat{j} - \hat{k}

So ∣(a⃗2−a⃗1)×b⃗∣=22+02+(−1)2=5|(\vec{a}_2 - \vec{a}_1) \times \vec{b}| = \sqrt{2^2 + 0^2 + (-1)^2} = \sqrt{5} and ∣b⃗∣=22+32+42=29|\vec{b}| = \sqrt{2^2 + 3^2 + 4^2} = \sqrt{29}.

Therefore:

d=529=529d = \frac{\sqrt{5}}{\sqrt{29}} = \sqrt{\frac{5}{29}}


Key formulas recap …
Figure 11.7Two parallel lines l1 and l2 with points S (position vector a1) and T (position vector a2), the join ST making angle theta with l1, and the perpendicular TP giving the distance between the lines.
Fig. 11.7 — Two parallel lines l1 and l2 with points S (position vector a1) and T (position vector a2), the join ST making angle theta with l1, and the perpendicular TP giving the distance between the lines.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your NCERT textbook's own diagram.

Figure 11.7 is the key visual for understanding the shortest distance between two parallel lines in space. The diagram shows two horizontal, parallel lines: the lower line is labelled l1l_1 and the upper line is labelled l2l_2. Both are drawn as indigo arrows pointing to the right, indicating that they extend infinitely in that direction.

On l1l_1, a point SS is marked. Its position vector from the origin is a⃗1\vec{a}_1. On l2l_2, a point TT is marked, with position vector a⃗2\vec{a}_2. The segment STST is drawn connecting these two points, and at SS it makes an angle θ\theta with l1l_1. From TT, a perpendicular is dropped onto l1l_1, meeting it at point PP. Right-angle marks are shown at both TT and PP, confirming that TPTP is perpendicular to l1l_1. The length TPTP is the perpendicular distance between the two parallel lines — this is the shortest distance.

The physical idea is straightforward: for two parallel lines, the shortest distance between them is the length of the perpendicular segment from any point on one line to the other line. The segment STST is not the shortest distance because it is slanted; only when θ=90∘\theta = 90^\circ does STST coincide with TPTP. The figure makes clear that the perpendicular distance is unique and independent of which point you choose on l1l_1 or l2l_2.

Important

For parallel lines, the shortest distance is always the perpendicular distance. The slanted segment STST is longer than TPTP unless θ=90∘\theta = 90^\circ.

The textbook uses this figure to derive the formula for the shortest distance between two parallel lines. If the lines are given in vector form as

r⃗=a⃗1+λb⃗andr⃗=a⃗2+μb⃗,\vec{r} = \vec{a}_1 + \lambda \vec{b} \quad \text{and} \quad \vec{r} = \vec{a}_2 + \mu \vec{b},

where b⃗\vec{b} is the common direction vector, then the shortest distance dd is

d=∣(a⃗2−a⃗1)×b⃗∣∣b⃗∣.d = \frac{|(\vec{a}_2 - \vec{a}_1) \times \vec{b}|}{|\vec{b}|}.

Here, a⃗2−a⃗1\vec{a}_2 - \vec{a}_1 is the vector from SS to TT (the slanted segment). The cross product (a⃗2−a⃗1)×b⃗(\vec{a}_2 - \vec{a}_1) \times \vec{b} gives a vector whose magnitude equals the area of the parallelogram formed by a⃗2−a⃗1\vec{a}_2 - \vec{a}_1 and b⃗\vec{b}. Dividing by ∣b⃗∣|\vec{b}| gives the height of that parallelogram — which is exactly the perpendicular distance TPTP.

d=∣(a⃗2−a⃗1)×b⃗∣∣b⃗∣d = \frac{|(\vec{a}_2 - \vec{a}_1) \times \vec{b}|}{|\vec{b}|}

In the figure, ∣a⃗2−a⃗1∣|\vec{a}_2 - \vec{a}_1| is the length STST, and ∣b⃗∣|\vec{b}| is the magnitude of the direction vector along the lines. The angle θ\theta between STST and l1l_1 satisfies sin⁡θ=TPST\sin\theta = \frac{TP}{ST}, which is exactly what the cross product formula captures: ∣(a⃗2−a⃗1)×b⃗∣=∣a⃗2−a⃗1∣ ∣b⃗∣ sin⁡θ|(\vec{a}_2 - \vec{a}_1) \times \vec{b}| = |\vec{a}_2 - \vec{a}_1|\,|\vec{b}|\,\sin\theta, so dividing by ∣b⃗∣|\vec{b}| yields ∣a⃗2−a⃗1∣sin⁡θ=TP|\vec{a}_2 - \vec{a}_1|\sin\theta = TP. …