Given the points A(2,9),B(a,5),C(5,5)are the vertices of right angle triangle whose angle B is right angle.
Then distance
AB=√(2−a)2+(9−5)2
=√4+a2−4a+16
=√a2−4a+20
BC=√(a−5)2+(5−5)2
=√a2+25−10a
CA=√(5−2)2+(5−9)2
=√9+16
=√25=5
We know that, In a right angle triangle
By phythagoras theorm,
AB2+BC2=CA2
(√a2−4a+20)2+(√a2+25−10a)2=52
⇒a2−4a+20+a2+25−10a=25
⇒2a2−14a+20=0
⇒2(a2−7a+10)=0
⇒a2−7a+10=0
By factorize this equation
⇒a=2,5
Put first a=2, In AB,BCandCA
Then,
AB=√22−4×2+20
=√4−8+20
=√16=4
BC=√a2−10a+25
=√22−10×2+25
=√9=3
Now, put a=5 and we get,
AB=√52−4×5+20
=√25−20+20
=√25=5
BC=√a2−10a+25
=√52−10×5+25
=√0=0
Then a=5 is not possible
Hence a=2 is possible for all value of right angle triangle.