Work done when charging
When a capacitor is connected to a power supply, the supply transfers electrons onto the plate connected to its negative terminal and removes electrons from the plate connected to its positive terminal.
The power supply therefore does work to separate charge. The energy transferred by this work is stored electrically on the charged plates.
As charging continues, the plates acquire equal and opposite charges. Adding further electrons to the negative plate becomes increasingly difficult because the electrons already on that plate repel additional electrons.
As more charge accumulates, a greater amount of work is needed to transfer further charge. The potential difference across the capacitor therefore increases as the magnitude of the stored charge increases.
For a capacitor of constant capacitance:
Therefore, is directly proportional to .