What Is the Electron Localization Function, and How Is It Useful?
The Electron Localization Function (ELF) of Becke and Edgecombe is a number between 0 and 1 at each point of space. For a single determinant it measures how quickly the chance of meeting a second electron of the same spin grows as one moves away from a reference electron, compared with a uniform electron gas with the same density of electrons of that spin. It is useful as a map: it shows atomic shells, bonding regions and lone pairs that the density itself does not separate. It is not a probability, and its basins are not QTAIM atoms.
1. Start: The Same-Spin Pair Probability of One Determinant
Take real occupied orbitals of spin σ. The one-particle density matrix and the density of σ-spin electrons are and . For a determinant the same-spin pair density is a direct term minus an exchange term. Dividing by the density at the reference point gives the conditional density of a second σ electron at :
At both terms equal , so : the Pauli principle. is never negative, so its gradient also vanishes there. The first thing that can survive is the curvature.
2. Expand to Second Order
The average over directions of a smooth function about a point is . We need the Laplacian of with respect to the second point. Write γ for .
- At zero separation and .
- With (Becke and Edgecombe’s normalisation, without the factor one half), differentiating twice gives . Hence .
- The product rule gives . Dividing by leaves .
- Subtract this from : the two Laplacians cancel.
3. Why the Curvature Cannot Be Negative, and When It Vanishes
Since , Lagrange’s identity (the Cauchy–Schwarz inequality with its remainder written out) gives:
Dividing by shows . With only one occupied orbital of spin σ the sum is empty, so is zero everywhere and ELF is exactly 1 everywhere: H, H₂⁺, He and restricted Hartree–Fock H₂ give a featureless map. The companion page on ELF, orbital indicators and subsystem boundaries works through that collapse for H₂⁺, HD⁺ and restricted Hartree–Fock H₂, and examines what ELF gives for Li₂.
4. Closed Shells, and Savin’s Kohn–Sham Reading
For a closed shell , and the usual QTAIM positive kinetic density is with occupations 2. That sum is exactly . Therefore:
, the von Weizsäcker term, is the kinetic density the same ρ would have if every electron sat in the single orbital proportional to . So is the extra kinetic density forced by the exclusion principle, often called the Pauli kinetic density. Savin and co-workers (1992) gave ELF this excess-kinetic-energy reading (the expression is restated by Desmarais and co-workers), which applies to the Kohn–Sham orbitals of a density-functional calculation. The formula then needs only ρ, ∇ρ and a non-interacting kinetic density, with no appeal to a Hartree–Fock pair density; the interpretation moves from a same-spin pair probability to the excess kinetic energy density due to the Pauli principle.
5. The Yardstick: The Uniform Electron Gas
A uniform gas of one spin fills plane waves up to with . Its gradient is zero, and each plane wave contributes times its density:
The ratio is dimensionless; the Lorentzian form maps it onto the interval from 0 to 1. Both the square and the choice of reference are conventions of the definition, not consequences of quantum mechanics.
6. What the Values Mean, and What They Do Not
| value | what it says | what it does not say |
|---|---|---|
| near 1 | D is far below the uniform-gas value: on that scale, G exceeds the single-orbital (Weizsäcker) value |∇ρ|²/8ρ very little | that the point holds an electron, or a pair, with that probability |
| 1/2 | D equals Dh at the same local density | that the region is metallic or behaves as a gas |
| near 0 | D is much larger than Dh, as between two shells where different orbital shapes meet | that there are no electrons there, or that electrons are 0 percent localized |
ELF does not weigh by how many electrons are present: a thin tail dominated by one orbital can score near 1. It is also not additive, and ELF integrated over a volume has no physical unit of charge or energy. Comparing 0.9 with 0.8 compares two values of a nonlinear function of χ, not two amounts of localization.
7. The Connection to QTAIM and to the Chemical Lagrangian ℒchem
QTAIM uses two kinetic densities, above and . At the field-free Born–Oppenheimer level of ℒchem they differ by the Lagrangian density:
- ELF chooses G. D is built from G, which is non-negative and gives the positivity of step 3. Putting K in its place would change D by a quarter of the Laplacian.
- On a QTAIM atom the choice drops out of the integral. On a basin Ω bounded by , the regional vanishes, so with one atomic kinetic energy T(Ω). That is an atomic integral of D, not of ELF, which is a nonlinear function of D.
- ELF is not a term in ℒ. The zero-flux action principle of QTAIM does not select ELF surfaces. On a region bounded by an ELF surface, G(Ω) and K(Ω) differ by one quarter of the flux of ∇ρ through it, which has no reason to vanish.
- At a bond critical point the connection is exact and simple. There ∇ρ = 0, so and . ELF at a bond critical point is the familiar ratio G/ρ rescaled by the density to the power 2/3.
The values in section 10 show why the rescaling matters: N₂ and F₂ have nearly the same G/ρ at the bond critical point (0.8648 and 0.8653) but ELF 0.876 and 0.688, because the densities differ.
8. Maps Over the Molecular Graph, Beside the Laplacian
Water, in both mirror planes (compare the water molecular graph page, which uses the same geometry with the smaller 6-31G* basis).
9. ELF Compared with −∇²ρ
Both fields reveal shells and nonbonded concentrations, and both are read from the same wavefunction, but they answer different questions.
| ELF | −∇²ρ | |
|---|---|---|
| built from | ρ, ∇ρ and G (needs orbitals or a one-particle density matrix) | ρ alone, so it is in principle accessible from experimental densities |
| range | 0 to 1, bounded | unbounded, changes sign, very large near nuclei |
| integral over a QTAIM atom | no physical unit | zero: this is L(Ω) = 0 |
| meaning | excess kinetic density relative to a uniform gas, through a chosen nonlinear map | local concentration or depletion of ρ; four times ℒ, and tied to 2G + V by the local virial theorem for exact stationary states |
The sign of the Laplacian and the size of ELF need not agree. The bond critical points of F₂ and LiH both have positive ∇²ρ, with ELF 0.688 and 0.087.
10. Values at the Bond Critical Points
| bond | ρ | ∇²ρ | G = D | G/ρ | Dh | χ = D/Dh | ELF | ELF (PySCF) |
|---|---|---|---|---|---|---|---|---|
| H₂O, O–H | 0.3677 | −2.6040 | 0.0663 | 0.1803 | 0.5419 | 0.1223 | 0.9853 | 0.9853 |
| N₂, N–N | 0.7173 | −2.9887 | 0.6203 | 0.8648 | 1.6502 | 0.3759 | 0.8762 | 0.8762 |
| F₂, F–F | 0.2989 | 0.3117 | 0.2586 | 0.8653 | 0.3836 | 0.6741 | 0.6875 | 0.6875 |
| LiH, Li–H | 0.0395 | 0.1702 | 0.0427 | 1.0819 | 0.0131 | 3.2494 | 0.0865 | 0.0865 |
| C₂H₄, C–C | 0.3580 | −1.1963 | 0.1364 | 0.3809 | 0.5181 | 0.2632 | 0.9352 | 0.9352 |
| C₂H₄, C–H | 0.2902 | −1.0958 | 0.0343 | 0.1181 | 0.3651 | 0.0938 | 0.9913 | 0.9913 |
At these points D equals G, so every column follows from ρ and G. The profiles below show how much structure lies on either side of each critical point.
11. ELF Basins and QTAIM Atoms Are Different Partitions
Both are built from gradient paths of a scalar field. QTAIM follows ∇ρ, and its basins are atoms: here each maximum of ρ belongs to a nucleus. ELF topology, introduced for bond classification by Silvi and Savin (1994) and reviewed by Savin and co-workers (1997), follows ∇ELF, and its basins are cores and valence regions. In the nomenclature of this approach a valence basin is labelled by the atomic cores it touches: one for a lone pair, two for a two-centre bond; a valence basin containing a proton is counted with that proton. Shared-electron interactions show a valence basin between the cores; closed-shell interactions do not.
| molecule | maxima of ρ (QTAIM atoms) | ELF maxima outside the cores |
|---|---|---|
| H₂O | 3, at or next to O, H, H | 2 near the protons, 0.048 from H (ELF 0.9987); 2 lone pairs, 1.117 from O in the y = 0 plane (ELF 0.9283) |
| N₂ | 2 | 1 at the bond midpoint (ELF 0.8762); 2 lone pairs on the axis, 1.283 from N (ELF 0.9735) |
| F₂ | 2 | 1 at the bond midpoint (ELF 0.6875); 2 rings about the axis, radius 0.927, |z| = 1.478 (ELF 0.9234) |
| C₂H₄ | 6 | 2 for the C–C pair, 0.615 above and below the molecular plane (ELF 0.9393); 4 near the protons, 0.046 from H (ELF 0.9999) |
| LiH | 2 | a flat plateau around H: along the axis from z = 2 to 6, ELF stays between 0.9980 and 1.0000, so a maximum’s position there is not informative |
An ELF bond basin can therefore straddle a QTAIM interatomic surface, as the N₂ map shows, while the maps show where the lone-pair maxima sit relative to those surfaces. Useful combined questions follow: how the electron population of an ELF bond basin divides between two QTAIM atoms, or where the lone pairs of a QTAIM atom point. ELF basin populations are not computed on this page.
12. Core Shells, and Heavier Atoms
The classic success is atomic shell structure. The density of a spherical atom decays without separate maxima for its shells, while ELF oscillates. Kohout and Savin (1996) studied the atoms Li to Sr in this way.
| atom | ELF minima at r (bohr) | electrons per region | sum | shell occupations of the aufbau configuration |
|---|---|---|---|---|
| Ar | 0.144, 0.736 | 2.21, 7.86, 7.93 | 18.0000 | 2, 8, 8 |
| Kr | 0.066, 0.268, 1.022 | 2.23, 8.55, 17.11, 8.11 | 36.0000 | 2, 8, 18, 8 |
The counts are near the aufbau occupations but not equal to them, and the third region of Kr holds less than 18. Shell boundaries drawn by ELF are not orbital occupations. A calculation with an effective core potential has no core orbitals, so its inner ELF structure is not that of the all-electron atom.
13. Limits
- Single determinant. Steps 1 and 2 use the determinant’s pair density. For a correlated wavefunction the pair density is not fixed by ρ and G. Inserting natural orbitals into the formula of step 4 gives a defined number, but not the curvature of the correlated same-spin pair density.
- Spin. The original object is spin resolved: , one map per spin. The total-density form of step 4 assumes equal α and β densities and does not apply unchanged to open shells. All results here are closed shell.
- Complex orbitals and currents. With a current density (magnetic fields, time dependence) the curvature acquires a further term, , which restores independence of the phase gauge (the form restated by Desmarais and co-workers, cited below).
- Spin–orbit coupling and two-component spinors. Desmarais, Vignale, Bencheikh, Erba and Pittalis (arXiv:2405.15530) show that putting the two-component kinetic density into the old formula gives a function that changes under local spin rotations. Their extended ELF adds terms in the particle current, the gradient of the spin magnetization, the spin kinetic density and the spin currents.
- One-orbital systems give ELF = 1 identically (step 3).
- Tails. Where ρ tends to zero ELF is a ratio of two vanishing quantities and can depend strongly on the basis set.
14. So How Is It Useful?
- As a map of shells, bonds and lone pairs that complements the molecular graph: it places structure where ρ has no critical point of its own.
- As a classification aid: whether a valence maximum sits between two cores separates the N₂ or C₂H₄ pattern from the LiH pattern.
- As a diagnostic built from quantities QTAIM already computes, with an exact reading at bond critical points.
- Not as a substitute for atomic properties: charges, energies and L(Ω) = 0 belong to the zero-flux atoms of ρ.
How These Numbers Were Computed
Restricted Hartree–Fock with PySCF 2.15.0, spherical def2-TZVP basis, orbitals exported with pyscf.tools.wfn_format. ρ, ∇ρ, ∇²ρ, G, critical points (each Krawczyk certified) and bond paths come from libqtaim 1.5.0. ELF is assembled from those fields outside the library. The interatomic-surface traces, ELF maxima and radial quadratures were computed by page scripts using library field values. All values are atomic units unless stated.
| molecule | geometry |
|---|---|
| H₂O | r(OH) = 0.9572 Å, angle HOH = 104.52° |
| N₂ | r(NN) = 1.0977 Å |
| F₂ | r(FF) = 1.4119 Å |
| LiH | r(LiH) = 1.5957 Å |
| C₂H₄ | r(CC) = 1.339 Å, r(CH) = 1.086 Å, angle HCH = 117.6° |
| system | E(RHF), hartree | .wfn orthonormality error | points | max |ΔELF| | max |Δρ|/ρ | max |ΔG|/G | critical points (n, b, r, c) |
|---|---|---|---|---|---|---|---|
| H₂O | −76.059043 | 1.1 × 10−8 | 3998 | 2.6 × 10−8 | 1.5 × 10−7 | 1.3 × 10−7 | 3, 2, 0, 0 |
| N₂ | −108.988117 | 1.5 × 10−8 | 4000 | 3.5 × 10−8 | 6.8 × 10−8 | 5.2 × 10−8 | 2, 1, 0, 0 |
| F₂ | −198.764358 | 2.5 × 10−8 | 3997 | 1.7 × 10−8 | 2.2 × 10−7 | 1.8 × 10−7 | 2, 1, 0, 0 |
| LiH | −7.985172 | 1.5 × 10−8 | 4000 | 5.9 × 10−8 | 5.3 × 10−8 | 6.2 × 10−8 | 2, 1, 0, 0 |
| C₂H₄ | −78.064383 | 1.8 × 10−8 | 3999 | 4.5 × 10−8 | 1.7 × 10−7 | 8.5 × 10−8 | 6, 5, 0, 0 |
Tags: [read] primary text read locally; [record] bibliographic record checked, primary text not read for this page.
Statements attributed to [record] items are from general knowledge of those works and were not verified against their primary texts.
- A. D. Becke and K. E. Edgecombe, J. Chem. Phys. 92, 5397–5403 (1990). [record]
- A. Savin, O. Jepsen, J. Flad, O. K. Andersen, H. Preuss and H. G. von Schnering, Angew. Chem. Int. Ed. Engl. 31, 187–188 (1992). [record]
- B. Silvi and A. Savin, Nature 371, 683–686 (1994). [record]
- M. Kohout and A. Savin, Int. J. Quantum Chem. 60, 875–882 (1996). [record]
- A. Savin, R. Nesper, S. Wengert and T. F. Fässler, Angew. Chem. Int. Ed. Engl. 36, 1808–1832 (1997). [record]
- J. K. Desmarais, G. Vignale, K. Bencheikh, A. Erba and S. Pittalis, “Electron localization function for non-collinear spins”, arXiv:2405.15530v2 (2024). [read]
- R. F. W. Bader, Atoms in Molecules: A Quantum Theory (Clarendon, Oxford, 1990). [record]