The line passes through A(−3,4,−8) and is parallel to the vector b=3i^+5j^+6k^
Let M be the foot of the perpendicular from P(−2,4,−5) on the given line.
We, have AP=−i^+0j^−3k^ ⇒∣AP∣=1+0+9=10
Clearly, AM = Projection of AP on b ⇒AM=∣∣bAP⋅b∣∣ =∣∣∣3i^+5j^+6k^∣∣−i^−3k^)⋅(3i^+5j^+6k^)∣∣ =∣∣9+25+36−3−18∣∣=∣∣70−21∣∣=7021 ∴PM=AP2−AM2 =10−70441=70259 =1037