Let A (2,-2) B (-2,1) and c (5,2)
now ,
use distance formula ,
AB = {(2+2)^2 + (-2-1)^2}^1/2= 5
BC ={(5+2)^2 +(2-1)^2}^1/2 = (50)^1/2
CA = {(5-2)^2 +(2 + 2)^2 }^1/2 = 5
now ,
AB^2 =25
BC^2 =50
CA^2 = 25
you can see ,
AB^2 +CA^2 =BC^2
according to Pythagoras theorem ,
ABC is right angle triangle .
Hence proved