The energy of a parallel plate capacitor when connected to a battery is E. With the battery still in connection, if the plates of the capacitor are separated so that the distance between them is twice the original distance, then electrostatic energy becomes :
E=12Cv2
⇒C∝1d
⇒C1C2=d2d1=2dd=2
⇒E1E2=C1C2=21
⇒EE2=21
⇒E2=E2