Magnetic Energy Density
A magnetic field stores energy. Building up a current in an inductor requires work against the induced back-emf, and that work is stored in the field around it. The magnetic energy density is the energy stored per unit volume of the field.
Energy stored in an inductor
When the current in an inductor of self-inductance L grows, the induced back-emf is ε=−LdI/dt. The work done by the source to push charge dq=Idt against this emf is
dW=LIdI
Integrating from 0 to the final current I,
U=∫0ILIdI=21LI2
This energy is stored in the magnetic field of the inductor.
From inductor to field: the energy density
Take a long solenoid with n turns per unit length, cross-sectional area A and length l. Its self-inductance is L=μ0n2Al, and the field inside is B=μ0nI, so I=B/(μ0n). The stored energy becomes
U=21LI2=21(μ0n2Al)(μ0nB)2=2μ0B2(Al)
Since Al is the volume occupied by the field, the energy per unit volume is
uB=AlU=2μ0B2
uB=2μ0B2
Although derived for a solenoid, this result is general: wherever a magnetic field B exists, it carries an energy density B2/2μ0, measured in J/m3.
Comparison with the electric field
The electric field stores energy at density uE=21ε0E2. The magnetic analogue uB=B2/2μ0 has the same structure, and together they give the energy carried by electromagnetic waves. …