Let P(1,2,7) be the given point and the given line be L:1x=1y−1=2z−2=λ.
Any point on the line can be written as F(λ,λ+1,2λ+2).
If F is the foot of the perpendicular from P to the line, the direction ratios of PF are (λ−1,λ−1,2λ−5).
Since PF is perpendicular to the line, the dot product of their direction ratios is zero:
1(λ−1)+1(λ−1)+2(2λ−5)=0
6λ−12=0⇒λ=2
Thus, the foot of the perpendicular is F(2,3,6).
Let the image of P in the line be P′(x′,y′,z′). Since F is the midpoint of P and P′:
2x′+1=2⇒x′=3
2y′+2=3⇒y′=4
2z′+7=6⇒z′=5
The image point is P′(3,4,5).
The distance of the point Q(a,2,5) from P′(3,4,5) is given as 4.
(a−3)2+(2−4)2+(5−5)2=4
(a−3)2+4=16
(a−3)2=12
a2−6a−3=0
The sum of all possible values of a is the sum of the roots of this quadratic equation, which is 6.
Answer: 6