A parallel-plate capacitor of plate area A and plate separation d is charged to a potential difference and then the battery is disconnected. A slab of dielectric constant K is then inserted between the plates of the capacitor so as to fill the whole space between the plates. Find the work done on the system the process of inserting the slab.