Let the given point be P(−2,−8,6).
The distance is measured along the line 1x+5=−1y+5=2z, which has direction ratios (1,−1,2).
The equation of the line passing through P and parallel to this line is:
1x+2=−1y+8=2z−6=λ
Any point on this line can be written as Q(λ−2,−λ−8,2λ+6).
Since Q lies on the line 1x−1=2y−1=−1z, we substitute the coordinates of Q into its equation:
1λ−2−1=2−λ−8−1=−12λ+6
1λ−3=2−λ−9=−12λ+6
Taking the first two parts:
2(λ−3)=−λ−9
2λ−6=−λ−9
3λ=−3⇒λ=−1
Substituting λ=−1 into the coordinates of Q, we get:
Q(−1−2,−(−1)−8,2(−1)+6)≡Q(−3,−7,4)
The square of the distance between P(−2,−8,6) and Q(−3,−7,4) is:
PQ2=(−3−(−2))2+(−7−(−8))2+(4−6)2
PQ2=(−1)2+(1)2+(−2)2
PQ2=1+1+4=6
Answer: 6