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 AAA =−JB/2=-\mathbf{J B} / 2=−JB/2