If the distance between the point A(4, p) and B(1, 0) is 5 then

The distance between any two points P1(x1, y1) and P2(x2, y2) is given by the following formula:


 



 


From the question we have,


 


A = (4, p)


 


B = (1, 0)


 


d = 5


 



 


Squaring both sides


 


25 = (-3)2 + p2


 


25 = 9 + p2


 


p2 = 25 – 9


 


p2 = 16


 


p = ±4


 


Therefore the value of p is ±4.

34