This exercise teaches the students how to calculate Ec-Ef from charge neutrality for general Fermi-Dirac statistics and compensated semiconductors. As such it then allows the student to calculate temperature dependence of the electron and hole densities as well as the position of the Fermi...