NOTE Work function is the energy difference between an electron at rest at infinity and an electron at the Fermi level in the interior of a substance.