Prove that the line through A(0,-1,-1) and B(4,5,1) intersects the line through C(3,9,4) and D(-4,4,4).
We know that, the cartesian equation of a line that passesthrough two points (x1,y1,z1) and (x2,y2z2) is
x−x1x2−x1=y−y1y2−y1=z−z1z2−z1
Hence, the cartesian equation of line passes through A(0,-1,-1) and B(4,5,1)is
x−04−0=y+15+1=z+11+1⇒x4=y+16=z+12 ...(i)
and cartesian equation of the line passes through C(3,9,4) and D(-4,4,4) is
x−3−4−3=y−94−9=z−44−4⇒x−3−7=y−9−5=z−40 ...(ii)
If the lines intersect, then shortest distance between both of them should be zero.
∴ Shorttest distance between the lines =∣∣
∣
∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣
∣
∣∣√(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2 =∣∣
∣∣3−09+14+1462−7−50∣∣
∣∣√(6.0+10)2+(−14−0)2+(−20+42)2 =∣∣
∣∣3105462−7−50∣∣
∣∣√100+196+484 =3(0+10)−10(14)+5(−20+42)√780=30−140+110√780=0
So, the given lines intersect