Chapter 10The Kohn–Sham Equations
In the previous chapter, using the Hohenberg–Kohn theorems and Levy's constrained search, we established that the ground-state energy is obtained exactly by minimizing a functional of the electron density $\rho(\rr)$. To make the theory practical, however, we need the content of the universal functional $F[\rho]=T[\rho]+V_{ee}[\rho]$, and in particular the explicit form of the kinetic-energy functional $T[\rho]$. The Thomas–Fermi (TF) model of Chapter 4 replaced it by a local approximation, but it could reproduce neither the shell structure nor chemical bonding. In this chapter we study the ingenious strategy of Kohn and Sham that circumvents this obstacle—introducing “a non-interacting fictitious system with the same density” and evaluating most of the kinetic energy exactly by means of orbitals—and we derive the Kohn–Sham (KS) equations, the central equations of density functional theory, without omitting any of the variational calculation. This is the climax of the whole book, and nearly all modern first-principles calculations rest on these equations. Everything unknown is gathered into a single term, the exchange-correlation energy $E_{xc}[\rho]$, and its approximations (LDA, GGA, etc.) are the subject of the next chapter.
- That the main cause of the failure of the TF model is the local approximation of the kinetic energy, and the Kohn–Sham strategy of evaluating $T_s[\rho]$ exactly by means of a “non-interacting fictitious system”
- The decomposition of the energy functional $E[\rho]=T_s+\int v\rho+E_{\mathrm{H}}+E_{xc}$ and the definition of the exchange-correlation energy $E_{xc}$ (= “everything that remains”)
- The complete derivation of the KS equations $\bigl[-\tfrac{1}{2}\nabla^2+v_{\mathrm{eff}}(\rr)\bigr]\phi_i=\varepsilon_i\phi_i$ by variation with the orthonormality constraint on the orbitals, and the diagonalization of the Lagrange multiplier matrix (canonical form)
- An alternative derivation from the Euler equation for the density, the identification of $v_{\mathrm{eff}}$, and the assumption that the KS system exists ($v_s$-representability)
- The expression for the total energy $E=\sum_i\varepsilon_i-E_{\mathrm{H}}-\int v_{xc}\rho+E_{xc}$ (double-counting correction)—the sum of the eigenvalues is not the total energy
- The structure of the self-consistent field (SCF) loop, and the extension to spin-density functional theory
- The meaning of the KS eigenvalues: the complete proof of Janak's theorem $\partial E/\partial n_i=\varepsilon_i$, $\varepsilon_{\mathrm{HOMO}}=-I$, $\Delta$SCF, and the comparison with photoelectron spectroscopy and the band gap problem
In this chapter, too, we use Hartree atomic units ($\hbar=m_e=e=4\pi\varepsilon_0=1$; see Chapter 1). The unit of energy is the hartree (Ha), and $1\ \mathrm{Ha}=27.2114\ \mathrm{eV}$. The number of electrons is written $N$, and the external potential (the Coulomb potential produced by the nuclei) is written $v(\rr)$.
10.1 The Kohn–Sham Strategy
First, we make clear why we need to bring in “orbitals” by analyzing the failure of the TF model. Then we introduce the idea of the Kohn–Sham fictitious system and the decomposition of the energy functional.
10.1.1 Why did the Thomas–Fermi model fail?
The TF model introduced in Chapter 4 approximated the kinetic-energy functional locally by the result for the homogeneous electron gas (the Fermi sphere of Chapter 3):
$$ \begin{equation} T^{\mathrm{TF}}[\rho] = C_F\int \dd^3r\,\rho^{5/3}(\rr),\qquad C_F=\frac{3}{10}\left(3\pi^2\right)^{2/3}. \label{eq:10-tf-kinetic} \end{equation} $$The consequences of this approximation were serious. The shell structure of atoms (the peak structure of the radial density distribution) disappears, a chemical bond in a molecule cannot exist stably at all (Teller's theorem), and negative ions cannot be described either. To see the cause quantitatively, let us compare the kinetic energy of the argon atom obtained by different methods.
| Method | Kinetic energy (Ha) | Difference from Hartree–Fock (HF) |
|---|---|---|
| Hartree–Fock | 526.82 | — |
| Thomas–Fermi | 489.95 | about $-37$ Ha (about $-7\%$) |
| Kohn–Sham (LDA) | 525.95 | about $-0.9$ Ha (about $-0.2\%$) |
The error of the TF approximation is about 37 Ha, or 7% in relative terms. Do not think “it is only 7%.” By the virial theorem (Chapter 2), $E=-T$ holds in the equilibrium state of a Coulomb system, so the kinetic energy has the same enormous scale as the total energy (about 527 Ha $\approx$ 14300 eV for Ar). On the other hand, the energy of a chemical bond is at most 0.1–0.3 Ha (a few eV). An error of 7% of the kinetic energy (about 1000 eV!) is thousands of times the energy scale of chemical bonding, and with it we cannot even discuss whether a bond exists or not. In other words,
Physical Meaning: Comparing the scales of the errors
The fatal flaw of TF-type theories is that the kinetic energy, which accounts for most of the total energy, cannot be approximated even to an accuracy of 1 Ha, let alone chemical accuracy (~0.001 Ha). Conversely, if the kinetic energy alone can be evaluated with high accuracy, density functional theory can become a practical theory. The KS-LDA row of Table 10.1 (error 0.2%) shows that the method described in this chapter achieves exactly this.
Then why does the TF approximation get the kinetic energy so wrong? The kinetic energy is a quantity determined by the “curvature” of the wave function ($|\nabla\phi|^2$), and it depends strongly on information such as the shell structure, the nodes, and the orthogonality of the orbitals, which cannot be read off from the local value of the density $\rho(\rr)$ alone. Here lies the necessity of the idea of “evaluating the kinetic energy by way of orbitals.”
10.1.2 The non-interacting fictitious system (the Kohn–Sham auxiliary system)
In 1965 W. Kohn and L. J. Sham proposed the following bold detour (Ref. [2]).
Definition: The Kohn–Sham auxiliary system (KS system)
Given the ground-state density $\rho(\rr)$ of an interacting $N$-electron system, a fictitious system consisting of $N$ electrons that do not interact with one another at all and move in a common local potential $v_s(\rr)$, whose ground-state density coincides with the same $\rho(\rr)$, is called the Kohn–Sham auxiliary system. Since there is no interaction, the ground state of this fictitious system is given by a single Slater determinant (Chapter 5) in which $N$ orthonormal orbitals $\{\phi_i\}$, solutions of the one-electron equation
$$ \begin{equation} \left[-\frac{1}{2}\nabla^2+v_s(\rr)\right]\phi_i(\rr)=\varepsilon_i\phi_i(\rr) \label{eq:10-aux-schrodinger} \end{equation} $$are occupied in order of increasing energy according to the Pauli exclusion principle, and the density and the kinetic energy are
$$ \begin{equation} \rho(\rr)=\sum_{i=1}^{N}\abs{\phi_i(\rr)}^2, \qquad T_s=\sum_{i=1}^{N}\int \dd^3r\,\phi_i^*(\rr)\left(-\frac{1}{2}\nabla^2\right)\phi_i(\rr) \label{eq:10-ts-def} \end{equation} $$We call $T_s$ the non-interacting kinetic energy. The sum is taken over the occupied orbitals. Here $i$ is a quantum number that includes spin ($N$ spin orbitals); for a closed-shell system with spin degeneracy, it is equivalent to write this with $N/2$ spatial orbitals each given an occupation number of 2 (Section 10.6).
The key points are as follows. $T_s$ is written as a functional of the orbitals as in Eq. \eqref{eq:10-ts-def}, but since the orbitals are determined by the density (through the one-electron equation of the fictitious system), $T_s$ is also an implicit functional $T_s[\rho]$ of the density. More precisely, in the same style as Levy's constrained search of Chapter 9, we can define
$$ \begin{equation} T_s[\rho]=\min_{\Phi\to\rho}\braket{\Phi|\hat{T}|\Phi} \label{eq:10-ts-levy} \end{equation} $$Here $\Phi$ runs over all single Slater determinants that give the density $\rho$. That is, $T_s[\rho]$ is the kinetic energy of “the determinant with the lowest kinetic energy among those that reproduce $\rho$.” Note that no explicit expression for $T_s[\rho]$ in terms of $\rho$ is needed. In an actual calculation, it suffices to evaluate it exactly using the orbital expression \eqref{eq:10-ts-def}. This is the decisive difference from the TF approximation \eqref{eq:10-tf-kinetic}.
$T_s$ does not exactly coincide with the true kinetic energy $T$ ($T_s \le T$, because the true interacting wave function is more complicated than a single determinant). However, as we shall see later, the difference $T-T_s$ is a small quantity of the same order as the correlation energy (1 Ha or less for atoms), and absorbing it into the unknown term is not fatal. “Treat the large quantity exactly, and approximate only the small one”—this is the heart of the KS strategy.
10.1.3 Decomposition of the energy functional and definition of the exchange-correlation energy
We now rewrite the total energy functional introduced in Chapter 9 exactly, taking the KS system as the reference. No approximation enters yet.
From the results of Chapter 9, the ground-state energy of an $N$-electron system in an external potential $v(\rr)$ is obtained by minimizing
$$ \begin{equation} E[\rho]=F[\rho]+\int \dd^3r\,v(\rr)\rho(\rr), \qquad F[\rho]=T[\rho]+V_{ee}[\rho] \label{eq:10-hk-energy} \end{equation} $$Here $T[\rho]$ is the true kinetic energy and $V_{ee}[\rho]$ is the true electron–electron interaction energy. To $F[\rho]$ we now “add and subtract” two quantities that can be computed exactly in the KS system. One is the non-interacting kinetic energy $T_s[\rho]$, and the other is the classical Coulomb repulsion (Hartree) energy
$$ \begin{equation} E_{\mathrm{H}}[\rho]=\frac{1}{2}\iint \dd^3r\,\dd^3r'\, \frac{\rho(\rr)\rho(\rr')}{\abs{\rr-\rr'}} \label{eq:10-hartree-def} \end{equation} $$That is, we carry out the identity transformation
\begin{align} F[\rho]&=T[\rho]+V_{ee}[\rho]\notag\\ &=T_s[\rho]+E_{\mathrm{H}}[\rho] +\underbrace{\bigl(T[\rho]-T_s[\rho]\bigr)+\bigl(V_{ee}[\rho]-E_{\mathrm{H}}[\rho]\bigr)}_{\displaystyle \equiv\,E_{xc}[\rho]} \label{eq:10-f-decomp} \end{align}In going from the first line to the second, we merely added $T_s+E_{\mathrm{H}}$ and subtracted the same thing, so the equality sign is exact. The quantity defined in this way,
is called the exchange-correlation energy. Using it, the total energy functional is decomposed as
Let us sort out the meaning of each term.
- $T_s[\rho]$: the kinetic energy of the non-interacting system. It is evaluated exactly by the orbital expression \eqref{eq:10-ts-def}. It is one of the largest terms in the total energy.
- $\int v\rho$: the attractive energy between the electrons and the nuclei. It is an explicit functional of the density and is exact.
- $E_{\mathrm{H}}[\rho]$: the electrostatic repulsion energy if the electron density is regarded as a classical charge cloud. This too is an explicit functional of the density and can be computed exactly. It accounts for most of the electron–electron interaction.
- $E_{xc}[\rho]$: everything else. (i) The difference between the true kinetic energy and $T_s$ (the kinetic energy due to correlation), (ii) the exchange effect due to the Pauli exclusion principle (corresponding to the Fock term of Chapter 5), (iii) the correlation effect by which electrons avoid one another, and (iv) the cancellation of the self-interaction contained in $E_{\mathrm{H}}$ are all packed in here. Only this term has no known exact expression and requires an approximation.
Physical Meaning: The KS decomposition “isolates the error”
Of the four terms on the right-hand side of Eq. \eqref{eq:10-ks-decomp}, the first three can be computed exactly, and in order of magnitude these three overwhelmingly dominate. For example, for the argon atom, against a total energy of about $-527$ Ha, the exchange energy is about $-30$ Ha, the correlation energy is about $-0.7$ Ha, and $T-T_s$ is also no more than 1 Ha. Whereas the TF model approximated the kinetic energy itself (hundreds of Ha), the KS method isolates the object of approximation to $E_{xc}$ alone, a few percent or less of the whole. Even if the approximation to $E_{xc}$ is somewhat crude (for example, even with a 10% error), its effect on the total energy is held to a few Ha, and moreover most of it cancels when energy differences are taken. As a design for an approximate theory, this is a division of labor of unsurpassed cleverness.
Caution: The Hartree term contains self-interaction
$E_{\mathrm{H}}[\rho]$ is the energy of the density distribution $\rho$ interacting with “itself,” and it does not vanish even for a one-electron system ($N=1$, e.g., the hydrogen atom). Since it is physically impossible for a single electron to repel itself through the Coulomb interaction, this is a spurious contribution called self-interaction. The exact $E_{xc}$ cancels it completely: by the definition \eqref{eq:10-exc-def} (and because $V_{ee}=0,\ T=T_s$ for $N=1$), $E_{xc}=-E_{\mathrm{H}}$. However, approximate functionals such as the LDA and GGA that we will see in Chapter 11 cancel it incompletely, and a systematic error called the self-interaction error remains. It is one of the roots of the underestimation of band gaps (Section 10.7) and of the failure to describe localized orbitals.
With this, the foundation of this chapter is in place. To summarize what we have obtained: the total energy can be written exactly in the form \eqref{eq:10-ks-decomp}, and the only unknown is $E_{xc}[\rho]$. In the next section, we vary this functional with respect to the orbitals and derive the KS equations.
10.2 Derivation of the KS Equations
This section is the climax of this chapter, and of the whole book. We vary the energy functional \eqref{eq:10-ks-decomp} by the method of Lagrange multipliers, with the orthonormality condition of the orbitals as the constraint, and derive the KS equations. The mathematics we use is only the functional derivative introduced in Chapter 4 and the “chain rule for orbital functionals” that we are about to develop in a Math Note. We proceed without skipping a single line.
10.2.1 Setting up the variational problem
In $E[\rho]$ of Eq. \eqref{eq:10-ks-decomp}, $T_s$ is an explicit functional of the orbitals $\{\phi_i\}$, the remaining three terms are functionals of $\rho$, and $\rho$ itself is built from the orbitals through \eqref{eq:10-ts-def}. Therefore we may regard $E$ as a whole as a functional of the orbitals, $E[\{\phi_i,\phi_i^*\}]$, and minimize it with respect to the orbitals. The orbitals, however, cannot be arbitrary functions. The KS auxiliary system is a system of fermions, and its ground state is a single Slater determinant occupying $N$ orthonormal orbitals, so we must impose the constraint
$$ \begin{equation} \int \dd^3r\,\phi_i^*(\rr)\phi_j(\rr)=\delta_{ij} \qquad (i,j=1,\dots,N) \label{eq:10-orthonorm} \end{equation} $$The diagonal components ($i=j$) are the normalization condition, which automatically guarantees $\int\rho\,\dd^3r=N$ (conservation of the number of electrons). The off-diagonal components ($i\neq j$) are the orthogonality condition, which expresses, through the Pauli exclusion principle, that “the $N$ electrons occupy mutually different states.” Without imposing orthogonality, the solution in which all electrons fall into the same lowest orbital (a boson-like solution) would give the minimum value.
The constraints \eqref{eq:10-orthonorm} number one for each pair $i,j$, $N^2$ in total (because of the complex-conjugate relation $\braket{\varphi_j|\varphi_i}=\braket{\varphi_i|\varphi_j}^*$, the independent complex equations are reduced to $N$ diagonal ones and $N(N-1)/2$ upper-triangular ones, $N(N+1)/2$ in all. Since the diagonal components are real to begin with, if we recount them as real conditions we get $N+N(N-1)=N^2$, which agrees with the counting in Section 5.6.1 of Chapter 5). In the method of Lagrange multipliers we introduce one multiplier per constraint, so the multipliers form a matrix $\varepsilon_{ij}$. We therefore construct the Lagrangian functional
$$ \begin{equation} \Omega[\{\phi_i,\phi_i^*\}] = E[\{\phi_i,\phi_i^*\}] -\sum_{k=1}^{N}\sum_{l=1}^{N}\varepsilon_{lk} \left(\int \dd^3r\,\phi_k^*(\rr)\phi_l(\rr)-\delta_{kl}\right) \label{eq:10-lagrangian} \end{equation} $$(we wrote the indices of the multiplier as $\varepsilon_{lk}$ as a convenience, so that the matrix notation will come out neatly later). We make this $\Omega$ stationary with respect to $\phi_i^*$, treated as an independent variable without constraints:
$$ \begin{equation} \frac{\delta \Omega}{\delta \phi_i^*(\rr)}=0 \qquad (i=1,\dots,N). \label{eq:10-stationary} \end{equation} $$Math Note: Variation with complex functions—why can we treat $\phi$ and $\phi^*$ independently?
The orbital $\phi_i(\rr)$ is a complex function. Let us consider the stationarity condition of a real-valued function $f(z,z^*)$ of a complex number $z=x+iy$. The truly independent variables are the two quantities, the real part $x$ and the imaginary part $y$, and the stationarity condition is $\partial f/\partial x=0$ and $\partial f/\partial y=0$. If we now define the formal derivatives (Wirtinger derivatives)
$$ \begin{equation} \frac{\partial f}{\partial z}\equiv\frac{1}{2}\left(\frac{\partial f}{\partial x}-i\frac{\partial f}{\partial y}\right), \qquad \frac{\partial f}{\partial z^*}\equiv\frac{1}{2}\left(\frac{\partial f}{\partial x}+i\frac{\partial f}{\partial y}\right) \label{eq:10-wirtinger} \end{equation} $$the two conditions $\partial f/\partial x=\partial f/\partial y=0$ are completely equivalent to the two conditions $\partial f/\partial z=\partial f/\partial z^*=0$ (adding and subtracting the two equations above transforms one pair into the other). In other words, the practice of “treating $z$ and $z^*$ as if they were independent variables and differentiating separately” is merely a rephrasing of the straightforward method of differentiating with respect to the real and imaginary parts. Furthermore, if $f$ is real-valued, then $\partial f/\partial z=(\partial f/\partial z^*)^*$ holds, so it suffices to impose only one of the conditions, $\partial f/\partial z^*=0$ (the other holds automatically as its complex conjugate).
The same holds for functionals: for a real-valued functional $\Omega[\phi,\phi^*]$, if we impose $\delta\Omega/\delta\phi_i^*=0$, then $\delta\Omega/\delta\phi_i=0$ is satisfied automatically. In what follows we compute only the variation with respect to $\phi_i^*$ in this manner.
Math Note: The chain rule for orbital functionals
The functional derivative itself was introduced in Chapter 4 (the $\frac{\delta A}{\delta\rho(\rr)}$ that satisfies $\delta A=\int \dd^3r\,\frac{\delta A}{\delta \rho(\rr)}\delta\rho(\rr)$ is the functional derivative of $A$). What we need here is a chain rule for “differentiating a functional $A[\rho]$ of $\rho$ with respect to the orbital $\phi_i^*$ from which $\rho$ is built.”
Since the density is $\rho(\rr')=\sum_j \phi_j^*(\rr')\phi_j(\rr')$, when only $\phi_i^*$ is changed to $\phi_i^*+\delta\phi_i^*$, the first-order change of the density is
$$ \begin{equation} \delta\rho(\rr')=\delta\phi_i^*(\rr')\,\phi_i(\rr') \label{eq:10-drho} \end{equation} $$(since the $\phi_j$ side is not varied, only the $\phi_i^*$ factor of the $j=i$ term in the sum changes). Substituting this into the first-order change of $A$, we obtain
\begin{align} \delta A &=\int \dd^3r'\,\frac{\delta A}{\delta\rho(\rr')}\,\delta\rho(\rr') \notag\\ &=\int \dd^3r'\,\frac{\delta A}{\delta\rho(\rr')}\,\phi_i(\rr')\,\delta\phi_i^*(\rr'). \label{eq:10-chain-1} \end{align}The first line is the definition of the functional derivative, and the second line is the substitution of \eqref{eq:10-drho}. On the other hand, the definition of the derivative when $A$ is viewed as a functional of $\phi_i^*$ is $\delta A=\int \dd^3r'\,\frac{\delta A}{\delta\phi_i^*(\rr')}\delta\phi_i^*(\rr')$, so comparing the two we obtain
$$ \begin{equation} \frac{\delta A}{\delta \phi_i^*(\rr)} =\frac{\delta A}{\delta \rho(\rr)}\,\phi_i(\rr) \label{eq:10-chain-rule} \end{equation} $$This is the chain rule for orbital functionals. The same thing can also be understood by writing $\delta\rho(\rr')/\delta\phi_i^*(\rr)=\phi_i(\rr)\,\delta(\rr-\rr')$ and using the integral with the delta function inserted,
$$ \begin{equation} \frac{\delta A}{\delta \phi_i^*(\rr)} =\int \dd^3r'\,\frac{\delta A}{\delta \rho(\rr')}\,\frac{\delta\rho(\rr')}{\delta\phi_i^*(\rr)} =\int \dd^3r'\,\frac{\delta A}{\delta \rho(\rr')}\,\phi_i(\rr')\,\delta(\rr-\rr') \label{eq:10-chain-delta} \end{equation} $$(carrying out the integral over the delta function in the last equality returns us to \eqref{eq:10-chain-rule}).
10.2.2 Functional derivatives of each term
We now compute, one by one, the functional derivatives with respect to $\phi_i^*(\rr)$ of the five terms that make up $\Omega$—$T_s$, $\int v\rho$, $E_{\mathrm{H}}$, $E_{xc}$, and the constraint term.
Derivation: $\delta T_s/\delta\phi_i^*(\rr)$
Writing the definition \eqref{eq:10-ts-def} of $T_s$ with the integration variable $\rr'$, we have
$$ \begin{equation} T_s=\sum_{j=1}^{N}\int \dd^3r'\,\phi_j^*(\rr')\left(-\frac{1}{2}\nabla'^2\right)\phi_j(\rr'). \label{eq:10-ts-rewrite} \end{equation} $$Since $T_s$ is linear in $\phi_j^*$, the functional derivative with respect to $\phi_i^*$ is equivalent to the operation of “replacing $\phi_i^*(\rr')$ by the delta function $\delta(\rr'-\rr)$” (Chapter 4: for a linear functional $A=\int f g$, the derivative is $\delta A/\delta f(\rr)=g(\rr)$). Only the $j=i$ term survives in the sum, and
\begin{align} \frac{\delta T_s}{\delta \phi_i^*(\rr)} &=\int \dd^3r'\,\delta(\rr'-\rr)\left(-\frac{1}{2}\nabla'^2\right)\phi_i(\rr') \notag\\ &=-\frac{1}{2}\nabla^2\phi_i(\rr). \label{eq:10-dts} \end{align}The first line is the replacement by the delta function, and the second line is the carrying out of the integral using the property of the delta function, $\int \dd^3r'\,\delta(\rr'-\rr)g(\rr')=g(\rr)$.
Derivation: $\delta\bigl(\int v\rho\bigr)/\delta\phi_i^*(\rr)$
The external-potential term $A_{\mathrm{ext}}=\int \dd^3r'\,v(\rr')\rho(\rr')$ is a linear functional of $\rho$, so its derivative with respect to $\rho$ is
$$ \begin{equation} \frac{\delta A_{\mathrm{ext}}}{\delta\rho(\rr)}=v(\rr). \label{eq:10-dext-rho} \end{equation} $$Applying the chain rule \eqref{eq:10-chain-rule}, we obtain
$$ \begin{equation} \frac{\delta A_{\mathrm{ext}}}{\delta \phi_i^*(\rr)} =\frac{\delta A_{\mathrm{ext}}}{\delta\rho(\rr)}\,\phi_i(\rr) =v(\rr)\,\phi_i(\rr). \label{eq:10-dext} \end{equation} $$Derivation: $\delta E_{\mathrm{H}}/\delta\phi_i^*(\rr)$
First we find the derivative of $E_{\mathrm{H}}$ with respect to $\rho$. Replacing $\rho\to\rho+\delta\rho$ in the definition \eqref{eq:10-hartree-def} and keeping only the terms of first order in $\delta\rho$ (terms of second order in $\delta\rho$ are discarded in a variation), we obtain
\begin{align} \delta E_{\mathrm{H}} &=\frac{1}{2}\iint \dd^3r_1\,\dd^3r_2\, \frac{\delta\rho(\rr_1)\,\rho(\rr_2)}{\abs{\rr_1-\rr_2}} +\frac{1}{2}\iint \dd^3r_1\,\dd^3r_2\, \frac{\rho(\rr_1)\,\delta\rho(\rr_2)}{\abs{\rr_1-\rr_2}} \label{eq:10-dh-expand} \\ &=2\times\frac{1}{2}\iint \dd^3r_1\,\dd^3r_2\, \frac{\delta\rho(\rr_1)\,\rho(\rr_2)}{\abs{\rr_1-\rr_2}} \label{eq:10-dh-symm} \\ &=\int \dd^3r_1\,\delta\rho(\rr_1) \underbrace{\int \dd^3r_2\,\frac{\rho(\rr_2)}{\abs{\rr_1-\rr_2}}}_{\displaystyle \equiv\,v_{\mathrm{H}}(\rr_1)}. \label{eq:10-dh-var} \end{align}Eq. \eqref{eq:10-dh-expand} is the variation of a product (the Leibniz rule). To arrive at Eq. \eqref{eq:10-dh-symm}, we interchanged the names of the integration variables in the second term ($\rr_1\leftrightarrow\rr_2$; this is allowed because the value of a definite integral does not depend on the name of the integration variable). The Coulomb kernel $1/\abs{\rr_1-\rr_2}$ is symmetric under the interchange of $\rr_1$ and $\rr_2$, so the second term, once renamed, takes exactly the same form as the first term, and the factor 2 cancels the $1/2$. In Eq. \eqref{eq:10-dh-var} we grouped the $\rr_2$ integral on the inside. Comparing with the definition of the functional derivative, we find
$$ \begin{equation} \frac{\delta E_{\mathrm{H}}}{\delta\rho(\rr)} =v_{\mathrm{H}}(\rr) =\int \dd^3r'\,\frac{\rho(\rr')}{\abs{\rr-\rr'}}. \label{eq:10-vh-def} \end{equation} $$We call $v_{\mathrm{H}}(\rr)$ the Hartree potential. It is precisely the classical electrostatic potential produced by the charge distribution $\rho$. By the chain rule \eqref{eq:10-chain-rule},
$$ \begin{equation} \frac{\delta E_{\mathrm{H}}}{\delta \phi_i^*(\rr)} =v_{\mathrm{H}}(\rr)\,\phi_i(\rr). \label{eq:10-dh} \end{equation} $$Derivation: $\delta E_{xc}/\delta\phi_i^*(\rr)$
We do not know the explicit form of $E_{xc}[\rho]$, but this causes no difficulty. As long as we accept that it is a functional of $\rho$, it suffices to define its functional derivative as a symbol,
$$ \begin{equation} v_{xc}(\rr)\equiv\frac{\delta E_{xc}[\rho]}{\delta \rho(\rr)} \label{eq:10-vxc-def} \end{equation} $$and to apply the chain rule \eqref{eq:10-chain-rule}:
$$ \begin{equation} \frac{\delta E_{xc}}{\delta \phi_i^*(\rr)} =v_{xc}(\rr)\,\phi_i(\rr). \label{eq:10-dxc} \end{equation} $$We call $v_{xc}(\rr)$ the exchange-correlation potential. Once an approximate form of $E_{xc}$ is chosen (Chapter 11), $v_{xc}$ becomes a function that can be computed concretely. For example, for a local form such as the LDA, $E_{xc}=\int \varepsilon_{xc}(\rho(\rr))\rho(\rr)\dd^3r$, it becomes a “mere function,” $v_{xc}(\rr)=\dfrac{\dd}{\dd\rho}\bigl[\rho\,\varepsilon_{xc}(\rho)\bigr]\Big|_{\rho=\rho(\rr)}$.
Derivation: Functional derivative of the constraint term
The constraint term $C\equiv\sum_{k,l}\varepsilon_{lk}\bigl(\int \dd^3r'\,\phi_k^*(\rr')\phi_l(\rr')-\delta_{kl}\bigr)$ is linear in $\phi_k^*$. In the derivative with respect to $\phi_i^*$, only the $k=i$ term of the sum survives; replacing the derivative by a delta function and carrying out the integration, we obtain
\begin{align} \frac{\delta C}{\delta\phi_i^*(\rr)} &=\sum_{l}\varepsilon_{li}\int \dd^3r'\,\delta(\rr'-\rr)\,\phi_l(\rr') \notag\\ &=\sum_{l=1}^{N}\varepsilon_{li}\,\phi_l(\rr). \label{eq:10-dconstraint} \end{align}10.2.3 The stationarity condition and the noncanonical form of the KS equations
We substitute the building blocks above, \eqref{eq:10-dts}, \eqref{eq:10-dext}, \eqref{eq:10-dh}, \eqref{eq:10-dxc}, and \eqref{eq:10-dconstraint}, into the stationarity condition \eqref{eq:10-stationary} and assemble them:
\begin{align} 0=\frac{\delta \Omega}{\delta\phi_i^*(\rr)} &=-\frac{1}{2}\nabla^2\phi_i(\rr) +v(\rr)\phi_i(\rr) +v_{\mathrm{H}}(\rr)\phi_i(\rr) +v_{xc}(\rr)\phi_i(\rr) -\sum_{l=1}^{N}\varepsilon_{li}\,\phi_l(\rr). \label{eq:10-stationary-full} \end{align}We combine the three potentials and define the effective potential
$$ \begin{equation} v_{\mathrm{eff}}(\rr)\equiv v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr) \label{eq:10-veff-def} \end{equation} $$and write the one-electron Hamiltonian (the KS Hamiltonian) as $\hat{h}_{\mathrm{KS}}\equiv-\frac{1}{2}\nabla^2+v_{\mathrm{eff}}(\rr)$. Then Eq. \eqref{eq:10-stationary-full} becomes
$$ \begin{equation} \hat{h}_{\mathrm{KS}}\,\phi_i(\rr)=\sum_{l=1}^{N}\varepsilon_{li}\,\phi_l(\rr) \qquad (i=1,\dots,N) \label{eq:10-ks-noncanonical} \end{equation} $$A multiplier matrix appears on the right-hand side, so this is not yet in the form of an eigenvalue equation. We call this the noncanonical form of the KS equations. From here, we bring it by diagonalization into the familiar eigenvalue equation (the canonical form).
10.2.4 Hermiticity of the multiplier matrix and unitary diagonalization (the canonical form)
First we show that the multiplier matrix $\varepsilon_{li}$ is a Hermitian matrix. Multiplying both sides of Eq. \eqref{eq:10-ks-noncanonical} by $\phi_m^*(\rr)$ and integrating over all space, we obtain
\begin{align} \int \dd^3r\,\phi_m^*\,\hat{h}_{\mathrm{KS}}\,\phi_i &=\sum_{l=1}^{N}\varepsilon_{li}\int \dd^3r\,\phi_m^*\,\phi_l \notag\\ &=\sum_{l=1}^{N}\varepsilon_{li}\,\delta_{ml} \notag\\ &=\varepsilon_{mi}. \label{eq:10-eps-matrix-element} \end{align}From the first line to the second we used the orthonormality condition \eqref{eq:10-orthonorm} (at the stationary point the constraints are satisfied), and from the second line to the third we collapsed the sum with the Kronecker delta. That is, the multiplier matrix is equal to the matrix element $\varepsilon_{mi}=\braket{\phi_m|\hat{h}_{\mathrm{KS}}|\phi_i}$ of $\hat{h}_{\mathrm{KS}}$. Here $\hat{h}_{\mathrm{KS}}$ is a Hermitian operator. Indeed, $v_{\mathrm{eff}}(\rr)$ is a real function (a sum of real potentials built from a real density), so it is Hermitian as a multiplication operator, and the Hermiticity of $-\frac{1}{2}\nabla^2$ can be shown by integrating by parts twice (the boundary terms vanish because the orbitals of bound states approach zero sufficiently fast at infinity; see Chapter 2). Therefore
$$ \begin{equation} \varepsilon_{mi} =\braket{\phi_m|\hat{h}_{\mathrm{KS}}|\phi_i} =\braket{\hat{h}_{\mathrm{KS}}\phi_m|\phi_i} =\braket{\phi_i|\hat{h}_{\mathrm{KS}}|\phi_m}^* =\varepsilon_{im}^*, \label{eq:10-eps-hermite} \end{equation} $$that is, $\varepsilon$ is a Hermitian matrix (the second equality sign expresses Hermiticity, and the third is the conjugate symmetry of the inner product).
Next we confirm the invariance under unitary transformations of the occupied orbitals. Consider the new orbitals obtained by mixing the occupied orbitals with an $N\times N$ unitary matrix $U$ ($U^\dagger U=\bm{1}$),
$$ \begin{equation} \phi_k'(\rr)=\sum_{j=1}^{N}\phi_j(\rr)\,U_{jk} \label{eq:10-unitary-rot} \end{equation} $$The density is
\begin{align} \rho'(\rr) &=\sum_{k=1}^{N}\phi_k'^*(\rr)\,\phi_k'(\rr) \notag\\ &=\sum_{k=1}^{N}\sum_{j=1}^{N}\sum_{j'=1}^{N}U_{jk}^*\,\phi_j^*(\rr)\,\phi_{j'}(\rr)\,U_{j'k} \notag\\ &=\sum_{j,j'=1}^{N}\phi_j^*(\rr)\,\phi_{j'}(\rr)\underbrace{\sum_{k=1}^{N}U_{j'k}\,U_{jk}^*}_{=(UU^\dagger)_{j'j}=\delta_{j'j}} \notag\\ &=\sum_{j=1}^{N}\abs{\phi_j(\rr)}^2=\rho(\rr). \label{eq:10-rho-invariant} \end{align}The first line is the definition; the second is the substitution of Eq. \eqref{eq:10-unitary-rot}; in the third we rearranged the terms so that the sum over $k$ can be carried out first, and we used $UU^\dagger=\bm{1}$ to reach the fourth line. The very same calculation (with only the differential operator $-\frac{1}{2}\nabla^2$ inserted in between) shows that $T_s$ is also invariant. That is, the density, $T_s$, and therefore the total energy do not change under a unitary transformation of the occupied orbitals. What has physical meaning is not the individual orbitals but the $N$-dimensional subspace spanned by the occupied orbitals.
We use this freedom to diagonalize the multiplier matrix. Since $\varepsilon$ is Hermitian, it can be diagonalized, with a unitary matrix $U$ and a real diagonal matrix $\varepsilon_{\mathrm{d}}=\mathrm{diag}(\varepsilon_1,\dots,\varepsilon_N)$, as
$$ \begin{equation} \varepsilon=U\,\varepsilon_{\mathrm{d}}\,U^\dagger, \qquad\text{that is}\qquad \varepsilon\,U=U\,\varepsilon_{\mathrm{d}} \label{eq:10-eps-diag} \end{equation} $$(the spectral theorem for Hermitian matrices; the eigenvalues $\varepsilon_k$ are real numbers). Using the row-vector notation $\bm{\phi}=(\phi_1,\dots,\phi_N)$, the noncanonical form \eqref{eq:10-ks-noncanonical} can be written compactly as $\hat{h}_{\mathrm{KS}}\,\bm{\phi}=\bm{\phi}\,\varepsilon$. Multiplying both sides by $U$ from the right, we obtain
\begin{align} \hat{h}_{\mathrm{KS}}\,\bm{\phi}\,U &=\bm{\phi}\,\varepsilon\,U \notag\\ &=\bm{\phi}\,U\,\varepsilon_{\mathrm{d}}. \label{eq:10-diag-step} \end{align}The first line rewrites the left-hand side using the fact that $\hat{h}_{\mathrm{KS}}$ commutes with the numerical matrix $U$ (because it is an operator acting on functions and does not act on the orbital labels); the second line is the substitution of Eq. \eqref{eq:10-eps-diag}. If we now use $\bm{\phi}'=\bm{\phi}U$, that is, the new orbitals of Eq. \eqref{eq:10-unitary-rot}, then Eq. \eqref{eq:10-diag-step} becomes, component by component,
$$ \begin{equation} \hat{h}_{\mathrm{KS}}\,\phi_k'(\rr)=\varepsilon_k\,\phi_k'(\rr) \label{eq:10-canonical-step} \end{equation} $$Moreover, as we saw in Eq. \eqref{eq:10-rho-invariant}, $\rho$ is invariant under this transformation, so $v_{\mathrm{H}}$ and $v_{xc}$, which are built from $\rho$, and therefore $\hat{h}_{\mathrm{KS}}$ itself, do not change either. Dropping the primes, we arrive at the final result.
These are the Kohn–Sham equations (in canonical form). Let us summarize in words what we have obtained: the orbitals that minimize the total energy \eqref{eq:10-ks-decomp} can be chosen (under a suitable unitary transformation) as eigenfunctions of the one-electron Schrödinger equation in the effective potential $v_{\mathrm{eff}}$. The $N$-electron many-body problem has been replaced, formally but exactly, by the problem of “solving $N$ one-electron problems.”
Physical Meaning: The structure of the KS equations
- It is a local potential: $v_{\mathrm{eff}}(\rr)$ is a “mere function” of the coordinates (a multiplication operator). This contrasts with the exchange term of the Hartree–Fock equations in Chapter 5, which was a nonlocal operator (of the form $\int \dd^3r' K(\rr,\rr')\phi(\rr')$); the local potential is overwhelmingly easier to handle in numerical calculations. The effects of both exchange and correlation are all squeezed into the local function $v_{xc}(\rr)$.
- It is nonlinear: $v_{\mathrm{H}}$ and $v_{xc}$ are functionals of the density $\rho$, and $\rho$ is built from the very orbitals we are trying to find. In other words, “solving the equations requires the potential, but building the potential requires the solution.” This is a nonlinear problem in the form of an eigenvalue problem, and it must be solved self-consistently (Section 10.5).
- The origin of $\varepsilon_i$: The eigenvalues $\varepsilon_i$ entered originally as auxiliary quantities, the Lagrange multipliers of the orthonormality constraint. To what extent they may be interpreted as “electron energy levels” is not self-evident. We take up this important question head-on in Section 10.7.
Caution: Which $N$ orbitals are occupied
What the variational stationarity condition tells us goes only as far as “the occupied orbitals can be chosen from the eigenfunctions of the KS equations.” In the minimum-energy solution, the $N$ orbitals with the lowest eigenvalues are occupied (the aufbau principle). If the eigenvalues of the lowest empty orbital and the highest occupied orbital coincide (degeneracy), the extension that allows fractional occupation (Janak's framework in Section 10.7) provides a natural prescription.
10.3 Consistency with the Euler Equation for the Density (Alternative Derivation)
In the previous section we varied with respect to the orbitals and obtained the KS equations. In this section we change our viewpoint and show that the same $v_{\mathrm{eff}}$ is reached from an Euler equation, in the style of Chapter 9, obtained by varying with respect to the density itself. Comparing the two derivations makes the logical structure of the KS method clear—in particular, where the existence assumption lies hidden.
10.3.1 The Euler equation for the interacting system
As we saw in Chapter 9, the ground-state density minimizes $E[\rho]=F[\rho]+\int v\rho$ under the constraint on the number of electrons, $\int\dd^3r\,\rho(\rr)=N$. Letting $\mu$ be the Lagrange multiplier of the constraint, we consider the functional
$$ \begin{equation} \Omega_\rho[\rho]=F[\rho]+\int \dd^3r\,v(\rr)\rho(\rr)-\mu\left(\int \dd^3r\,\rho(\rr)-N\right) \label{eq:10-omega-rho} \end{equation} $$and take its stationarity condition $\delta\Omega_\rho/\delta\rho(\rr)=0$. The derivative of each term is as follows: the derivative of $F$ is $\delta F/\delta\rho$ by definition, the external potential term is a linear functional and gives $v(\rr)$, and the constraint term is likewise linear and gives $\mu$, so that
$$ \begin{equation} \frac{\delta F[\rho]}{\delta \rho(\rr)}+v(\rr)=\mu \label{eq:10-euler-int} \end{equation} $$follows. This is the Euler equation of the interacting system, and the multiplier $\mu$ has the meaning of the chemical potential (the continuum version of the energy required to add one electron) (the logic is the same as for $\mu_{\mathrm{TF}}$ in the TF theory of Chapter 4). Here, rewriting $F$ as $F=T_s+E_{\mathrm{H}}+E_{xc}$ according to the KS decomposition \eqref{eq:10-f-decomp}, we obtain, by \eqref{eq:10-vh-def} and \eqref{eq:10-vxc-def},
$$ \begin{equation} \frac{\delta T_s}{\delta \rho(\rr)}+v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr)=\mu. \label{eq:10-euler-int2} \end{equation} $$10.3.2 The Euler equation of the KS system and the identification of $v_{\mathrm{eff}}$
Next, consider a system of $N$ non-interacting electrons in a local potential $v_s(\rr)$. The energy functional of this system contains only the kinetic energy and the external-field term:
$$ \begin{equation} E_s[\rho]=T_s[\rho]+\int \dd^3r\,v_s(\rr)\rho(\rr). \label{eq:10-es-def} \end{equation} $$Varying under the same constraint on the number of electrons (with $\mu_s$ the multiplier), the Euler equation is
$$ \begin{equation} \frac{\delta T_s}{\delta \rho(\rr)}+v_s(\rr)=\mu_s. \label{eq:10-euler-ks} \end{equation} $$Now, the requirement of the KS method was that “the ground-state density of this non-interacting system coincide with the ground-state density $\rho(\rr)$ of the interacting system.” If the same $\rho$ satisfies both \eqref{eq:10-euler-int2} and \eqref{eq:10-euler-ks}, then the $\delta T_s/\delta\rho$ in the two equations is the same quantity evaluated at the same density, so subtracting the two equations side by side gives
\begin{align} 0&=\Bigl[v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr)-\mu\Bigr]-\Bigl[v_s(\rr)-\mu_s\Bigr] \notag\\ \Longrightarrow\quad v_s(\rr)&=v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr)+(\mu_s-\mu). \label{eq:10-veff-identify} \end{align}The constant $\mu_s-\mu$ is merely a shift of the origin of the potential; it only shifts all the eigenvalues and the chemical potential by the same amount and does not affect the density or the total energy. Therefore, up to a constant,
$$ \begin{equation} v_s(\rr)=v_{\mathrm{eff}}(\rr)=v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr) \label{eq:10-veff-identify2} \end{equation} $$is identified. This agrees exactly with the effective potential \eqref{eq:10-veff-def} obtained from the orbital variation in Section 10.2. That is, the density obtained by solving the KS equations self-consistently automatically satisfies the variational condition on the density, $\delta E/\delta\rho=\mu$ ($\delta E=0$ at a fixed number of electrons).
Physical Meaning: What this alternative derivation shows
- Uniqueness of $v_{\mathrm{eff}}$ (reusing the HK theorem): Applying the HK theorem of Chapter 9 to the non-interacting system, the “local potential $v_s$ that reproduces the density $\rho$” is unique up to a constant. In other words, the KS effective potential, if it exists, is determined uniquely.
- The meaning of writing $\delta T_s/\delta\rho$: Although we do not know the explicit form of $T_s[\rho]$, its functional derivative appears in the equations. This is a formal manipulation, but if we read \eqref{eq:10-euler-ks} in reverse, $\delta T_s/\delta\rho=\mu_s-v_s(\rr)$, and the right-hand side is a quantity that can be found by solving the non-interacting system. We can understand that going through the orbitals is equivalent to “evaluating the derivative of $T_s$.”
- Intuitive summary: The electrons of the KS system move independently of one another while feeling, in addition to the bare nuclear potential $v$, (i) the average electrostatic field $v_{\mathrm{H}}$ created by the charge cloud of all the electrons, and (ii) the local field $v_{xc}$, which carries all the effects of exchange and correlation. All the many-body effects have been translated into “fields.”
10.3.3 The hidden assumption: $v_s$-representability (the KS method is an ansatz)
This derivation shows most clearly the assumption on which the KS method rests. It is the assumption that “there exists a non-interacting system (with a local potential $v_s$) whose ground-state density is the ground-state density $\rho(\rr)$ of the interacting system.” We call this the non-interacting $v$-representability of the density ($v_s$-representability). A problem of the same type as the $v$-representability of the interacting system discussed in Chapter 9 thus arises on the non-interacting side as well.
Whether this assumption holds for an arbitrary (physically reasonable) density has not been proved in general. Strictly speaking, therefore, the KS method is not a theorem but an ansatz. In practice, however, the breakdown of this assumption rarely causes problems, and studies of the “inverse Kohn–Sham method,” which backs out $v_{\mathrm{eff}}$ from a density obtained in a high-accuracy calculation, have confirmed that the corresponding $v_s$ can be constructed numerically for the densities of typical atoms, molecules, and solids. In what follows, this book accepts this assumption and proceeds.
10.4 Expression for the Total Energy
Suppose we have solved the KS equations and obtained the eigenvalues $\varepsilon_i$ and the orbitals. How do we compute the total energy $E$? There is one point that every beginner misunderstands at least once—“Doesn't the sum of the eigenvalues give the total energy?”—and we settle it completely here. We first (i) prove what the sum of the eigenvalues is equal to, and then (ii) use that result to derive the correct expression for the total energy.
10.4.1 What is the sum of the eigenvalues?
Derivation: Proof of $\sum_i\varepsilon_i=T_s+\int v_{\mathrm{eff}}\,\rho$
Multiply both sides of the KS equations \eqref{eq:10-ks-equation} from the left by $\phi_i^*(\rr)$:
$$ \begin{equation} \phi_i^*(\rr)\left(-\frac{1}{2}\nabla^2\right)\phi_i(\rr) +v_{\mathrm{eff}}(\rr)\,\phi_i^*(\rr)\,\phi_i(\rr) =\varepsilon_i\,\phi_i^*(\rr)\,\phi_i(\rr). \label{eq:10-sum-step1} \end{equation} $$Integrating over all space, the right-hand side becomes $\varepsilon_i$ by the normalization condition $\int\abs{\phi_i}^2\dd^3r=1$:
$$ \begin{equation} \int \dd^3r\,\phi_i^*\left(-\frac{1}{2}\nabla^2\right)\phi_i +\int \dd^3r\,v_{\mathrm{eff}}(\rr)\abs{\phi_i(\rr)}^2 =\varepsilon_i. \label{eq:10-sum-step2} \end{equation} $$Add up both sides over the occupied orbitals $i=1,\dots,N$:
\begin{align} \sum_{i=1}^{N}\varepsilon_i &=\sum_{i=1}^{N}\int \dd^3r\,\phi_i^*\left(-\frac{1}{2}\nabla^2\right)\phi_i +\int \dd^3r\,v_{\mathrm{eff}}(\rr)\sum_{i=1}^{N}\abs{\phi_i(\rr)}^2 \label{eq:10-sum-step3} \\ &=T_s+\int \dd^3r\,v_{\mathrm{eff}}(\rr)\,\rho(\rr). \label{eq:10-eigsum} \end{align}In Eq. \eqref{eq:10-sum-step3} we interchanged the order of the sum and the integral (always allowed because the sum is finite), and in Eq. \eqref{eq:10-eigsum} we used the definition of $T_s$, Eq. \eqref{eq:10-ts-def}, for the first term and the definition of the density, Eq. \eqref{eq:10-ts-def}, for the second term.
The sum of the eigenvalues is “kinetic energy + potential energy in the effective potential.” The total energy in Eq. \eqref{eq:10-ks-decomp}, however, contains the energy due to the external field $v$ and $E_{\mathrm{H}}+E_{xc}$, not $\int v_{\mathrm{eff}}\rho$. Let us handle the difference correctly.
10.4.2 The double-counting correction and the total energy
First, as a lemma, we show that the integral of the Hartree potential times the density is exactly twice $E_{\mathrm{H}}$:
\begin{align} \int \dd^3r\,v_{\mathrm{H}}(\rr)\,\rho(\rr) &=\int \dd^3r\left[\int \dd^3r'\,\frac{\rho(\rr')}{\abs{\rr-\rr'}}\right]\rho(\rr) \label{eq:10-vhrho-1} \\ &=\iint \dd^3r\,\dd^3r'\,\frac{\rho(\rr)\,\rho(\rr')}{\abs{\rr-\rr'}} \label{eq:10-vhrho-2} \\ &=2E_{\mathrm{H}}. \label{eq:10-vhrho} \end{align}Eq. \eqref{eq:10-vhrho-1} is the substitution of the definition of $v_{\mathrm{H}}$, Eq. \eqref{eq:10-vh-def}; Eq. \eqref{eq:10-vhrho-2} merely combines the integrals; and Eq. \eqref{eq:10-vhrho} follows by comparison with the definition of $E_{\mathrm{H}}$, Eq. \eqref{eq:10-hartree-def} (which carries the factor $1/2$).
Now we are ready. Starting from the total energy in Eq. \eqref{eq:10-ks-decomp}, we replace $T_s$ by the sum of the eigenvalues:
\begin{align} E&=T_s+\int \dd^3r\,v\rho+E_{\mathrm{H}}+E_{xc} \label{eq:10-etot-1} \\ &=\left[\sum_{i=1}^{N}\varepsilon_i-\int \dd^3r\,v_{\mathrm{eff}}\,\rho\right] +\int \dd^3r\,v\rho+E_{\mathrm{H}}+E_{xc} \label{eq:10-etot-2} \\ &=\sum_{i=1}^{N}\varepsilon_i -\int \dd^3r\,\bigl(v+v_{\mathrm{H}}+v_{xc}\bigr)\rho +\int \dd^3r\,v\rho+E_{\mathrm{H}}+E_{xc} \label{eq:10-etot-3} \\ &=\sum_{i=1}^{N}\varepsilon_i -\int \dd^3r\,v_{\mathrm{H}}\,\rho -\int \dd^3r\,v_{xc}\,\rho+E_{\mathrm{H}}+E_{xc} \label{eq:10-etot-4} \\ &=\sum_{i=1}^{N}\varepsilon_i -2E_{\mathrm{H}}+E_{\mathrm{H}} -\int \dd^3r\,v_{xc}\,\rho+E_{xc}. \label{eq:10-etot-5} \end{align}In Eq. \eqref{eq:10-etot-2} we solved Eq. \eqref{eq:10-eigsum} for $T_s$ and substituted; Eq. \eqref{eq:10-etot-3} is the expansion of the definition of $v_{\mathrm{eff}}$, Eq. \eqref{eq:10-veff-def}; in Eq. \eqref{eq:10-etot-4} the terms $\int v\rho$ cancel; and in Eq. \eqref{eq:10-etot-5} we used the lemma, Eq. \eqref{eq:10-vhrho}. Tidying up:
This is the standard expression for the total energy in the KS method (called the expression with the double-counting correction). Let us emphasize the lesson we have obtained:
Physical Meaning: Why is the sum of the eigenvalues not the total energy?
Each KS electron has an energy $\varepsilon_i$ in the mean field $v_{\mathrm{H}}$ created by all the electrons (including itself). The electrostatic repulsion between electron $i$ and electron $j$ is counted once in $\varepsilon_i$ (as the field created by $j$) and once more in $\varepsilon_j$ (as the field created by $i$), twice in total. Hence if we simply add up the eigenvalues, the electron–electron repulsion enters twice, and we must pull one share back with the term $-E_{\mathrm{H}}$. Likewise for exchange and correlation: we subtract $\int v_{xc}\rho$, which was counted via the potential, and add back the correct energy $E_{xc}$. The quantity $\sum_i\varepsilon_i$ (called the band energy) is only an auxiliary quantity—but it contains useful information about energy differences and perturbative responses (we shall meet it again in the Friedel model of Chapter 13 and in the force calculation of Chapter 16).
Example: Check in two limits
(1) The noninteracting limit. If there were no electron–electron interaction, then $E_{\mathrm{H}}=E_{xc}=0$ and $v_{xc}=0$, and Eq. \eqref{eq:10-etot-final} reduces to $E=\sum_i\varepsilon_i$. In an independent-particle system the sum of the eigenvalues is itself the total energy, so the expression has the correct limit.
(2) The hydrogen atom ($N=1$). For the exact functional, as stated in the caution of Section 10.1, $E_{xc}[\rho]=-E_{\mathrm{H}}[\rho]$, and moreover $v_{xc}(\rr)=-v_{\mathrm{H}}(\rr)$ (just take the functional derivative). Then $v_{\mathrm{eff}}=v+v_{\mathrm{H}}-v_{\mathrm{H}}=v=-1/r$, the KS equations become exactly the Schrödinger equation of the hydrogen atom, and they give $\varepsilon_1=-0.5$ Ha. The total energy is
$$ E=\varepsilon_1-E_{\mathrm{H}}-\int v_{xc}\rho+E_{xc} =\varepsilon_1-E_{\mathrm{H}}+2E_{\mathrm{H}}-E_{\mathrm{H}} =\varepsilon_1=-0.5\ \mathrm{Ha} $$which is the correct value (along the way we used $\int v_{xc}\rho=-\int v_{\mathrm{H}}\rho=-2E_{\mathrm{H}}$). On the other hand, for approximate functionals such as the LDA, $E_{xc}\neq-E_{\mathrm{H}}$, so even the hydrogen atom has an error in the total energy (about $+0.02$ Ha). This is the simplest example of the self-interaction error.
10.5 The Self-Consistent Field (SCF) Loop
The KS equations \eqref{eq:10-ks-equation} look like an ordinary eigenvalue problem, but they are essentially nonlinear, because the potential $v_{\mathrm{eff}}$ depends on the solution (through its density). In this section we understand the structure of the standard procedure for solving this nonlinear problem iteratively—the self-consistent field (SCF) loop. The numerical details (the various mixing methods and convergence acceleration) are deferred to Chapter 14; here we grasp the skeleton of the logic.
10.5.1 The KS equations as a fixed-point problem
Stated abstractly, the procedure is as follows. Given a density $\rho_{\mathrm{in}}$, the potential $v_{\mathrm{eff}}[\rho_{\mathrm{in}}]$ is determined, the KS equations are solved to obtain the orbitals, and from them a new density $\rho_{\mathrm{out}}$ is assembled. Let us write this sequence of operations as the map
$$ \begin{equation} \rho_{\mathrm{out}}=\mathcal{K}[\rho_{\mathrm{in}}] \label{eq:10-ks-map} \end{equation} $$The solution we seek is a fixed point of this map,
$$ \begin{equation} \rho^{\star}=\mathcal{K}[\rho^{\star}] \label{eq:10-fixed-point} \end{equation} $$When the input and output densities coincide ($\rho_{\mathrm{in}}=\rho_{\mathrm{out}}$), we speak of self-consistency; the “density produced by the orbitals” and the “density that produced the potential” then fit together without contradiction. As shown in Section 10.3, the solution that has attained self-consistency is precisely the ground-state density satisfying the variational condition $\delta E/\delta\rho=\mu$. Conversely, the density and energy at an intermediate stage that has not converged have no variational meaning, so the convergence criterion must not be set too loosely.
10.5.2 Components of the loop
The actual loop consists of the following elements (Figure 10.2).
- Preparing the initial density: Usually we use the superposition of isolated-atom densities, $\rho^{(0)}(\rr)=\sum_I \rho_{\mathrm{atom}}^{I}(\rr-\bm{R}_I)$. The density of a molecule or a solid does not deviate very much from the superposition of atomic densities, so this makes a good initial value.
- Constructing the effective potential: One may evaluate the integral in the definition \eqref{eq:10-vh-def} of $v_{\mathrm{H}}$ directly, but in implementations one often solves the Poisson equation $$ \begin{equation} \nabla^2 v_{\mathrm{H}}(\rr)=-4\pi\rho(\rr) \label{eq:10-poisson} \end{equation} $$ instead (a differential equation can often be solved faster). This equation follows immediately by using the identity $\nabla^2\frac{1}{\abs{\rr-\rr'}}=-4\pi\delta(\rr-\rr')$ inside the integral of \eqref{eq:10-vh-def} (this states that the Coulomb kernel is the Green's function of the three-dimensional Laplace equation; it follows from the fact that $1/r$ is a harmonic function away from the origin and from applying Gauss's theorem on a small sphere enclosing the origin). $v_{xc}$ is computed locally from the approximate functional adopted (Chapter 11).
- Diagonalizing the KS equations: Build the Hamiltonian matrix in a basis (plane waves, a localized basis, etc.; Chapters 14 and 15) and solve the eigenvalue problem to obtain $\{\varepsilon_i,\phi_i\}$. Most of the computational cost is concentrated here.
- Constructing the new density and checking convergence: Form $\rho_{\mathrm{out}}(\rr)=\sum_i^{\mathrm{occ}}\abs{\phi_i(\rr)}^2$, and judge convergence by whether, for example, the residual norm $$ \begin{equation} \Delta=\int \dd^3r\,\bigl[\rho_{\mathrm{out}}(\rr)-\rho_{\mathrm{in}}(\rr)\bigr]^2 \label{eq:10-residual} \end{equation} $$ has fallen below a threshold (in practice about $10^{-6}$–$10^{-10}$, depending on the system of units and the implementation) and whether the change in the total energy is sufficiently small.
- Density mixing: If the calculation has not converged, construct the next input density. The simplest choice is linear mixing: $$ \begin{equation} \rho_{\mathrm{in}}^{(n+1)}=(1-\alpha)\,\rho_{\mathrm{in}}^{(n)}+\alpha\,\rho_{\mathrm{out}}^{(n)}, \qquad 0 \lt \alpha \le 1 \label{eq:10-mixing} \end{equation} $$
Why do we go to the trouble of mixing, instead of using $\rho_{\mathrm{out}}$ as the next input as it is? Because simple substitution ($\alpha=1$) often oscillates or diverges. The intuition is this: if the input density is too small at some place, the effective potential there becomes too deep (the screening by the electrons is insufficient), and conversely the output density becomes too large. In the next iteration the correction overshoots in the opposite direction. The larger the system, and the more easily the charge moves, as in a metal, the larger this “overshooting” pendulum becomes (a long-wavelength charge oscillation, so-called charge sloshing), and the iteration does not converge. If we make the mixing parameter $\alpha$ small and keep each step of the correction modest, the pendulum is damped—but convergence becomes slow. Methods that resolve this trade-off between stability and speed cleverly (Pulay mixing, the Broyden method, the Kerker preconditioner, and so on) are described in detail in Chapter 14.
Example: Typical behavior of SCF iterations
For small molecules and simple semiconductors, it is typical that even linear mixing ($\alpha\sim0.3$) converges the energy to the level of $10^{-8}$ Ha in about 10–30 iterations. On the other hand, for magnetic metals, in which states crowd near the Fermi level, and for elongated metal slabs, simple mixing diverges easily, and Kerker-type preconditioning and quasi-Newton methods (Chapter 14) become essential. When the “SCF will not converge,” rather than tinkering with parameters blindly, we should get into the habit of thinking about which physics (the density of states, long-wavelength screening, or the spin degrees of freedom) is causing the oscillation.
10.6 Spin-Density Functional Theory
So far our formulation has tacitly assumed, as far as spin is concerned, that “the numbers of up and down spins are equal and have the same spatial distribution” (spin-unpolarized). For magnetic materials and odd-electron systems, however, this assumption does not hold. In this section we give the formalism of spin-density functional theory, which extends the KS method to spin-polarized systems. This extension was developed by von Barth and Hedin (Ref. [6]).
10.6.1 Taking the spin densities as independent variables
Take the electron density for each spin $\sigma=\uparrow,\downarrow$ (the spin density)
$$ \begin{equation} \rho^{\sigma}(\rr)=\sum_{i=1}^{N_\sigma}\abs{\phi_{i\sigma}(\rr)}^2, \qquad \rho(\rr)=\rho^{\uparrow}(\rr)+\rho^{\downarrow}(\rr), \qquad N_\uparrow+N_\downarrow=N \label{eq:10-spin-density} \end{equation} $$as the set of independent variables, and write the total energy functional as
$$ \begin{equation} E[\rho^{\uparrow},\rho^{\downarrow}] =T_s[\rho^{\uparrow},\rho^{\downarrow}] +\int \dd^3r\,v(\rr)\,\rho(\rr) +E_{\mathrm{H}}[\rho] +E_{xc}[\rho^{\uparrow},\rho^{\downarrow}] \label{eq:10-lsda-energy} \end{equation} $$. Here we note an important asymmetry. The external-potential term and the Hartree term depend only on the total density $\rho$ (the Coulomb force does not see spin). On the other hand, $T_s$ and $E_{xc}$ depend on the breakdown into the two spins. $T_s$ is computed from the orbitals of each spin channel as
$$ \begin{equation} T_s=\sum_{\sigma=\uparrow,\downarrow}\sum_{i=1}^{N_\sigma} \int \dd^3r\,\phi_{i\sigma}^*(\rr)\left(-\frac{1}{2}\nabla^2\right)\phi_{i\sigma}(\rr) \label{eq:10-ts-spin} \end{equation} $$, and $E_{xc}$ depends on the spin breakdown because, owing to the Pauli exclusion principle, exchange acts only between electrons of the same spin (Chapters 5 and 7). The degree of spin polarization is measured by
$$ \begin{equation} \zeta(\rr)=\frac{\rho^{\uparrow}(\rr)-\rho^{\downarrow}(\rr)}{\rho(\rr)}, \qquad -1\le\zeta\le 1 \label{eq:10-zeta} \end{equation} $$($\zeta=0$: unpolarized; $\zeta=\pm1$: fully polarized). The magnetization density is $m(\rr)=\rho^{\uparrow}(\rr)-\rho^{\downarrow}(\rr)$, and the total magnetic moment is $M=\int m\,\dd^3r=N_\uparrow-N_\downarrow$ (in units of the Bohr magneton).
10.6.2 The spin-dependent KS equations
The derivation repeats that of Section 10.2. Under the orthonormality constraint on the orbitals $\phi_{i\sigma}$ (orthogonality needs to be imposed only within the same spin; orbitals of different spins are automatically orthogonal by the orthogonality of the spin functions), varying Eq. \eqref{eq:10-lsda-energy} with respect to $\phi_{i\sigma}^*$ and following exactly the same procedure as in Section 10.2 (functional derivative of each term → diagonalization of the multiplier matrix), we obtain the KS equations for each spin channel
. The only thing that newly needs to be computed is the derivative of $E_{xc}$. Let us note the points to check: $v_{\mathrm{H}}$ is built from the total density and is common to both spins, whereas $v_{xc}^{\sigma}$ differs from spin to spin. This difference $v_{xc}^{\uparrow}\neq v_{xc}^{\downarrow}$ is precisely the origin of the effective magnetic field due to the exchange interaction (the exchange splitting). The occupations are determined by a common Fermi level across both spin channels: arrange all the $\{\varepsilon_{i\sigma}\}$ in increasing order and occupy the lowest $N$ of them. $N_\uparrow$ and $N_\downarrow$ are not inputs but are determined as a result of the SCF calculation (this is what makes a first-principles prediction of the magnetic moment possible).
Caution: Consistency with the unpolarized case, and when a spin-polarized calculation is essential
For closed-shell and nonmagnetic systems, the self-consistent solution satisfies $\rho^{\uparrow}=\rho^{\downarrow}=\rho/2$, the two equations in Eq. \eqref{eq:10-spin-ks} become identical, and they reduce to the spin-unpolarized KS equations (occupation number 2 for each spatial orbital). Conversely, the spin-polarized formalism is essential in the following cases:
- Magnetic metals: Fe, Co, Ni, and so on. For example, for bcc iron a spin-polarized calculation gives a magnetic moment of about $2.2\,\mu_{\mathrm{B}}$ per atom, in good agreement with experiment, whereas an unpolarized calculation cannot describe the magnetism itself and even gets the predicted ground-state structure wrong.
- Odd-electron systems: radical molecules and isolated atoms with an odd number of electrons (H, Li, N, …). Since the electrons cannot all be paired, $\zeta\neq0$ is unavoidable.
- Molecules with an open-shell ground state: a representative example is the oxygen molecule O$_2$ (the triplet is the ground state). An unpolarized calculation gives an incorrect, singlet-like description.
In addition, concrete approximations to $E_{xc}[\rho^{\uparrow},\rho^{\downarrow}]$ (the local spin-density approximation LSDA and the spin-dependent GGA) will be constructed in Chapter 11. There is also an extension to noncollinear magnetism, in which the magnetic field rotates in space (two-component spinor orbitals and a $2\times2$ density matrix), but it goes beyond the scope of this book, so we only mention it.
10.7 The Meaning of the KS Eigenvalues
Looking back at the derivation in Section 10.2, the KS eigenvalues $\varepsilon_i$ entered the equations as the Lagrange multipliers of the orthonormality constraint. A multiplier is a tool for solving a variational problem, and there is no guarantee whatsoever that it is itself an observable. Nevertheless, in actual first-principles calculations it is routine to line up the $\varepsilon_i$ to draw a band structure and to overlay it on experimental photoelectron spectroscopy spectra. How far is this practice justified? In this section we investigate, omitting no proof, (i) Janak's theorem $\partial E/\partial n_i=\varepsilon_i$, (ii) $\varepsilon_{\mathrm{HOMO}}=-I$ for the exact functional, (iii) the $\Delta$SCF method and Slater's transition-state approximation, and (iv) the comparison with experiment and the band gap problem, in this order.
10.7.1 The principle: KS orbitals and eigenvalues are auxiliary quantities
First we confirm the principle. All that we have proved so far amounts to the following two points.
- The density $\rho(\rr)=\sum_i\abs{\phi_i}^2$ of the KS system solved self-consistently is equal to the exact ground-state density of the interacting system (if the exact $E_{xc}$ is used).
- The $E$ obtained by substituting that density into Eq. \eqref{eq:10-etot-final} is equal to the exact ground-state energy of the interacting system.
The KS method guarantees only these two things, namely $\rho$ and $E$. The orbitals $\phi_i$ are “scaffolding for reproducing the density” and are not the wave functions of real electrons, and likewise the eigenvalues $\varepsilon_i$ by themselves do not represent excitation energies or ionization energies of the real system. The Hartree–Fock (HF) method of Chapter 5 had Koopmans' theorem—that $\varepsilon_i^{\mathrm{HF}}$ equals “the ionization energy of the $i$th electron with its sign changed, when orbital relaxation is neglected”—but no theorem of the same kind exists in general for the KS method. This is because $\hat{h}_{\mathrm{KS}}$, unlike the Fock operator of HF, contains “the field produced by $N$ electrons” rather than “the field produced by $N-1$ electrons.”
Caution: What must not be said about the KS eigenvalues
- “$\varepsilon_i$ is the energy of electron $i$”—wrong. To begin with, $\sum_i\varepsilon_i\neq E$ (Section 10.4).
- “$\varepsilon_a-\varepsilon_i$ (the difference between an empty orbital and an occupied orbital) is an excitation energy”—wrong in general. The KS system is a fictitious non-interacting system, and its “excitations” are something different from the excitations of the real system.
- “$\phi_i$ is the wave function of electron $i$”—wrong. As we saw in Section 10.2, the occupied orbitals have the freedom of a unitary transformation, and individual orbitals have no physical uniqueness. What is physical is the subspace spanned by the occupied orbitals (and the density built from it).
Even so, $\varepsilon_i$ has a clear meaning. However, it takes the form not of “the energy of an electron” but of the derivative of the total energy with respect to the occupation number. This is Janak's theorem.
10.7.2 Extension to fractional occupation numbers
To state Janak's theorem, we must consider “the change in energy when the occupation number $n_i$ of orbital $i$ is varied continuously between 0 and 1.” We therefore first extend the KS formalism to fractional occupation numbers. We redefine the density and the non-interacting kinetic energy as
$$ \begin{equation} \rho(\rr)=\sum_{i} n_i\abs{\phi_i(\rr)}^2, \qquad T_s=\sum_{i} n_i\int \dd^3r\,\phi_i^*(\rr)\left(-\frac{1}{2}\nabla^2\right)\phi_i(\rr), \qquad 0\le n_i\le 1,\quad \sum_i n_i=\nu \label{eq:10-frac-density} \end{equation} $$. The sums run over all orbitals (including the empty ones), but orbitals with $n_i=0$ do not contribute. The total number of electrons $\nu=\sum_i n_i$ need not be an integer. The upper bound $n_i\le1$ is the Pauli exclusion principle (at most one electron per orbital, spin included); if it is dropped, all the electrons fall into the lowest orbital. The total energy is, formally as before, written as
$$ \begin{equation} E\bigl[\{n_i\},\{\phi_i\}\bigr] =T_s+\int \dd^3r\,v(\rr)\rho(\rr)+E_{\mathrm{H}}[\rho]+E_{xc}[\rho] \label{eq:10-frac-energy} \end{equation} $$. Note that $n_i$ enters twice: inside $T_s$, and, through $\rho$, inside the remaining three terms.
Math Note: What fractional occupation numbers mean
“0.5 electrons” looks unphysical at first sight, but it has a clear meaning in the following three contexts.
(1) Open systems (ensembles). Consider a system that can exchange electrons with an electron bath (reservoir). The number of particles is then not a conserved quantity, and the state of the system is a statistical mixture of states with different particle numbers. For the mixed state in which the ground states with $M$ and $M+1$ particles are mixed with weights $1-\omega$ and $\omega$ (density operator $\hat{\Gamma}=(1-\omega)\ket{\Psi_M}\bra{\Psi_M}+\omega\ket{\Psi_{M+1}}\bra{\Psi_{M+1}}$), the average number of particles is $M+\omega$, and the average density is $\rho=(1-\omega)\rho_M+\omega\rho_{M+1}$. The fractional electron number is this average value. This formulation is called ensemble DFT (Ref. [5]).
(2) Finite temperature. In actual calculations for metals, “smearing” is performed, in which the Fermi–Dirac distribution $n_i=[e^{(\varepsilon_i-\mu)/k_BT}+1]^{-1}$ is assigned to the orbitals near the Fermi level (Chapter 14). In this case $n_i$ automatically becomes fractional.
(3) Formal interpolation. All that we need now is the derivative of $E$ when $n_i$ is regarded as a continuous variable. Since Eqs. \eqref{eq:10-frac-density}–\eqref{eq:10-frac-energy} are mathematical expressions that make sense for any $\{n_i\}\in[0,1]$, the derivative can be defined without any mathematical problem. This standpoint alone suffices for the proof of the theorem.
Let us check the KS equations for fractional occupation. Since the density is now $\rho(\rr')=\sum_j n_j\phi_j^*(\rr')\phi_j(\rr')$, the chain rule \eqref{eq:10-chain-rule} of Section 10.2 is modified to $\delta\rho(\rr')/\delta\phi_i^*(\rr)=n_i\phi_i(\rr)\delta(\rr-\rr')$, and we obtain
$$ \begin{equation} \frac{\delta A}{\delta \phi_i^*(\rr)}=n_i\,\frac{\delta A}{\delta\rho(\rr)}\,\phi_i(\rr) \label{eq:10-frac-chain} \end{equation} $$. Similarly, the derivative of $T_s$ in Eq. \eqref{eq:10-dts} is multiplied by $n_i$. Therefore the stationarity condition corresponding to Eq. \eqref{eq:10-stationary-full} takes the form in which the whole expression is multiplied by $n_i$:
$$ \begin{equation} \frac{\delta E}{\delta\phi_i^*(\rr)} =n_i\left[-\frac{1}{2}\nabla^2+v_{\mathrm{eff}}(\rr)\right]\phi_i(\rr) =n_i\,\hat{h}_{\mathrm{KS}}\,\phi_i(\rr) \label{eq:10-frac-dE} \end{equation} $$, and diagonalizing together with the constraint terms (dividing by $n_i$ for the orbitals with $n_i\neq0$), we obtain
$$ \begin{equation} \hat{h}_{\mathrm{KS}}\phi_i=\varepsilon_i\phi_i \label{eq:10-frac-ks} \end{equation} $$, which is formally exactly the same KS equation. The occupation numbers affect the equation only through the density Eq. \eqref{eq:10-frac-density} that builds $v_{\mathrm{eff}}$. In what follows we assume that this self-consistent solution has been obtained for arbitrary $\{n_i\}$.
10.7.3 Janak's theorem
Theorem: Janak's theorem (1978, Ref. [4])
Regard the total energy $E$ defined by Eqs. \eqref{eq:10-frac-density}–\eqref{eq:10-frac-energy} as the value obtained by giving the occupation numbers $\{n_j\}$ and solving the KS equations \eqref{eq:10-frac-ks} self-consistently. Then the derivative with respect to $n_i$ is equal to the $i$th KS eigenvalue:
$$ \begin{equation} \frac{\partial E}{\partial n_i}=\varepsilon_i. \label{eq:10-janak} \end{equation} $$Before going into the proof, let us confirm the structure of this statement. When $n_i$ is changed, not only does (a) the coefficient $n_i$ that appears explicitly in Eq. \eqref{eq:10-frac-energy} change, but also (b) the density changes and hence $v_{\mathrm{eff}}$ changes, and as a result all the orbitals $\phi_j$ themselves change. At first sight it seems that we would have to trace all the contributions of (b). However, because the orbitals are determined so as to make $E$ stationary, the contribution of (b) vanishes entirely. We first work out, independently in a Math Note, this mechanism that “at a stationary point the implicit dependence drops out of the parameter derivative.”
Math Note: Parameter derivative at a stationary point (the envelope theorem)
Consider a function $f(x,y)$ of two variables, and for each $x$ choose $y$ to be the value $y^\star(x)$ that makes $f$ stationary. That is,
$$ \begin{equation} \left.\frac{\partial f}{\partial y}\right|_{(x,\,y^\star(x))}=0 \label{eq:10-envelope-cond} \end{equation} $$and let $F(x)\equiv f\bigl(x,y^\star(x)\bigr)$. Differentiating $F$ with respect to $x$ by the chain rule gives
\begin{align} \frac{\dd F}{\dd x} &=\left.\frac{\partial f}{\partial x}\right|_{y=y^\star} +\left.\frac{\partial f}{\partial y}\right|_{y=y^\star}\frac{\dd y^\star}{\dd x} \label{eq:10-envelope-1} \\ &=\left.\frac{\partial f}{\partial x}\right|_{y=y^\star}. \label{eq:10-envelope-2} \end{align}Eq. \eqref{eq:10-envelope-1} is the formula for the total derivative, and Eq. \eqref{eq:10-envelope-2} follows because the second term vanishes by the stationarity condition \eqref{eq:10-envelope-cond}. In other words, as long as we evaluate at the stationary point, we obtain the total derivative by computing only the partial derivative with respect to $x$, without needing to know how $y$ depends on $x$. Since the coefficient multiplying $\dd y^\star/\dd x$ is zero, it may be as complicated as it likes.
This is a general principle called the envelope theorem, and the Hellmann–Feynman theorem of Chapter 16 (the theorem that, when differentiating with respect to the nuclear coordinates, we do not need to follow the change of the wave function) rests on the same mechanism. In the proof below, we read $x\to n_i$ and $y\to\{\phi_j,\phi_j^*\}$ (infinite-dimensional, but the logic is the same).
Derivation: Janak's theorem $\partial E/\partial n_i=\varepsilon_i$
Step 1: Split the total derivative into explicit and implicit terms. $E$ is a function (functional) of $\{n_j\}$ and $\{\phi_j,\phi_j^*\}$, and $\phi_j$ depends on $n_i$. The total derivative can be written as
\begin{align} \frac{\dd E}{\dd n_i} &=\left(\frac{\partial E}{\partial n_i}\right)_{\{\phi\}} +\sum_{k}\int \dd^3r\left[ \frac{\delta E}{\delta \phi_k^*(\rr)}\frac{\partial \phi_k^*(\rr)}{\partial n_i} +\frac{\delta E}{\delta \phi_k(\rr)}\frac{\partial \phi_k(\rr)}{\partial n_i} \right] \label{eq:10-janak-1} \end{align}The first term is the contribution from varying only the coefficient $n_i$ with the orbitals held fixed (explicit dependence), and the second term is the contribution through the change of the orbitals (implicit dependence). We wrote both $\phi_k$ and $\phi_k^*$ so as not to miss one of the two degrees of freedom, the real and imaginary parts, as in the Math Note in Section 10.2.
Step 2: Show that the implicit term vanishes. Substitute the stationarity condition \eqref{eq:10-frac-dE} and its Hermitian conjugate (since the functional is real-valued, $\delta E/\delta\phi_k=\bigl(\delta E/\delta\phi_k^*\bigr)^*$). In the canonical form $\hat{h}_{\mathrm{KS}}\phi_k=\varepsilon_k\phi_k$, so $\delta E/\delta\phi_k^*=n_k\varepsilon_k\phi_k$ and $\delta E/\delta\phi_k=n_k\varepsilon_k\phi_k^*$ ($\varepsilon_k$ is real). Hence the second term of Eq. \eqref{eq:10-janak-1} is
\begin{align} \sum_{k}\int \dd^3r\;n_k\varepsilon_k \left[\phi_k(\rr)\frac{\partial \phi_k^*(\rr)}{\partial n_i} +\phi_k^*(\rr)\frac{\partial \phi_k(\rr)}{\partial n_i}\right] &=\sum_{k}n_k\varepsilon_k\,\frac{\partial}{\partial n_i}\int \dd^3r\,\phi_k^*(\rr)\phi_k(\rr) \label{eq:10-janak-2} \\ &=\sum_{k}n_k\varepsilon_k\,\frac{\partial}{\partial n_i}(1) \;=\;0. \label{eq:10-janak-3} \end{align}In Eq. \eqref{eq:10-janak-2} we used the product rule $\partial(\phi_k^*\phi_k)/\partial n_i=\phi_k(\partial\phi_k^*/\partial n_i)+\phi_k^*(\partial\phi_k/\partial n_i)$ in reverse to combine the bracket into a single derivative, and we also interchanged the order of differentiation and integration. In Eq. \eqref{eq:10-janak-3} we used the fact that the normalization condition $\int\abs{\phi_k}^2\dd^3r=1$ holds identically, regardless of the value of $n_i$. Differentiating a constant gives zero. This is a concrete manifestation of the envelope theorem, and it is the reason we do not have to track the change of the orbitals at all.
(Carrying out the calculation without going to the canonical form leads to the same conclusion. Writing $\delta E/\delta\phi_k^*=\sum_l\Lambda_{lk}\phi_l$, the second term becomes $\sum_{k,l}\Lambda_{lk}\,\partial\braket{\phi_k|\phi_l}/\partial n_i$, and since the orthonormality condition $\braket{\phi_k|\phi_l}=\delta_{kl}$ holds identically, this is again zero.)
Step 3: Compute the explicit term. All that remains is the term obtained by taking the partial derivative with respect to $n_i$ with the orbitals held fixed. We differentiate the four terms of Eq. \eqref{eq:10-frac-energy} in turn. First, $T_s$ is explicitly linear in $n_i$, so
$$ \begin{equation} \left(\frac{\partial T_s}{\partial n_i}\right)_{\{\phi\}} =\int \dd^3r\,\phi_i^*(\rr)\left(-\frac{1}{2}\nabla^2\right)\phi_i(\rr). \label{eq:10-janak-ts} \end{equation} $$The remaining three terms depend on $n_i$ only through $\rho$. From Eq. \eqref{eq:10-frac-density}, the change of the density with the orbitals held fixed is
$$ \begin{equation} \left(\frac{\partial \rho(\rr)}{\partial n_i}\right)_{\{\phi\}}=\abs{\phi_i(\rr)}^2 \label{eq:10-janak-drho} \end{equation} $$Therefore, for a functional $A[\rho]$ of $\rho$, the chain rule gives
$$ \begin{equation} \left(\frac{\partial A}{\partial n_i}\right)_{\{\phi\}} =\int \dd^3r\,\frac{\delta A}{\delta\rho(\rr)}\left(\frac{\partial\rho(\rr)}{\partial n_i}\right)_{\{\phi\}} =\int \dd^3r\,\frac{\delta A}{\delta\rho(\rr)}\abs{\phi_i(\rr)}^2 \label{eq:10-janak-chain} \end{equation} $$We apply this to each of the three terms. Since $\delta\bigl(\int v\rho\bigr)/\delta\rho=v$, $\delta E_{\mathrm{H}}/\delta\rho=v_{\mathrm{H}}$ (Eq. \eqref{eq:10-vh-def}), and $\delta E_{xc}/\delta\rho=v_{xc}$ (Eq. \eqref{eq:10-vxc-def}), we obtain
\begin{align} \left(\frac{\partial}{\partial n_i}\int \dd^3r\,v\rho\right)_{\{\phi\}}&=\int \dd^3r\,v(\rr)\abs{\phi_i(\rr)}^2, \label{eq:10-janak-vext}\\ \left(\frac{\partial E_{\mathrm{H}}}{\partial n_i}\right)_{\{\phi\}}&=\int \dd^3r\,v_{\mathrm{H}}(\rr)\abs{\phi_i(\rr)}^2, \label{eq:10-janak-vh}\\ \left(\frac{\partial E_{xc}}{\partial n_i}\right)_{\{\phi\}}&=\int \dd^3r\,v_{xc}(\rr)\abs{\phi_i(\rr)}^2. \label{eq:10-janak-vxc} \end{align}Step 4: Add up the terms and use the KS equations. Summing Eq. \eqref{eq:10-janak-ts} and Eqs. \eqref{eq:10-janak-vext}–\eqref{eq:10-janak-vxc}, we obtain
\begin{align} \frac{\dd E}{\dd n_i} &=\int \dd^3r\,\phi_i^*\left(-\frac{1}{2}\nabla^2\right)\phi_i +\int \dd^3r\,\bigl[v+v_{\mathrm{H}}+v_{xc}\bigr]\,\phi_i^*\phi_i \label{eq:10-janak-4} \\ &=\int \dd^3r\,\phi_i^*(\rr) \left[-\frac{1}{2}\nabla^2+v_{\mathrm{eff}}(\rr)\right]\phi_i(\rr) \label{eq:10-janak-5} \\ &=\int \dd^3r\,\phi_i^*(\rr)\,\varepsilon_i\,\phi_i(\rr) \label{eq:10-janak-6} \\ &=\varepsilon_i\int \dd^3r\,\abs{\phi_i(\rr)}^2 \;=\;\varepsilon_i. \label{eq:10-janak-7} \end{align}In Eq. \eqref{eq:10-janak-4} we rewrote $\abs{\phi_i}^2=\phi_i^*\phi_i$ and combined the three integrals into one, and in Eq. \eqref{eq:10-janak-5} we used the definition of the effective potential \eqref{eq:10-veff-def}. Eq. \eqref{eq:10-janak-6} follows by substituting the KS equation \eqref{eq:10-frac-ks}, and in Eq. \eqref{eq:10-janak-7} we took $\varepsilon_i$, being a constant, outside the integral and used the normalization condition. This proves $\partial E/\partial n_i=\varepsilon_i$. ∎
Physical Meaning: The eigenvalue is a “marginal energy”
Janak's theorem characterizes $\varepsilon_i$ as a differential quantity. That is, $\varepsilon_i$ is the energy change per electron when an infinitesimal amount of electron is added to (or removed from) orbital $i$. To borrow a term from economics, it is a “marginal cost,” and not a finite quantity such as “the energy of one electron.” This distinction is the reason why this characterization is consistent with the fact that $\sum_i\varepsilon_i\neq E$ (Section 10.4). Indeed, integrating Janak's theorem over all the occupation numbers gives
$$ \begin{equation} E(N)-E(0)=\int_0^1\dd\lambda\,\frac{\dd E}{\dd\lambda} =\int_0^1\dd\lambda\sum_{i=1}^{N}\varepsilon_i(\lambda) \label{eq:10-janak-integral-all} \end{equation} $$(we took the path along which $n_i=\lambda$ is raised simultaneously, $0\to1$), and because $\varepsilon_i$ depends on the occupation numbers, this does not reduce to the simple $\sum_i\varepsilon_i$. The sum of the eigenvalues is not the total energy precisely because of this $\lambda$ dependence (that is, because adding electrons changes the field that they themselves create).
10.7.4 Integral form: the highest occupied level and the ionization energy
Janak's theorem has the form of a derivative, so integrating over an occupation number gives a finite energy difference. Consider the path in which only the occupation number of orbital $i$ is lowered from $1$ to $0$ while all the others are left as they are. By the fundamental theorem of calculus,
\begin{align} E(n_i{=}1)-E(n_i{=}0) &=\int_0^1 \dd n\,\frac{\partial E}{\partial n_i}\bigg|_{n_i=n} \notag\\ &=\int_0^1 \dd n\,\varepsilon_i(n) \label{eq:10-janak-int} \end{align}In the second line we substituted Janak's theorem \eqref{eq:10-janak}. Note that $\varepsilon_i(n)$ is “the eigenvalue obtained by solving self-consistently with the occupation number set to $n$,” and that it depends on $n$. If we define the energy required to remove one electron from orbital $i$ (the ionization energy) as $I_i\equiv E(n_i{=}0)-E(n_i{=}1)$, then
$$ \begin{equation} I_i=-\int_0^1 \dd n\,\varepsilon_i(n). \label{eq:10-Ii-integral} \end{equation} $$If we here approximate “$\varepsilon_i$ is independent of $n$,” we obtain $I_i\simeq-\varepsilon_i(1)$, a relation of the same form as Koopmans' theorem of the HF method (Chapter 5). This, however, is merely an approximation. In reality, when an electron is removed, the screening felt by the remaining electrons decreases, so $v_{\mathrm{eff}}$ becomes deeper, and $\varepsilon_i(n)$ goes down (becomes more negative) as $n$ decreases. By the amount of this effect of orbital relaxation that is neglected, $-\varepsilon_i(1)$ underestimates $I_i$.
For the highest occupied level (HOMO), however, an exact relation holds without any approximation if the exact functional is used. The key is the fact that the exact $E$, as a function of the number of electrons $\nu$, is a piecewise linear curve.
Derivation: The total energy as a function of the number of electrons is piecewise linear (Perdew–Parr–Levy–Balduz)
Consider a system that can exchange electrons with an electron bath (Math Note (1) in Section 10.7.2). A state with an indefinite number of particles is described by a statistical mixture of the $N$-electron ground states $\Psi_M$ with particle numbers $M$ ($M=0,1,2,\dots$), mixed with weights $w_M\ge0$:
$$ \begin{equation} \hat{\Gamma}=\sum_{M}w_M\ket{\Psi_M}\bra{\Psi_M}, \qquad \sum_M w_M=1,\qquad \sum_M w_M M=\nu \label{eq:10-ensemble} \end{equation} $$(the first relation is the normalization of probability, and the second is the condition that the average number of particles is $\nu$). Since $\ket{\Psi_M}$ is the ground state of the $M$-electron Hamiltonian, the expectation value of the energy of this ensemble is
$$ \begin{equation} \mathcal{E}[\hat\Gamma]=\mathrm{Tr}\bigl[\hat{\Gamma}\hat{H}\bigr]=\sum_M w_M E(M) \label{eq:10-ensemble-energy} \end{equation} $$The ground-state energy $E(\nu)$ is defined as the value obtained by minimizing this linear function $\sum_M w_M E(M)$ with respect to $\{w_M\}$ under the constraints \eqref{eq:10-ensemble}.
Here is the key point. The set of all points $\bigl(\nu,\sum_M w_M E(M)\bigr)$ satisfying the conditions “non-negative weights $w_M$, sum equal to 1, average equal to $\nu$” is exactly the set of convex combinations of the sequence of points $\{(M,E(M))\}$ in the plane, that is, the convex hull of those points. Its minimum value (the lower boundary) is the lower convex hull of the sequence of points. In real systems, $E(M)$ is convex in $M$; that is,
$$ \begin{equation} E(M-1)+E(M+1)\ge 2E(M) \qquad\Longleftrightarrow\qquad I\ge A \label{eq:10-convexity} \end{equation} $$holds ($I=E(M{-}1)-E(M)$ is the ionization energy and $A=E(M)-E(M{+}1)$ is the electron affinity. $I\ge A$ is the empirical rule that “removing one electron costs more than adding one,” and no exception is known even experimentally). The lower convex hull of a convex sequence of points is precisely the piecewise linear curve connecting adjacent points. Therefore, for $\nu=M+\omega$ ($0\le\omega\le1$), the weights that give the minimum are $w_M=1-\omega$, $w_{M+1}=\omega$, with all others zero, and we obtain
$$ \begin{equation} E(M+\omega)=(1-\omega)E(M)+\omega E(M+1) \label{eq:10-pwl} \end{equation} $$That is, $E(\nu)$ is a piecewise linear curve whose vertices are at the integer points. ∎
Because it is piecewise linear, the derivative (the chemical potential) $\mu(\nu)=\partial E/\partial\nu$ is constant in each interval and jumps at the integer points:
\begin{align} \mu(\nu)&=E(N)-E(N-1)=-I \qquad (N-1\lt\nu\lt N), \label{eq:10-mu-left} \\ \mu(\nu)&=E(N+1)-E(N)=-A \qquad (N\lt\nu\lt N+1). \label{eq:10-mu-right} \end{align}On the other hand, in the process of increasing $\nu$ from $N-1$ to $N$, the added electron goes into the highest occupied orbital (HOMO), so by Janak's theorem $\partial E/\partial\nu=\varepsilon_{\mathrm{HOMO}}(\nu)$. Since the right-hand side of Eq. \eqref{eq:10-mu-left} is a constant independent of $\nu$, $\varepsilon_{\mathrm{HOMO}}(\nu)$ must also be constant throughout this interval. In particular, in the limit $\nu\to N$, that is, for the HOMO eigenvalue of the ordinary $N$-electron system,
holds exactly (References [5], [10]). This is the only exact physical meaning given to a KS eigenvalue. If we carry out the same argument on the side $\nu\gt N$, we can say that for the HOMO of the $N+1$-electron system (the level that corresponds to the lowest unoccupied orbital when viewed from the $N$-electron system), $\varepsilon_{\mathrm{HOMO}}(N{+}1)=-A$. However, as we will see later, this does not coincide with $\varepsilon_{\mathrm{LUMO}}$ of the $N$-electron system.
Physical Meaning: The breakdown of piecewise linearity = delocalization error
The piecewise-linear curve in Figure 10.3 means that “it is neither a loss nor a gain for electrons to exist in integer numbers.” The convex curve of an approximate functional lies below the piecewise-linear curve, so it becomes energetically favorable to carry a fractional charge. This error is called the delocalization error and produces the following failures.
- Dissociation of $\mathrm{H}_2^+$. Exactly, the dissociation limit is “an H atom + an H$^+$ ion” (charges $1,0$). In LDA/GGA, however, the energy is lowered by placing $0.5$ electron on each atom, so the dissociation curve erroneously keeps going down. That even a $1$-electron system is qualitatively wrong has the same root as the self-interaction error (the Caution in Section 10.1).
- Charge-transfer complexes and molecular adsorption. The amount of charge transfer between donor and acceptor is overestimated.
- Strongly correlated systems. The $d$ electrons of transition-metal oxides are unduly delocalized, and insulators are sometimes predicted to be metals (DFT+U in Chapter 11 is one remedy for this).
The HF approximation is the opposite: $E(\nu)$ deviates concave, above the piecewise-linear curve in each interval (called the localization error). Because it treats exchange exactly but lacks screening (correlation), it excessively dislikes fractional charges. In Section 10.7.6 we return to Figure 10.3 and show that the difference in the bending, convex versus concave, directly determines the direction of the band-gap error.
Example: $\varepsilon_{\mathrm{HOMO}}=-I$ is badly violated by approximate functionals
The ionization energy of the helium atom is $I=24.59$ eV. According to Eq. \eqref{eq:10-homo-ip}, a KS calculation with the exact functional must give $\varepsilon_{\mathrm{HOMO}}=-24.59$ eV. In an LDA calculation, however, one obtains only $\varepsilon_{\mathrm{HOMO}}\simeq-15.5$ eV, which is only about 60% of $I$. The tendency that “the LDA/GGA HOMO level is about half the ionization energy” is widely known for atoms and molecules.
The cause lies in the behavior of $v_{xc}$ far from the system. When one electron is moved far away from an $N$-electron system, the exact exchange-correlation potential must reproduce the Coulomb attraction from the remaining positive ion with $N-1$ electrons, so it decays as $v_{xc}(\rr)\to-1/r$ ($r\to\infty$) (Ref. [10]). In contrast, the LDA $v_{xc}\propto-\rho^{1/3}$ goes to zero exponentially in the far region, where the density decays exponentially. Because the tail of the potential is too shallow, the binding of the HOMO becomes too weak. On the other hand, the $\Delta$SCF method described in the next subsection uses a difference of total energies, so it is hardly affected by this defect (even LDA gives a good value, $I\simeq24.3$ eV).
10.7.5 The $\Delta$SCF method and Slater's transition state
As we saw in the previous subsection, reading off an eigenvalue directly as the ionization energy is dangerous for approximate functionals. What, then, do we do in practice? The answer is to use not the eigenvalue but the total energy.
(a) The $\Delta$SCF method. Returning to the very definition of the ionization energy, we carry out the SCF calculations of the $N$-electron system and the $N-1$ electron system separately and take the difference:
$$ \begin{equation} I^{\Delta\mathrm{SCF}}=E_{\mathrm{SCF}}(N-1)-E_{\mathrm{SCF}}(N). \label{eq:10-dscf} \end{equation} $$This is called the $\Delta$SCF method. There are three reasons why this method is excellent.
- It rests on the variational principle. Each SCF calculation minimizes the energy for the given number of electrons, so orbital relaxation (the rearrangement of the remaining electrons after an electron is removed) is fully included. Rather than “evaluating approximately” the integral in Eq. \eqref{eq:10-Ii-integral}, we directly compute the values at its two endpoints.
- Errors cancel. $E_{\mathrm{SCF}}(N)$ and $E_{\mathrm{SCF}}(N-1)$ share the same systematic error of the approximate functional, so most of it disappears when the difference is taken. The property emphasized in Section 10.1, that “the error of $E_{xc}$ cancels in energy differences,” works here as well.
- It is insensitive to the defect in the far-region form of $v_{xc}$. In the case of helium discussed in the example of Section 10.7.4, the eigenvalue is off by as much as 9 eV, whereas with $\Delta$SCF the error is held to about $0.3$ eV.
The drawbacks are that one SCF calculation is needed for each state, and that treating “an excited state in which an electron has been removed from a specific orbital,” such as a core level, requires a constrained SCF in which the occupation numbers are artificially fixed. In periodic systems, moreover, a correction for the background charge is needed to handle the charged cell. Applications to core excitations are treated in detail in Chapter 18.
(b) Slater's transition-state approximation. $\Delta$SCF requires two calculations. Slater's transition state approximation aims at comparable accuracy with a single calculation. The idea is an extremely simple one: “evaluate the integral \eqref{eq:10-Ii-integral} at the midpoint.”
Derivation: Slater's transition state and an estimate of its error
We expand the integrand $\varepsilon_i(n)$ of Eq. \eqref{eq:10-Ii-integral} in a Taylor series about the midpoint $n=1/2$ of the interval:
$$ \begin{equation} \varepsilon_i(n)=\varepsilon_i(\tfrac12) +\left(n-\tfrac12\right)\varepsilon_i'(\tfrac12) +\frac{1}{2}\left(n-\tfrac12\right)^2\varepsilon_i''(\tfrac12) +\frac{1}{6}\left(n-\tfrac12\right)^3\varepsilon_i'''(\tfrac12) +\cdots \label{eq:10-ts-taylor} \end{equation} $$($'$ denotes differentiation with respect to $n$). We integrate this from $0$ to $1$. With the change of variables $u=n-\frac12$, the interval of integration becomes the origin-symmetric interval $-\frac12\le u\le\frac12$, and the integrals of the individual terms are
\begin{align} \int_{-1/2}^{1/2}\dd u&=1, \qquad \int_{-1/2}^{1/2}u\,\dd u=0, \label{eq:10-ts-mom1}\\ \int_{-1/2}^{1/2}u^2\,\dd u&=\left[\frac{u^3}{3}\right]_{-1/2}^{1/2}=\frac{2}{3}\cdot\frac{1}{8}=\frac{1}{12}, \qquad \int_{-1/2}^{1/2}u^3\,\dd u=0 \label{eq:10-ts-mom2} \end{align}The integrals of odd powers vanish because they are integrals of odd functions over a symmetric interval (this is the benefit of choosing the midpoint). Therefore
\begin{align} \int_0^1\dd n\,\varepsilon_i(n) &=\varepsilon_i(\tfrac12)\cdot 1 +\varepsilon_i'(\tfrac12)\cdot 0 +\frac{1}{2}\varepsilon_i''(\tfrac12)\cdot\frac{1}{12} +\frac{1}{6}\varepsilon_i'''(\tfrac12)\cdot 0+\cdots \label{eq:10-ts-int1} \\ &=\varepsilon_i(\tfrac12)+\frac{1}{24}\varepsilon_i''(\tfrac12)+O\!\left(\varepsilon_i''''\right). \label{eq:10-ts-int2} \end{align}Combining this with Eq. \eqref{eq:10-Ii-integral},
$$ \begin{equation} I_i=-\varepsilon_i(\tfrac12)-\frac{1}{24}\varepsilon_i''(\tfrac12)-\cdots \;\simeq\;-\varepsilon_i\!\left(n_i=\tfrac12\right). \label{eq:10-slater-ts} \end{equation} $$That is, the ionization energy is obtained by fixing the occupation number of orbital $i$ at $1/2$, solving self-consistently, and reversing the sign of its eigenvalue. This half-occupied state is called the transition state.
Comparison of errors. Let us line this up against the other evaluation methods.
- Koopmans-type ($-\varepsilon_i(1)$): Substituting $n=1$ into \eqref{eq:10-ts-taylor} gives $\varepsilon_i(1)=\varepsilon_i(\frac12)+\frac12\varepsilon_i'+\frac18\varepsilon_i''+\cdots$, so the difference from \eqref{eq:10-ts-int2} is $-\frac12\varepsilon_i'-\frac{1}{12}\varepsilon_i''+\cdots$. An error proportional to the first derivative remains.
- Average of the two endpoints (trapezoidal rule, $-\frac12[\varepsilon_i(0)+\varepsilon_i(1)]$): Since $\frac12[\varepsilon_i(0)+\varepsilon_i(1)]=\varepsilon_i(\frac12)+\frac18\varepsilon_i''+\cdots$, the error is $-\frac{1}{12}\varepsilon_i''$. The error in the first derivative vanishes, but this is twice the size of the midpoint-rule error $+\frac{1}{24}\varepsilon_i''$.
- Transition state (midpoint rule): the error is only $\frac{1}{24}\varepsilon_i''$.
In particular, if $\varepsilon_i(n)$ is a linear function of $n$, then $\varepsilon_i''=0$ and the transition-state approximation becomes exact. ∎
Physical Meaning: Why half occupation?
That $\varepsilon_i(n)$ is nearly linear in $n$ is a restatement of the same fact that the $E(\nu)$ of the approximate functionals seen in Figure 10.3 is nearly a parabola. Indeed, if we approximate $E(n_i)=an_i^2+bn_i+c$ by a quadratic, Janak's theorem gives $\varepsilon_i(n_i)=\partial E/\partial n_i=2an_i+b$, which is an exactly linear function of $n_i$. In this case the midpoint rule has zero error.
Intuitively, it goes as follows. In the middle of removing an electron, the system is halfway between the state “the electron is still there” and the state “the electron is already gone.” $-\varepsilon_i(1)$ is an evaluation using the field “before removal,” and $-\varepsilon_i(0)$ one using the field “after removal”; they err on the side of ignoring relaxation and of overestimating it, respectively. Half occupation uses the field exactly in between, so it correctly includes the effect of relaxation to first order. Whereas $\Delta$SCF treats relaxation exactly with two calculations, the transition state can be said to be a method that includes relaxation up to first order with a single calculation.
Example: Binding energies of core levels
The binding energy of a core level measured by X-ray photoelectron spectroscopy (XPS) (for example, about 285 eV for C $1s$) comes out tens of eV too shallow if the KS eigenvalue is read off directly. This is because when a vacancy is created in the core shell, the valence electrons are strongly attracted to it and a very large relaxation takes place. Using $\Delta$SCF (a constrained SCF in which the occupation number of the core orbital is fixed at 0) or the transition state (occupation number $1/2$), this relaxation is included, and an accuracy of about 0.5 eV in absolute value can be reached. For differences in binding energy between atoms of the same species in different chemical environments (chemical shifts), the accuracy is higher still. Details are treated in Chapter 18.
10.7.6 Comparison with experiment: photoelectron spectroscopy and the band gap problem
Now that the theoretical groundwork is done, let us see how $\varepsilon_i$ actually compares with experiment. To state the conclusion first: occupied levels can be used to an accuracy of a few eV, but band gaps are systematically and substantially underestimated. There is a clear reason for this asymmetric behavior, and it is the discontinuity of the functional derivative, which concludes this section.
(a) Occupied levels and photoelectron spectroscopy. Ultraviolet and X-ray photoelectron spectroscopy (UPS/XPS) and angle-resolved photoemission spectroscopy (ARPES) are experiments in which photons are shone on a sample and the kinetic energy of the emitted electrons is measured, which determines the binding energy $E_b=E(N-1,\text{final state})-E(N)$. When this is compared with $-\varepsilon_i$, the following is known.
- The shape of the valence band (the peak positions of the density of states and the overall form of the dispersion) is qualitatively well reproduced even by the LDA/GGA. The common practice of directly overlaying band-structure calculations on ARPES dispersions rests on this experience.
- The absolute values are off by a few eV, with a systematic trend. For the 3d transition metals (Fe, Co, Ni), the LDA $d$ bandwidth comes out about 1 eV wider than the ARPES measurements (Ref. [11]). The exchange splitting of Ni is also overestimated.
- As we saw in Section 10.7.4, the HOMO level of an isolated atom or molecule amounts to only about 60% of $I$, so it cannot be used as it stands.
The reason it works relatively well for solids can be understood from the integral form of Janak's theorem, Eq. \eqref{eq:10-Ii-integral}. Even when one electron is removed from a delocalized band state in a macroscopic solid, the change in density is $\delta\rho\sim1/N\to0$, and $v_{\mathrm{eff}}$ hardly changes. Therefore the $n$ dependence of $\varepsilon_i(n)$ (orbital relaxation) vanishes, and $I_i=-\int_0^1\varepsilon_i(n)\dd n\to-\varepsilon_i$ becomes a good approximation. Conversely, for isolated atoms and core levels, where adding or removing an electron changes the field substantially, this argument cannot be used.
Caution: Quasiparticles versus $v_{xc}$
To begin with, what photoelectron spectroscopy measures is the energy of an excited state of the $N-1$ electron system obtained by removing one electron from the $N$-electron system. In the language of many-body theory, this quantity is determined by the quasiparticle equation
$$ \begin{equation} \left[-\frac{1}{2}\nabla^2+v(\rr)+v_{\mathrm{H}}(\rr)\right]\psi_i(\rr) +\int \dd^3r'\,\Sigma\bigl(\rr,\rr';E_i\bigr)\,\psi_i(\rr')=E_i\,\psi_i(\rr) \label{eq:10-qp} \end{equation} $$Here $\Sigma(\rr,\rr';E)$ is called the self-energy, and unlike $v_{xc}(\rr)$ it is (i) nonlocal (a two-point function of $\rr$ and $\rr'$), (ii) energy dependent, and (iii) in general complex (the imaginary part gives the finite lifetime of the quasiparticle). The KS equations can be regarded as the equations obtained by replacing $\Sigma$ with a local, real, energy-independent $v_{xc}(\rr)$, so there is originally no reason for $\varepsilon_i$ to coincide with $E_i$. The $GW$ approximation, which approximates $\Sigma$ to first order in the screened Coulomb interaction, is the standard method for systematically closing this difference.
(b) Underestimation of band gaps. For semiconductors and insulators the situation is more serious. The gap read off from the KS eigenvalues, $E_g^{\mathrm{KS}}=\varepsilon_{\mathrm{LUMO}}-\varepsilon_{\mathrm{HOMO}}$ (for solids, the difference between the conduction band minimum and the valence band maximum), consistently underestimates the experimental fundamental gap $E_g=I-A$.
| Material | LDA $E_g^{\mathrm{KS}}$ | Experiment $E_g$ | Error |
|---|---|---|---|
| Si | 0.5 | 1.17 | about $-57\%$ |
| Ge | 0.0 (wrongly predicted to be a metal) | 0.74 | about $-100\%$ |
| GaAs | 0.3 | 1.52 | about $-80\%$ |
| C (diamond) | 4.1 | 5.48 | about $-25\%$ |
| MgO | 4.8 | 7.83 | about $-39\%$ |
| LiF | 8.9 | 14.20 | about $-37\%$ |
One must not dismiss this with “the LDA is just a crude approximation.” Surprisingly, even if the exact $E_{xc}$ is used, $E_g^{\mathrm{KS}}\neq E_g$. The difference between the two is given by the discontinuity of the functional derivative, $\Delta_{xc}$, which we derive next (Refs. [7], [8]).
Derivation: $E_g=E_g^{\mathrm{KS}}+\Delta_{xc}$ (discontinuity of the functional derivative)
All the tools have already been prepared in Section 10.3 and Section 10.7.4. We restate the Euler equation \eqref{eq:10-euler-int2} of the interacting system:
$$ \begin{equation} \frac{\delta T_s}{\delta\rho(\rr)}+v(\rr)+v_{\mathrm{H}}(\rr)+v_{xc}(\rr)=\mu. \label{eq:10-dd-euler} \end{equation} $$We evaluate this in two ways, in the limit where the number of electrons $\nu$ approaches an integer $N$ from below ($\nu=N-\eta$, $\eta\to0^+$) and in the limit where it approaches from above ($\nu=N+\eta$), and subtract the two sides. Below, the superscript $\mp$ denotes the respective limits.
Step 1: The density is continuous, the chemical potential is discontinuous. In the ensemble picture of Eq. \eqref{eq:10-pwl}, the density for $\nu=N\pm\eta$ has the form $\rho_{N\pm\eta}=(1\mp\eta)\rho_N\pm\eta\,\rho_{N\pm1}$, which approaches $\rho_N$ continuously as $\eta\to0$. Therefore $v(\rr)$ (which does not depend on $\rho$ in the first place) and $v_{\mathrm{H}}(\rr)$ (a linear functional of the density), which are functions of $\rho$, take the same value in both limits. On the other hand, by \eqref{eq:10-mu-left} and \eqref{eq:10-mu-right}, $\mu$ takes the values
$$ \begin{equation} \mu^{-}=-I,\qquad \mu^{+}=-A,\qquad \mu^{+}-\mu^{-}=I-A=E_g \label{eq:10-dd-mu} \end{equation} $$and thus jumps.
Step 2: The jump of $\delta T_s/\delta\rho$ is the KS gap. Solving the Euler equation \eqref{eq:10-euler-ks} of the non-interacting system for $\delta T_s/\delta\rho$ gives
$$ \begin{equation} \frac{\delta T_s}{\delta\rho(\rr)}\bigg|_{\rho_N}=\mu_s-v_s(\rr) \label{eq:10-dd-ts} \end{equation} $$Here $v_s(\rr)$ is the local potential that reproduces the density $\rho_N$, and since $\rho_N$ is common to both limits, $v_s$ is common as well (uniqueness from the HK theorem, seen in Section 10.3.2). What remains is the chemical potential $\mu_s$ of the non-interacting system. This is “the energy when an infinitesimal amount of electrons is added to or removed from the independent-particle system in $v_s$,” so approaching from below it is $\varepsilon_{\mathrm{HOMO}}$, the highest occupied level, and approaching from above it is $\varepsilon_{\mathrm{LUMO}}$, the lowest empty level (since there is no interaction, an added electron simply goes into the lowest available level). Hence
$$ \begin{equation} \frac{\delta T_s}{\delta\rho}\bigg|^{+}-\frac{\delta T_s}{\delta\rho}\bigg|^{-} =\mu_s^{+}-\mu_s^{-} =\varepsilon_{\mathrm{LUMO}}-\varepsilon_{\mathrm{HOMO}} \equiv E_g^{\mathrm{KS}}. \label{eq:10-dd-ts-jump} \end{equation} $$Step 3: Subtract. Subtracting the lower limit from the upper limit of \eqref{eq:10-dd-euler}, $v$ and $v_{\mathrm{H}}$ cancel, and we obtain
\begin{align} \left[\frac{\delta T_s}{\delta\rho}\bigg|^{+}-\frac{\delta T_s}{\delta\rho}\bigg|^{-}\right] +\left[v_{xc}^{+}(\rr)-v_{xc}^{-}(\rr)\right] &=\mu^{+}-\mu^{-} \label{eq:10-dd-sub} \\ E_g^{\mathrm{KS}}+\underbrace{\left[v_{xc}^{+}(\rr)-v_{xc}^{-}(\rr)\right]}_{\displaystyle \equiv\,\Delta_{xc}} &=E_g \label{eq:10-dd-sub2} \end{align}In \eqref{eq:10-dd-sub2} we substituted \eqref{eq:10-dd-ts-jump} and \eqref{eq:10-dd-mu}. There is an important by-product here: since both $E_g^{\mathrm{KS}}$ and $E_g$ are numbers (independent of position), the difference $\Delta_{xc}$ must also be a constant independent of the position $\rr$. That is, when the number of electrons crosses an integer, the exchange-correlation potential jumps by a spatially uniform constant. Summarizing:
$$ \begin{equation} E_g=E_g^{\mathrm{KS}}+\Delta_{xc}, \qquad \Delta_{xc}=\lim_{\eta\to0^+}\left[ \frac{\delta E_{xc}}{\delta\rho(\rr)}\bigg|_{N+\eta} -\frac{\delta E_{xc}}{\delta\rho(\rr)}\bigg|_{N-\eta}\right]. \label{eq:10-dd-result} \end{equation} $$∎
Physical Meaning: Why is $\Delta_{xc}=0$ in the LDA and GGA?
The exchange-correlation energy of the LDA and GGA has the form
$$ E_{xc}^{\mathrm{LDA/GGA}}[\rho]=\int \dd^3r\;f\bigl(\rho(\rr),\nabla\rho(\rr)\bigr) $$where $f$ is a smooth function of $\rho$ and $\nabla\rho$. Therefore its functional derivative
$$ v_{xc}(\rr)=\frac{\partial f}{\partial\rho}-\nabla\cdot\frac{\partial f}{\partial(\nabla\rho)} $$is also a smooth function of $\rho$ and $\nabla\rho$, and as long as the density varies continuously, $v_{xc}$ also varies continuously. As seen in Step 1 of the derivation above, the density is continuous when the number of electrons crosses an integer. Hence in the LDA/GGA, $\Delta_{xc}$ is identically zero, and these functionals can give only $E_g^{\mathrm{KS}}$. Even if the LDA could reproduce the exact density, the gap would still fall short by $\Delta_{xc}$. For Si, $\Delta_{xc}$ is estimated to be 0.6–0.9 eV, which explains almost the entire discrepancy in Table 10.2 (0.67 eV).
In addition, the self-interaction error (Section 10.1) and the delocalization error (Section 10.7.4) also act to push the occupied levels up and narrow the gap. Therefore the “band gap problem” originates to a large extent not from insufficient accuracy of the functional but from the structure of the KS formalism itself. The remedies are (i) hybrid functionals, in which a part of exact exchange is mixed in so that the functional becomes orbital dependent (nonlocal)—because of the nonlocality, $\Delta_{xc}\neq0$; (ii) the $GW$ approximation, which calculates the self-energy directly; and (iii) $\Delta$SCF for finite systems. Item (i) is treated in Chapter 11, and items (ii) and (iii) in Chapter 18.
Physical Meaning: Reading the direction of the gap error from Figure 10.3—convex LDA/GGA underestimates, concave HF overestimates
The derivation of $\Delta_{xc}$ is exact, but it is also somewhat abstract. Let us reread the same conclusion intuitively from the curvature of the $E(\nu)$ curve in Figure 10.3. The key is the distinction that the experimental band edge is the “slope of the chord,” whereas the calculated band edge is the “slope of the tangent.”
The experimental band edge = the slope of a chord. By definition, the positions of the valence band maximum (VBM) and the conduction band minimum (CBM) are determined by energy differences at integer electron numbers, so they are the slopes of the chords (finite differences) joining adjacent integer points in Figure 10.3:
$$ -I=\frac{E(N)-E(N-1)}{N-(N-1)} \;=\;\text{position of the VBM}, \qquad -A=\frac{E(N+1)-E(N)}{(N+1)-N} \;=\;\text{position of the CBM}. $$This is a restatement of Eqs. \eqref{eq:10-mu-left} and \eqref{eq:10-mu-right}.
The calculated band edge = the slope of a tangent. On the other hand, the band edges that KS and HF calculations output as eigenvalues are, by Janak's theorem, the slopes of the tangents (derivatives) of $E(\nu)$:
$$ \varepsilon_{\mathrm{VBM}}=\lim_{\nu\to N^-}\frac{\partial E}{\partial\nu}, \qquad \varepsilon_{\mathrm{CBM}}=\lim_{\nu\to N^+}\frac{\partial E}{\partial\nu}. $$(The derivation in Section 10.7.3 does not use the explicit form of $E_{xc}$ at all, so this reading applies as it stands to approximate functionals and to HF alike.) For the exact functional, $E(\nu)$ is a straight line on each interval, so the chord and the tangent coincide, and both the band edges and the gap come out correctly. When $E(\nu)$ is curved in an approximation, the tangent deviates from the chord by the amount of the curvature—and the direction of the deviation is determined by the direction of the curvature.
- LDA/GGA (convex) → the gap is always underestimated. A convex curve on the interval $[N{-}1,\,N]$ dips below the chord before returning to the right end, so the tangent at the right end $\nu\to N^-$ is gentler than the chord: $\varepsilon_{\mathrm{VBM}}\gt-I$, that is, the VBM is too shallow (too high). The example in Section 10.7.4 (the HOMO of helium is only 60% of $I$) is precisely a manifestation of this “tangent gentler than the chord.” Conversely, at the left end $\nu\to N^+$ of the interval $[N,\,N{+}1]$, the tangent is steeper than the chord, so $\varepsilon_{\mathrm{CBM}}\lt-A$, and the CBM is too deep (too low). Since the band edges narrow the gap from both sides, the underestimation is unavoidable. The systematic underestimation in Table 10.2 and $\Delta_{xc}\equiv0$ (the previous box) are two manifestations of the single fact that “$E(\nu)$ is convex.”
- HF (concave) → the gap is always overestimated. It suffices to turn the same argument upside down. The tangent at $\nu\to N^-$ is steeper than the chord, so $\varepsilon_{\mathrm{HOMO}}\lt-I$ (the occupied level is too deep), and the tangent at $\nu\to N^+$ is gentler than the chord, so $\varepsilon_{\mathrm{LUMO}}\gt-A$ (the empty level is too shallow). Because the band edges open outward on both sides, the gap always comes out too large. Indeed, the HF band gap reaches several times the experimental value: more than 6 eV for Si (experiment: 1.17 eV) and about 15 eV for diamond (experiment: 5.48 eV). The fact that Koopmans' theorem in Chapter 5 gave the ionization energy $-\varepsilon_{\mathrm{HOMO}}^{\mathrm{HF}}\ge I$ “neglecting orbital relaxation” and the statement here that “the HOMO is too deep” have the same content.
The physical origins are also contrasting. The convexity of LDA/GGA is a remnant of the self-interaction error—because an electron repels itself, it is advantageous to dilute the charge into fractions and spread it out—whereas the concavity of HF is the lack of screening—the cost of adding or removing an electron is estimated with the bare Coulomb interaction, which does not include the response (screening) of the other electrons.
This viewpoint also bears directly on understanding the remedies. The reason hybrid functionals (Chapter 11) improve the gap is that mixing convex LDA/GGA with concave HF partially cancels the curvature, so that $E(\nu)$ approaches a piecewise-linear curve. The correction term $\frac{U}{2}\sum_i n_i(1-n_i)$ of DFT+U (Chapter 11) can likewise be read as penalizing fractional occupation and pulling the convex curve back toward a straight line.
Caution: The three meanings of the word “band gap”
- Fundamental gap $E_g=I-A$: the difference between the energies required to remove one electron and to add one electron. It is measured by combining photoelectron spectroscopy and inverse photoelectron spectroscopy. This is the quantity discussed above.
- KS gap $E_g^{\mathrm{KS}}=\varepsilon_{\mathrm{LUMO}}-\varepsilon_{\mathrm{HOMO}}$: the quantity reported as the “band gap” in calculations. It is smaller than the fundamental gap by $\Delta_{xc}$.
- Optical gap: the threshold of optical absorption. It is smaller than the fundamental gap by the amount by which an electron and a hole attract each other to form a bound state (an exciton). KS calculations do not include this effect, so $E_g^{\mathrm{KS}}$ sometimes “looks close to” the experimental optical gap, but this is an accidental cancellation of two errors ($-\Delta_{xc}$ and $-E_{\mathrm{exciton}}$) and not a justification.
10.8 Summary, Exercises, and References
10.8.1 Summary
- Motivation for the KS strategy. The failure of the TF model is due to the local approximation of the kinetic energy, one of the largest terms in the total energy (about 7% for Ar, an error of $\sim37$ Ha, more than 100 times the chemical bonding energy). The kinetic energy depends on information that cannot be read from the local value of the density alone (shell structure, nodes, orbital orthogonality), so it has no alternative but to be evaluated through orbitals.
- The auxiliary system. We introduce a non-interacting system (the KS system) in a local potential $v_s$ that has the same ground-state density as the interacting system. Its kinetic energy $T_s=\sum_i\int\phi_i^*(-\frac12\nabla^2)\phi_i$ can be computed exactly from the orbital expression. No explicit expression of $T_s$ in terms of $\rho$ is needed.
- The exact decomposition. $E[\rho]=T_s[\rho]+\int v\rho+E_{\mathrm{H}}[\rho]+E_{xc}[\rho]$ (Eq. \eqref{eq:10-ks-decomp}). Here $E_{xc}\equiv(T-T_s)+(V_{ee}-E_{\mathrm{H}})$ is defined as “everything else,” and no approximation enters this decomposition. The only unknown is $E_{xc}$, whose magnitude is at most a few percent of the total energy—isolating the object of approximation is the design philosophy of the KS method.
- The KS equations. Varying the orbitals under the orthonormality constraint gives the non-canonical form $\hat h_{\mathrm{KS}}\phi_i=\sum_l\varepsilon_{li}\phi_l$; from the Hermiticity of the multiplier matrix and the unitary invariance of the occupied orbitals, we arrive at the canonical form $\bigl[-\frac12\nabla^2+v_{\mathrm{eff}}\bigr]\phi_i=\varepsilon_i\phi_i$, $v_{\mathrm{eff}}=v+v_{\mathrm{H}}+v_{xc}$, $v_{xc}=\delta E_{xc}/\delta\rho$ (Eq. \eqref{eq:10-ks-equation}). The fact that $v_{\mathrm{eff}}$ is a local potential is the decisive difference from the HF method.
- Consistency from the density side. Matching the Euler equations of the interacting and non-interacting systems identifies $v_s=v_{\mathrm{eff}}$ (up to a constant), confirming that orbital variation and density variation give the same solution. However, this argument rests on the assumption of $v_s$-representability, that “a non-interacting system reproducing $\rho$ exists,” and in that sense the KS method is an ansatz, not a theorem.
- The total energy. $E=\sum_i\varepsilon_i-E_{\mathrm{H}}-\int v_{xc}\rho+E_{xc}$ (Eq. \eqref{eq:10-etot-final}). The sum of the eigenvalues counts the electron–electron interaction twice, so by itself it is not the total energy.
- The SCF loop. The KS equations are a fixed-point problem $\rho_{\mathrm{out}}=\mathcal{K}[\rho_{\mathrm{in}}]$, solved by iteration with density mixing. A density or energy that has not converged has no variational meaning.
- Spin polarization. Taking $\rho^\uparrow,\rho^\downarrow$ as independent variables gives the KS equations \eqref{eq:10-spin-ks} for each spin channel. $v_{\mathrm{H}}$ is common, and only $v_{xc}^\sigma$ depends on spin; this difference is the origin of the exchange splitting. It is essential for magnetic metals, odd-electron systems, and open-shell molecules.
- The meaning of the eigenvalues. Although $\varepsilon_i$ entered as an auxiliary quantity, a Lagrange multiplier, it has a definite meaning through Janak's theorem $\partial E/\partial n_i=\varepsilon_i$ (it is a derivative and not the energy of one electron). For the exact functional, $\varepsilon_{\mathrm{HOMO}}=-I$ holds exactly because $E(\nu)$ is piecewise linear. Practical evaluation of the ionization energy is by $\Delta$SCF (two calculations) or by Slater's transition state (half occupation; error $\varepsilon_i''/24$ by the midpoint rule).
- The gap problem. $E_g=E_g^{\mathrm{KS}}+\Delta_{xc}$. The discontinuity $\Delta_{xc}$ of the functional derivative is a spatially uniform constant that exists even for the exact functional, and since LDA/GGA are smooth density functionals, $\Delta_{xc}\equiv0$. The systematic underestimation of band gaps stems not only from the insufficient accuracy of the functionals but also from the structure of the KS formalism. The direction of the error can be read from the curvature of $E(\nu)$ in Figure 10.3: convex LDA/GGA underestimates, concave HF overestimates, and hybrid functionals, which mix the two, improve the gap through the cancellation of curvature (Section 10.7.6).
A bridge to the next chapter. The framework obtained in this chapter is a clear division of labor: “an exact formalism + all approximations concentrated in $E_{xc}[\rho]$.” The form of the equations, the expression for the total energy, and the SCF procedure have all been fixed without any reference to what $E_{xc}$ actually is. Conversely, the accuracy of a DFT calculation is determined solely by the quality of the approximation to $E_{xc}$. In Chapter 11 we finally step into this last unknown term: the local density approximation (LDA), which brings the exact results for the homogeneous electron gas (Chapter 7) in locally; the reason it works better than expected (the sum rule of the exchange-correlation hole); the generalized gradient approximation (GGA), which incorporates the density gradient; and, finally, hybrid functionals, which mix in exact exchange.
10.8.2 Exercises
Exercise 10.1: Janak's theorem for spin-polarized systems
In the framework of spin-density functional theory in Section 10.6, generalize the occupation numbers to $n_{i\sigma}$ ($\sigma=\uparrow,\downarrow$), and let $\rho^\sigma=\sum_i n_{i\sigma}\abs{\phi_{i\sigma}}^2$ and $\rho=\rho^\uparrow+\rho^\downarrow$. Show, following the derivation in Section 10.7.3, that
$$ \frac{\partial E}{\partial n_{i\sigma}}=\varepsilon_{i\sigma} $$holds.
Hint: In the partial derivative with the orbitals held fixed, $\partial\rho^{\sigma'}/\partial n_{i\sigma}=\delta_{\sigma\sigma'}\abs{\phi_{i\sigma}}^2$ and $\partial\rho/\partial n_{i\sigma}=\abs{\phi_{i\sigma}}^2$. Since $E_{\mathrm{H}}$ and $\int v\rho$ depend only on the total density $\rho$, $v_{\mathrm{H}}$ and $v$ appear as they are, and $v_{xc}^\sigma=\delta E_{xc}/\delta\rho^\sigma$ appears from $E_{xc}$. Adding them up builds $v_{\mathrm{eff}}^\sigma$. The argument by which the implicit terms vanish (the normalization condition holds independently of $n_{i\sigma}$) can be used as it is.
Exercise 10.2: When the transition-state approximation becomes exact
(1) When the total energy is given by a quadratic in the occupation number $n_i$, $E(n_i)=an_i^2+bn_i+c$, find $\varepsilon_i(n_i)$ from Janak's theorem and show that Slater's transition-state approximation $I_i=-\varepsilon_i(1/2)$ holds exactly.
(2) For the same quadratic, verify that the $\Delta$SCF value $E(0)-E(1)$ agrees with the transition-state value.
(3) Express the errors of the Koopmans-type $-\varepsilon_i(1)$ and of the endpoint average $-\frac12[\varepsilon_i(0)+\varepsilon_i(1)]$ in terms of $a$.
Hint: (1) Since $\varepsilon_i(n)=2an+b$ is a linear function of $n$, $\int_0^1\varepsilon_i\dd n$ equals the midpoint value. (3) Since $\varepsilon_i''=0$, the error estimates in the main text ($-\frac{1}{12}\varepsilon_i''$ and $+\frac{1}{24}\varepsilon_i''$) imply that both the endpoint average and the midpoint rule should be exact—confirm this by actually computing. On the other hand, the Koopmans-type value underestimates $I_i$ by $a$ ($a\gt0$ corresponds to $E(n_i)$ being convex, and this $a$ corresponds to the orbital relaxation energy).
Exercise 10.3: Constant shift of the potential
When the external potential is changed as $v(\rr)\to v(\rr)+C$ ($C$ is a constant), show the following.
(1) The self-consistent density $\rho$ does not change, and only the eigenvalues shift as $\varepsilon_i\to\varepsilon_i+C$.
(2) Using the expression \eqref{eq:10-etot-final} for the total energy, we obtain $E\to E+NC$, which agrees with the direct evaluation $\int(v+C)\rho=\int v\rho+NC$.
Hint: (1) Adding a constant does not change the eigenfunctions, so the density is unchanged. If the density is unchanged, neither $v_{\mathrm{H}}$ nor $v_{xc}$ changes, and self-consistency is maintained. (2) Of the four terms of Eq. \eqref{eq:10-etot-final}, only $\sum_i\varepsilon_i$ changes, and each of the $N$ eigenvalues shifts by $C$. This exercise also serves as a check of the statement in Section 10.3.2 that “the constant $\mu_s-\mu$ may be discarded.”
Exercise 10.4: Dissociation of $\mathrm{H}_2^+$ and the delocalization error
Write the total energy of a single hydrogen atom as a function of the number of electrons $\nu\in[0,1]$ as $E_{\mathrm{at}}(\nu)$ ($E_{\mathrm{at}}(0)=0$, $E_{\mathrm{at}}(1)=-0.5$ Ha). In the limit where $\mathrm{H}_2^+$ is pulled infinitely far apart, there is a degree of freedom in distributing a total of one electron between the two atoms as $\nu$ and $1-\nu$.
(1) Using the fact that for the exact functional $E_{\mathrm{at}}(\nu)$ is a linear function of $\nu$ (the piecewise-linear curve in Figure 10.3), show that the total energy $E_{\mathrm{at}}(\nu)+E_{\mathrm{at}}(1-\nu)$ is independent of $\nu$. That is, $(1,0)$ and $(0.5,0.5)$ are degenerate.
(2) For an approximate functional, $E_{\mathrm{at}}(\nu)$ is a smooth convex curve. Show from the definition of convexity that in this case the configuration $\nu=1/2$ has a lower energy than the configuration $\nu=1$.
(3) Explain in about 100 words (roughly 200 Japanese characters) how the result of (2) accounts for the failure of the dissociation curve of $\mathrm{H}_2^+$ in LDA/GGA (the energy does not converge to the correct dissociation limit even when the bond length is stretched).
Hint: (2) Applying the definition of a convex function, $E(\lambda x_1+(1-\lambda)x_2)\le\lambda E(x_1)+(1-\lambda)E(x_2)$, to $x_1=1$, $x_2=0$, $\lambda=1/2$ gives $E_{\mathrm{at}}(1/2)\le\frac12E_{\mathrm{at}}(1)$. Multiply this by two. (3) It is also good to mention that an error arises even though this is a one-electron system (the self-interaction error; see the Caution in Section 10.1).
10.8.3 References
- P. Hohenberg and W. Kohn, Inhomogeneous Electron Gas, Phys. Rev. 136, B864 (1964). —The starting point of DFT (Chapter 9).
- W. Kohn and L. J. Sham, Self-Consistent Equations Including Exchange and Correlation Effects, Phys. Rev. 140, A1133 (1965). —The subject of this chapter. The original paper on the KS equations.
- M. Levy, 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, 6062 (1979). —Constrained search (the approach of Eq. \eqref{eq:10-ts-levy}).
- J. F. Janak, Proof that $\partial E/\partial n_i=\varepsilon_i$ in density-functional theory, Phys. Rev. B 18, 7165 (1978). —The original paper on the theorem in Section 10.7.3.
- J. P. Perdew, R. G. Parr, M. Levy, and J. L. Balduz, Jr., Density-Functional Theory for Fractional Particle Number: Derivative Discontinuities of the Energy, Phys. Rev. Lett. 49, 1691 (1982). —Ensemble DFT, the piecewise linearity of $E(\nu)$, and $\varepsilon_{\mathrm{HOMO}}=-I$.
- U. von Barth and L. Hedin, A local exchange-correlation potential for the spin polarized case, J. Phys. C: Solid State Phys. 5, 1629 (1972). —Spin-density functional theory (Section 10.6).
- J. P. Perdew and M. Levy, Physical Content of the Exact Kohn-Sham Orbital Energies: Band Gaps and Derivative Discontinuities, Phys. Rev. Lett. 51, 1884 (1983).
- L. J. Sham and M. Schlüter, Density-Functional Theory of the Energy Gap, Phys. Rev. Lett. 51, 1888 (1983). —Published simultaneously with [7]. The origin of Eq. \eqref{eq:10-gap-key}.
- J. C. Slater, Quantum Theory of Molecules and Solids, Vol. 4: The Self-Consistent Field for Molecules and Solids (McGraw-Hill, 1974). —The transition-state method.
- C.-O. Almbladh and U. von Barth, Exact results for the charge and spin densities, exchange-correlation potentials, and density-functional eigenvalues, Phys. Rev. B 31, 3231 (1985). —The asymptotic form $v_{xc}\to-1/r$ and $\varepsilon_{\mathrm{HOMO}}=-I$.
- D. E. Eastman, F. J. Himpsel, and J. A. Knapp, Experimental Exchange-Split Energy-Band Dispersions for Fe, Co, and Ni, Phys. Rev. Lett. 44, 95 (1980). —Comparison of ARPES and calculations for 3d transition metals.
- R. G. Parr and W. Yang, Density-Functional Theory of Atoms and Molecules (Oxford University Press, 1989). —A standard textbook oriented toward chemistry. It gives a detailed account of Janak's theorem and the transition state.
- R. M. Dreizler and E. K. U. Gross, Density Functional Theory: An Approach to the Quantum Many-Body Problem (Springer, 1990). —A mathematically rigorous treatment. Discusses $v$-representability.
- R. M. Martin, Electronic Structure: Basic Theory and Practical Methods (Cambridge University Press, 2004). —A standard textbook oriented toward solid-state physics. It covers the entire scope of this chapter.