Let s be the line through A(1,0,−1) and B(4,−1,1).
(a) Write the parametric equations of s.
(b) Compute the distance of Q(4,2,1) from s.
(c) Find the component of AQ parallel to AB and the component perpendicular to it.
Solution
The direction vector is AB=(3,−1,2).
(a)s:x=1+3t,y=−t,z=−1+2t.
(b)-(c) We have AQ=(3,2,2). The scalar projection of AQ onto AB is ∣AB∣2AQ⋅AB=1411, so the parallel component is 1411(3,−1,2)≈(2.357,−0.786,1.571) and the perpendicular component is AQ−parallel≈(0.643,2.786,0.429). The required distance is the magnitude of the perpendicular component: d(Q,s)=∣perp∣≈2.891.
d(Q,s)≈2.891;parallel≈(2.357,−0.786,1.571);perp≈(0.643,2.786,0.429)