Lines in 3D Math Example 4

Follow the full solution, then compare it with the other examples linked below.

Example 4

hard
Find the distance between the parallel lines โ„“1:xโˆ’12=y1=z+1โˆ’1\ell_1: \frac{x-1}{2} = \frac{y}{1} = \frac{z+1}{-1} and โ„“2:xโˆ’32=yโˆ’11=zโˆ’1\ell_2: \frac{x-3}{2} = \frac{y-1}{1} = \frac{z}{-1}.

Solution

  1. 1
    Direction vector: dโƒ—=โŸจ2,1,โˆ’1โŸฉ\vec{d} = \langle 2, 1, -1 \rangle. Points on the lines: P1=(1,0,โˆ’1)P_1 = (1, 0, -1) and P2=(3,1,0)P_2 = (3, 1, 0). P1P2โƒ—=โŸจ2,1,1โŸฉ\vec{P_1P_2} = \langle 2, 1, 1 \rangle.
  2. 2
    Distance =โˆฃP1P2โƒ—ร—dโƒ—โˆฃโˆฃdโƒ—โˆฃ= \frac{|\vec{P_1P_2} \times \vec{d}|}{|\vec{d}|}. Cross product: P1P2โƒ—ร—dโƒ—=โŸจ(1)(โˆ’1)โˆ’(1)(1),(1)(2)โˆ’(2)(โˆ’1),(2)(1)โˆ’(1)(2)โŸฉ=โŸจโˆ’2,4,0โŸฉ\vec{P_1P_2} \times \vec{d} = \langle(1)(โˆ’1)โˆ’(1)(1), (1)(2)โˆ’(2)(โˆ’1), (2)(1)โˆ’(1)(2)\rangle = \langle -2, 4, 0 \rangle. โˆฃP1P2โƒ—ร—dโƒ—โˆฃ=4+16+0=20=25|\vec{P_1P_2} \times \vec{d}| = \sqrt{4+16+0} = \sqrt{20} = 2\sqrt{5}. โˆฃdโƒ—โˆฃ=4+1+1=6|\vec{d}| = \sqrt{4+1+1} = \sqrt{6}. Distance =256=2306=303= \frac{2\sqrt{5}}{\sqrt{6}} = \frac{2\sqrt{30}}{6} = \frac{\sqrt{30}}{3}.

Answer

303\frac{\sqrt{30}}{3}
The distance between parallel lines is found using the cross product of the direction vector with a vector connecting any two points on the respective lines. This formula gives the perpendicular distance, which is the shortest distance between the lines.

About Lines in 3D

Lines in three-dimensional space described using parametric equations x=x0+atx = x_0 + at, y=y0+bty = y_0 + bt, z=z0+ctz = z_0 + ct, or symmetric form xโˆ’x0a=yโˆ’y0b=zโˆ’z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}, where (x0,y0,z0)(x_0, y_0, z_0) is a point on the line and โŸจa,b,cโŸฉ\langle a, b, c \rangle is the direction vector.

Learn more about Lines in 3D โ†’

More Lines in 3D Examples