Skip to main content

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.
Starting model: The Hartree-Fock equations derivedRestricted Hartree-Fock iteration for two electrons on a symmetric two-site molecule with on-site repulsion U = 4.00 t. The zigzag joins the polarisation x = p₁ − p₂ of the occupied orbital after n = 0 to 5 Fock builds, from the open dot x₀ = 0.30 to the filled dot after the fifth, with mixing α = 1.00. Near the solution x = 0 each build multiplies the error by -2.00, so the zigzag closes onto x = 0 only if that factor lies between −1 and 1.x = p₁ − p₂×(−2.00) each build+10−1solutionFock builds n = 0 to 5
Start with a picture. Change the model in the lab below.
1

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.

2

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-orbitals

Stationarity, 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 diagonal

Canonical 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 nonlinear

Direct (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 joules

Exchange 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 spins

No 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 interaction
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

4.00
0 to 6; steps of 0.25.
1.00
0.1 to 1; steps of 0.05.
0.30
0.05 to 0.95; steps of 0.05.

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.

Interactive Advanced Quantum Mechanics modelRestricted Hartree-Fock iteration for two electrons on a symmetric two-site molecule with on-site repulsion U = 4.00 t. The zigzag joins the polarisation x = p₁ − p₂ of the occupied orbital after n = 0 to 5 Fock builds, from the open dot x₀ = 0.30 to the filled dot after the fifth, with mixing α = 1.00. Near the solution x = 0 each build multiplies the error by -2.00, so the zigzag closes onto x = 0 only if that factor lies between −1 and 1.x = p₁ − p₂×(−2.00) each build+10−1solutionFock builds n = 0 to 5
Restricted Hartree-Fock iteration for two electrons on a symmetric two-site molecule with on-site repulsion U = 4.00 t. The zigzag joins the polarisation x = p₁ − p₂ of the occupied orbital after n = 0 to 5 Fock builds, from the open dot x₀ = 0.30 to the filled dot after the fifth, with mixing α = 1.00. Near the solution x = 0 each build multiplies the error by −2.00, so the zigzag closes onto x = 0 only if that factor lies between −1 and 1.

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

Baseline 4.00; choose 0 to 6, in steps of 0.25.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

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.

5

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.

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.

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.

6

Quick check

Select an answer and explain it before checking.

Lithium's ground determinant has the spin-orbitals 1s↑, 1s↓ and 2s↑ occupied. Once the self-terms are accounted for, what does the Fock operator acting on the 2s↑ orbital contain besides h?
7

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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.