(x/a)cos (theta)+(y/b)sin (theta)=1
Foci F1=(ae,0) ; Foci F2=(-ae,0)
d=1/(√(cos^2(theta)/a^2)+√(sin^2(theta)/b^2))
d=ab/(√(a^2sin^2(theta)+b^2cos ^2(theta)))
Simplify it a bit and you will get:
d=4cos^2(theta)(a^2-b^2)
4a^2e^2cos^2(theta)=(2aecos(theta))^2
=[(a-aecos(theta))-(a+aecos(theta))]^2
=(PF1-PF2)^2
Hence,Proved.
I hope it helps!!!!: )