A(2,0) B(−2,0)
Let P(x,y)
Since ∠APB is right angle, P could be any point on the circle with AB as a diameter.
Hence equation of circle with AB as a diameter is
(x−2)(x−(−2))+(y−0)(y−0)=0
x2−4+y2=0
( or ) x2+y2=4 is the equation of the locus of point P.