Energy is measured in joules (J), it’s a conserved quantity.
i.e., the time-integral of electrical power.
Classical mechanics
The kinetic energy is the total work that must be done to bring it from a state of rest to some velocity.
The potential energy is work that may be converted into energy. For gravitational potential energy:
For a spring, we have recoverable elastic potential energy:
Electromagnetic energy
The electronvolt is the work done when a charge equal to one electron is taken across a potential difference of one volt. The idea is that the joule is often too large of a unit for measuring microscopic phenomena.
When we think about electromagnetic energy, we think about the energy stored in dynamic elements like capacitors or inductors.
Electric field
In the electric field case, we think about the energy stored in a capacitor. We first think about the amount of work to transfer an infinitesimal charge from one conductor to another:
Then, we get a full expression for the electrostatic potential energy:
We define the electric energy density as the electric energy per unit volume:
Magnetic field
We follow a similar process for the magnetic field case with an inductor:
Our full expression is:
We will define the integrand as the magnetic energy density, the magnetic energy per unit volume.