... Given Z as a function of temperature, we may calculate the average energy as <math>E=\sum_j P(j) E_j=k_B T^2 {d \over dT} \ln Z</math> The fr ...