Roman C. answered 03/07/17
Tutor
5.0
(852)
Masters of Education Graduate with Mathematics Expertise
Let U = 〈a,b,c〉, Q = 〈x1,y1,z1〉 for convenience.
The distance from P = 〈x0,y0,z0〉 to any point on the line is given by the distance formula.
Therefore:
D2(t) = (at + x1 - x0)2 + (bt + y1 - y0)2 + (ct + z1 - z0)2
= |U|2 t2 + 2U·(Q - P)t + |Q - P|2
This is shortest at the vertex of the parabola D2(t) which is at:
t = -U·(Q - P)/|U|2
Let's plug this in to get the shortest distance.
D2min = [U·(Q - P)]2/|U|2 - 2[U·(Q - P)]2/|U|2+ |Q - P|2
= |Q - P|2 - [U·(Q - P)]2/|U|2
In the case of |U|=1 as in your problem, D2min = |Q - P|2 - [U·(Q - P)]2