A capacitor is a device that stores electrical energy in an electrostatic field. The energy is stored in such a way as to oppose any change in voltage. Just how capacitance opposes a change in voltage is explained later in this chapter. However, it is first necessary to explain the principles of an electrostatic field as it is applied to capacitance.