When an increasing DC voltage is applied to a discharged Capacitor, the capacitor draws a charging current and “charges up”, and when the voltage is reduced, the capacitor discharges in the opposite direction. Because capacitors are able to store electrical energy they act like small batteries and can store or release the energy as required.
The charge on the plates of the capacitor is given as: Q = CV. This charging (storage) and discharging (release) of a capacitors energy is never instant but takes a certain amount of time to occur with the time taken for the capacitor to charge or discharge to within a certain percentage of its maximum supply value being known as its Time Constant ( τ ).