As a consequence of the Heisenberg uncertainty principle the more closely an electron is confined to a region of space the higher its kinetic energy will be. In an atom the electrons are confined by the Coulomb potential of the nucleus. The competition between the confining nature of the potential and the liberating tendency of the uncertainty principle gives rise to various quantum mechanical effects.