The capacitor is an electronic device that is non-linear two-terminal electrical component. It is used to store electrical energy temporarily in an electric field.