The Kohn-Sham (KS) equations (2, 3 and 4) are the foundation of density functional theory (DFT) and describe how the electron density ρ(r) is related to the potential and energy of a system. These equations are used to calculate the ground-state electronic structure of a system in terms of non-interacting electron densities.