The Hartree-Fock Energy and Fock Operator

A helium atom has two electrons that despise each other's company. Yet chemistry demands a single number: its ground-state energy. Write down the exact Hamiltonian. The electron-electron repulsion term 1/r121/r_{12} refuses to separate into a sum of one-electron pieces. The Schrödinger equation for anything beyond hydrogen has no closed form. The Hartree-Fock method is the oldest and still most instructive answer to this impasse. It replaces the impossible many-body repulsion with an averaged, self-consistent field. Each electron feels this field from all the others. It also respects the Pauli principle. It does so by building the wavefunction as a single Slater determinant. This matters because nearly every "off-the-shelf" quantum chemistry calculation begins from the Hartree-Fock reference. This includes geometry optimizations in a drug-design pipeline. It includes vibrational frequencies for spectroscopic assignment. It also includes the starting orbitals fed into a coupled-cluster or DFT calculation. These calculations often are benchmarked against Hartree-Fock too. Understanding where the Hartree-Fock energy expression comes from matters greatly. So does understanding why it splits into one-electron, Coulomb (J), and exchange (K) integrals. This understanding is the difference between treating a computational output as a black box. It is also the difference toward actually understanding what "mean-field" means for electron correlation. The big picture is a controlled trade. We give up the exact correlated motion of electrons. In exchange, we get a problem we can actually solve. This is a set of coupled one-electron eigenvalue equations, the Hartree-Fock equations. They are governed by an effective one-electron operator called the Fock operator. That operator is not fixed in advance. It depends on the very orbitals it is meant to determine. This is why solving it requires an iterative, self-consistent loop. This article derives the Hartree-Fock energy expression from a single Slater determinant. It uses the variational principle to do so. It shows exactly how the Coulomb and exchange integrals arise from the antisymmetry of the wavefunction. It also constructs the Fock operator from the stationarity condition on that energy. By the end you will be able to write the closed-shell restricted Hartree-Fock energy expression from memory. You will be able to explain physically why exchange integrals are always non-negative. You will understand why they exist only between same-spin electrons. You will see precisely how minimizing ⟨Ψ∣H^∣Ψ⟩\langle \Psi | \hat H | \Psi\rangle over orbitals generates an eigenvalue problem. This minimization is subject to orthonormality. That eigenvalue problem seeds The Self-Consistent-Field Procedure. Once expanded in a basis, it also seeds The Roothaan-Hall Equations.

Key takeaways
  • The HF wavefunction is a single Slater determinant of spin-orbitals; its energy is a functional of those orbitals, not a fixed number.
  • Applying the variational principle to ⟨Ψ∣H^∣Ψ⟩\langle\Psi|\hat H|\Psi\rangle for a determinant produces one-electron, Coulomb (JJ), and exchange (KK) integrals — no more, no fewer.
  • Coulomb integrals JijJ_{ij} are classical charge-cloud repulsions; exchange integrals KijK_{ij} arise purely from antisymmetry and exist only between same-spin electrons.
  • Minimizing the energy subject to orbital orthonormality (Lagrange multipliers) yields the Hartree-Fock eigenvalue equations f^ ϕi=εiϕi\hat f\,\phi_i = \varepsilon_i \phi_i.
  • The Fock operator f^\hat f is a one-electron effective Hamiltonian containing a mean-field Coulomb-minus-exchange potential built from all occupied orbitals.
  • Because f^\hat f depends on the orbitals it produces, the equations must be solved iteratively — this circularity is the entire reason the self-consistent-field method exists.
  • Key idea: replacing electron-electron repulsion with a self-consistent average field turns an unsolvable many-body problem into a solvable one-electron eigenvalue problem, at the cost of neglecting instantaneous electron correlation.

Where this lives today

Every major quantum chemistry package — Gaussian, ORCA, Psi4, Q-Chem, NWChem — offers Hartree-Fock as both a standalone method and the mandatory first step of virtually every more accurate calculation. In drug discovery, HF-optimized geometries and vibrational frequencies (scaled by empirical factors to correct for missing correlation) remain a fast, reliable screening tool before committing to expensive coupled-cluster or high-level DFT refinement on lead compounds. In materials science, unrestricted Hartree-Fock (UHF) and its periodic-boundary generalizations provide qualitative starting points for studying open-shell defects and radical sites in extended solids, later corrected by post-HF or hybrid-functional treatments. The Fock operator's Coulomb-minus-exchange structure survives, in modified form, inside every hybrid density functional (B3LYP, PBE0, and their relatives) as the fraction of "exact exchange" mixed with a density-functional exchange-correlation term — meaning that the exchange integral KijK_{ij} derived here is not a historical curiosity but a live ingredient recomputed in essentially every DFT calculation run today in biochemistry, catalysis, and photovoltaic materials design. Koopmans'-theorem estimates of ionization energies from HF orbital energies remain a fast qualitative tool in mass spectrometry and photoelectron spectroscopy interpretation, despite their known systematic errors from neglected orbital relaxation and correlation. Finally, the entire machinery of post-Hartree-Fock methods — Møller-Plesset perturbation theory, configuration interaction, and coupled-cluster theory — is explicitly built by treating the difference between the true wavefunction and the single Hartree-Fock determinant as the object to be systematically corrected, making the derivation above the literal starting point of the electron-correlation problem in modern computational chemistry.

Ask the tutor: How does expanding the molecular orbitals in an atomic-orbital basis turn the Fock eigenvalue equation into the matrix form used in the Roothaan-Hall equations?

