The principle of potential energy of capacitor