Electromagnetic energy

Electric and magnetic fields store energy. The total energy stored in a volume is the integral of the energy density over the volume.

U=udV.U = \iiint udV.

Energy stored in an electric field

uE=ϵ0E2.u_E = \frac{\epsilon_0 E}{2}.

The total energy stored in the electric field of a capacitor is U=Q22CU = \frac{Q^2}{2C}.

Energy stored in a magnetic field

uB=B2μ0.u_B = \frac{B}{2\mu_0} .

The total energy stored in the magnetic field of an inductor is U=12LI2U = \frac12 LI^2.