The Kohn-Sham Equations
Density functional theory (DFT) reduces the exponentially complex quantum many-body problem to a set of effective single-particle equations that are solved self-consistently. The Kohn-Sham (KS) formulation, published in 1965, is the practical engine behind virtually every modern electronic structure calculation — including every SCF iteration in KRONOS. This page derives the KS equations from first principles, explains what they mean, and maps them to KRONOS's implementation.
All equations use Rydberg atomic units (, , , ) throughout, matching the KRONOS source. The key consequences: the kinetic operator is (no factor of ), the bare Coulomb potential is , and Hartree energy prefactors carry instead of .
The many-electron problem
A system of electrons moving under the external potential of nuclei is described by the full many-body Hamiltonian
where is the electron-nuclear attraction (Rydberg Coulomb, ). The exact ground-state wavefunction lives in a -dimensional Hilbert space and carries all physical information.
The cost is exponential: to represent on a real-space grid with points per dimension per electron requires complex numbers. For Si with 8 valence electrons and a modest grid of points per electron, that is numbers — completely intractable. The electron-electron Coulomb repulsion is the term that couples all electrons together and prevents factoring the problem into independent single-particle equations. DFT dissolves this wall by reformulating everything in terms of the electron density , a function of only three spatial coordinates.
Hohenberg-Kohn theorems
Hohenberg and Kohn (1964) proved two theorems that provide the formal foundation for DFT.
Theorem 1: density determines potential
For a non-degenerate ground state, the external potential is uniquely determined by the ground-state electron density , up to an additive constant.
The proof is by contradiction. Suppose two potentials and (differing by more than a constant) yield the same ground-state density . They have different ground states and with energies and . Applying the variational principle twice — using as a trial state for , and as a trial state for — and adding the two inequalities yields a strict contradiction . Therefore no two distinct potentials can share the same ground-state density.
The implication is deep: since fixes , which fixes (and all observables), the ground-state density alone contains all ground-state information. Every observable is a functional of .
Theorem 2: variational principle
There exists a universal functional , independent of , such that the total-energy functional
is minimized by the true ground-state density :
contains the universal kinetic and electron-electron interaction energies. The second term, , is the only part that depends on the particular system.
These are existence theorems, not constructions. They tell us that the exact exists, but they give no recipe for computing it. In particular, — the kinetic energy as a functional of density alone — is not known exactly for an interacting system. This gap is precisely what the Kohn-Sham ansatz fills.
The Kohn-Sham ansatz
Kohn and Sham's key insight is to sidestep the unknown by introducing a fictitious non-interacting reference system: a set of independent electrons moving in an effective local potential chosen so that the non-interacting ground-state density exactly equals the density of the real interacting system.
Because the reference electrons are non-interacting, their ground state is a Slater determinant built from single-particle orbitals — the Kohn-Sham orbitals. The density is
where are occupation numbers (0 or 1 for insulators; fractional for metals with smearing). The kinetic energy of the non-interacting reference, , is computable exactly from the orbitals. The difference between the true kinetic energy and is absorbed into the exchange-correlation functional , along with the non-classical part of the electron-electron interaction.
The Kohn-Sham equations
The stationary condition under the constraint yields the Kohn-Sham eigenvalue equations. In Rydberg atomic units:
The effective potential is
where the three contributions are:
-
External potential : electron-nuclear attraction plus any applied field. In KRONOS, the nuclear contribution is handled through pseudopotentials (local + nonlocal separable projectors in the Kleinman-Bylander form), not the bare singularity.
-
Hartree potential : classical electrostatic potential of the electron charge cloud, In Rydberg units the Coulomb kernel is , so in reciprocal space: (the Hartree prefactor instead of ).
-
Exchange-correlation potential : functional derivative of with respect to density,
These are coupled differential equations of single-particle form — structurally identical to the Schrödinger equation for a particle in an external potential. The crucial distinction from the real problem is that the coupling between electrons has been replaced by the effective potential , which every electron feels identically.
Self-consistency
The KS equations are inherently nonlinear: depends on , which depends on the orbitals , which depend on . They must be solved iteratively:
- Initial guess: construct from superposition of atomic densities.
- Build potential: compute (Poisson solve in G-space), evaluate via libxc, add .
- Diagonalize: solve for each k-point.
- New density: form .
- Mixing: blend with using Pulay/DIIS density mixing (history depth 8) to accelerate convergence and suppress charge sloshing.
- Convergence check: if and are both below tolerance, stop. Otherwise return to step 2.
This self-consistent field (SCF) cycle is the central loop of every DFT code. For the operational view of how KRONOS implements it — timings, convergence thresholds, abort conditions — see SCF Flowchart.
The DFT total energy
Once self-consistency is reached, the total energy is assembled from its components. In Rydberg units:
Each term has a precise definition:
-
Non-interacting kinetic energy : computed from the KS orbitals, In G-space this is a simple sum over plane-wave coefficients — no FFT required.
-
External energy : electron-nuclear interaction, carried through pseudopotential matrix elements.
-
Hartree energy : classical electrostatic self-energy, The avoids double-counting (each electron pair counted once). In Rydberg units , so carries the factor .
-
Exchange-correlation energy : the only term that is not known exactly. LDA approximates it as ; GGA adds dependence on . KRONOS delegates to libxc for all but its built-in LDA fallback.
-
Ion-ion interaction : classical Coulomb repulsion between nuclei. This diverges for a periodic system and requires the Ewald summation technique (a separate topic).
In practice KRONOS computes from the band energy sum via double-counting corrections (see scf.cpp):
where is the sum of KS eigenvalues. The subtracted terms correct for the fact that double-counts and .
For metallic systems with fractional occupations, a smearing entropy term is included (where is the smearing width and is the dimensionless entropy), and the quantity minimized is the free energy .
Kohn-Sham eigenvalues and band structure
The KS eigenvalues are often plotted as band structures and compared to photoemission experiments, but their physical interpretation requires care.
Janak's theorem states that , so KS eigenvalues are approximate ionization energies under the assumption that the density responds rigidly to a change in occupation. The highest occupied eigenvalue in finite systems equals the exact ionization potential within exact DFT (by Koopmans' theorem for DFT). For extended systems, however, KS eigenvalues are not rigorously quasiparticle energies.
The most practical consequence is the bandgap problem: LDA and GGA systematically underestimate semiconductor and insulator bandgaps, typically by 30–50%. The KS gap misses the derivative discontinuity of at integer electron number. Hybrid functionals (HSE06, PBE0 — already implemented in KRONOS as of v2.0) partially correct this by mixing in exact Fock exchange, reducing the gap error to ~10–15%.
Despite this limitation, KS band structures are qualitatively reliable: band ordering, dispersion, Fermi surface topology, and group velocities are well reproduced by LDA/GGA, making them indispensable for materials screening and property prediction.
How KRONOS implements this
KRONOS's implementation maps directly onto the KS formalism:
-
SCFSolver(src/solver/scf.cpp) drives the SCF loop. It maintains the current density, calls the potential builders, invokes the eigensolver per k-point, applies Fermi-level bisection, and runs Pulay/DIIS mixing. -
Hamiltonian application (
src/hamiltonian/) computes as: (1) kinetic term in G-space; (2) local potential via inverse FFT → multiply → FFT; (3) nonlocal pseudopotential via GEMM projections. See Algorithms for the GPU hot-path breakdown. -
Eigensolver: Davidson diagonalization at each k-point (subspace dimension ), with automatic fallback to LOBPCG if the Davidson residual exceeds .
-
Potential (
src/potential/): Hartree via G-space Poisson (, set to zero); XC via libxc or built-in LDA. -
k-point parallelism (
src/utils/mpi_wrapper.cpp): k-points are distributed round-robin across MPI ranks; densities are reduced viaMPI_Allreducebefore mixing.
The SCF convergence criteria are Ry and e/bohr³, with a hard abort at 200 iterations if neither is met. See SCF Flowchart for the complete decision tree.
References
- Hohenberg, P. & Kohn, W. "Inhomogeneous electron gas", Phys. Rev. 136, B864 (1964)
- Kohn, W. & Sham, L. J. "Self-consistent equations including exchange and correlation effects", Phys. Rev. 140, A1133 (1965)
- Parr, R. G. & Yang, W. Density-Functional Theory of Atoms and Molecules, Oxford University Press, 1989
- Martin, R. M. Electronic Structure: Basic Theory and Practical Methods, Cambridge University Press, Ch. 6–7
- Janak, J. F. "Proof that in density-functional theory", Phys. Rev. B 18, 7165 (1978)