The DFT Roadmap: From Theory to Quantum ESPRESSO and AKAI KKR — Part 1
April 6, 2026
This is Part 1 of a multi-part series. Here we will develop the full mathematical framework of Density Functional Theory (DFT) from first principles. Part 2 will cover the practical implementation inside Quantum ESPRESSO and AKAI KKR.
1 The Many-Body Problem
The motion of electrons in atoms, molecules, and solids is governed by the Schrödinger equation. The computational complexity to obtain the exact solution grows exponentially with the number of electrons . When exceeds a few dozen, calculating the exact ground-state wave function becomes extremely expensive [1]. Two strategies have emerged:
- Wave-function methods: It works directly with the -variable many-body wave function and attempt systematic approximations (Configuration Interaction, Coupled Cluster, Quantum Monte Carlo) [2].
- Density Functional Theory: It replaces the -variable wave function with the electron density , a function of only three spatial coordinates, drastically reducing the computational cost [1].
We begin with the full, non-relativistic Hamiltonian that describes all kinetic energies and interactions between the electrons and the atomic nuclei in a system:
where the first sum runs over nuclei (mass , position ), the second over electrons (mass , position ), and the interaction potential is
with and being the sets of electron and nucleus coordinates respectively [1,3].
2 The Born-Oppenheimer Approximation
The Born-Oppenheimer approximation [4] exploits the enormous mass ratio –: nuclei move so slowly compared to electrons that their motions can be treated separately. Thus the total wave function factorises as
where is the electronic wave function (parametrically dependent on the nuclear positions) and is the nuclear wave function.
2.1 The Electronic Schrödinger Equation
By neglecting the nuclear kinetic energy and treating the nuclei as fixed classical charges, the nucleus-nucleus repulsion becomes a constant and we obtain the electronic Schrödinger equation [1]:
This is solved for fixed nuclear positions . The eigenvalue is the electronic energy as a function of nuclear geometry.
2.2 The Nuclear Schrödinger Equation
The nuclear dynamics, operating on a smaller energy scale, are described by:
Here serves as the potential for the nuclear dynamics: the Born-Oppenheimer energy surface. The eigenvalue is the total energy of the coupled electron-nucleus system [1].
From this point forward, the central problem of electronic structure theory is about solving Eq. (4); finding the ground-state energy and density of the electronic system for a given nuclear configuration. DFT offers an elegant route for that.
3 The Hohenberg-Kohn Theorems (1964)
The electronic Hamiltonian (Eq. 4) can be written more compactly as
where is the kinetic energy operator, is the electron-electron repulsion, and is the external (electron-nucleus) potential. In DFT the electron density
is promoted to the fundamental variable [1,3].
3.1 Theorem I: One-to-One Correspondence
Statement: The ground-state electron density uniquely determines the external potential , up to an additive constant [5].
Since the density determines the potential and the total electron number , it completely fixes the Hamiltonian. Therefore every ground-state observable is a unique functional of .
Proof (Reductio ad Absurdum)
Assume there exist two different external potentials and (differing by more than a constant) that produce the same ground-state density .
These potentials define two different Hamiltonians and with different ground-state wave functions and and ground-state energies and .
Step 1. Since is not the ground state of , the variational principle gives a strict inequality:
We decompose . The difference is a one-body operator whose expectation value depends only on :
Step 2. Swap the labels and apply the identical argument:
Step 3. Add inequalities (9) and (10). The integrals cancel exactly:
This is a contradiction. Therefore, two different potentials cannot yield the same ground-state density. Proving then our point : every ground-state observable is a unique functional of .
3.2 Theorem II: The Variational Principle
Statement. There exists a universal functional such that the total energy functional
satisfies the inequality
for all trial densities , where is the true ground-state density and the true ground-state energy [1,5].
Demonstration
Define the universal functional:
This functional is called “universal” because it does NOT depend on the external potential. It is the same for a single atom or a macroscopic crystal. It can be rigorously defined via the constrained-search formalism of Levy [6]:
where the minimisation is over all antisymmetric -electron wave functions that yield the density .
From Theorem I, any trial density corresponds to its own external potential and thus its own Hamiltonian and ground-state wave function . By the standard variational principle of quantum mechanics:
Writing this in terms of the energy functional:
Therefore, the ground-state density can be obtained by minimising the energy functional .
The problematic now The Hohenberg-Kohn theorems guarantee that all ground-state properties are functionals of . The difficulty is that the exact forms of and are unknown. The Kohn-Sham scheme provides the crucial practical solution.
4 The Kohn-Sham Equations (1965)
4.1 The Central Idea
Kohn and Sham [7] introduced a brilliant reformulation. Instead of minimising over directly (for which we would need the unknown ), they introduced an auxiliary system of non-interacting electrons. Those are some fictitious particles that, by construction, reproduce the exact ground-state density of the interacting system.
The key insight is: for non-interacting fermions, the kinetic energy is known exactly and the ground state is a single Slater determinant built from one-electron orbitals .
4.2 Derivation of the Kohn-Sham Equations
Step 1: The Non-Interacting Kinetic Energy
Define the Kohn-Sham kinetic energy for the auxiliary non-interacting system:
This is the exact kinetic energy of the non-interacting reference system given orbital occupation. It captures the dominant part of the true kinetic energy.
Step 2: The Hartree Energy
The classical electrostatic (Coulomb) repulsion of a charge distribution with itself:
Step 3: The Exchange-Correlation Functional
All the many-body complexity is folded into the exchange-correlation functional, defined as the sum of corrections between the true system and the Kohn-Sham reference [1]:
This is the exact definition. It accounts for:
- The difference between the true interacting kinetic energy and the non-interacting one (correlation kinetic energy),
- Exchange effects (Pauli exclusion),
- Correlation effects beyond Hartree (quantum many-body correlations),
- Self-interaction correction (the Hartree term includes an unphysical self-repulsion that must cancel) [3].
Step 4: The Total Energy Functional
The total energy is now partitioned as:
Step 5: Minimisation under the Constraint of Fixed
We minimise with respect to the orbitals , subject to the normalisation constraint . Using the method of Lagrange multipliers, we arrive at the Kohn-Sham equations [1,7]:
where are the Kohn-Sham eigenvalues and the effective potential is:
with the exchange-correlation potential defined as the functional derivative:
Step 6: The Density
The density is reconstructed from the occupied Kohn-Sham orbitals:
4.3 The Self-Consistent Cycle
Equations (22), (23), and (25) form a set of self-consistent equations:
- Guess an initial density .
- Construct from Eq. (23).
- Solve the Kohn-Sham equations (22) to obtain and .
- Compute a new density from Eq. (25).
- Check convergence: if is below a threshold, stop. Otherwise, mix the densities and return to step 2.
This iterative procedure is the computational backbone of every practical DFT code.
5 Approximate Exchange-Correlation Functionals
The exact form of is unknown. The success of DFT depends critically on developing accurate approximations. These are organised on what Perdew calls “Jacob’s Ladder” of density functional approximations [8].
5.1 Local Density Approximation (LDA)
The simplest approximation assumes the exchange-correlation energy density at each point equals that of a uniform electron gas with the same local density [1]:
where is the exchange-correlation energy per particle of a homogeneous electron gas at density . Accurate values of are obtained from quantum Monte Carlo simulations of the uniform electron gas [9]. The LDA is exact for uniform systems and surprisingly accurate for many solids where the electron density varies slowly.
5.2 Generalised Gradient Approximation (GGA)
The GGA improves upon LDA by incorporating the first-order gradient of the density [1]:
The most widely used GGA functional is PBE (Perdew-Burke-Ernzerhof) [8], which is constructed by imposing exact constraints (correct uniform-gas limit, Lieb-Oxford bound, etc.) without empirical fitting.
5.3 Meta-GGA
The meta-GGA further adds the Laplacian of the density and the kinetic energy density [1]:
5.4 Hybrid Functionals and Exact Exchange
Adding higher-order gradients may not efficiently capture quantum effects like the Pauli exclusion. To address this, the exact exchange (EXX) energy is computed from the Kohn-Sham orbitals [1]:
Hybrid functionals mix a fraction of this exact exchange with GGA exchange-correlation, e.g. the B3LYP or PBE0 functionals. The mixing coefficient is tuned to optimally reproduce reference data (cohesive energies, band gaps, etc.) [1].
5.5 The Adiabatic Connection and the RPA
An exact formula relates to the density-density response function via the adiabatic connection [10]:
where is the response function of the system with electron-electron interaction scaled by , and is the Kohn-Sham response function. The random phase approximation (RPA) approximates and successfully captures van der Waals interactions [1].
6 Extensions of DFT
6.1 Spin-DFT
When spin degrees of freedom are relevant (magnetic materials, open-shell systems), the framework is extended to include the spin density as an additional variable alongside [11]. The Kohn-Sham equation becomes spin-dependent, with separate exchange-correlation potentials for spin-up and spin-down channels.
6.2 Time-Dependent DFT (TDDFT)
For systems driven by time-dependent external fields, the Runge-Gross theorem [12] establishes a one-to-one correspondence between the time-dependent density and the external potential , given a known initial state. The time-dependent Kohn-Sham equation reads:
TDDFT is widely used to simulate excitation dynamics and optical spectra [1].
7 Model Hamiltonians in DFT
The standard Kohn-Sham scheme maps the interacting system to a fully non-interacting reference. As Gori-Giorgi, Toulouse, and Savin have emphasised [3], this can be generalised: one may choose model Hamiltonians that retain partial electron-electron interactions, reducing the burden placed on the exchange-correlation functional.
7.1 Motivation: When KS-DFT Struggles
The Kohn-Sham Slater determinant has a fundamentally different structure from the true many-body wave function . This difference is measured by the spherically and system-averaged pair density (APD) , obtained by integrating over all variables except the inter-electronic distance [3]:
where .
When the KS APD and the physical APD are similar (as for H at equilibrium), simple functionals work well. But when they differ dramatically (as for stretched H, where near-degeneracy effects dominate), the functional must correct for a huge qualitative difference between model and reality — making universal approximations extremely difficult [3].
7.2 Partially-Interacting Model Systems
The idea is to introduce a modified electron-electron interaction controlled by a parameter , satisfying [3]:
- as (recovers KS)
- as (recovers the physical system)
A common choice is the error-function interaction [3]:
This retains the long-range Coulomb tail but softens the short-range singularity. The corresponding density functional is:
7.3 The Short-Range Functional
The quantity that must be approximated is the complement to the partially-interacting functional [3]:
This can be decomposed into Hartree and exchange-correlation parts:
Only requires approximation. Crucially, it describes short-range correlation effects, which are more transferable between systems and thus easier to approximate with local or semi-local functionals [3].
7.4 Adiabatic Connection for the Short-Range Functional
An exact expression for follows from the adiabatic connection [3]:
Note the integration over the coupling constant starts from the positive value rather than zero — the short-range regime only.
7.5 Large- Asymptotics and the On-Top Pair Density
The large- behaviour of the functionals involves the on-top pair density (the probability of finding two electrons at the same point in space). Gori-Giorgi and Savin showed [3,13]:
These exact asymptotics constrain the construction of approximate short-range functionals. The on-top pair density can itself be approximated via the LDA (transfer from the uniform electron gas) or self-consistently from [3].
7.6 Practical Advantage
The model wave function is multideterminantal but, since is much weaker than , far fewer Slater determinants are needed for an accurate expansion. Gori-Giorgi et al. demonstrated for He and Be atoms that at , a handful of configurations already achieve errors below 0.005 Hartree — a dramatic reduction compared to the full Coulomb problem [3].
This approach — combining a multideterminantal wave function for the long-range part with a local/semi-local functional for the short range — provides a systematic way to improve DFT for strongly-correlated and near-degenerate systems [3].
8 Summary of Part 1
We have built the mathematical framework of DFT from the ground up:
| Layer | Key Equations | What it achieves |
|---|---|---|
| Many-body Hamiltonian | Eqs. (1)–(2) | Full quantum-mechanical description |
| Born-Oppenheimer | Eqs. (3)–(5) | Decouples electronic and nuclear motion |
| Hohenberg-Kohn I | Eqs. (8)–(11) | bijection proved by contradiction |
| Hohenberg-Kohn II | Eqs. (12)–(17) | Variational principle for |
| Kohn-Sham | Eqs. (18)–(25) | Exact reformulation as non-interacting eigenvalue problem |
| XC Approximations | Eqs. (26)–(30) | LDA → GGA → meta-GGA → hybrids → RPA |
| Model Hamiltonians | Eqs. (33)–(40) | Partially-interacting reference for strong correlation |
In Part 2, we move from equations to implementations: how these ideas are realised in the plane-wave pseudopotential framework of Quantum ESPRESSO and the KKR-Green’s function method of AKAI KKR, with hands-on examples.
References
[1] Y. Nomura and R. Akashi, “Density functional theory,” Encyclopedia of Condensed Matter Physics, 2nd ed., Elsevier, 2024, pp. 867–878. doi: 10.1016/B978-0-323-90800-9.00148-7
[2] W. M. C. Foulkes, L. Mitas, R. J. Needs, and G. Rajagopal, “Quantum Monte Carlo simulations of solids,” Rev. Mod. Phys. 73, 33–83 (2001).
[3] P. Gori-Giorgi, J. Toulouse, and A. Savin, “Model Hamiltonians in Density Functional Theory,” CRM Proceedings and Lecture Notes, vol. 41, American Mathematical Society, 2006.
[4] M. Born and R. Oppenheimer, “Zur Quantentheorie der Molekeln,” Ann. Phys. 389, 457–484 (1927).
[5] P. Hohenberg and W. Kohn, “Inhomogeneous Electron Gas,” Phys. Rev. 136, B864–B871 (1964).
[6] M. Levy, “Universal variational functionals of electron densities, first-order reduced density matrices, and natural spin-orbitals and solution of the v-representability problem,” Proc. Natl. Acad. Sci. U.S.A. 76, 6062–6065 (1979).
[7] W. Kohn and L. J. Sham, “Self-Consistent Equations Including Exchange and Correlation Effects,” Phys. Rev. 140, A1133–A1138 (1965).
[8] J. P. Perdew, K. Burke, and M. Ernzerhof, “Generalized Gradient Approximation Made Simple,” Phys. Rev. Lett. 77, 3865–3868 (1996).
[9] D. M. Ceperley and B. J. Alder, “Ground State of the Electron Gas by a Stochastic Method,” Phys. Rev. Lett. 45, 566–569 (1980).
[10] D. Langreth and J. Perdew, “The exchange-correlation energy of a metallic surface,” Solid State Commun. 17, 1425–1429 (1975).
[11] U. von Barth and L. Hedin, “A local exchange-correlation potential for the spin polarized case,” J. Phys. C: Solid State Phys. 5, 1629–1642 (1972).
[12] E. Runge and E. K. U. Gross, “Density-Functional Theory for Time-Dependent Systems,” Phys. Rev. Lett. 52, 997–1000 (1984).
[13] P. Gori-Giorgi and A. Savin, “Properties of short-range and long-range correlation energy density functionals from electron-electron coalescence,” Phys. Rev. A 73, 032506 (2006).