Let the given equation be:
x1=y−12=z−23=λ
therefore the direction cosines are (1,2,3)
therefore coordinates of any point on the line is given by,
x=λ,y=2λ+1,z=3λ+2
Let Q(λ,2λ+1,3λ+2)
and P(1,6,3)
direction cosines of PQ
=(λ−1,2λ+1−6,3λ+2−3)
=(λ−1,2λ−5,3λ−1)
sum of products of these direction cosines should be zero
(λ−1)(1)+(2λ−5)(2)+(3λ−1)(3)=0
λ−1+4λ−10+9λ−3=0
14λ=14
λ=1
substituting the value of λ we get Q as
Q(1,3,5) Cooordinates of foot of the perpendicular
direction ratios of PQ = (λ−1,2λ−5,3λ−1) = (0,-3,2)
equation of PQ
x−10=y−3−3=z−52
=(λ−1,2λ−5,3λ−1)