
The equation of line passing through the point (−3,2,3) and parallel to a line with direction ratios 3,3,−1 will be,
3x+3=3y−2=−1z−3=λ
Now let any point on the line will be, M(3λ−3,3λ+2,3−λ)
We know the direction ratios of the line joining the points (x1,y1,z1) and (x2,y2,z2) is given by
(x2−x1,y2−y1,z2−z1)
Therefore, the direction ratios of line PM,
D.R of PM(3λ−7,3λ−4,5−λ)
Since, PM is perpendicular to the line
⇒3(3λ−7)+3(3λ−4)−1(5−λ)=0
⇒λ=2
⇒M(3,8,1)
Now distance of point P from point M,
⇒PM=(3−4)2+(8−6)2+(1+2)2
⇒PM=14