← Questions and Answers
Questions & Answers · Electron Localization

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 φi of spin σ. The one-particle density matrix and the density of σ-spin electrons are γσ(𝐫,𝐫′)=∑iφi(𝐫)φi(𝐫′) 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 𝐫+𝐬:

Step 1 · conditional same-spin densityP(𝐫,𝐬)=ρσ(𝐫+𝐬)−|γσ(𝐫,𝐫+𝐬)|2ρσ(𝐫)

At 𝐬=𝟎 both terms equal ρσ, so P=0: the Pauli principle. P 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 ⟨f⟩=f(0)+s26∇2f(0)+⋯. We need the Laplacian of P with respect to the second point. Write γ for γσ(𝐫,𝐫+𝐬).

  1. At zero separation γ=ρσ and ∇sγ=∑iφi∇φi=12∇ρσ.
  2. With τσ=∑i|∇φi|2 (Becke and Edgecombe’s normalisation, without the factor one half), differentiating ρσ=∑iφi2 twice gives ∇2ρσ=2τσ+2∑iφi∇2φi. Hence ∇2sγ=∑iφi∇2φi=12∇2ρσ−τσ.
  3. The product rule gives ∇2sγ2=2|∇sγ|2+2γ∇2sγ. Dividing by ρσ leaves |∇ρσ|22ρσ+∇2ρσ−2τσ.
  4. Subtract this from ∇2ρσ: the two Laplacians cancel.
Step 2 · the leading term⟨P⟩=13Dσs2+⋯,Dσ=τσ−|∇ρσ|24ρσ
The expansion tested on N₂ with PySCF orbitals, using a 302-point angular average. At s = 0.01 bohr the ratio of the exact average to Dσs²/3 is 0.99994 at the bond midpoint and 1.00064 at z = 1.7 bohr. At s = 0.2 bohr it is 0.977 and 1.278: this is a statement about the immediate neighbourhood.

3. Why the Curvature Cannot Be Negative, and When It Vanishes

Since ∇ρσ=2∑iφi∇φi, Lagrange’s identity (the Cauchy–Schwarz inequality with its remainder written out) gives:

Step 3 · positivityρστσ−|∇ρσ|24=∑i<j|φi∇φj−φj∇φi|2≥0

Dividing by ρσ shows Dσ≥0. With only one occupied orbital of spin σ the sum is empty, so Dσ 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 ρσ=ρ/2, and the usual QTAIM positive kinetic density is G=12∑ini|∇φi|2 with occupations 2. That sum is exactly τσ. Therefore:

Step 4 · total-density formDσ=G−|∇ρ|28ρ≡D=G−GW,GW=12|∇ρ|2

GW, the von Weizsäcker term, is the kinetic density the same ρ would have if every electron sat in the single orbital proportional to ρ. So D 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 kF with ρσ=kF3/(6π2). Its gradient is zero, and each plane wave contributes k2 times its density:

Step 5 · reference valueDσ0=1(2π)3∫0kFk24πk2dk=kF510π2=35(6π2)2/3ρσ5/3closed shell:Dh=cFρ5/3,cF=310(3π2)2/3
Step 6 · the Electron Localization Functionχ=DDh,ELF=11+χ2

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.

Everything ELF needs for a closed-shell determinant is already in a QTAIM evaluation: ρ, ∇ρ and G.

6. What the Values Mean, and What They Do Not

Reading an ELF value.
valuewhat it sayswhat it does not say
near 1D is far below the uniform-gas value: on that scale, G exceeds the single-orbital (Weizsäcker) value |∇ρ|²/8ρ very littlethat the point holds an electron, or a pair, with that probability
1/2D equals Dh at the same local densitythat the region is metallic or behaves as a gas
near 0D is much larger than Dh, as between two shells where different orbital shapes meetthat 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, G above and K=−12∑iniφi∇2φi. At the field-free Born–Oppenheimer level of ℒchem they differ by the Lagrangian density:

ELF written with the QTAIM fieldsℒ=−14∇2ρ=K−GD=G−GW=K+14∇2ρ−|∇ρ|28ρ

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).

OHHELFy from -4 to 4 bohr (horizontal); z from -3.3 to 2.7 bohr (vertical)OHH−∇²ρ (a.u.)y from -4 to 4 bohr (horizontal); z from -3.3 to 2.7 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. Water, molecular plane: both O–H bond paths lie in it. ELF is high around each proton and low in a ring separating the oxygen core from the valence region.
OELFx from -4 to 4 bohr (horizontal); z from -3.3 to 2.7 bohr (vertical)O−∇²ρ (a.u.)x from -4 to 4 bohr (horizontal); z from -3.3 to 2.7 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. Water, perpendicular mirror plane: only the oxygen nucleus lies in it. Both bond paths leave this plane; the dashed lines are their projections. The two ELF maxima marked here are the lone pairs. The density has no maximum there.
NNELFz from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)NN−∇²ρ (a.u.)z from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. N₂: ELF maxima at the bond midpoint and beyond each nitrogen. The interatomic surface is the vertical plane through the bond critical point, and it cuts straight through the central ELF maximum.
FFELFz from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)FF−∇²ρ (a.u.)z from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. F₂: the central maximum is weak (ELF 0.688) and the lone-pair ELF maxima form rings about the axis, seen here as pairs of crosses. The Laplacian at the bond critical point is positive.
LiHELFz from -3 to 7 bohr (horizontal); x from -3.75 to 3.75 bohr (vertical)LiH−∇²ρ (a.u.)z from -3 to 7 bohr (horizontal); x from -3.75 to 3.75 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. LiH: a compact lithium core, a large high-ELF region around hydrogen, and a deep low-ELF region between them that contains the bond critical point (the lowest value on the axis lies slightly toward Li). A pale low-ELF ring also passes behind lithium, in the tail of the density. No maximum is marked on the hydrogen side because ELF there is a flat plateau.
CCHHHHELFz from -4 to 4 bohr (horizontal); y from -3 to 3 bohr (vertical)CCHHHH−∇²ρ (a.u.)z from -4 to 4 bohr (horizontal); y from -3 to 3 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. Ethylene, molecular plane: all five bond paths lie in it.
CCELFz from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)CC−∇²ρ (a.u.)z from -4 to 4 bohr (horizontal); x from -3 to 3 bohr (vertical)00.20.40.60.81< −1−1 to −0.1−0.1 to −0.01±0.010.01 to 0.10.1 to 1> 1bond pathpath out of plane, projectedinteratomic surface (∇ρ · n = 0)bond critical pointELF maximum
Left: ELF in ten bands. Right: −∇²ρ (positive means local concentration of density). Bond paths, bond critical points and in-plane traces of the interatomic surfaces are from the same density. Pixels with ρ below 10−5 would be greyed; none occur in this window. Ethylene, plane through the C–C axis perpendicular to the molecule: the C–C path lies in it, the four C–H paths leave it (dashed projections). The two C–C ELF maxima sit above and below the bond critical point, which in this direction is a shallow dip.

