Calculate the width of a domain wall as follows. Across a domain wall the direction of magnetization changes by $180^{\circ}$. If the wall is $N$ atoms thick write down an expression for (a) the exchange energy per unit area of wall and (b) the anisotropy energy assuming that half the wall is magnetized in the hard direction. Minimize the total energy with respect to $N$. If the exchange.constant $J=10^{-21} \mathrm{~J}$, the anisotropy energy $K=4 \times 10^4 \mathrm{~J} \mathrm{~m}^{-3}$ and the atomic spacing is $0.3 \mathrm{~nm}$, calculate the width of the wall and the energy per $\mathrm{m}^2$ of wall for $S=1$.