Magnetic field energy

The energy required to reach a magnetostatic state $\v J(\v x)$ is $$ \begin{align*} U = \frac{1}{2}\int_{V} \v J\cdot \v A \d^3 \v x = \int_{\R^3} \frac{1}{2μ_0} |\v B|^2 \d^3 \v x, \end{align*} $$ which can be interpreted as the energy stored in the magnetic field. (Derivation)