Energy Density In Terms Of Magnetic Field