By the known AP=CP, ∠1= ∠ C.
∵∠3=90 -∠4,∠2=90 -∠4
∴∠2=∠3
∴△AEP≌△CFP (corner)
∴PE=PF
∴ Triangle PEF is always an isosceles right triangle