It is known that the abscissa of point a (- 2,0), B (4,0) P on the image of function y = 1 / 2x + 2 is m. when the triangle PAB is a right triangle, the value of M is obtained When p is a right angle

It is known that the abscissa of point a (- 2,0), B (4,0) P on the image of function y = 1 / 2x + 2 is m. when the triangle PAB is a right triangle, the value of M is obtained When p is a right angle

P(m,1/2m+2),
AB=6,AP^2=(m+2)^2+(1/2m+2)^2,BP^2=(m-4)^2+(1/2m+2)^2,
∵∠APB=90°,
∴AB^2=AP^2+BP^2
2.5m^2+28=36
m^2=16/5,
m=±4√5/5.