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 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 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.
- 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 for a determinant produces one-electron, Coulomb (), and exchange () integrals — no more, no fewer.
- Coulomb integrals are classical charge-cloud repulsions; exchange integrals 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 .
- The Fock operator is a one-electron effective Hamiltonian containing a mean-field Coulomb-minus-exchange potential built from all occupied orbitals.
- Because 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 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 -electron molecule under the Born–Oppenheimer clamped-nuclei Hamiltonian,
where (atomic units) is the one-electron kinetic-plus-nuclear-attraction operator for electron . The pairwise sum over is the entire difficulty: it couples every electron to every other electron and makes the Schrödinger equation for separable in no useful basis. Hartree-Fock theory approximates the true many-electron wavefunction by a single Slater determinant built from orthonormal spin-orbitals ,
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 : they are variationally optimized so that is as low as possible. When you expand 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 (the classical electrostatic repulsion between the charge clouds and ), and exchange integrals (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 electron and a 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 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 playing the role of an effective Hamiltonian. Because is built from the very orbitals it's supposed to produce as eigenfunctions, the problem is implicit — solved by guessing orbitals, building , diagonalizing it, getting new orbitals, and repeating until the orbitals stop changing (self-consistency).
The core ideas
The Slater-determinant energy expression. For a normalized Slater determinant of orthonormal spin-orbitals , the expectation value of the electronic Hamiltonian is
where:
- is the one-electron energy (kinetic + nuclear attraction) of orbital ,
- is the Coulomb integral between charge densities and ,
- is the exchange integral, nonzero only when share the same spin,
- the prefactor avoids double-counting each electron pair, and the terms cancel exactly since (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 electrons doubly occupying spatial orbitals , spin integration collapses the sum over spin-orbitals into a sum over spatial orbitals:
where:
- the factor of 2 in front of counts both spin electrons in each spatial orbital,
- and are now Coulomb and exchange integrals over spatial orbitals,
- the 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 subject to orbital orthonormality (via Lagrange multipliers) yields a one-electron eigenvalue equation for each orbital, which after a unitary transformation to canonical orbitals reads
where:
- is the Fock operator, an effective one-electron Hamiltonian,
- is the Coulomb operator, defined by its action — a local multiplicative potential,
- is the exchange operator, defined by its (nonlocal) action — it swaps the argument of into the integral and returns ,
- is the orbital energy, the Lagrange multiplier associated with normalization, later reinterpreted via Koopmans' theorem as (approximately) minus the ionization energy from orbital .
Reading: every electron moves in the field of the frozen nuclei plus the averaged Coulomb and exchange field of all occupied orbitals — including itself, which is why the self-interaction in must be exactly cancelled by for the equations to be physically sensible.
Goal: show explicitly that 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 , summing over all permutations of electron labels with parity . Then . Since is idempotent up to a normalization () and commutes with the symmetric operator , matrix elements reduce to
Step 2 — Isolate the one-electron part. 's one-electron piece only connects the identity permutation to itself for each electron's coordinate — any permutation that moves electron 's orbital to a different slot makes the other orbital overlaps vanish by orthonormality. This leaves
Step 3 — Isolate the two-electron part. The interaction involves only coordinates 1 and 2 (relabeled), so the sum over permutations survives only for the identity and the single transposition of electrons — every other permutation again kills the overlap of some unpermuted orbital pair by orthonormality. This gives, for each pair ,
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 and multiplying by 2 to write it as an unrestricted double sum (equivalently, summing over all and dividing by 2):
The terms in the double sum automatically vanish because by direct substitution of the integral definitions — a mathematically forced statement that an electron does not self-interact in Hartree-Fock theory, despite and individually appearing in the sum defining .
Step 5 — Spin integration for closed shells. Each spatial orbital is doubly occupied by spin-orbitals and . Carrying out the spin integrals: Coulomb integrals survive for all four spin combinations of a pair since contains no spin-dependence beyond normalization of the spin functions (), giving a total weight of 4 (reduced to per distinct orbital pair after the prefactor and doubling for ordering). Exchange integrals require matching spin in both bra and ket factors, so only the and combinations survive — weight 2, giving (not ). This produces exactly the earlier restricted formula
Go deeper · Derivation B · 2 minFrom the energy functional to the Fock eigenvalue equation
Goal: derive the Hartree-Fock equations by applying the variational principle to under the orthonormality constraint.
Step 1 — Set up the constrained variation. The energy is a functional of the orbitals, , and we must minimize it subject to for all . Introduce a Lagrangian with multipliers (a Hermitian matrix, since the constraint is symmetric in ):
Step 2 — Vary one orbital and collect first-order terms. Perturb . Because is linear in (through the bra) and are each linear in for fixed , differentiating with respect to (holding all other orbitals fixed) gives a factor of 2 from the symmetric appearance of in the double sum over :
Define this combination as — this is the definition of the Fock operator, and it is identical for every occupied orbital because the sum runs over all occupied (including , whose self-interaction cancels as shown above).
Step 3 — Impose stationarity. Setting gives
This is a matrix eigenvalue problem in disguise: the right-hand side mixes all occupied orbitals through the multiplier matrix .
Step 4 — Diagonalize to canonical form. Because is Hermitian and the multiplier matrix is Hermitian, there exists a unitary transformation of the occupied orbitals, , that diagonalizes 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,
with the orbital energy — a genuine eigenvalue equation.
Step 5 — Note the self-consistency loop this creates. The operator contains and built from the occupied orbitals — the same orbitals that solving 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 , diagonalizing yields new orbitals, which build a new , and the cycle repeats until the orbitals (and hence 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 (so occupied spatial orbital, electrons, closed-shell). The restricted energy expression collapses to
But for a single orbital, exactly (self-Coulomb equals self-exchange, as required), so
Using approximate hydrogenic-orbital values often quoted for a variational He calculation with effective nuclear charge (the classic textbook optimized value): is more simply obtained from the known result
(the form is the standard closed-form Coulomb integral for two electrons in a Slater orbital of exponent ). Then
This reproduces the well-known variational helium energy of per electron pair contribution combined correctly gives total energy near when is optimized against ; the point of this example is structural — verify by inspection that only one Coulomb-type integral appears, no exchange survives as an independent term (since 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 (, a fictitious non-interacting limit), hartree, exactly twice the hydrogenic energy with — 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 or a two-orbital fragment) with two doubly-occupied spatial orbitals (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:
The restricted closed-shell energy formula with orbitals is
Since and (same-orbital self-exchange cancellation), the diagonal terms reduce to :
Evaluate term by term.
Summing:
Why the numbers must combine this way: the cross-orbital Coulomb term appears with coefficient (a factor 2 for the off-diagonal double-counting in the sum over , times the closed-shell factor 2), while the cross-orbital exchange appears with coefficient — because only same-spin cross terms exchange, exactly half as many combinatorial pairs as Coulomb. This asymmetry between the coefficients of (weight 4) and (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 (), then and (since exchange between an orbital and itself equals its self-Coulomb), and the formula must reduce to four electrons in one orbital: (from combinatorics of pairs total scaled appropriately) — a check readily verified by re-deriving the general -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 and locating the self-interaction cancellation explicitly. A common qualifying-exam question: show algebraically, from the definitions of and , that setting forces , and explain why this guarantees no unphysical electron self-repulsion survives in , even though and both appear explicitly as separate terms inside the Fock operator sum. Start from the general definitions with :
Since and likewise for coordinate 2, the two integrands are term-by-term identical functions of :
so is not a numerical coincidence but an algebraic identity — it holds for any normalized orbital , any nuclear geometry, any basis, because it follows purely from the substitution in definitions that are structurally identical when both indices coincide.
Consequence for the energy. In the double sum , the diagonal contributes . So despite each electron formally "seeing itself" through in the Fock operator sum , the corresponding self-exchange term 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 and 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
| Situation | What happens to the HF energy expression | Why |
|---|---|---|
| Single electron () | ; no or terms at all | No electron pairs exist to repel or exchange |
| Non-interacting limit ( formally) | Recovers sum of independent one-electron (hydrogenic) energies | |
| All orbitals same spin, no spatial overlap | Exchange integral vanishes if have no spatial overlap despite matching spin | |
| Opposite-spin pair | identically | Spin integration kills exchange regardless of spatial overlap |
| (same orbital) | always | Removes unphysical self-interaction from the energy |
| Unrestricted (open-shell) systems | Separate Fock operators | Different spatial orbitals allowed for different spins (UHF); restricted formula above assumes closed shells |
| Basis-set expansion | becomes a matrix equation | Leads 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
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.
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 always holds, with equality only when . This can be shown using the Cauchy-Schwarz inequality applied to the integral kernels defining and : exchange is bounded above by the geometric mean of related Coulomb-type quantities, and in practice is typically a fraction (often 10-40%) of depending on the spatial overlap of orbitals and . 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 acts on an orbital by simply multiplying it, at each point in space, by the electrostatic potential generated by charge density integrated over all of space — a local multiplicative operator, just like an external potential. The exchange operator , by contrast, requires evaluating an integral involving at all points in space simultaneously and then multiplying the result by evaluated at the original point — the value of at any single point depends on the value of 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, and , 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 (), never exchange () — 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 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 can approximate the true optimal Hartree-Fock orbitals; expanding 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 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 approximates the vertical ionization energy needed to remove an electron from orbital , 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 changes the total energy by exactly if no orbital relaxation occurs, which is precisely 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.