A capacitor is charged by using a battery which is then disconnected. A dielectric slab is then slided between the plates