u = energy density, ε0 = electric constant, c = speed of light, B = magnetic flux density
The energy density of a magnetic field is defined as the energy per unit volume, thanks to the magnetic field.
The Feynman Lectures on Physics, R P Feynman, R B Leighton, M Sands, Addison-Wesley, 1963