Density functional theory basics: the Hohenberg-Kohn theorems and the Kohn-Sham equations
Anchor (Master): Dreizler & Gross — Density Functional Theory (1990); Hohenberg & Kohn — Phys. Rev. 136, B864 (1964)
Intuition Beginner
Every quantum chemistry method you have seen so far works with the wave function -- a complicated object that depends on the coordinates of every electron. For a molecule with electrons, the wave function lives in a -dimensional space. As grows, storing and manipulating becomes prohibitively expensive.
Density functional theory (DFT) takes a different approach. Instead of working with the full wave function, DFT uses the electron density -- a function of just three spatial coordinates. The density tells you how many electrons occupy each point in space, regardless of which electron is where. The Hohenberg-Kohn theorems prove that the ground-state density alone determines all ground-state properties of the system, including the total energy. This is a remarkable result: the full -dimensional wave function contains no more ground-state information than the 3-dimensional density.
The practical question is how to compute the energy from the density. The Kohn-Sham equations provide the answer. They decompose the interacting electron system into a set of one-electron equations -- orbital equations that look like the Hartree-Fock equations but with an extra term called the exchange-correlation functional. If the exact exchange-correlation functional were known, DFT would give the exact ground-state energy. In practice, approximate functionals are used, and the quality of the approximation determines the accuracy of the calculation.
Visual Beginner
The electron density is a scalar field over three-dimensional space. For an atom, it is spherically symmetric and peaks at the nucleus. For a molecule, it accumulates along bonds and around atoms. The total electron count is recovered by integrating the density over all space (summing up the electron population everywhere), which equals .
The Kohn-Sham decomposition replaces the interacting system with a fictitious system of noninteracting electrons that has the same density. Each Kohn-Sham orbital satisfies a one-electron equation with an effective potential that includes the nuclear attraction, the classical Coulomb repulsion of the electron cloud, and the exchange-correlation potential that accounts for all many-body effects.
Worked example Beginner
A minimal DFT calculation on the helium atom proceeds as follows. Helium has two electrons and . The Kohn-Sham equations for helium reduce to a single orbital equation because both electrons occupy the same spatial orbital (with opposite spins):
where the Kohn-Sham operator is
The first term is kinetic energy (the second-derivative operator from quantum mechanics), the second is nuclear attraction, the third is the Coulomb (Hartree) potential from the electron density, and the fourth is the exchange-correlation potential. The density is built from the orbital: (the factor 2 accounts for two electrons).
Self-consistent cycle. Start with a guess for (e.g., a hydrogenic orbital with ). Build , solve the orbital equation for , construct a new density , and repeat until the density stops changing. This cycle is the DFT analogue of the Hartree-Fock SCF procedure. Using the local density approximation (LDA) for , the converged energy for helium is approximately eV, compared with the exact nonrelativistic energy of eV and the Hartree-Fock energy of eV.
Check your understanding Beginner
Formal definition Intermediate+
The first Hohenberg-Kohn theorem (existence). For a system of electrons in an external potential with a nondegenerate ground state, the ground-state electron density uniquely determines , up to an additive constant.
Proof (by contradiction). Suppose two external potentials and , differing by more than a constant, give the same ground-state density . Let and be the corresponding ground-state energies, and and the ground-state wave functions. By the variational principle applied to :
so . By the same argument with primed and unprimed quantities interchanged:
Adding these two inequalities gives , a contradiction. Therefore and cannot differ by more than a constant.
The second Hohenberg-Kohn theorem (variational principle). Define the universal functional
where is the ground-state wave function of the unique external potential that yields . For any valid trial density with :
where . Equality holds if and only if .
The Levy constrained-search formulation
The original Hohenberg-Kohn functional requires the density to be -representable (i.e., the ground-state density of some external potential), which is difficult to verify. Levy (1979) and Lieb (1983) introduced the constrained-search functional:
where the minimum is over all antisymmetric -electron wave functions yielding the density . This functional is defined for all -representable densities (a much larger class than -representable densities) and reduces to for -representable densities.
The Kohn-Sham equations
Kohn and Sham (1965) decomposed the universal functional as
where is the kinetic energy of a fictitious noninteracting system with density , is the classical Coulomb (Hartree) energy, and is the exchange-correlation energy that absorbs everything else: the difference between the true kinetic energy and , the exchange energy, and the correlation energy.
The Kohn-Sham equations are obtained by minimising the total energy with respect to the orbitals of the noninteracting system:
where and . The density is reconstructed as . The equations are solved self-consistently: guess , build the potential, solve for orbitals, reconstruct , repeat.
The total energy is
The orbital energy sum double-counts the Hartree and exchange-correlation contributions, so the last three terms correct for this.
Key theorem with proof Intermediate+
Theorem (Kohn-Sham equivalence). If the exchange-correlation functional is known exactly, then the Kohn-Sham scheme yields the exact ground-state density and energy of the interacting -electron system.
Proof. The total energy functional for the interacting system is
where by the Levy constrained search. Decompose , where is the kinetic energy of the noninteracting system.
By the second Hohenberg-Kohn theorem, the ground-state density minimises . Using the chain rule for functional derivatives with the constraint (enforced by a Lagrange multiplier ):
This Euler-Lagrange equation is the stationarity condition for the interacting system. But it is also the Euler-Lagrange equation for a noninteracting system in the effective potential , because a noninteracting system satisfies .
By the first Hohenberg-Kohn theorem applied to the noninteracting system, there exists a unique that yields the density . The solution of the one-electron equations with reproduces exactly, provided is exact. Since determines all ground-state properties, the Kohn-Sham scheme is exact in principle.
The practical limitation is that is unknown. All approximations in DFT flow from the choice of approximate exchange-correlation functional.
The exchange-correlation hole
A useful way to understand is through the exchange-correlation hole , defined by the relation
where is the pair density. The XC hole represents the reduction in probability of finding an electron at given one at , relative to the uncorrelated case. It satisfies the sum rule : on average, each electron excludes exactly one electron from its vicinity.
The exchange-correlation energy can be written as a coupling-constant integral over the XC hole:
where is the coupling-constant-averaged XC hole. This expression shows that depends only on a spherical average of the XC hole, which is why even crude approximations to can give reasonable energies.
Exercises Intermediate+
The hierarchy of exchange-correlation functionals Master
The accuracy of DFT is entirely determined by the choice of . The functionals are classified by the information they use:
Local density approximation (LDA). , where is the exchange-correlation energy per particle of a uniform electron gas of density . The exchange part is the Dirac exchange: . The correlation part is taken from quantum Monte Carlo data (Ceperley-Alder, 1980) parametrised by Vosko-Wilk-Nusair (VWN) or Perdew-Zunger (PZ). LDA is exact for a uniform electron gas and works surprisingly well for many systems, but systematically overbinds molecules by 1--2 eV and underestimates bond lengths by 1--2%.
Generalised gradient approximation (GGA). . The functional depends on both the density and its gradient, capturing inhomogeneity effects. Prominent GGAs include Becke-88 (B88) for exchange and Lee-Yang-Parr (LYP) or Perdew-Wang-91 (PW91) for correlation. The popular BLYP functional combines B88 exchange with LYP correlation. GGAs significantly improve atomisation energies, bond lengths, and vibrational frequencies over LDA.
Meta-GGA. Adds dependence on the kinetic energy density or the Laplacian . Examples include the Tao-Perdew-Staroverov-Scuseria (TPSS) functional. Meta-GGAs can distinguish between covalent, metallic, and van der Waals bonding through the kinetic energy density.
Hybrid functionals. Mix a fraction of exact (Hartree-Fock) exchange with DFT exchange. The original hybrid is B3LYP:
with , , . B3LYP became the most widely used functional in computational chemistry because it achieves chemical accuracy (1 kcal/mol) for thermochemistry of main-group molecules. Its success is partly accidental: the empirical parameters compensate for errors in the GGA components.
Range-separated hybrids. Split the electron-electron interaction into short-range and long-range parts, using exact exchange at long range and DFT exchange at short range. The B97X-D and CAM-B3LYP functionals use this approach, significantly improving treatment of charge-transfer excitations and Rydberg states. Long-range exact exchange cures the incorrect decay of the DFT exchange potential.
Double hybrids. Add a perturbative correlation correction (analogous to MP2) on top of the hybrid functional. The B2PLYP functional combines a hybrid DFT calculation with a second-order perturbation theory correction, achieving near-CCSD accuracy at lower cost.
Jacob's ladder. Perdew and Schmidt (2001) organised the functionals into a hierarchy called Jacob's ladder:
| Rung | Information used | Examples |
|---|---|---|
| 1. Hartree (no XC) | only (Coulomb) | None |
| 2. LDA | SVWN, PZ | |
| 3. GGA | , | BLYP, PBE, PW91 |
| 4. Meta-GGA | , , | TPSS, M06-L |
| 5. Hybrid | Occupied orbitals | B3LYP, PBE0 |
| 6. Double hybrid | Virtual orbitals | B2PLYP |
Each rung adds information and computational cost. Moving up the ladder generally improves accuracy, but no systematic convergence to the exact functional is guaranteed.
Comparison with Hartree-Fock Master
Hartree-Fock and Kohn-Sham DFT share the same orbital structure: both solve a set of one-electron equations self-consistently. The key difference lies in the treatment of electron-electron interactions.
| Property | Hartree-Fock | Kohn-Sham DFT |
|---|---|---|
| Fundamental variable | Wave function (Slater determinant) | Electron density |
| Exchange | Exact (nonlocal) | Approximate (depends on functional) |
| Correlation | Absent (in HF itself) | Included approximately in |
| Computational cost | per SCF iteration | for GGA, for hybrids |
| Self-interaction | Exact cancellation | Incomplete cancellation (LDA, GGA) |
| Variational | Yes () | Only for the exact functional |
| Band gaps | Overestimated | Underestimated (LDA, GGA) |
| Dispersion | Absent | Absent in LDA/GGA without corrections |
DFT includes electron correlation through at no additional cost beyond the HF-level SCF cycle. This is DFT's central advantage: correlation comes essentially "for free." The price is that the functional is approximate, and there is no systematic way to improve it (unlike post-HF methods, where one can move from MP2 to CCSD to CCSD(T)).
Hartree-Fock has exact exchange, which makes it self-interaction-free and gives correct asymptotic behaviour of the potential ( at large distances). Standard LDA and GGA functionals have incorrect asymptotic decay ( exponentially), leading to poor Rydberg excitation energies and anion energies. Hybrid functionals with exact exchange partially fix this.
For thermochemistry of organic molecules, B3LYP/6-31G(d) typically achieves errors of 2--5 kcal/mol for atomisation energies, compared with 5--10 kcal/mol for HF and 2--3 kcal/mol for MP2. For transition metals, strongly correlated systems, and van der Waals complexes, the accuracy of standard functionals degrades significantly, and specialised functionals or post-HF methods are needed.
Strengths, limitations, and failures of DFT Master
Strengths. DFT's favourable cost-to-accuracy ratio makes it the workhorse of computational chemistry. A B3LYP calculation costs roughly the same as an HF calculation but includes correlation. For equilibrium geometries, vibrational frequencies, and reaction energies of main-group molecules, DFT routinely achieves chemical accuracy. The method is available in every major quantum chemistry package (Gaussian, ORCA, Q-Chem, VASP, Quantum ESPRESSO) and scales to systems with hundreds of atoms.
Limitations.
No systematic improvability. Unlike the coupled-cluster hierarchy (CCSD, CCSD(T), CCSDT), there is no guaranteed path from an approximate functional to the exact one. Choosing a functional requires judgement and experience.
Self-interaction error. All local and semilocal functionals (LDA, GGA, meta-GGA) suffer from self-interaction error, which causes over-delocalisation of electrons. This manifests as underestimated reaction barriers, incorrect dissociation limits for charge-transfer complexes, and qualitatively wrong descriptions of strongly localised states.
Static correlation. For systems with near-degeneracies (bond breaking, diradicals, transition metal complexes), the single-determinant Kohn-Sham reference is inappropriate. Multireference DFT methods exist but are less developed than multireference wave function methods.
Van der Waals interactions. Standard functionals do not capture long-range dispersion (). Empirical dispersion corrections (DFT-D3, DFT-D4, VV10) add a pairwise term and are now standard practice.
Known failures. DFT fails or performs poorly for: band gaps of semiconductors and insulators (underestimated by 30--50% with LDA/GGA); charge-transfer excitations (the excitation energy does not have the correct dependence); Rydberg excitations (underestimated by 1--2 eV); reaction barrier heights (overestimated with pure functionals, improved with hybrids); strongly correlated materials (Mott insulators); and thermochemistry involving transition metals (errors of 10--20 kcal/mol are common).
Connections Master
Many-electron atoms: Hartree-Fock
14.01.03develops the Hartree-Fock equations and the SCF procedure. The Kohn-Sham equations have the same mathematical structure as the Roothaan equations, with the Fock operator replaced by the Kohn-Sham operator. The SCF cycle, DIIS convergence acceleration, and basis set machinery are shared between HF and DFT.Variational methods
14.04.02provides the Roothaan equations and basis set formalism used in every practical DFT calculation. The Kohn-Sham equations are solved by expanding each orbital in a Gaussian basis set and iterating to self-consistency, exactly as in molecular HF. The second Hohenberg-Kohn theorem is itself a variational principle.Perturbation theory
14.04.03connects to DFT through double-hybrid functionals and the adiabatic connection formula. The MP2 correction in double hybrids uses the same sum-over-virtual-orbitals expression developed for Moller-Plesset theory. The adiabatic connection links the DFT exchange-correlation energy to a coupling-constant integral over the electron-electron interaction strength.Molecular orbital theory
14.05.02provides the qualitative MO picture (bonding, antibonding, , ) that Kohn-Sham orbitals approximately reproduce. The Kohn-Sham orbitals have no rigorous physical interpretation as individual electron states, but in practice they closely resemble Hartree-Fock orbitals and are used for qualitative MO analysis.
Historical notes Master
Thomas (1927) and Fermi (1927) independently proposed the first density-based theory of atoms, using the kinetic energy of a uniform electron gas as a functional of the density. The Thomas-Fermi model lacks exchange, correlation, and shell structure, and it predicts no molecular binding (Teller's theorem, 1962). It was a conceptual precursor to DFT but had no practical utility for chemistry.
Dirac (1930) added an exchange term proportional to to the Thomas-Fermi model, creating the Thomas-Fermi-Dirac model. This was the first local density approximation for exchange. The model still lacked correlation and shell structure.
Hohenberg and Kohn (1964) proved their two theorems, establishing that the density is a valid fundamental variable for many-electron systems. Their paper "Inhomogeneous Electron Gas" in Physical Review is one of the most cited papers in physics. The proof is surprisingly short -- the reductio ad absurdum argument occupies less than a page.
Kohn and Sham (1965) introduced the orbital decomposition that made DFT practical. By splitting the kinetic energy into a noninteracting part (computable from orbitals) and a small correction (absorbed into ), they recovered the accuracy of orbital methods while retaining the density as the fundamental variable. The Kohn-Sham approach transformed DFT from a formal theory into a computational method.
The LDA era (1970s-1980s). The local density approximation, parametrised from quantum Monte Carlo data by Ceperley and Alder (1980), became the standard functional for solid-state physics. LDA gave good results for bulk properties of solids (lattice constants within 1--2%, bulk moduli within 10%) but systematically overbound molecules. Its use in chemistry was limited.
The GGA revolution (1988-1992). Becke's 1988 gradient correction for exchange (B88) and Lee, Yang, and Parr's 1988 correlation functional (LYP) dramatically improved DFT accuracy for molecules. Perdew and Wang's PW91 (1991) and Perdew-Burke-Ernzerhof's PBE (1996) provided nonempirical GGAs. These functionals made DFT competitive with MP2 for many chemical applications.
B3LYP and the hybrid era (1993-present). Becke's 1993 three-parameter hybrid functional, combined with LYP correlation, created B3LYP. Its accuracy for main-group thermochemistry (mean absolute error 2 kcal/mol for the G2 test set) made it the default choice for computational chemistry. B3LYP remains the most-cited functional, though newer functionals (PBE0, B97X-D, M06-2X) outperform it for specific applications.
The density functional theory Walter Kohn shared the 1998 Nobel Prize in Chemistry for his development of DFT. John Pople shared the same prize for his development of computational methods in quantum chemistry (the GAUSSIAN program). The joint award recognised the transformative impact of DFT and practical quantum chemistry on the field.
Bibliography Master
- Hohenberg, P. & Kohn, W., "Inhomogeneous Electron Gas," Phys. Rev. 136 (1964), B864-B871.
- Kohn, W. & Sham, L. J., "Self-Consistent Equations Including Exchange and Correlation Effects," Phys. Rev. 140 (1965), A1133-A1138.
- Levy, M., "Universal Variational Functionals of Electron Densities, First-Order Density Matrices, and Natural Spin-Orbitals and Solution of the v-Representability Problem," Proc. Natl. Acad. Sci. USA 76 (1979), 6062-6065.
- Lieb, E. H., "Density Functionals for Coulomb Systems," Int. J. Quantum Chem. 24 (1983), 243-277.
- Ceperley, D. M. & Alder, B. J., "Ground State of the Electron Gas by a Stochastic Method," Phys. Rev. Lett. 45 (1980), 566-569.
- Becke, A. D., "Density-functional Thermochemistry III. The Role of Exact Exchange," J. Chem. Phys. 98 (1993), 5648-5652.
- Lee, C., Yang, W. & Parr, R. G., "Development of the Colle-Salvetti Correlation-Energy Formula into a Functional of the Electron Density," Phys. Rev. B 37 (1988), 785-789.
- Perdew, J. P., Burke, K. & Ernzerhof, M., "Generalized Gradient Approximation Made Simple," Phys. Rev. Lett. 77 (1996), 3865-3868.
- Parr, R. G. & Yang, W., Density-Functional Theory of Atoms and Molecules (Oxford, 1989).
- Dreizler, R. M. & Gross, E. K. U., Density Functional Theory (Springer, 1990).
- Koch, W. & Holthausen, M. C., A Chemist's Guide to Density Functional Theory, 2e (Wiley-VCH, 2001).
- Levine, I. N., Quantum Chemistry, 7e (Pearson, 2014), Ch. 16.
- Burke, K., "Perspective on Density Functional Theory," J. Chem. Phys. 136 (2012), 150901.