9. ELF Compared with −∇²ρ

Both fields reveal shells and nonbonded concentrations, and both are read from the same wavefunction, but they answer different questions.

Two indicators side by side.
ELF−∇²ρ
built fromρ, ∇ρ and G (needs orbitals or a one-particle density matrix)ρ alone, so it is in principle accessible from experimental densities
range0 to 1, boundedunbounded, changes sign, very large near nuclei
integral over a QTAIM atomno physical unitzero: this is L(Ω) = 0
meaningexcess kinetic density relative to a uniform gas, through a chosen nonlinear maplocal 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 critical points (atomic units), RHF/def2-TZVP. ELF from libqtaim ρ, ∇ρ, G; last column from PySCF orbitals.
bondρ∇²ρG = DG/ρDhχ = D/DhELFELF (PySCF)
H₂O, O–H0.3677−2.60400.06630.18030.54190.12230.98530.9853
N₂, N–N0.7173−2.98870.62030.86481.65020.37590.87620.8762
F₂, F–F0.29890.31170.25860.86530.38360.67410.68750.6875
LiH, Li–H0.03950.17020.04271.08190.01313.24940.08650.0865
C₂H₄, C–C0.3580−1.19630.13640.38090.51810.26320.93520.9352
C₂H₄, C–H0.2902−1.09580.03430.11810.36510.09380.99130.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.

ELF and density along the axes of N₂, F₂ and LiH. In each molecule ELF at the bond critical point is only one sample of a strongly varying function.

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.

ELF maxima found outside the heavy-atom cores (a 0.1 bohr grid search refined by simplex, restricted to ρ above 5 × 10−3 and excluding spheres of radius 0.45 bohr about nuclei heavier than He; distances in bohr), against the QTAIM maxima of ρ.
moleculemaxima of ρ (QTAIM atoms)ELF maxima outside the cores
H₂O3, at or next to O, H, H2 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₂21 at the bond midpoint (ELF 0.8762); 2 lone pairs on the axis, 1.283 from N (ELF 0.9735)
F₂21 at the bond midpoint (ELF 0.6875); 2 rings about the axis, radius 0.927, |z| = 1.478 (ELF 0.9234)
C₂H₄62 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)
LiH2a 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.

Radial ELF of Ar and Kr, with the electron numbers of the regions between its minima (the axis runs from r = 0.01 to 8 bohr and the curves stop where ρ falls below 10−5; the innermost and outermost counts include everything inside and outside).
Electrons between successive radial ELF minima (RHF/def2-TZVP, all electrons), computed by quadrature of 4πr²ρ.
atomELF minima at r (bohr)electrons per regionsumshell occupations of the aufbau configuration
Ar0.144, 0.7362.21, 7.86, 7.9318.00002, 8, 8
Kr0.066, 0.268, 1.0222.23, 8.55, 17.11, 8.1136.00002, 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

14. So How Is It Useful?

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.

Fixed experimental-type geometries used (not optimised at this level).
moleculegeometry
H₂Or(OH) = 0.9572 Å, angle HOH = 104.52°
N₂r(NN) = 1.0977 Å
F₂r(FF) = 1.4119 Å
LiHr(LiH) = 1.5957 Å
C₂H₄r(CC) = 1.339 Å, r(CH) = 1.086 Å, angle HCH = 117.6°
Independent evaluation: ρ, ∇ρ and G rebuilt from PySCF atomic-orbital derivatives and molecular-orbital coefficients, compared with libqtaim reading the exported .wfn, at random points with ρ above 10−6.
systemE(RHF), hartree.wfn orthonormality errorpointsmax |ΔELF|max |Δρ|/ρmax |ΔG|/Gcritical points (n, b, r, c)
H₂O−76.0590431.1 × 10−839982.6 × 10−81.5 × 10−71.3 × 10−73, 2, 0, 0
N₂−108.9881171.5 × 10−840003.5 × 10−86.8 × 10−85.2 × 10−82, 1, 0, 0
F₂−198.7643582.5 × 10−839971.7 × 10−82.2 × 10−71.8 × 10−72, 1, 0, 0
LiH−7.9851721.5 × 10−840005.9 × 10−85.3 × 10−86.2 × 10−82, 1, 0, 0
C₂H₄−78.0643831.8 × 10−839994.5 × 10−81.7 × 10−78.5 × 10−86, 5, 0, 0
References

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.

Comments, questions or contributions? Please open an issue or a pull request on GitHub.