Using the expression for volume density of magnetic energy, demonstrate that the amount of work contributed to magnetization of a unit volume of para- or diamagnetic, is equal to \(A\) \(=-\mathbf{J B} / 2\)