More generally, if we assume that the medium is paramagnetic or diamagnetic so that a linear constitutive equation exists that relates B and the magnetization H , then it can be shown that the magnetic field stores an energy of E = 1 2 ∫ ∫ H ⋅ ⋅ B d V where the integral is evaluated over the entire region where the magnetic field exists.