Basharat WantPhysics · University of Kashmir
Menu

DFT Learning Centre · Foundations

Module 3: Hartree, Exchange–Correlation & Double Counting

Derive the total Kohn–Sham energy functional and avoid double-counting electrostatic and XC terms.

Analytic resultDerived in closed form from exact mathematical definitions without numerical approximation.

Etot=∑ifiεi−EH[n]+Exc[n]−∫n(r) vxc(r) drE_{\mathrm{tot}} = \sum_i f_i\varepsilon_i - E_H[n] + E_{xc}[n] - \int n(\mathbf{r})\,v_{xc}(\mathbf{r})\,d\mathbf{r}

1. Physical Motivation & Context

Summing the occupied Kohn–Sham eigenvalues Sum_i f_i epsilon_i does NOT equal the total electronic energy. Because v_H[n] = int n(r')/|r-r'| dr' counts each electron–electron pair twice in Sum_i f_i <psi_i|v_H|psi_i> = 2 E_H[n], and v_xc is a functional derivative rather than an energy density, exact double-counting corrections are mandatory.

2. Mathematical Formulation & Derivations

Expressing T_s via Eigenvalues

Taking the expectation value of the Kohn–Sham Hamiltonian over each occupied orbital and summing with occupations f_i:

∑ifiεi=Ts[n]+∫n(r) vext(r) dr+2EH[n]+∫n(r) vxc(r) dr\sum_i f_i \varepsilon_i = T_s[n] + \int n(\mathbf{r})\,v_{\mathrm{ext}}(\mathbf{r})\,d\mathbf{r} + 2 E_H[n] + \int n(\mathbf{r})\,v_{xc}(\mathbf{r})\,d\mathbf{r}

Exact Total-Energy Identity

Substituting T_s[n] into E_tot = T_s + E_ext + E_H + E_xc + E_nn eliminates T_s and leaves the Harris–Foulkes / Kohn–Sham double-counting form:

Etot=∑ifiεi−12∬n(r)n(r′)∣r−r′∣ dr dr′+Exc[n]−∫n(r) vxc(r) dr+EnnE_{\mathrm{tot}} = \sum_i f_i \varepsilon_i - \frac{1}{2}\iint \frac{n(\mathbf{r})n(\mathbf{r}')}{|\mathbf{r}-\mathbf{r}'|}\,d\mathbf{r}\,d\mathbf{r}' + E_{xc}[n] - \int n(\mathbf{r})\,v_{xc}(\mathbf{r})\,d\mathbf{r} + E_{\mathrm{nn}}

3. Key Theorems, Exact Limits & Consequences

  • Harris–Foulkes Functional: When evaluated at input/output densities, the double-counting term cancels first-order density errors, accelerating energy convergence quadratically relative to linear density error.
  • Self-Interaction Error (SIE): For a 1-electron system, exact E_H + E_xc = 0, but approximate functionals leave a spurious residual self-Hartree energy.

4. Numerical Implementation & Quantum ESPRESSO Practice

In pw.x output, the final "! total energy" prints the sum of one-electron, Hartree, XC, Ewald (ion-ion), and smearing (-TS) contributions in Rydberg (1 Ry = 13.605693 eV).

Interactive workspace: DFT Results Inspector →

5. Quantitative Sanity Check

In the 1D Kohn–Sham solver, E_kin is recovered from sum(f_i eps_i) - E_ext - int n v_H_in - int n v_xc, and verified against E_tot = T_s + E_ext + E_H + E_xc.

References

  • W. Kohn and L. J. Sham, Phys. Rev. 140, A1133 (1965).
  • J. Harris, Phys. Rev. B 31, 1770 (1985).