
Advanced Quantum Mechanics course sequence · Interactive lesson
The Hartree-Fock equations derived
Almost every quantum-chemistry program starts by solving these equations, and few of its users have seen them derived. Vary one determinant's orbitals while keeping them orthonormal and the Fock operator falls out, with an exchange term only parallel spins feel, no electron repelling itself, and an iteration that may never settle.
UAQM-10.06 · Lesson 6 of 9 in this unit. Position is not a completion score.Build the model
Make one determinant stationary and each electron moves in the field of all the others.
The key idea
The Hartree-Fock equations are the conditions for a single Slater determinant's energy to be stationary under every orthonormality-preserving change of its orbitals; in canonical form each occupied orbital is an eigenfunction of one Fock operator built from all of them.
Example. For hydrogen's one electron J and K cancel, F = h, and the equation gives ε = −13.606 eV, or 13.598 eV of binding once the proton recoils, the measured value. Drop K and the same 1s orbital sits at +3.40 eV, pushed off by its own charge.
The complete physical model and assumptions
Hartree-Fock asks one question: of all the states that can be written as a single Slater determinant, which make the energy stationary? Topic 10.05 supplied that energy as a functional of the occupied spin-orbitals, and the orbitals may be varied only in ways that keep them orthonormal, so the answer is a constrained variation. Lagrange multipliers turn it into Fφₖ = Σⱼ λⱼₖφⱼ, and because a unitary rotation of the occupied orbitals changes the determinant only by a phase, the multiplier matrix can be diagonalised away, leaving Fφᵢ = εᵢφᵢ. The Fock operator F = h + J − K is both the approximation and its content: each electron moves in the averaged Coulomb field of all the occupied orbitals, corrected by a non-local exchange term that acts only between parallel spins and exactly removes the electron's own charge. F is built from its own solutions, so the equations are nonlinear, must be iterated, and when they converge deliver a stationary point, not a guaranteed minimum. The limit is set by the ansatz: one determinant holds no correlation, so helium sits 1.14 eV above its exact energy and H⁻, measured bound by 0.754 eV, comes out unbound.
1Set up the variation with orthonormality enforced
Units are SI, with energies in eV, and no metric signature enters: everything here is non-relativistic. Write x = (r, σ), ∫dx for the spin sum and the d³r integral, h = −(ħ²/2m)∇² − Ze²/(4πε₀r) and v(x, y) = e²/(4πε₀|r − r′|). Topic 10.05 derived the energy of the determinant of occupied spin-orbitals φᵢ, quoted here: E = Σᵢ⟨i|h|i⟩ + ½Σᵢⱼ(⟨ij|v|ij⟩ − ⟨ij|v|ji⟩). That formula assumed ⟨i|j⟩ = δᵢⱼ, so the orbitals cannot be varied freely: N² conditions must hold throughout. Attach a multiplier to each, L = E − Σᵢⱼ λⱼᵢ(⟨i|j⟩ − δᵢⱼ). Since ⟨i|j⟩* = ⟨j|i⟩ the conditions come in conjugate pairs, and L is real for every variation only if λⱼᵢ* = λᵢⱼ: the multiplier matrix is Hermitian. A complex orbital has two independent real parts, or equivalently φₖ and φₖ*; varying φₖ* is enough, because the equation from φₖ is its complex conjugate.
2Vary one orbital and the half disappears
Change φₖ* by δφₖ* and keep first order. The one-body sum gives ⟨δk|h|k⟩. In the pair sum φₖ* appears twice, as i = k and as j = k, and because v(x, y) = v(y, x) the two pieces are equal: they cancel the ½ and leave Σⱼ(⟨δk j|v|k j⟩ − ⟨δk j|v|j k⟩). The constraint term gives Σⱼ λⱼₖ⟨δk|j⟩. The coefficient of the arbitrary δφₖ*(x) must vanish, so hφₖ + Jφₖ − Kφₖ = Σⱼ λⱼₖφⱼ, with J(x) = Σⱼ∫dy |φⱼ(y)|² v(x, y) multiplying and (Kf)(x) = Σⱼ φⱼ(x)∫dy φⱼ*(y) v(x, y) f(y) integrating. Dimensions: |φⱼ|² is in m⁻³, v in joules and d³r′ in m³, so J is an energy, and K returns an energy times f. One operator, F = h + J − K, now serves every orbital, and it is Hermitian. That is the derivation: no mean field was assumed, it came out of the variation.
3Rotate the occupied orbitals to diagonalise the multipliers
Fφₖ = Σⱼ λⱼₖφⱼ is not yet an eigenvalue equation. Replace the occupied set by φ′ₖ = Σⱼ φⱼUⱼₖ with U unitary. The determinant is linear in each column, so Φ′ = (det U)Φ with |det U| = 1: the same state up to a phase. J and K depend on the orbitals only through Σⱼ φⱼ(x)φⱼ*(y), which U leaves alone, so F is unchanged, while the multipliers become U†λU. A Hermitian matrix is diagonalised by a unitary one, and that choice gives the canonical equations Fφᵢ = εᵢφᵢ, derived. What the derivation fixes is the occupied subspace, not the orbitals in it. Two spin-up orbitals of a symmetric molecule, one even and one odd, rotated by 45° become one orbital on the left and one on the right, with the same density, energy and many-electron wavefunction. The canonical basis is singled out only later, when its εᵢ acquire a meaning in Koopmans' theorem, topic 10.07.
4What J and K do, and why no electron repels itself
J is local: the Coulomb potential of the whole charge cloud of all N occupied orbitals, the acted-on one included, blind to spin. K is non-local, since (Kf)(r) needs f at every r′, and its spin sum gives zero unless φⱼ and f share a spin. On an occupied orbital the j = k terms are the same integral, ∫dy |φₖ(y)|² v(x, y) φₖ(x), so (Jₖ − Kₖ)φₖ = 0, derived: each electron feels the other N − 1 and none of itself. For one electron that leaves F = h, so the one-particle limit is the Schrödinger equation itself and Hartree-Fock is exact there, as the Easy example checks against hydrogen. Drop K and that lone electron meets its own cloud: on hydrogen's 1s orbital the quoted self-energy (5/8)e²/(4πε₀a₀) = 17.0 eV outweighs its 13.6 eV binding, and the electron is pushed off. Hartree's 1928 equations removed the self-term by giving each orbital the potential of the others only. The operator then differs from orbital to orbital, so orthogonality is not built in, and the exchange that antisymmetry brings is missing.
5An operator built from its own eigenfunctions must be iterated
F depends on the orbitals it is meant to produce, so Fφ = εφ is nonlinear. It is solved by iteration: guess orbitals, build J and K, diagonalise F in a basis (Roothaan's matrix form), occupy the N lowest, rebuild, and stop when the density settles. Without interaction one pass suffices; with it, convergence is not guaranteed. Take two electrons on two sites with hopping t and on-site repulsion U, sharing one restricted orbital with site weights p₁, p₂ and polarisation x = p₁ − p₂. Each spin feels only its partner's density on its site (K cancels its own), so F has diagonal Up₁ and Up₂ and off-diagonal −t, and its lower eigenvector gives x′ = −Ux/√(U²x² + 4t²), derived. At the solution x = 0 the error is multiplied by −U/(2t) per build: above U = 2t it grows, flipping sign, until the iteration alternates between two states, neither a solution. Cancès and Le Bris proved in 2000 that, under mild conditions, plain iteration either converges or ends in such a cycle (quoted). Mixing a fraction α of each new density makes the factor 1 − α(1 + U/(2t)), which must lie between −1 and 1.
6A solution is a stationary point inside one determinant
Self-consistency means δL = 0 and nothing more. The equations have many solutions: occupying an excited orbital instead of the lowest, keeping a symmetry that the lowest determinant breaks (restricted against unrestricted, topic 10.09), or sitting at a saddle where the energy still falls along some orbital rotation. Only the second variation, a stability analysis, shows a converged answer to be a local minimum, and nothing shows it to be the global one. Even the best determinant leaves out correlation. Topic 10.08 computes closed-shell helium at −77.87 eV, quoted here, against the measured −79.0 eV. The Hartree-Fock limit for H⁻, also quoted, is −13.28 eV, 0.33 eV above a hydrogen atom and a free electron, so the method cannot bind an ion that is measured bound by 0.754 eV. The equations are non-relativistic as well: fine structure, the Breit interaction and the Lamb shift lie outside them.
Key equations
Read the units, assumptions and limits before substituting.
Energy with orthonormality enforced
L = E[φ] − Σᵢⱼ λⱼᵢ (⟨i|j⟩ − δᵢⱼ), with λⱼᵢ* = λᵢⱼ
Stationary L is stationary E on orthonormal orbitals. The conditions come in conjugate pairs, so L stays real for every variation only if λ is Hermitian.
E from topic 10.05, in J; one multiplier λⱼᵢ, in J, for each condition ⟨i|j⟩ = δᵢⱼ on the occupied spin-orbitalsStationarity, before any choice of orbitals
F φₖ = Σⱼ λⱼₖ φⱼ
What δL/δφₖ* = 0 gives directly: F maps the occupied orbitals into their own span, but not yet each orbital onto a multiple of itself.
φₖ an occupied spin-orbital, in m(−3/2); F and λⱼₖ in J; λ Hermitian but in general not diagonalCanonical Hartree-Fock equation
F φᵢ = εᵢ φᵢ, F = −(ħ²/2m)∇² − Ze²/(4πε₀r) + J − K
Reached by the rotation φ′ₖ = Σⱼ φⱼUⱼₖ that diagonalises λ. It leaves F unchanged and multiplies the determinant by det U, a phase.
εᵢ in J or eV; m the electron mass; J and K built from the occupied φⱼ, which makes the equation nonlinearDirect (Hartree) potential
J(x) = Σⱼ ∫dy |φⱼ(y)|² e²/(4πε₀|r − r′|)
A local potential: the Coulomb field of the charge of every occupied orbital, the one being acted on included. Spin plays no part in it.
x = (r, σ); ∫dy sums the spin and integrates d³r′; |φⱼ|² in m⁻³; J(x) in joulesExchange operator
(K f)(x) = Σⱼ φⱼ(x) ∫dy φⱼ*(y) f(y) e²/(4πε₀|r − r′|)
Non-local: Kf at r needs f at every r′, so no potential V(r) can stand in for it. It acts only between equal spins and lowers their pair energy.
f any spin-orbital; the spin sum inside ∫dy kills every term in which φⱼ and f have opposite spinsNo electron repels itself
(Jₖ − Kₖ) φₖ = 0
Each occupied orbital feels only the other N − 1 electrons. Drop K and the self-term returns: 17.0 eV on hydrogen's 1s orbital.
Jₖ and Kₖ are the j = k terms of J and K; acting on φₖ itself they are the same integral, for any pair interactionInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. At U = 4t with no mixing the zigzag flips sign and locks onto ±0.87, two states that are not solutions. Set α near {1/(1+u/2)|2} and it falls onto x = 0 within a few builds; above {2/(1+u/2)|2} an error near x = 0 grows again. At α = 1, take U below 2t and plain iteration converges too, in a single build at U = 0.
Live results
- UNDAMPED FACTOR −U/(2t)
- -2.00 per build
- FACTOR WITH MIXING α
- -2.00 per build
- CONVERGES FOR α BELOW
- 0.67
- FASTEST MIXING α
- 0.33
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. On-site repulsion U/t: 4.00; Density mixing α: 1.00; Starting polarisation x₀: 0.30
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The canonical orbitals are not the electrons' states, and the derivation did not single them out. Stationarity only demands Fφₖ = Σⱼ λⱼₖφⱼ; any unitary rotation of the occupied spin-orbitals multiplies the determinant by a phase and leaves the density, the energy and every observable untouched. Students who meet Fφᵢ = εᵢφᵢ first conclude that methane's four equivalent C–H bond orbitals are an approximation to its delocalised canonical orbitals, or the reverse. Both describe one and the same determinant; what Hartree-Fock fixes is the occupied subspace. The canonical choice is made because its εᵢ become approximate ionisation energies in topic 10.07, which is why methane's photoelectron spectrum shows two valence bands, near 14 eV and 23 eV, rather than four equal bond energies.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
Write the Hartree-Fock equation for the single electron of a hydrogen atom, show that it reduces to the hydrogen Schrödinger equation, and compare its orbital energy with the measured ionisation energy, 13.598 eV. Then find the energy the same 1s orbital would have if K were dropped, using the self-Coulomb energy (5/8)e²/(4πε₀a₀) of a 1s cloud, quoted from Quantum Mechanics II's helium calculation.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- With one occupied spin-orbital φ₁, Jφ₁ = [∫dy |φ₁(y)|² v(x, y)] φ₁(x) and Kφ₁ = φ₁(x) ∫dy φ₁*(y) v(x, y) φ₁(y). The two integrals are the same function of x, so (J − K)φ₁ = 0 and F = h exactly: for N = 1 the Hartree-Fock equation is the Schrödinger equation.
- Its ground state has ε = −e²/(8πε₀a₀) = −Eₕ/2, with Eₕ = e²/(4πε₀a₀) = 27.211 eV, so ε = −13.606 eV. Dimensions: e²/(4πε₀) is in J m and a₀ in m, so Eₕ is in joules.
- That value assumes an infinitely heavy proton. The reduced mass multiplies it by 1/(1 + mₑ/mₚ) = 0.999456, giving 13.598 eV of binding, the measured ionisation energy: Hartree-Fock is exact for one electron.
- Without K the electron feels its own charge. On the exact 1s orbital that adds ⟨1s|J|1s⟩ = (5/8)Eₕ = 17.007 eV, so ⟨1s|h + J|1s⟩ = −13.606 eV + 17.007 eV = +3.401 eV.
Answer. With K, ε = −13.606 eV (13.598 eV with the proton's recoil, the measured value). Without K the same orbital sits at +3.40 eV, above the ionisation threshold, pushed off by its own charge.
MediumExample 2
A converged calculation on a two-ended molecule returns two occupied spin-up orbitals χ₁ and χ₂, each localised on one end, with Fχ₁ = (−20.0 eV)χ₁ + (−3.0 eV)χ₂ and Fχ₂ = (−3.0 eV)χ₁ + (−12.0 eV)χ₂. Find the canonical orbitals and orbital energies, and show that the determinant and its energy are unchanged.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Stationarity reads Fχₖ = Σⱼ λⱼₖχⱼ, so λ₁₁ = −20.0 eV, λ₂₂ = −12.0 eV and λ₁₂ = λ₂₁ = −3.0 eV: real and symmetric, as a Hermitian multiplier matrix between real orbitals must be. The pair is stationary but not canonical, because λ₁₂ is not zero.
- Rotate: φ₁ = χ₁ cos θ + χ₂ sin θ and φ₂ = −χ₁ sin θ + χ₂ cos θ. The new off-diagonal multiplier is λ′₁₂ = ½(λ₂₂ − λ₁₁) sin 2θ + λ₁₂ cos 2θ, which vanishes when tan 2θ = 2λ₁₂/(λ₁₁ − λ₂₂) = (−6.0)/(−8.0) = 0.75, so 2θ = 36.87° and θ = 18.43°.
- Then cos²θ = 0.90, sin²θ = 0.10 and sin θ cos θ = 0.30, so ε₁ = 0.90(−20.0) + 2(0.30)(−3.0) + 0.10(−12.0) = −21.0 eV and ε₂ = 0.10(−20.0) − 2(0.30)(−3.0) + 0.90(−12.0) = −11.0 eV.
- Checks: the trace is −32.0 eV before and after, and the determinant of λ, (−20.0)(−12.0) − (−3.0)² = 231 eV², equals (−21.0)(−11.0). The rotation has det U = cos²θ + sin²θ = 1, so the Slater determinant, its density and its energy are exactly those built from χ₁ and χ₂.
- The canonical orbitals are φ₁ = 0.949χ₁ + 0.316χ₂ and φ₂ = −0.316χ₁ + 0.949χ₂: still mostly one end each, but mixed through 18.4°.
Answer. ε₁ = −21.0 eV and ε₂ = −11.0 eV, reached by rotating the pair through θ = 18.4°. det U = 1, so the determinant and its energy are unchanged; −20.0 eV and −12.0 eV are multipliers, not orbital energies.
HardExample 3
A symmetric two-site molecule has hopping t = 1.5 eV and on-site repulsion U = 6.0 eV. Its two electrons share one restricted orbital with site weights p₁ and p₂ = 1 − p₁, and the Fock matrix for either spin is F₁₁ = Up₁, F₂₂ = Up₂, F₁₂ = −t. Starting from the polarisation x₀ = p₁ − p₂ = 0.30, decide whether plain iteration converges, what it settles into, and which density mixing α makes it converge.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Diagonalise. With d = F₁₁ − F₂₂ = Ux, the lower eigenvector of the 2 × 2 Fock matrix has p₁′ = ½[1 − d/√(d² + 4t²)], so the next polarisation is x′ = −Ux/√(U²x² + 4t²). Its self-consistent solution, x′ = x, is x = 0: the symmetric orbital the molecule's symmetry demands.
- Linearise about it: dx′/dx = −U/(2t) = −6.0 eV/3.0 eV = −2.0. Each build doubles the error and flips its sign; from x₀ = 0.30 plain iteration gives x₁ = −0.51, x₂ = +0.72, x₃ = −0.82 and x₄ = +0.85.
- The growth saturates where x′ = −x, that is U²x² + 4t² = U², at x = ±√(U² − 4t²)/U = ±√27/6 = ±0.866. The iteration alternates between these two orbitals for ever, and neither is a solution: the Fock matrix built from one has the other as its lower eigenvector.
- Energy check, from the single-determinant energy of topic 10.05: E(x) = −2t√(1 − x²) + U(1 + x²)/2. So E(0) = −3.0 eV + 3.0 eV = 0.0 eV and E(±0.866) = −1.5 eV + 5.25 eV = 3.75 eV, while E″(0) = 2t + U is positive. Among restricted determinants the symmetric solution is a true minimum (an unrestricted one lies lower once U exceeds 2t, topic 10.09), and plain iteration misses it anyway: convergence belongs to the algorithm, not to the energy surface.
- Mix: xnew = (1 − α)x + αx′ has the factor 1 − α(1 + U/(2t)) = 1 − 3α near x = 0. Convergence needs |1 − 3α| below 1, so α between 0 and 2/3 = 0.67. At α = 1/3 the linear error vanishes and x₂ = 3.1 × 10⁻⁵; at α = 0.50 the factor is −0.50 and |x| falls below 10⁻³ after 8 builds.
Answer. Plain iteration fails: the error grows by a factor of −2.0 per build and locks into a two-state oscillation at x = ±0.866, 3.75 eV above the solution's 0.0 eV. Density mixing with α below 0.67 converges to x = 0, fastest near α = 0.33.
Quick check
Select an answer and explain it before checking.
Review & continue
The Hartree-Fock equations are the conditions for a single Slater determinant's energy to be stationary under every orthonormality-preserving change of its orbitals; in canonical form each occupied orbital is an eigenfunction of one Fock operator built from all of them.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.