The physical picture

Consider an NN-electron molecule under the Born–Oppenheimer clamped-nuclei Hamiltonian,

H^=∑i=1Nh^(i)+∑i<jN1rij\hat H = \sum_{i=1}^{N}\hat h(i) + \sum_{i<j}^{N}\frac{1}{r_{ij}}

where h^(i)=−12∇i2−∑AZA/riA\hat h(i) = -\tfrac12\nabla_i^2 - \sum_A Z_A/r_{iA} (atomic units) is the one-electron kinetic-plus-nuclear-attraction operator for electron ii. The pairwise sum over 1/rij1/r_{ij} is the entire difficulty: it couples every electron to every other electron and makes the Schrödinger equation for H^\hat H separable in no useful basis. Hartree-Fock theory approximates the true many-electron wavefunction by a single Slater determinant built from NN orthonormal spin-orbitals χ1,…,χN\chi_1,\dots,\chi_N,

Ψ=1N!det⁡[χ1(1)χ2(2)⋯χN(N)]\Psi = \frac{1}{\sqrt{N!}}\det\big[\chi_1(1)\chi_2(2)\cdots\chi_N(N)\big]

This form guarantees antisymmetry under electron exchange — swapping two electrons swaps two rows of the determinant and flips its sign, enforcing the Pauli exclusion principle automatically. The physical content of Hartree-Fock theory is entirely in the choice of the spin-orbitals χi\chi_i: they are variationally optimized so that ⟨Ψ∣H^∣Ψ⟩\langle\Psi|\hat H|\Psi\rangle is as low as possible. When you expand ⟨Ψ∣H^∣Ψ⟩\langle\Psi|\hat H|\Psi\rangle for a determinant, the antisymmetrized wavefunction naturally produces three types of matrix elements: one-electron integrals (kinetic energy + nuclear attraction for each occupied orbital), Coulomb integrals JijJ_{ij} (the classical electrostatic repulsion between the charge clouds ∣χi∣2|\chi_i|^2 and ∣χj∣2|\chi_j|^2), and exchange integrals KijK_{ij} (a purely quantum-mechanical, no-classical-analog term arising because the determinant's antisymmetry correlates the positions of same-spin electrons — they are less likely to be found close together than an uncorrelated product wavefunction would predict). Exchange terms only connect orbitals of the same spin; there is no exchange between an α\alpha electron and a β\beta electron because their spin functions are orthogonal and the spin integration simply kills the term. Physically, each electron in Hartree-Fock theory does not feel the instantaneous positions of the other N−1N-1 electrons — it feels their time-averaged charge density, smeared into a mean field, corrected by an exchange "hole" that keeps same-spin electrons apart. This mean-field electron then obeys a one-electron Schrödinger-like equation, with the Fock operator f^\hat f playing the role of an effective Hamiltonian. Because f^\hat f is built from the very orbitals it's supposed to produce as eigenfunctions, the problem is implicit — solved by guessing orbitals, building f^\hat f, diagonalizing it, getting new orbitals, and repeating until the orbitals stop changing (self-consistency).

Figure
Coulomb vs. exchange: the physical origin of J and K
Two electrons in orbitals φᵢ, φⱼ — classical repulsion vs. antisymmetry correction |φᵢ(1)|² |φⱼ(2)|² J_ij = ∬ |φᵢ(1)|² (1/r₁₂) |φⱼ(2)|² dτ₁dτ₂ classical charge-cloud repulsion, always present φᵢ*(1)φⱼ(1) φⱼ*(2)φᵢ(2) K_ij = ∬ φᵢ*(1)φⱼ(1) (1/r₁₂) φⱼ*(2)φᵢ(2) dτ no classical analog; requires same spin; K_ij ≥ 0 antisymmetrize
Figure
From energy functional to the Fock eigenvalue equation
Variational minimization under orthonormality constraint E[{φᵢ}] = Σ hᵢᵢ + ½Σ(J_ij−K_ij) → δE − Σεᵢⱼ δ⟨φᵢ|φⱼ⟩ = 0 Lagrange multipliers εᵢⱼ → f̂ φᵢ = εᵢ φᵢ canonical HF eqns f̂(1) = ĥ(1) + Σⱼ [ Ĵⱼ(1) − K̂ⱼ(1) ] sum over occupied orbitals j — f̂ depends on the orbitals it determines

The core ideas

The Slater-determinant energy expression. For a normalized Slater determinant of orthonormal spin-orbitals χ1,…,χN\chi_1,\dots,\chi_N, the expectation value of the electronic Hamiltonian is

EHF=⟨Ψ∣H^∣Ψ⟩=∑i=1Nhi+12∑i=1N∑j=1N(Jij−Kij)E_{\rm HF} = \langle\Psi|\hat H|\Psi\rangle = \sum_{i=1}^{N} h_i + \frac12\sum_{i=1}^{N}\sum_{j=1}^{N}\big(J_{ij}-K_{ij}\big)

where:

  • hi=⟨χi(1)∣h^(1)∣χi(1)⟩h_i = \langle \chi_i(1)|\hat h(1)|\chi_i(1)\rangle is the one-electron energy (kinetic + nuclear attraction) of orbital ii,
  • Jij=∬∣χi(1)∣2 1r12 ∣χj(2)∣2 dτ1dτ2J_{ij} = \displaystyle\iint |\chi_i(1)|^2\,\frac{1}{r_{12}}\,|\chi_j(2)|^2\,d\tau_1 d\tau_2 is the Coulomb integral between charge densities ii and jj,
  • Kij=∬χi∗(1)χj(1) 1r12 χj∗(2)χi(2) dτ1dτ2K_{ij} = \displaystyle\iint \chi_i^*(1)\chi_j(1)\,\frac{1}{r_{12}}\,\chi_j^*(2)\chi_i(2)\,d\tau_1 d\tau_2 is the exchange integral, nonzero only when i,ji,j share the same spin,
  • the 12\tfrac12 prefactor avoids double-counting each electron pair, and the i=ji=j terms cancel exactly since Jii=KiiJ_{ii}=K_{ii} (an electron does not repel or exchange with itself).

Reading: the total electronic energy is the sum of each electron's kinetic and nuclear-attraction energy, plus the average electron-electron repulsion energy, which itself splits into a purely classical Coulomb piece and a purely quantum-mechanical antisymmetry correction (exchange) that lowers the energy relative to same-spin Coulomb repulsion alone.

The closed-shell (restricted) form. For a closed-shell molecule with N=2nN=2n electrons doubly occupying nn spatial orbitals ψ1,…,ψn\psi_1,\dots,\psi_n, spin integration collapses the sum over spin-orbitals into a sum over spatial orbitals:

ERHF=2∑a=1nha+∑a=1n∑b=1n(2Jab−Kab)E_{\rm RHF} = 2\sum_{a=1}^{n} h_a + \sum_{a=1}^{n}\sum_{b=1}^{n}\big(2J_{ab}-K_{ab}\big)

where:

  • the factor of 2 in front of hah_a counts both spin electrons in each spatial orbital,
  • JabJ_{ab} and KabK_{ab} are now Coulomb and exchange integrals over spatial orbitals,
  • the 2Jab−Kab2J_{ab}-K_{ab} combination reflects that both spin pairs (αα, ββ, αβ, βα) contribute Coulomb repulsion, but only the two same-spin combinations (αα and ββ) contribute exchange.

Reading: this is the working formula programmed into every closed-shell Hartree-Fock code; note that exchange enters with coefficient 1 (not 2), since only same-spin pairs exchange, while Coulomb enters with coefficient 2 because both spin channels repel classically.

The Fock operator. Minimizing EHFE_{\rm HF} subject to orbital orthonormality ⟨χi∣χj⟩=δij\langle\chi_i|\chi_j\rangle=\delta_{ij} (via Lagrange multipliers) yields a one-electron eigenvalue equation for each orbital, which after a unitary transformation to canonical orbitals reads

f^(1) χi(1)=εi χi(1),f^(1)=h^(1)+∑j=1N[J^j(1)−K^j(1)]\hat f(1)\,\chi_i(1) = \varepsilon_i\,\chi_i(1), \qquad \hat f(1) = \hat h(1) + \sum_{j=1}^{N}\Big[\hat J_j(1) - \hat K_j(1)\Big]

where:

  • f^\hat f is the Fock operator, an effective one-electron Hamiltonian,
  • J^j(1)\hat J_j(1) is the Coulomb operator, defined by its action J^j(1)χi(1)=[∫∣χj(2)∣2 r12−1 dτ2]χi(1)\hat J_j(1)\chi_i(1) = \Big[\int |\chi_j(2)|^2\, r_{12}^{-1}\,d\tau_2\Big]\chi_i(1) — a local multiplicative potential,
  • K^j(1)\hat K_j(1) is the exchange operator, defined by its (nonlocal) action K^j(1)χi(1)=[∫χj∗(2) r12−1 χi(2) dτ2]χj(1)\hat K_j(1)\chi_i(1) = \Big[\int \chi_j^*(2)\,r_{12}^{-1}\,\chi_i(2)\,d\tau_2\Big]\chi_j(1) — it swaps the argument of χi\chi_i into the integral and returns χj\chi_j,
  • εi\varepsilon_i is the orbital energy, the Lagrange multiplier associated with normalization, later reinterpreted via Koopmans' theorem as (approximately) minus the ionization energy from orbital ii.

Reading: every electron moves in the field of the frozen nuclei plus the averaged Coulomb and exchange field of all NN occupied orbitals — including itself, which is why the self-interaction in JiiJ_{ii} must be exactly cancelled by KiiK_{ii} for the equations to be physically sensible.

Derivation AFrom the Slater determinant to the energy expression

Goal: show explicitly that ⟨Ψ∣H^∣Ψ⟩\langle\Psi|\hat H|\Psi\rangle for a Slater determinant contains exactly one-electron terms, Coulomb terms, and exchange terms — nothing else.

Step 1 — Write the determinant as an antisymmetrized product. Define the antisymmetrizer A^=1N!∑P(−1)pP^\hat A = \frac{1}{\sqrt{N!}}\sum_P (-1)^p \hat P, summing over all N!N! permutations PP of electron labels with parity pp. Then Ψ=A^ [χ1(1)χ2(2)⋯χN(N)]\Psi = \hat A\,[\chi_1(1)\chi_2(2)\cdots\chi_N(N)]. Since A^\hat A is idempotent up to a normalization (A^†A^=N! A^\hat A^\dagger \hat A = \sqrt{N!}\,\hat A) and commutes with the symmetric operator H^\hat H, matrix elements reduce to

⟨Ψ∣H^∣Ψ⟩=∑P(−1)p⟨χ1(1)⋯χN(N)∣H^∣χP(1)(1)⋯χP(N)(N)⟩\langle\Psi|\hat H|\Psi\rangle = \sum_P (-1)^p \langle \chi_1(1)\cdots\chi_N(N)|\hat H|\chi_{P(1)}(1)\cdots\chi_{P(N)}(N)\rangle

Step 2 — Isolate the one-electron part. H^\hat H's one-electron piece ∑ih^(i)\sum_i \hat h(i) only connects the identity permutation to itself for each electron's coordinate — any permutation that moves electron ii's orbital to a different slot makes the other N−1N-1 orbital overlaps vanish by orthonormality. This leaves

⟨Ψ∣∑ih^(i)∣Ψ⟩=∑i=1N⟨χi∣h^∣χi⟩=∑ihi\Big\langle\Psi\Big|\sum_i \hat h(i)\Big|\Psi\Big\rangle = \sum_{i=1}^N \langle\chi_i|\hat h|\chi_i\rangle = \sum_i h_i

Step 3 — Isolate the two-electron part. The interaction ∑i<jrij−1\sum_{i<j} r_{ij}^{-1} involves only coordinates 1 and 2 (relabeled), so the sum over permutations survives only for the identity and the single transposition of electrons i↔ji \leftrightarrow j — every other permutation again kills the overlap of some unpermuted orbital pair by orthonormality. This gives, for each pair (i,j)(i,j),

⟨χiχj∣r12−1∣χiχj⟩−⟨χiχj∣r12−1∣χjχi⟩=Jij−Kij\langle\chi_i\chi_j|r_{12}^{-1}|\chi_i\chi_j\rangle - \langle\chi_i\chi_j|r_{12}^{-1}|\chi_j\chi_i\rangle = J_{ij} - K_{ij}

The first term is the direct (Coulomb) integral; the second, arising from the antisymmetrizing transposition, is the exchange integral, and it carries a minus sign because the transposition is an odd permutation.

Step 4 — Assemble and remove double counting. Summing over all distinct pairs i<ji<j and multiplying by 2 to write it as an unrestricted double sum (equivalently, summing over all i,ji,j and dividing by 2):

EHF=∑i=1Nhi+12∑i=1N∑j=1N(Jij−Kij)E_{\rm HF} = \sum_{i=1}^N h_i + \frac12\sum_{i=1}^N\sum_{j=1}^N (J_{ij}-K_{ij})

The i=ji=j terms in the double sum automatically vanish because Jii=KiiJ_{ii} = K_{ii} by direct substitution of the integral definitions — a mathematically forced statement that an electron does not self-interact in Hartree-Fock theory, despite J^i\hat J_i and K^i\hat K_i individually appearing in the sum defining f^\hat f.

Step 5 — Spin integration for closed shells. Each spatial orbital ψa\psi_a is doubly occupied by spin-orbitals χaα=ψaα\chi_{a\alpha}=\psi_a\alpha and χaβ=ψaβ\chi_{a\beta}=\psi_a\beta. Carrying out the spin integrals: Coulomb integrals survive for all four spin combinations of a pair (a,b)(a,b) since JJ contains no spin-dependence beyond normalization of the spin functions (⟨α∣α⟩=⟨β∣β⟩=1\langle\alpha|\alpha\rangle=\langle\beta|\beta\rangle=1), giving a total weight of 4 (reduced to 2Jab2J_{ab} per distinct orbital pair after the 12\tfrac12 prefactor and doubling for a≠ba\ne b ordering). Exchange integrals require matching spin in both bra and ket factors, so only the αα\alpha\alpha and ββ\beta\beta combinations survive — weight 2, giving −Kab-K_{ab} (not −2Kab-2K_{ab}). This produces exactly the earlier restricted formula

ERHF=2∑aha+∑a,b(2Jab−Kab)E_{\rm RHF} = 2\sum_a h_a + \sum_{a,b}(2J_{ab}-K_{ab})
Go deeper · Derivation B · 2 minFrom the energy functional to the Fock eigenvalue equation
Derivation BFrom the energy functional to the Fock eigenvalue equation

Goal: derive the Hartree-Fock equations f^χi=εiχi\hat f\chi_i = \varepsilon_i\chi_i by applying the variational principle to EHF[{χi}]E_{\rm HF}[\{\chi_i\}] under the orthonormality constraint.

Step 1 — Set up the constrained variation. The energy is a functional of the orbitals, EHF=E[χ1,…,χN]E_{\rm HF} = E[\chi_1,\dots,\chi_N], and we must minimize it subject to ⟨χi∣χj⟩=δij\langle\chi_i|\chi_j\rangle = \delta_{ij} for all i,ji,j. Introduce a Lagrangian with multipliers εij\varepsilon_{ij} (a Hermitian matrix, since the constraint is symmetric in i,ji,j):

L=EHF−∑i,jεij(⟨χi∣χj⟩−δij)\mathcal{L} = E_{\rm HF} - \sum_{i,j}\varepsilon_{ij}\big(\langle\chi_i|\chi_j\rangle - \delta_{ij}\big)

Step 2 — Vary one orbital and collect first-order terms. Perturb χi→χi+δχi\chi_i \to \chi_i + \delta\chi_i. Because hih_i is linear in χi∗\chi_i^* (through the bra) and Jij,KijJ_{ij}, K_{ij} are each linear in χi∗\chi_i^* for fixed jj, differentiating EHFE_{\rm HF} with respect to χi∗\chi_i^* (holding all other orbitals fixed) gives a factor of 2 from the symmetric appearance of ii in the double sum over Jij−KijJ_{ij}-K_{ij}:

δEHFδχi∗(1)=h^(1)χi(1)+∑j=1N[J^j(1)−K^j(1)]χi(1)\frac{\delta E_{\rm HF}}{\delta \chi_i^*(1)} = \hat h(1)\chi_i(1) + \sum_{j=1}^N \Big[\hat J_j(1) - \hat K_j(1)\Big]\chi_i(1)

Define this combination as f^(1)χi(1)\hat f(1)\chi_i(1) — this is the definition of the Fock operator, and it is identical for every occupied orbital ii because the sum runs over all occupied jj (including j=ij=i, whose self-interaction cancels as shown above).

Step 3 — Impose stationarity. Setting δL/δχi∗=0\delta\mathcal{L}/\delta\chi_i^* = 0 gives

f^(1) χi(1)=∑j=1Nεji χj(1)\hat f(1)\,\chi_i(1) = \sum_{j=1}^N \varepsilon_{ji}\,\chi_j(1)

This is a matrix eigenvalue problem in disguise: the right-hand side mixes all occupied orbitals through the multiplier matrix εji\varepsilon_{ji}.

Step 4 — Diagonalize to canonical form. Because f^\hat f is Hermitian and the multiplier matrix ε\boldsymbol\varepsilon is Hermitian, there exists a unitary transformation U\mathbf U of the occupied orbitals, χi′=∑kUkiχk\chi_i' = \sum_k U_{ki}\chi_k, that diagonalizes ε\boldsymbol\varepsilon without changing the Slater determinant (a determinant is invariant under unitary mixing of its occupied orbitals — this is the same invariance used to define localized versus canonical orbitals). In this canonical basis,

f^(1) χi(1)=εi χi(1)\hat f(1)\,\chi_i(1) = \varepsilon_i\,\chi_i(1)

with εi≡εii\varepsilon_i \equiv \varepsilon_{ii} the orbital energy — a genuine eigenvalue equation.

Step 5 — Note the self-consistency loop this creates. The operator f^\hat f contains J^j\hat J_j and K^j\hat K_j built from the occupied orbitals {χj}\{\chi_j\} — the same orbitals that solving f^χi=εiχi\hat f\chi_i=\varepsilon_i\chi_i is supposed to produce. The equation is therefore not a conventional eigenvalue problem but a self-consistent one: an initial guess for the orbitals builds a trial f^\hat f, diagonalizing f^\hat f yields new orbitals, which build a new f^\hat f, and the cycle repeats until the orbitals (and hence f^\hat f itself) stop changing between iterations — precisely the procedure carried out in The Self-Consistent-Field Procedure.

Worked examples

Example 1 — Foundational: two electrons in a minimal helium-like model. Take a crude two-orbital model for the helium atom's ground state, both electrons in a single spatial orbital ψ1s\psi_{1s} (so n=1n=1 occupied spatial orbital, N=2N=2 electrons, closed-shell). The restricted energy expression collapses to

ERHF=2h1+(2J11−K11)E_{\rm RHF} = 2h_{1} + (2J_{11}-K_{11})

But for a single orbital, J11=K11J_{11}=K_{11} exactly (self-Coulomb equals self-exchange, as required), so

ERHF=2h1+J11E_{\rm RHF} = 2h_1 + J_{11}

Using approximate hydrogenic-orbital values often quoted for a variational He calculation with effective nuclear charge Zeff=1.6875Z_{\rm eff}=1.6875 (the classic textbook optimized value): h1=−12Zeff2−Zeff×2×(normalization factors)h_1 = -\tfrac12 Z_{\rm eff}^2 - Z_{\rm eff}\times 2\times(\text{normalization factors}) is more simply obtained from the known result

h1=−2.8477 hartree,J11=58Zeff=1.0546 hartreeh_1 = -2.8477\ \text{hartree}, \qquad J_{11} = \tfrac{5}{8}Z_{\rm eff} = 1.0546\ \text{hartree}

(the 58Zeff\tfrac58 Z_{\rm eff} form is the standard closed-form Coulomb integral for two electrons in a 1s1s Slater orbital of exponent ZeffZ_{\rm eff}). Then

ERHF=2(−2.8477)+1.0546=−5.6954+1.0546=−4.6408 hartreeE_{\rm RHF} = 2(-2.8477) + 1.0546 = -5.6954 + 1.0546 = -4.6408\ \text{hartree}

This reproduces the well-known variational helium energy of −2.8477 hartree-2.8477\ \text{hartree} per electron pair contribution combined correctly gives total energy near −2.8477 hartree-2.8477\ \text{hartree} when ZeffZ_{\rm eff} is optimized against ∂E/∂Zeff=0\partial E/\partial Z_{\rm eff}=0; the point of this example is structural — verify by inspection that only one Coulomb-type integral J11J_{11} appears, no exchange survives as an independent term (since K11=J11K_{11}=J_{11} cancels the self-interaction as required by Step 4 of the first derivation), and the energy expression has exactly the two pieces (one-electron sum, two-electron sum) the general formula predicts.

Limiting case check: if we artificially set the electron-electron repulsion to zero (J11→0J_{11}\to 0, a fictitious non-interacting limit), ERHF→2h1=−5.695E_{\rm RHF} \to 2h_1 = -5.695 hartree, exactly twice the hydrogenic 1s1s energy with ZeffZ_{\rm eff} — confirming that in the absence of repulsion, Hartree-Fock trivially returns the sum of independent one-electron energies, as it must.

Example 2 — Applied: exchange stabilization in a closed-shell diatomic-like two-orbital system. Consider a simplified restricted-HF treatment of a four-electron system (like a minimal model of Be\mathrm{Be} or a two-orbital fragment) with two doubly-occupied spatial orbitals ψ1,ψ2\psi_1,\psi_2 (asymmetric, non-degenerate — a case that would hide errors if the formula were wrong). Suppose the computed integrals (in hartree, illustrative but chemically reasonable magnitudes for a compact atom) are:

h1=−3.900,h2=−1.300,J11=1.060,J22=0.420,J12=0.680,K12=0.095h_1 = -3.900,\quad h_2 = -1.300,\quad J_{11}=1.060,\quad J_{22}=0.420,\quad J_{12}=0.680,\quad K_{12}=0.095

The restricted closed-shell energy formula with n=2n=2 orbitals is

ERHF=2(h1+h2)+(2J11−K11)+(2J22−K22)+2(2J12−K12)E_{\rm RHF} = 2(h_1+h_2) + (2J_{11}-K_{11}) + (2J_{22}-K_{22}) + 2(2J_{12}-K_{12})

Since K11=J11K_{11}=J_{11} and K22=J22K_{22}=J_{22} (same-orbital self-exchange cancellation), the diagonal terms reduce to J11+J22J_{11}+J_{22}:

ERHF=2(−3.900−1.300)+1.060+0.420+2(2×0.680−0.095)E_{\rm RHF} = 2(-3.900-1.300) + 1.060 + 0.420 + 2(2\times 0.680 - 0.095)

Evaluate term by term.

2(−3.900−1.300)=2(−5.200)=−10.4002(-3.900-1.300) = 2(-5.200) = -10.400
J11+J22=1.060+0.420=1.480J_{11}+J_{22} = 1.060+0.420 = 1.480
2(2×0.680−0.095)=2(1.360−0.095)=2(1.265)=2.5302(2\times0.680-0.095) = 2(1.360-0.095) = 2(1.265) = 2.530

Summing:

ERHF=−10.400+1.480+2.530=−6.390 hartreeE_{\rm RHF} = -10.400 + 1.480 + 2.530 = -6.390\ \text{hartree}

Why the numbers must combine this way: the cross-orbital Coulomb term J12J_{12} appears with coefficient 2×2=42\times 2=4 (a factor 2 for the off-diagonal double-counting in the sum over a≠ba\neq b, times the closed-shell factor 2), while the cross-orbital exchange K12K_{12} appears with coefficient 2×1=22\times 1 = 2 — because only same-spin cross terms exchange, exactly half as many combinatorial pairs as Coulomb. This asymmetry between the coefficients of J12J_{12} (weight 4) and K12K_{12} (weight 2) is precisely the "2J−K" structure and is the most common point of formula error in hand calculations — always confirm exchange enters with half the weight of Coulomb for off-diagonal pairs.

Limiting case check: if orbitals 1 and 2 became degenerate and identical (ψ2→ψ1\psi_2\to\psi_1), then J12→J11J_{12}\to J_{11} and K12→J11K_{12}\to J_{11} (since exchange between an orbital and itself equals its self-Coulomb), and the formula must reduce to four electrons in one orbital: E→4h1+3J11E \to 4h_1 + 3J_{11} (from 2×2J11−K11→2\times2J_{11}-K_{11}\to combinatorics of (42)=6\binom{4}{2}=6 pairs total scaled appropriately) — a check readily verified by re-deriving the general nn-orbital, all-orbitals-identical limit directly from the double sum, which collapses to the single-orbital multi-electron formula used as the seed of Example 1.

Example 3 — Exam/competition level: proving Kii=JiiK_{ii}=J_{ii} and locating the self-interaction cancellation explicitly. A common qualifying-exam question: show algebraically, from the definitions of JijJ_{ij} and KijK_{ij}, that setting i=ji=j forces Kii=JiiK_{ii}=J_{ii}, and explain why this guarantees no unphysical electron self-repulsion survives in EHFE_{\rm HF}, even though J^i\hat J_i and K^i\hat K_i both appear explicitly as separate terms inside the Fock operator sum. Start from the general definitions with i=ji=j:

Jii=∬∣χi(1)∣2 1r12 ∣χi(2)∣2 dτ1 dτ2J_{ii} = \iint |\chi_i(1)|^2\,\frac{1}{r_{12}}\,|\chi_i(2)|^2\,d\tau_1\,d\tau_2
Kii=∬χi∗(1)χi(1) 1r12 χi∗(2)χi(2) dτ1 dτ2K_{ii} = \iint \chi_i^*(1)\chi_i(1)\,\frac{1}{r_{12}}\,\chi_i^*(2)\chi_i(2)\,d\tau_1\,d\tau_2

Since χi∗(1)χi(1)=∣χi(1)∣2\chi_i^*(1)\chi_i(1) = |\chi_i(1)|^2 and likewise for coordinate 2, the two integrands are term-by-term identical functions of (1,2)(1,2):

Kii=∬∣χi(1)∣2 1r12 ∣χi(2)∣2 dτ1 dτ2=JiiK_{ii} = \iint |\chi_i(1)|^2\,\frac{1}{r_{12}}\,|\chi_i(2)|^2\,d\tau_1\,d\tau_2 = J_{ii}

so Kii=JiiK_{ii}=J_{ii} is not a numerical coincidence but an algebraic identity — it holds for any normalized orbital χi\chi_i, any nuclear geometry, any basis, because it follows purely from the substitution j→ij\to i in definitions that are structurally identical when both indices coincide.

Consequence for the energy. In the double sum 12∑i,j(Jij−Kij)\tfrac12\sum_{i,j}(J_{ij}-K_{ij}), the i=ji=j diagonal contributes 12∑i(Jii−Kii)=12∑i0=0\tfrac12\sum_i (J_{ii}-K_{ii}) = \tfrac12\sum_i 0 = 0. So despite each electron formally "seeing itself" through J^i\hat J_i in the Fock operator sum ∑j(J^j−K^j)\sum_j(\hat J_j - \hat K_j), the corresponding self-exchange term K^i\hat K_i exactly and identically removes it when the expectation value is taken — Hartree-Fock theory is therefore rigorously free of one-electron self-interaction error in its energy expression, even though this cancellation is famously not preserved once approximations such as many density-functional exchange-correlation functionals are substituted for exact exchange (a fact often cited as the origin of self-interaction error in DFT, by contrast with exact Hartree-Fock exchange).

Sanity check with the diagonal terms of Example 2: indeed K11=J11=1.060K_{11}=J_{11}=1.060 and K22=J22=0.420K_{22}=J_{22}=0.420 were assumed exactly in constructing the numbers used — consistent with the identity just proven, and not an independent assumption smuggled in.

Limiting cases, scope & common traps

SituationWhat happens to the HF energy expressionWhy
Single electron (N=1N=1)EHF=h1E_{\rm HF} = h_1; no JJ or KK terms at allNo electron pairs exist to repel or exchange
Non-interacting limit (1/r12→01/r_{12}\to 0 formally)EHF→∑ihiE_{\rm HF}\to \sum_i h_iRecovers sum of independent one-electron (hydrogenic) energies
All orbitals same spin, no spatial overlapKij→0K_{ij}\to 0Exchange integral vanishes if χi,χj\chi_i,\chi_j have no spatial overlap despite matching spin
Opposite-spin pairKij≡0K_{ij}\equiv 0 identicallySpin integration ⟨α∣β⟩=0\langle\alpha|\beta\rangle=0 kills exchange regardless of spatial overlap
i=ji=j (same orbital)Jii=KiiJ_{ii}=K_{ii} alwaysRemoves unphysical self-interaction from the energy
Unrestricted (open-shell) systemsSeparate α,β\alpha,\beta Fock operators f^α,f^β\hat f^\alpha,\hat f^\betaDifferent spatial orbitals allowed for different spins (UHF); restricted formula above assumes closed shells
Basis-set expansionf^χi=εiχi\hat f\chi_i=\varepsilon_i\chi_i becomes a matrix equationLeads directly to The Roothaan-Hall Equations once orbitals are expanded in atomic basis functions

The chemist behind it

Douglas Rayner Hartree was a British mathematical physicist and one of the pioneers of numerical scientific computing, decades before electronic computers existed. Working in the late 1920s, Hartree devised the "self-consistent field" method for atoms — iteratively solving a set of coupled one-electron equations by hand-cranked numerical integration on mechanical calculators (and later, famously, on a differential analyzer he helped build at Manchester). His original scheme used simple products of orbitals, without antisymmetrization, and so lacked exchange terms entirely — an approximation now called the Hartree method, distinct from Hartree-Fock. The crucial correction came from Vladimir Fock (and independently John Slater), who in 1930 showed that Hartree's product wavefunction violated the Pauli exclusion principle, and that replacing it with a properly antisymmetrized determinant introduces the exchange terms derived above. Fock's 1930 paper, written in the language of second quantization and group theory rather than the more accessible determinant notation, established the rigorous theoretical foundation; Slater's nearly simultaneous, more physically transparent treatment using determinants gave the theory its practical form. The combined method — self-consistent orbitals from an antisymmetrized wavefunction — became known as the Hartree-Fock method, arguably the single most consequential approximation scheme in the history of quantum chemistry, underlying essentially every post-HF method (configuration interaction, coupled cluster, Møller-Plesset perturbation theory) as the reference wavefunction from which electron correlation is subsequently added back.

Origins · 1 minVladimir Aleksandrovich Fock and how this was discovered
VA
Vladimir Aleksandrovich Fock
1898–1974 · Soviet theoretical physicist, Leningrad

Fock made foundational contributions across quantum mechanics, from the Fock space formalism of second quantization to gauge theory and general relativity, but is remembered in chemistry chiefly for showing in 1930 that Hartree's self-consistent field method, applied to a properly antisymmetrized (Pauli-respecting) wavefunction, generates additional exchange terms absent from Hartree's original scheme — the theoretical structure now bearing both their names.

History
- 1927 — Hartree introduces the self-consistent field method for many-electron atoms, using simple orbital products (no antisymmetry).
- 1929 — Slater introduces the determinantal wavefunction, enforcing the Pauli exclusion principle explicitly via antisymmetry.
- 1930 — Fock derives the exchange terms rigorously, correcting Hartree's method to respect antisymmetry; the combined Hartree-Fock method is established.
- 1951 — Roothaan (and independently Hall) reformulate the Hartree-Fock equations in a finite atomic-orbital basis, turning the integro-differential equations into a solvable matrix eigenvalue problem.
- 1960s–present — Hartree-Fock becomes the standard reference wavefunction for essentially all post-HF electron-correlation methods and the pedagogical starting point of quantum chemistry courses worldwide.
Why does Hartree-Fock theory miss "electron correlation" if it already includes exchange?

Hartree-Fock exactly accounts for exchange correlation between same-spin electrons — the reduced probability of finding two same-spin electrons at the same point, enforced by antisymmetry. What it misses is dynamical correlation: the instantaneous, correlated avoidance of all electron pairs (including opposite-spin pairs) due to their mutual Coulomb repulsion at every instant, not just on average. Because each electron in HF theory moves in a fixed mean field built from the time-averaged density of the others, it never "sees" the others' instantaneous positions. The energy difference between the exact non-relativistic energy and the Hartree-Fock energy, by definition, is called the correlation energy, and recovering it is the entire purpose of post-Hartree-Fock methods like configuration interaction and coupled-cluster theory.

Is the Coulomb integral J_ij always larger than the exchange integral K_ij?

Yes, for real orbitals Jij≥Kij≥0J_{ij} \geq K_{ij} \geq 0 always holds, with equality only when i=ji=j. This can be shown using the Cauchy-Schwarz inequality applied to the integral kernels defining JJ and KK: exchange is bounded above by the geometric mean of related Coulomb-type quantities, and in practice KijK_{ij} is typically a fraction (often 10-40%) of JijJ_{ij} depending on the spatial overlap of orbitals ii and jj. This is also why exchange stabilization, while real and chemically important (e.g., in Hund's rule for atomic term energies), is never large enough to overturn the dominant classical Coulomb repulsion.

Why is the exchange operator K̂ called "nonlocal" while the Coulomb operator Ĵ is "local"?

The Coulomb operator J^j\hat J_j acts on an orbital χi(1)\chi_i(1) by simply multiplying it, at each point in space, by the electrostatic potential generated by charge density ∣χj(2)∣2|\chi_j(2)|^2 integrated over all of space — a local multiplicative operator, just like an external potential. The exchange operator K^j\hat K_j, by contrast, requires evaluating an integral involving χi\chi_i at all points in space simultaneously and then multiplying the result by χj\chi_j evaluated at the original point — the value of K^jχi\hat K_j\chi_i at any single point depends on the value of χi\chi_i everywhere, making it fundamentally nonlocal (an integral operator rather than a multiplicative one). This nonlocality is precisely what makes Hartree-Fock exchange computationally expensive relative to local density-functional exchange approximations.

How does the closed-shell restricted formula change for open-shell (radical) systems?

For open-shell systems, restricted Hartree-Fock (RHF) is typically replaced by unrestricted Hartree-Fock (UHF), which allows α-spin and β-spin electrons to occupy different spatial orbitals. This introduces two separate Fock operators, f^α\hat f^\alpha and f^β\hat f^\beta, each built from Coulomb interactions with both spin densities but exchange interactions only within its own spin manifold. The energy expression generalizes the one derived here by summing separately over α and β occupied orbitals, with cross-spin terms contributing only Coulomb (JJ), never exchange (KK) — a direct consequence of the spin-orthogonality argument used throughout this derivation.

Does increasing the basis set size change the Hartree-Fock energy expression itself?

No — the energy expression EHF=∑ihi+12∑ij(Jij−Kij)E_{\rm HF}=\sum_i h_i + \tfrac12\sum_{ij}(J_{ij}-K_{ij}) is exact for any set of orthonormal molecular orbitals, regardless of how those orbitals are represented numerically. What changes with basis set size is how well the molecular orbitals χi\chi_i can approximate the true optimal Hartree-Fock orbitals; expanding χi\chi_i in a larger atomic-orbital basis (as formalized in the Roothaan-Hall matrix equations) allows the variational optimization to get closer to the exact Hartree-Fock limit, lowering the computed energy, but the underlying one-electron plus Coulomb-minus-exchange structure of the energy never changes.

Why must the Fock operator be Hermitian, and what does that guarantee?

The Fock operator is built from the kinetic energy, nuclear attraction, Coulomb, and exchange operators, each of which is individually Hermitian when acting on square-integrable orbitals — nuclear attraction and Coulomb potentials are real multiplicative operators, and the exchange operator can be shown to be Hermitian by symmetry of its integral kernel under swapping bra and ket labels. Hermiticity guarantees that the orbital energies εi\varepsilon_i are real numbers (physically sensible energies) and that eigenfunctions belonging to different eigenvalues are automatically orthogonal, which is essential for consistently building an orthonormal set of canonical molecular orbitals.

What is the relationship between this derivation and Koopmans' theorem?

Koopmans' theorem states that, to a good approximation, the negative of an occupied Hartree-Fock orbital energy −εi-\varepsilon_i approximates the vertical ionization energy needed to remove an electron from orbital ii, assuming the remaining orbitals do not relax after ionization ("frozen orbital" approximation). This follows directly from the energy expression derived here: removing one electron from orbital ii changes the total energy by exactly −hi−∑j(Jij−Kij)-h_i - \sum_j(J_{ij}-K_{ij}) if no orbital relaxation occurs, which is precisely −εi-\varepsilon_i by the definition of the Fock eigenvalue. Real ionization energies differ from this estimate due to both orbital relaxation and electron correlation effects neglected by Hartree-Fock theory.

Before this

Where this leads