Density Functional Theory and the Kohn-Sham Equations
A carbon atom sitting inside a heme cofactor is surrounded by roughly a dozen electrons. Their motions are correlated in complicated ways. Yet everything a chemist actually needs — the bond lengths, the spin state, the barrier to O₂ binding — is written into a single scalar field: the electron density , a function of only three spatial coordinates. Density Functional Theory (DFT) takes this observation and turns it into a rigorous, practical theory. Instead of chasing a many-electron wavefunction that lives in a -dimensional space, one works with , a three-dimensional object. This object contains, in principle, everything there is to know about the ground state. This is not a hand-wave. The Hohenberg–Kohn theorems establish that the ground-state density determines the external potential (up to a constant). It therefore determines the Hamiltonian. It therefore determines every ground-state property. This includes energy, dipole moment, and force constants. All of these follow through a universal functional of the density alone. The catch, discovered immediately after the theorems were proved, is that nobody knows this universal functional in closed form. Kohn and Sham's resolution is the single most consequential trick in modern computational chemistry. It replaces the intractable interacting problem with an auxiliary system of noninteracting electrons. This auxiliary system is built, by construction, to reproduce the exact density. All the hard many-body physics is then hidden in one unknown piece called the exchange-correlation functional. Why does this matter so much? Because it converts an exponentially hard problem into something manageable. Wavefunction methods scale steeply with electron number. They struggle badly past a few dozen atoms. DFT instead produces a set of effective one-electron equations. These scale far more gently, typically as with system size. This is the machinery behind essentially every DFT calculation run today. It spans geometry optimizations of drug-like molecules to band-structure calculations of battery cathodes. The method inherits the same self-consistent iterative structure familiar from the The Self-Consistent-Field Procedure used in Hartree–Fock theory. But the orbitals it produces are not approximations to a many-electron wavefunction. They are exact-in-principle objects of a fictitious noninteracting reference system. This fictitious system happens to share the real system's density. This article builds the theory from its two load-bearing theorems. It proceeds through the constructive Kohn–Sham mapping. It ends at the self-consistent Kohn–Sham equations actually solved on a computer. It stays agnostic about the specific approximate exchange-correlation functional. That choice, and its consequences, is the subject of its own treatment. Instead, this article nails down exactly what DFT promises. It also clarifies what DFT does not promise. Finally, it explains why the Kohn–Sham reformulation was necessary at all.
- The ground-state electron density determines the external potential and hence the full Hamiltonian and all ground-state properties (Hohenberg–Kohn Theorem 1).
- A universal energy functional exists whose minimum, over densities integrating to electrons, equals the true ground-state energy (Hohenberg–Kohn Theorem 2, a variational principle in ).
- The exact functional's kinetic energy piece is unknown for interacting electrons, so Kohn and Sham introduce a fictitious noninteracting system with the same density, whose kinetic energy is exactly computable from orbitals.
- All the missing many-body physics — the difference between the true kinetic energy and the noninteracting one, plus all non-classical electron-electron effects — is swept into one term, the exchange-correlation functional .
- Minimizing the Kohn–Sham energy expression leads to one-electron Schrödinger-like equations with an effective potential that must be solved self-consistently, exactly as in Hartree–Fock.
- DFT is formally exact but practically approximate: everything hinges on the (unknown) form of , whose construction is a separate, ongoing enterprise.
Key idea: The 3N-dimensional wavefunction problem can be replaced, without approximation in principle, by a 3-dimensional density problem, at the cost of hiding all the hard many-body physics inside one unknown functional.
Where this lives today
Kohn–Sham DFT is the workhorse of computational chemistry and materials science precisely because its cost scales gently with system size while retaining a formally exact foundation. Pharmaceutical computational chemists use it routinely to compute binding conformations, tautomer stabilities, and reaction barriers for drug candidates docked into protein active sites, often paired with implicit solvation models. In materials science, plane-wave Kohn–Sham DFT calculations predict formation energies, band gaps, and defect chemistry in battery cathode materials, photovoltaic absorbers, and catalytic surfaces — the entire discipline of high-throughput computational materials screening (materials genome-style databases) rests on running Kohn–Sham calculations across thousands of candidate compounds. In biology, QM/MM schemes embed a DFT-treated active site (an enzyme's metal cofactor, say) within a classical force-field-treated protein environment, allowing mechanistic study of enzymatic catalysis at a cost ordinary correlated wavefunction methods could not touch. Spectroscopists use time-dependent extensions of Kohn–Sham theory to predict UV-Vis absorption spectra, and instrumentation groups use DFT-computed vibrational frequencies to assign infrared and Raman spectra of newly synthesized compounds. The choice of which approximate exchange-correlation functional to trust for a given problem — a decision that can change predicted barrier heights by tens of kJ/mol — is itself a major applied subfield, covered under Exchange-Correlation Functionals and weighed against wavefunction-based alternatives in Choosing a Computational Method.
:::quiz[In the Kohn-Sham scheme, what is T_s[ρ] designed to represent?]
- The exact kinetic energy of the interacting electron system
- The classical Coulomb repulsion energy of the density with itself
- The exactly computable kinetic energy of a fictitious noninteracting system with the same density ✓
- The total exchange-correlation energy
:::quiz[A converged closed-shell Kohn-Sham calculation gives orbital energies ε₁ = -1.10 and ε₂ = -0.60 hartree (each doubly occupied), J[ρ] = 0.55 hartree, E_xc = -0.30 hartree, and ∫v_xc ρ dr = -0.34 hartree. What is the total electronic energy?]
- -3.40 hartree
- -2.71 hartree ✓
- -3.02 hartree
- -0.85 hartree
Ask the tutor: How does the choice of approximate exchange-correlation functional (LDA vs. GGA vs. hybrid) change the accuracy of Kohn–Sham predictions for reaction barriers?
The physical picture
Think first about what a wavefunction actually costs to store. For a molecule with electrons, depends on spatial coordinates (plus spin), so doubling the number of electrons squares — no, exponentiates — the size of the space you must describe. The electron density, by contrast, is defined as
and no matter how many electrons a system has, is always a function of the same three variables: it tells you the probability of finding an electron (any electron, since they're indistinguishable) at point . Its integral over all space is , the total electron count, and it is directly observable — X-ray diffraction literally measures it. The astonishing claim of Hohenberg–Kohn theory is that this humble three-dimensional function, in its ground-state form, contains the same information as the full wavefunction. The route from "density" to "energy" runs through the variational principle familiar from ordinary quantum mechanics, but recast entirely in terms of . In the interacting real system, the Hamiltonian has three pieces: kinetic energy of the electrons, electron–electron repulsion, and the interaction of electrons with an external potential (usually the nuclear attraction). Hohenberg and Kohn show that the kinetic and electron-repulsion pieces, summed into a single object , are universal — they take the same functional form regardless of what molecule or solid you are studying — while all system-specific information enters only through . This split is the conceptual heart of the theory: chemistry-specific information (which atoms, where) lives in , and everything else about how electrons kinetically move and repel each other is captured once and for all in . The trouble is that , while universal, is not known. In particular, nobody has an exact expression for the kinetic energy of an interacting electron gas as a functional of alone. Early attempts (Thomas–Fermi theory) approximated the kinetic energy directly from the density using a local electron-gas formula, and the results were qualitatively poor — Thomas–Fermi theory famously predicts no chemical bonding at all. Kohn and Sham's 1965 insight sidesteps this failure by refusing to approximate the kinetic energy directly. Instead, they introduce a fictitious system of noninteracting electrons, moving in some effective potential , chosen so that this fictitious system's ground-state density exactly equals the true interacting density. Because the fictitious electrons are noninteracting, their many-electron wavefunction is exactly a single Slater determinant of one-electron orbitals — and the kinetic energy of a Slater determinant is exactly computable, no approximation needed:
This is not the true kinetic energy of the interacting system (it's smaller, generally), but it captures the overwhelming majority of it. The remainder — plus everything about how electron repulsion differs from its naive classical (Coulomb, or "Hartree") approximation — gets packaged into the exchange-correlation functional . This is where all of the theory's approximation is concentrated, and it is the price paid for making the kinetic energy tractable.
The self-consistent field structure appears the moment you ask what must be. Kohn and Sham show that if you set
then the noninteracting system built from has exactly the true ground-state density. But depends on through the Hartree (classical Coulomb) term and through , and in turn is built from the orbitals that solve the Schrödinger equation with potential . This circularity is resolved exactly the way it is in The Self-Consistent-Field Procedure: guess a density, build , solve for orbitals, rebuild the density, and iterate to convergence. The output orbitals are not "approximate many-electron wavefunctions" in the Hartree–Fock sense; they are exact objects of an auxiliary noninteracting problem, constructed purely as a computational device to get the correct interacting density and, from it, the correct energy.
The core ideas
Hohenberg–Kohn Theorem 1 (existence/uniqueness). For a system of interacting electrons in an external potential , the ground-state density determines uniquely, up to an additive constant.
where: is the ground-state electron density; is the potential electrons feel from the nuclei (or any external field); is the full electronic Hamiltonian, fixed once and are fixed; is the resulting nondegenerate ground-state wavefunction. Reading: the density is not merely a byproduct of the wavefunction — it is informationally equivalent to it, for ground states. Two different potentials (differing by more than a constant) cannot produce the same ground-state density. This is why can serve as the fundamental variable rather than .
Hohenberg–Kohn Theorem 2 (variational principle). There exists a universal functional , independent of , such that the total energy functional
is minimized, over all -representable trial densities, by the true ground-state density, and the minimum value equals the true ground-state energy . where: bundles the (unknown) universal kinetic and electron–electron repulsion functionals; the second term is the only piece that depends on which molecule you're studying. Reading: this converts electronic structure into a minimization problem over a 3-D function rather than a diagonalization or energy-minimization over a -D wavefunction. It is exact — if were known exactly, this would be an exact theory, not an approximation.
Kohn–Sham decomposition. Introduce the noninteracting kinetic energy and the classical Hartree repulsion , and define everything left over as :
where:
Reading: is defined as a residual — literally "whatever is left after you've done the easy parts exactly." It contains the true kinetic-energy correction (correlation kinetic energy) and all non-classical electron–electron effects: exchange (Pauli antisymmetry) and Coulomb correlation, connecting directly to the physics discussed under Electron Correlation and the Correlation Energy.
Kohn–Sham one-electron equations. Minimizing subject to orbital orthonormality, with , gives
where: is the exchange-correlation potential, a functional derivative; are Kohn–Sham orbital energies (not directly physical excitation energies, though the highest occupied one has a known meaning — see below); the bracketed operator is the effective one-electron Kohn–Sham Hamiltonian . Reading: this looks exactly like a one-electron Schrödinger equation, and it is solved the same iterative way as the Hartree–Fock equations, but the physics inside is, in principle, exact — it's just that nobody has the exact formula.
Goal: show how demanding stationarity of under the Kohn–Sham decomposition, with the constraint that comes from orthonormal orbitals, produces the effective one-electron equations above.
Step 1 — Write the energy as an orbital functional. Substitute into the Kohn–Sham energy expression:
Every term is now expressed through the orbitals; only the first term needs orbitals explicitly (the rest depend on , itself built from orbitals).
Step 2 — Impose orthonormality with Lagrange multipliers. We minimize subject to . Form the Lagrangian
and require for each . This is the same variational machinery used to derive the Hartree–Fock equations under The Self-Consistent-Field Procedure; the only difference is what sits inside the effective potential.
Step 3 — Differentiate each energy piece. The kinetic term gives directly. The external and Hartree terms give, via the chain rule through ,
and by definition of the functional derivative,
Step 4 — Collect terms and diagonalize the multipliers. Setting gives
Because the effective Hamiltonian is Hermitian, the Lagrange multiplier matrix can be unitarily diagonalized (exactly as with Fock matrix off-diagonal multipliers), giving canonical orbitals that satisfy the single-index eigenvalue equation quoted above, with eigenvalues .
Step 5 — Interpret the self-consistency requirement. Because and both depend on , and depends on the that solve this very equation, the equations must be solved iteratively: guess , build , diagonalize to get new orbitals and a new , and repeat until the density (and hence the total energy) stops changing.
Go deeper · Derivation B · 1 minThe energy expression in terms of orbital energies, and the double-counting correction
Goal: show that the total Kohn–Sham energy is not simply the sum of occupied orbital energies, and derive the correction term explicitly — a frequent point of confusion analogous to the same issue in Hartree–Fock theory.
Step 1 — Sum the orbital energies. Multiply the Kohn–Sham equation for orbital on the left by , integrate, and sum over occupied orbitals:
Step 2 — Compare to the true total energy. The actual Kohn–Sham total energy is
Note that , because integrates against to give twice the Hartree energy (the same factor-of-two "double counting" familiar from the Hartree–Fock Coulomb-energy bookkeeping).
Step 3 — Subtract to isolate the correction. Comparing the orbital-energy sum to term by term:
Step 4 — State the physical meaning. The correction removes the double-counted Hartree repulsion (each electron pair's repulsion was counted once in and once in ), and replaces the (incorrectly double-counted) exchange-correlation potential energy with the correct exchange-correlation energy functional value. This is structurally identical to the Hartree–Fock double-counting correction, generalized to include .
Worked examples
Example 1 — Foundational: verifying the Hartree double-counting factor for a simple density. Consider a toy one-dimensional "density" used purely to fix the bookkeeping numerically (not a real atom, but numbers chosen off any special symmetry so the algebra is checkable): suppose we model as a normalized two-Gaussian mixture contributing charges and (summing to ) concentrated effectively at two points separated so that their mutual Coulomb integral evaluates to hartree, and each has a self-repulsion integral of and hartree (in some model units). The classical Hartree energy is
Plugging in:
Now check the claimed identity . The Hartree potential felt by charge 1 is , and similarly . Then
which is indeed exactly , confirming the factor-of-two relation used in the double-counting derivation, with genuinely unequal, non-round input numbers. Limiting case: if the two "electrons" merge into a single point charge of magnitude (or if with ), the formula collapses to and — the identity survives the symmetric limit as it must, but the asymmetric numbers above are what actually stress-test the formula.
Example 2 — Applied: estimating the HOMO-LUMO-adjacent quantity for a diatomic using Koopmans-like reasoning in Kohn–Sham theory. Unlike Hartree–Fock, Kohn–Sham orbital energies do not generally approximate ionization energies via Koopmans' theorem — except for one exact result: the highest occupied Kohn–Sham orbital energy equals minus the exact ionization energy, provided the exact exchange-correlation functional is used,
Suppose a calculation on a diatomic radical gives a HOMO Kohn–Sham eigenvalue of hartree using some approximate functional. Converting to eV (1 hartree eV):
If the experimental ionization energy is eV, the discrepancy is
This sizable error is typical of common approximate functionals (which suffer from self-interaction error), even though the underlying theorem is exact for the true . This is precisely why orbital energies from approximate Kohn–Sham calculations are treated as qualitative indicators rather than quantitative ionization energies — a caveat carried forward whenever Exchange-Correlation Functionals are compared against each other. Limiting case: as the approximate functional approaches the exact (unknown) functional, by the exactness of the theorem; the 11.9% error quantifies how far a typical practical functional sits from that exact limit for this system.
Example 3 — Exam/competition level: energy bookkeeping from orbital energies for a four-electron closed-shell system. A closed-shell four-electron system (two doubly occupied Kohn–Sham orbitals) is converged with orbital energies hartree and hartree. The converged Hartree energy is hartree, the exchange-correlation energy is hartree, and the exchange-correlation potential energy (the expectation value ) is hartree. Find the total electronic energy. Using the double-counting correction derived above,
where for each doubly-occupied orbital. First sum the orbital contribution:
Now apply the correction:
So the total electronic energy is hartree, noticeably different from the naive orbital-energy sum of hartree — a difference of hartree ( eV), illustrating why summing Kohn–Sham eigenvalues alone (as one might naively do by analogy with a simple particle-in-a-box picture) badly misrepresents the total energy, exactly as it would in Hartree–Fock theory. Limiting case: if and its potential term happened to satisfy (true only for potentials linear in , not realistic functionals), those two terms would cancel and would reduce to , the pure Hartree-theory double-counting formula — showing the correction is an additive refinement on top of the classical bookkeeping, not a replacement for it.
Limiting cases, scope & common traps
| Situation | What happens | Why |
|---|---|---|
| Exact used | Kohn–Sham theory gives the exact ground-state energy and density | Hohenberg–Kohn theorems are exact; all approximation is isolated in |
| (one electron) | becomes exact, and the exact should cancel the Hartree self-repulsion entirely | A single electron cannot repel itself; approximate functionals that fail to do this exhibit self-interaction error |
| Noninteracting limit () | Kohn–Sham reduces exactly to ordinary one-electron quantum mechanics; | The fictitious system is the real system when there's no interaction to hide |
| Near-degenerate ground states | Hohenberg–Kohn theorem 1's uniqueness argument (originally for nondegenerate states) requires care; extensions (Levy constrained search) handle degeneracy | Ensemble/generalized formulations restore rigor |
| Charge-transfer and Rydberg excited states (via response-theory extensions) | Common approximate functionals perform poorly | Self-interaction error and incorrect asymptotic potential decay |
| Comparing orbital energies to spectroscopic energies | Only is exact (with exact ); other have no rigorous spectroscopic meaning in ground-state DFT | Kohn–Sham orbitals are auxiliary constructs, not approximate quasiparticle wavefunctions |
The chemist behind it
Origins · 1 minWalter Kohn and how this was discovered
Walter Kohn was born in Vienna and, as a Jewish teenager, escaped Nazi-annexed Austria via the Kindertransport in 1939 while his parents perished in the Holocaust. He resettled in Canada, was briefly interned as an "enemy alien" during the Second World War, and went on to earn a PhD in physics at Harvard under Julian Schwinger. Kohn's early career centered on solid-state physics — pseudopotential theory, and the physics of electrons in semiconductors and metals — before he turned, with postdoctoral collaborator Pierre Hohenberg and later graduate student Lu Jeu Sham, to the foundational question of whether electron density alone could serve as the basic variable of quantum many-body theory. The 1964 Hohenberg–Kohn paper and the 1965 Kohn–Sham paper together transformed a formally elegant but practically inert existence theorem into a genuinely computable scheme, and Kohn spent much of his later career, at UC San Diego and then UC Santa Barbara, championing DFT's application across physics, chemistry, and materials science. He shared the 1998 Nobel Prize in Chemistry with John Pople, a striking recognition that a physicist's density-based reformulation of quantum mechanics had become indispensable to chemistry.
Is DFT exact, or is it inherently an approximate method?
The Hohenberg–Kohn theorems and the Kohn–Sham reformulation are exact statements: if you had the true universal functional , or equivalently the true exchange-correlation functional , Kohn–Sham theory would reproduce the exact ground-state energy and density with no approximation at all. In that sense DFT is a formally exact theory, on the same conceptual footing as the Schrödinger equation itself. The approximation enters only because nobody has ever written down the exact in closed form; every practical DFT calculation uses one of many approximate functionals, and it is those approximations — not the underlying theory — that introduce error. This distinction matters enormously when judging DFT's failures: they are failures of a specific approximate functional, not of the density-functional framework.
Why can't we just use the electron density directly with an approximate kinetic-energy functional, skipping Kohn-Sham orbitals entirely?
This is exactly what Thomas–Fermi theory (and its descendants, orbital-free DFT) attempts, and historically it failed badly for chemistry: the Thomas–Fermi kinetic-energy functional, built from a local electron-gas approximation, is not accurate enough to reproduce shell structure or chemical bonding, and famously predicts that molecules do not bind at all. The kinetic energy of even a noninteracting electron system, expressed purely as a functional of , has no known accurate closed form that avoids using orbitals. Kohn and Sham's move — computing exactly from a Slater determinant of auxiliary orbitals rather than approximating it directly from — is precisely what fixes this failure and makes DFT chemically accurate.
Do Kohn-Sham orbitals mean anything chemically, like frontier molecular orbitals in Hartree-Fock theory?
They are widely used that way in practice — HOMO/LUMO pictures, orbital symmetry arguments, and qualitative bonding discussions routinely borrow Kohn–Sham orbitals — and empirically they often resemble Hartree–Fock orbitals closely for many systems. But formally, Kohn–Sham orbitals are defined only as the machinery that reproduces the correct total density of the real interacting system; they are solutions of an auxiliary noninteracting problem, not approximations to pieces of the true many-electron wavefunction. Their qualitative use is generally reliable for rationalizing trends, but treating individual orbital energies as spectroscopic quantities (beyond the exact HOMO-ionization-energy theorem) is not formally justified.
How does the Kohn-Sham self-consistent field procedure differ numerically from the Hartree-Fock SCF procedure?
The iterative structure is essentially identical: guess a density or set of orbitals, build an effective one-electron Hamiltonian, diagonalize it to get new orbitals, rebuild the density, and repeat until convergence — the same self-consistent loop used throughout The Self-Consistent-Field Procedure. The difference lies entirely in what sits inside the effective potential. Hartree–Fock includes an exact, nonlocal exchange term derived from antisymmetrizing a single Slater determinant, with no correlation whatsoever. Kohn–Sham instead includes a (generally local or semi-local) exchange-correlation potential derived from an approximate density functional, which folds in both exchange and correlation effects simultaneously, at typically lower computational cost per iteration than exact Hartree–Fock exchange.
Why does the Hohenberg-Kohn framework matter if we still need approximate functionals to compute anything?
Because it tells you, with certainty, that a three-variable function contains all the ground-state information that a -variable wavefunction does — a claim that is not obvious a priori and that licenses the entire enterprise of density-based methods. Without the Hohenberg–Kohn theorems, there would be no guarantee that minimizing some energy expression over densities gives anything physically meaningful; the theory could easily have been an ill-posed dead end, the way naive density-only guesses often are. The theorems supply the rigorous foundation; the ongoing search for better exchange-correlation functionals (see Exchange-Correlation Functionals) is the practical engineering built on that foundation.
Does the Kohn-Sham approach handle electron correlation exactly, in principle?
Yes, in the sense that the exact would include all correlation effects — both the "dynamical" correlation missing from Hartree–Fock and any static/near-degeneracy correlation — exactly. The entire content of Electron Correlation and the Correlation Energy is, formally, hidden inside along with exchange effects. In practice, most widely used approximate functionals handle dynamical correlation reasonably well but struggle with strongly correlated, near-degenerate situations (some transition-metal complexes, bond-breaking along a potential energy surface), which is why wavefunction-based multireference methods remain preferred for those cases, a comparison made explicit under Choosing a Computational Method.
What does N-representability mean, and why does it matter for the variational principle in Hohenberg-Kohn theory?
A trial density is called -representable if it can, in principle, arise from some valid -electron antisymmetric wavefunction (equivalently, if it is non-negative everywhere and integrates to ). The Hohenberg–Kohn variational theorem states that minimizing over all -representable densities yields the true ground-state energy, with equality only at the true ground-state density. This matters because the minimization is only guaranteed to behave correctly within this restricted class of densities; feeding the functional a density that could never come from any physical wavefunction voids the guarantee, though in practice Kohn–Sham densities (built from an actual Slater determinant) are automatically -representable by construction.