As I understand it, the Fermi function $$f(E) = \frac{1}{1+e^{(E-E_f)/(kT)}}$$ gives the probability of finding an electron at a particular energy in a material.
It also has the following property : $$f(E_f+E_0) = 1 - f(E_f-E_0)$$ which means that the probability of finding an electron at an energy $E_0$ above $E_f$ (Fermi energy) is equal to the probability of not finding it an energy $E_0$ below $E_f$.
It is then logical to expect the Fermi energy to be between the valence and conduction band in a metal. For semiconductors however, I have some difficulties to reason about the Fermi energy. Here are my questions :
- In a non-doped semiconductor, $E_f$ is also midway between the valence and conduction band (in the bandgap). However, if this "Fermi theory" still applies, wouldn't there be a non-zero probability of finding an electron immediately just below and above $E_f$ contradicting with the fact that no electron can be in the bandgap?
- In a doped semiconductor (let's say n-type) at $0$ $K$, $E_f$ is still situated below but closer to the conduction band. As the temperature increases, $E_f$ returns midway between the valence and conduction band. Why is that?
P.S. : I am not very comfortable with quantum mechanics so I would appreciate if your answers could contain the least possible of it.