Question
Question: If A(1,-2,-1) , B(4,0,-3) ,C(1,2,-1) ,D(2,-4,-5) ,Find the distance between AB and CD....
If A(1,-2,-1) , B(4,0,-3) ,C(1,2,-1) ,D(2,-4,-5) ,Find the distance between AB and CD.
Solution
Start by preparing the equation of AB and CD in cartesian form. Take points P and Q on AB and CD respectively, find the equation of line PQ . Use the product rule for PQ perpendicular to AB and CD in order to find out coordinates of P and Q. Use the distance formula between P and Q.
Complete step-by-step answer :
Given,
A(1, - 2, - 1) , B(4,0, - 3) ,C(1,2, - 1) ,D(2, - 4, - 5)
Let us start by finding the equation of line AB and CD
We know equation of line joining two points is given by
x2−x1x−x1 = y2−y1y−y1 = z2−z1z−z1
So, Equation of AB = 4−1x−1 = 0+2y+2 = −3+1z+1
⇒AB = 3x−1 = 2y+2 = −2z+1
Let us take a point P on AB
p = 3x−1 = 2y+2 = −2z+1 ⇒x=3p+1,y=2p−2,z=−2p−1 ∴P(3p+1,2p−2,−2p−1)
Similarly, Equation of CD= 2−1x−1 = −4−2y−2 = −5+1z+1
⇒CD = 1x−1 = −6y−2 = −4z+1
Let us take a point Q on CD
q= = 1x−1 = −6y−2 = −4z+1 ⇒x=q+1,y=−6q+2,z=−4q−1 ∴Q(q+1,−6q+2,−4q−1)
Direction ratios of PQ = (3p−q,2p+6q−4,−2p+4q)
Now we know that PQ⊥AB
So the sum of products of direction ratios will be equal to zero
3(3p−q)+2(2p+6q−4)−2(−2p+4q)=0 9p−3q+4p+12q−8+4p−8q=0 17p+q−8=0→eqn(1)
Similarly, PQ⊥CD
1(3p−q)−6(2p+6q−4)−4(−2p+4q)=0 3p−q−12p−36q+24+8p−16q=0 \-p−53q+24=0→eqn(2)
Solving, 17(eqn. 2) + eqn. 1 , we get
p=94
Substituting in eqn. 1 , we get
q=94
⇒P(94+1,92×4−2,9(−2)×4−1) ∴P(921,9−10,9−17)
Similarly, Q(913,9−6,9−25)
Here we are not simplifying some of the terms of P and Q , so that the calculation is easy and fast , it won’t affect the result even if we simplify them.
Applying, distance formula between PQ , because it will be equal to the distance between AB and CD
S = (x2−x1)2+(y2−y1)2+(z2−z1)2 S = (921−913)2+(9−10+96)2+(9−17+925)2 S = (98)2+(9−4)2+(98)2 S = 8164+8116+8164 S = 81144 S = 34units.
Therefore the distance between AB and CD is 34units.
Note : All the formulas must be known in both cartesian and vector form in order to solve such similar problems. Dot product and cross product must be practised thoroughly for convenience . Be attentive while substituting values with negative or positive signs, as small mistakes can lead you to the wrong answer.