A capacitor is a device for storing energy. When we connect a battery across the two plates of a capacitor, the current charges the capacitor, leading to an accumulation of charges on opposite plates of the capacitor. As charges accumulate, the potential difference gradually increases across the two plates. While discharging, this potential difference can drive a …