Ek is magnetocrystalline anisotropy energy: Due to its magnetic anisotropy, the crystal lattice is "easy" to magnetize in one direction, and "hard" to magnetize in others.
A stable domain structure is a magnetization function M(X), considered as a continuous vector field, which minimizes the total energy E throughout the material.