Details of derivation: Fermi Distribution

Click on picture for original, larger version.