The exchange energy is a phenomenological continuum description of the quantum-mechanical exchange interaction. It is written as:
where A is the exchange constant; m, m and m are the components of m;
and the integral is performed over the volume of the sample.
The exchange energy tends to favor configurations where the magnetization varies only slowly across the sample. This energy is minimized when the magnetization is perfectly uniform.