Density-functional theory (DFT) is an exact alternative formulation of quantum mechanics, in which it is possible to calculate the total energy, the spin, and the charge density of many-electron systems in the ground state. In practice, it is necessary to use uncontrolled approximations that can mainly be verified against experimental data. Atoms and ions are simple systems, where the approximations of DFT can be easily tested. We have calculated within DFT the total energies, spin, and higher ionization energies of all the ions of elements with 1⩽Z⩽29. We find the calculations in close agreement with experiment, with an error of typically less than ca. 1% for 1⩽Z⩽29. Surprisingly, the error depends on the electronic configuration of the ion in both local spin density approximation and Perdew-Burke-Ernzerhof general gradient approximation and independent of both self-interaction correction and relativistic corrections. Larger errors are found for systems in which the spin-spin correlation is significant, which indicates the possible benefit from an orbital-dependent formulation of the correlation energy functional.
In the exact Kohn-Sham density-functional theory, the total energy versus the number of electrons is a series of linear segments between integer points. However, commonly used approximate density functionals produce total energies that do not exhibit this piecewise-linear behavior. As a result, the ionization potential theorem, equating the highest occupied eigenvalue with the ionization potential, is grossly disobeyed. Here, we show that, contrary to conventional wisdom, most of the required piecewise linearity of an arbitrary approximate density functional can be restored by careful consideration of the ensemble generalization of density-functional theory. Furthermore, the resulting formulation introduces the desired derivative discontinuity to any approximate exchange-correlation functional, even one that is explicitly density dependent. This opens the door to calculations of the ionization potential and electron affinity, even without explicit electron removal or addition. All these advances are achieved while neither introducing empiricism nor changing the underlying functional form. The power of the approach is demonstrated on benchmark systems using the local density approximation as an illustrative example.