Skip to content

Mathematics · Ch 6 — Line and Plane

Distance between parallel lines

6.3.2

Distance between parallel lines

Theorem 6.7 (Distance between parallel lines). The distance between parallel lines r⃗=a⃗1+λb⃗\vec r=\vec a_1+\lambda\vec b and r⃗=a⃗2+λb⃗\vec r=\vec a_2+\lambda\vec b (note that both lines share the same direction vector b⃗\vec b, which is exactly what makes them parallel) is ∣(a⃗2−a⃗1)×b^∣\left|(\vec a_2-\vec a_1)\times\hat b\right|, where b^=b⃗/∣b⃗∣\hat b=\vec b/|\vec b| is the unit vector along b⃗\vec b.

Proof (outline). Let L1L_1 pass through A(a⃗1)A(\vec a_1) and L2L_2 pass through B(a⃗2)B(\vec a_2), both lines running in the direction b⃗\vec b (Fig. 6.7). Drop a perpendicular BMBM from BB onto L1L_1, meeting L1L_1 at the foot MM; this perpendicular length BMBM is exactly the distance we want. In the right-angled triangle AMBAMB, let θ=∠BAM\theta=\angle BAM be the angle that AB→\overrightarrow{AB} makes with the common direction b⃗\vec b at AA. Then sin⁡θ=BMAB\sin\theta=\dfrac{BM}{AB}, so BM=ABsin⁡θ=AB⋅∣b^∣sin⁡θBM=AB\sin\theta=AB\cdot|\hat b|\sin\theta. But AB⋅∣b^∣sin⁡θAB\cdot|\hat b|\sin\theta is precisely the magnitude of the cross product AB→×b^=(a⃗2−a⃗1)×b^\overrightarrow{AB}\times\hat b=(\vec a_2-\vec a_1)\times\hat b. Hence the distance between the two parallel lines is d=BM=∣(a⃗2−a⃗1)×b^∣d=BM=\left|(\vec a_2-\vec a_1)\times\hat b\right|.

Ex.(17) Find the distance between parallel lines r⃗=(2i^−j^+k^)+λ(2i^+j^−2k^)\vec r=(2\hat i-\hat j+\hat k)+\lambda(2\hat i+\hat j-2\hat k) and r⃗=(i^−j^+2k^)+μ(2i^+j^−2k^)\vec r=(\hat i-\hat j+2\hat k)+\mu(2\hat i+\hat j-2\hat k)

Solution. Here a⃗1=2i^−j^+k^\vec a_1=2\hat i-\hat j+\hat k, a⃗2=i^−j^+2k^\vec a_2=\hat i-\hat j+2\hat k, b⃗=2i^+j^−2k^\vec b=2\hat i+\hat j-2\hat k.

a⃗2−a⃗1=(i^−j^+2k^)−(2i^−j^+k^)=−i^+k^,b^=2i^+j^−2k^3\vec a_2-\vec a_1=(\hat i-\hat j+2\hat k)-(2\hat i-\hat j+\hat k)=-\hat i+\hat k,\qquad \hat b=\dfrac{2\hat i+\hat j-2\hat k}{3}

(a⃗2−a⃗1)×b^=13∣i^j^k^−10121−2∣=13{−i^−k^}(\vec a_2-\vec a_1)\times\hat b=\dfrac13\begin{vmatrix}\hat i&\hat j&\hat k\\-1&0&1\\2&1&-2\end{vmatrix}=\dfrac13\{-\hat i-\hat k\}

d=∣(a⃗2−a⃗1)×b^∣=23 unitd=\left|(\vec a_2-\vec a_1)\times\hat b\right|=\dfrac{\sqrt2}{3}\text{ unit}

Alternative method (distance of a point from a line). The distance between r⃗=a⃗1+λb⃗\vec r=\vec a_1+\lambda\vec b and r⃗=a⃗2+λb⃗\vec r=\vec a_2+\lambda\vec b equals the distance of the point A(a⃗1)A(\vec a_1) from the line r⃗=a⃗2+λb⃗\vec r=\vec a_2+\lambda\vec b, given by

d=∣a⃗1−a⃗2∣2−[(a⃗1−a⃗2)⋅b⃗∣b⃗∣]2d=\sqrt{|\vec a_1-\vec a_2|^2-\left[\dfrac{(\vec a_1-\vec a_2)\cdot\vec b}{|\vec b|}\right]^2}

Here a⃗1−a⃗2=i^−k^\vec a_1-\vec a_2=\hat i-\hat k, so ∣a⃗1−a⃗2∣=2|\vec a_1-\vec a_2|=\sqrt2; and (a⃗1−a⃗2)⋅b⃗=(i^−k^)⋅(2i^+j^−2k^)=2+0+2=4(\vec a_1-\vec a_2)\cdot\vec b=(\hat i-\hat k)\cdot(2\hat i+\hat j-2\hat k)=2+0+2=4, with ∣b⃗∣=3|\vec b|=3. So

d=2−(43)2=2−169=29=23 unit,d=\sqrt{2-\left(\dfrac43\right)^2}=\sqrt{2-\dfrac{16}{9}}=\sqrt{\dfrac29}=\dfrac{\sqrt2}{3}\text{ unit},

matching the first method exactly.

Ex.(18) Find the distance between parallel lines x2=y−1=z2\dfrac{x}{2}=\dfrac{y}{-1}=\dfrac{z}{2} and x−12=y−1−1=z−12\dfrac{x-1}{2}=\dfrac{y-1}{-1}=\dfrac{z-1}{2} …

Figure 6.7Fig. 6.7 — Distance between two parallel lines L₁ and L₂ = the perpendicular distance d between them
Fig. 6.7 — Fig. 6.7 — Distance between two parallel lines L₁ and L₂ = the perpendicular distance d between them

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

What this figure shows. Fig. 6.7 accompanies the proof of Theorem 6.7 for the distance between two parallel lines L1 and L2, both running in the common direction b-bar. Line L1 passes through A(a-bar 1) and line L2 passes through B(a-bar 2). The segment BM is drawn perpendicular to L1, meeting it at the foot M (marked with a right angle), while theta = angle BAM is the angle AB makes with the common direction b-bar at A. The perpendicular segment BM, of le …