An electron spin can adopt either of two orientations in a magnetic field, and its energies are ±?BB, where ?B is the Bohr magneton. Deduce an expression for the partition function and mean energy of the electron and sketch the variation of the functions with B. Calculate the relative populations of the spin states at (a) 4.0 K, (b) 298 K when B = 1.0 T