We know that the distance between the two points (x1,y1) and (x2,y2) is d=√(x2−x1)2+(y2−y1)2
Let the given points be A=(a,7) and B=(−3,a) and the third point given is P(2,−1).
We first find the distance between P(2,−1) and A=(a,7) as follows:
PA=√(x2−x1)2+(y2−y1)2=√(a−2)2+(7−(−1))2=√(a−2)2+(7+1)2=√(a−2)2+82
=√(a−2)2+64
Similarly, the distance between P(2,−1) and B=(−3,a) is:
PB=√(x2−x1)2+(y2−y1)2=√(−3−2)2+(a−(−1))2=√(−5)2+(a+1)2=√25+(a+1)2
Since the point P(2,−1) is equidistant from the points A(a,7) and B=(−3,a), therefore, PA=PB that is:
√(a−2)2+64=√25+(a+1)2⇒(√(a−2)2+64)2=(√25+(a+1)2)2⇒(a−2)2+64=25+(a+1)2⇒(a−2)2−(a+1)2=25−64⇒(a2+4−4a)−(a2+1+2a)=−39(∵(a−b)2=a2+b2−2ab,(a+b)2=a2+b2+2ab)
⇒a2+4−4a−a2−1−2a=−39⇒−6a+3=−39⇒−6a=−39−3⇒−6a=−42⇒a=−42−6=7
Hence, a=7.