Introduction to Capacitors A capacitor is an electrical device that is used to store electrical energy. A capacitor consists of…