PDF The atomic pair distribution function — with neutrons and with X-rays neutron X-ray

Total scattering

A histogram of every interatomic distance

Keep the diffuse scattering that a Rietveld refinement throws away, measure it out to high momentum transfer, and Fourier transform. What comes back is not a diffraction pattern but a picture of real space: a curve whose peaks sit at the distances that actually occur in the sample, whether or not that sample has any long-range order at all.

Nickel — the two halves of one measurement hover the lower panel
Above: the reduced structure function F(Q) = Q[S(Q)−1], the corrected and normalised scattering pattern. Below: its sine transform, G(r). Peaks in G(r) are Ni–Ni distances in the fcc lattice, starting at a/√2 = 2.49 Å. Below the first peak there are no pairs at all, and G(r) follows the straight line −4πrρ0 (dashed). Note that a crystal's F(Q) is a set of sharp Bragg peaks; a glass would show a handful of broad, quickly damped oscillations instead.
I(Q)

Keeping the scattering that Bragg analysis discards

A crystallographic refinement uses the intensity under the Bragg peaks. That intensity reports the periodic average of the structure — what you would see if every unit cell were identical. Everything that makes cells differ from one another, which is to say the local structure, scatters between the peaks, as diffuse intensity that a conventional analysis subtracts as background.

Total scattering keeps it all. You measure the entire pattern — Bragg peaks and diffuse alike — correct it properly, put it on an absolute per-atom scale, and transform it. Nothing about that procedure requires the sample to be crystalline, which is why the same analysis works on a glass, a melt, a nanoparticle suspension and a well-ordered crystal.

The one thing it does demand is range. Real-space resolution is set by how far out in momentum transfer you measured, Δr ≈ π/Qmax, and Q = 4πsinθ/λ is capped by your wavelength. This single number decides whether a source is usable:

SourceλQmax limitVerdict
Cu Kα lab tube1.542 Å8.2 Å−1Unusable for PDF — Δr ≈ 0.4 Å
Mo Kα lab tube0.711 Å17.7 Å−1Workable; the standard lab PDF setup
Ag Kα lab tube0.561 Å22.4 Å−1Good lab data
Synchrotron, 60–100 keV0.21–0.12 Å25–35 Å−1 in practiceDetector coverage, not λ, is the limit
Spallation neutrons, TOFwhite beam40–50 Å−1The highest Qmax available

Time-of-flight neutron instruments have a structural advantage here: detector banks at different angles each cover their own Q range, and the whole white beam contributes, so a single measurement spans a very wide Q with good counting statistics at the top end — exactly where the sharpest real-space features come from.

Corrections before you may transform
container
empty-can and empty-instrument runs, subtracted with the right absorption weighting
absorption
and, for neutrons, multiple scattering — both depend on the sample geometry you actually used
inelastic
Compton scattering for X-rays; the Placzek recoil correction for neutrons, which is worst for light elements
normalisation
to absolute units per atom — a vanadium rod for neutrons, a high-Q or Compton-based normalisation for X-rays
These are done by dedicated programs — PDFgetX3 or GudrunX for X-rays, PDFgetN3 or GudrunN for neutrons. A PDF made from badly corrected data looks plausible and refines to wrong numbers, so the baseline test in the next section is worth doing every single time.

A PDF computed from Bragg intensities alone is not wrong — it is simply the PDF of the average structure. Comparing it with the measured total-scattering PDF is one of the cleanest ways to see local structure that the average has hidden.

G(r)

What the function actually is

Stand on an atom. Count how many atom centres lie in a thin shell between r and r+dr. Divide by the volume of that shell to get a local number density ρ(r), then repeat for every atom in the sample and average. Compare the result with the bulk number density ρ0:

G(r) = 4πr [ ρ(r) − ρ0 ]

That is the whole definition. G(r) is a histogram of interatomic distances, weighted by how strongly each kind of atom scatters, with the average density subtracted off so that it oscillates about zero instead of growing without bound.

Three consequences are worth memorising.

  • Below the shortest bond, G(r) is a straight line. No pairs exist there, so ρ(r) = 0 and G(r) = −4πrρ0 exactly. You know ρ0 independently from the density, so this region is a free, absolute check on your corrections and normalisation. If the low-r region is not that line, do not refine anything yet.
  • Peak positions are distances. Not shifted, not phase-corrected, not model-dependent — unlike an EXAFS Fourier transform, this axis really is r.
  • Peak areas are coordination numbers — weighted ones. Integrating R(r) = rG(r) + 4πr²ρ0 across a peak gives the number of neighbours in that shell, multiplied by the scattering weight of that pair. Getting a bare coordination number out therefore requires knowing the weights, which is the subject of two sections from now.

Because the definition never mentions symmetry, translation or a unit cell, there is no structural prerequisite whatsoever. A liquid has a pair distribution function; so does a protein solution, a 2 nm nanocrystal and a piece of quartz.

Order, disorder, and the histogram
0.00 Å
A two-dimensional cartoon: fifty-odd atoms on a hexagonal net, and below them the histogram of all 1770 interatomic distances. Push the disorder up and watch what happens — the near-neighbour peak survives and merely broadens, while the distant peaks merge into a featureless background. That is the difference between a crystal and a glass, and it is why G(r) decays to zero at large r for a disordered material but not for a crystal.
S(Q)

The alphabet soup, and how to survive it

The literature contains at least six closely related real-space functions and several conventions for the reciprocal-space ones. They differ by factors of r, by whether the average density has been subtracted, and by normalisation. Papers frequently fail to say which they used. The reliable move is to check the low-r behaviour of any published curve: it identifies the function immediately.

FunctionDefinitionBelow the first peak
g(r)ρ(r)/ρ0→ 0; oscillates about 1
G(r)4πr[ρ(r) − ρ0] = 4πrρ0[g(r)−1]the line −4πrρ0
R(r)4πr²ρ(r) = rG(r) + 4πr²ρ0→ 0; area under a peak = N
T(r), D(r)Keen's forms, differing by factors of r and 4πρ0varies — check the paper
S(Q)normalised total scattering structure function→ 1 as Q → ∞
F(Q)Q[S(Q) − 1]oscillates about 0

The transform that links the two halves is a sine transform:

G(r) = (2/π) ∫QminQmax  Q[S(Q)−1] sin(Qr) dQ

Note that it is Q[S(Q)−1] that gets transformed, not S(Q) itself. The factor of Q does the same job as k-weighting in EXAFS: the oscillations in S(Q) decay with Q, and multiplying by Q gives the high-Q data — which carry the sharpest real-space information — a fair share of the transform. It also means that noise at high Q is amplified, which is why counting statistics up there matter so much.

If you take one habit from this page: before believing any PDF, look at the region below the shortest bond length and check that it is a straight line through the origin with slope −4πρ0. Ripples there mean bad corrections, a wrong normalisation, or too small a Qmax — and every number you refine afterwards inherits the error.

The same logic runs backwards. Because the transform is its own inverse up to constants, a feature you do not believe in G(r) can be traced to the part of F(Q) that produced it. Fitting programs exploit this by comparing model and data in both spaces.

b, f(Q)

Neutrons and X-rays see different samples

A sample with more than one element does not have one pair distribution function; it has one for every pair of element types. What you measure is a single weighted sum of them:

S(Q) = Σαβ wαβ Sαβ(Q),    wαβ = cαcβbαbβ / ⟨b⟩²

with c the atomic fractions and b the scattering power. The weights always sum to one. Everything that distinguishes a neutron measurement from an X-ray measurement of the same material lives in that b.

For neutrons, b is the coherent nuclear scattering length: a property of the nucleus, tabulated in femtometres, and — because the nucleus is a point on the scale of the neutron wavelength — completely independent of Q. It varies erratically from element to element, it differs between isotopes of the same element, and it can be negative. Light atoms scatter as strongly as heavy ones.

For X-rays, b becomes the atomic form factor f(Q): the Fourier transform of the atom's electron density. It equals Z at Q = 0 and falls off as Q rises. Two things follow. Heavy elements dominate, quadratically — a Pb–Pb pair outweighs an O–O pair by a factor of a hundred. And the weighting is not constant across the pattern, so the effective partial mixture drifts as Q increases; the Faber–Ziman normalisation by ⟨f(Q)⟩² removes most, not all, of that drift.

Elementbcoh / fmZConsequence
H−3.741Negative, and enormous incoherent cross-section — deuterate
D+6.671Well behaved; invisible to X-rays either way
Li−1.903Negative; essentially invisible to X-rays
O+5.808A strong neutron scatterer; weak next to any heavy metal in X-rays
Ti−3.4422Ti–O peaks point down in a neutron PDF
Mn−3.7325Same, and hard to tell from Fe with X-rays
V−0.3823Almost no coherent signal — hence vanadium sample cans
Ni+10.302858Ni +14.4, 62Ni −8.7: the classic isotope-substitution pair
W+4.8674A modest neutron scatterer that dominates any X-ray PDF

Values are the standard tabulated coherent scattering lengths (Sears, Neutron News 3, 26, 1992). Check them against the current tables before using them in anger.

The practical upshot: neutrons for light atoms, for oxygen and hydrogen positions, for magnetic structure, and for isotope contrast; X-rays for heavy elements, for small samples, for speed, and for anything in situ that needs a beam you can focus to a few microns. Measuring both on the same sample and fitting them together is stronger than either alone, because the two datasets weight the same partials differently.

Element contrast can be pushed further. Isotopic substitution with neutrons and resonant (anomalous) scattering near an absorption edge with X-rays both change one element's b while leaving the structure alone; differencing the two datasets isolates the partials involving that element. Both are expensive and both need very good data, because you are subtracting two large numbers to get a small one.

Bars show each pair's share of the total signal, positive to the right of the centre line and negative to the left, scaled to the largest weight in the compound. Weights sum to 100% in both columns. X-ray weights use f(0) = Z; at finite Q they shift somewhat toward the lighter elements.

Qmax

What the measurement does to the answer

The transform integral runs from zero to infinity. Your data do not. Four instrumental facts leave their fingerprints on every G(r), and recognising them is most of what separates a careful practitioner from an enthusiastic one.

  • Qmax → termination ripples. Cutting the integral off abruptly convolves G(r) with a sinc function. Every peak acquires symmetric side ripples of period 2π/Qmax, and the real-space resolution is Δr ≈ π/Qmax — 0.10 Å at 30 Å−1, 0.31 Å at 10. A Lorch or similar modification function suppresses the ripples by smoothing the cutoff, at the cost of broadening every peak; use it for looking, not for refining.
  • Qmin → a slowly varying baseline error. The smallest measured angle is typically 0.5–1 Å−1, and the missing data contribute a smooth, low-frequency error that is hard to see and easy to absorb into a spurious refined parameter.
  • Instrument Q-resolution → an envelope. Finite resolution damps G(r) as exp(−r²Qdamp²/2). With Qdamp around 0.03 Å−1 the signal is still usable past 50 Å; at 0.10 it is gone by 20. You measure Qdamp once by refining a standard — nickel, silicon, LaB6 — and then hold it fixed for everything else measured that way.
  • Correlated motion → sharp near-neighbour peaks. Two atoms joined by a stiff bond move together, so their separation fluctuates far less than either atom's absolute displacement would suggest. Near-neighbour peaks are therefore much narrower than independent thermal motion predicts, and the effect dies away with distance. Refinement programs model it as a δ/r correction to the peak width.

The simulator below computes the whole chain for an ideal crystal — shell distances and multiplicities from the lattice, F(Q) from the Debye sum, G(r) by numerical sine transform — separately for neutrons and for X-rays.

Things worth trying. Choose Ni and note that the neutron and X-ray panels are identical: for a single-element material the weights cancel exactly and the two radiations must give the same PDF. Then choose LiF, where the Li–F weight is negative for neutrons and positive for X-rays, so the first peak points in opposite directions. Then drop Qmax to 10 and watch ripples appear around every peak — including in the region below the first bond, where you know there is nothing.

Live total-scattering simulator
Structure
3.524 Å
0.075 Å
0.00 Å3
Measurement
30.0 Å−1
0.030 Å−1
12 Å
Neutron
X-ray
Each column is a complete simulated experiment: F(Q) above (shaded beyond Qmax to show what is being discarded) and the resulting G(r) below. The two columns have independent vertical scales, because when a compound contains an element with negative b the neutron weights can be many times larger than the X-ray ones. The dashed line on each G(r) is −4πrρ0.
the fit

Getting numbers out

Two quite different strategies exist, and choosing between them is really a choice about how many parameters your data can support.

Small-box modelling — often called real-space Rietveld — refines a unit cell against G(r). You adjust lattice parameters, atomic positions, anisotropic displacement parameters, a scale factor, the correlated-motion parameter δ1 or δ2, and, for a nanomaterial, a particle diameter. This is what PDFgui, Diffpy-CMI and TOPAS do. It is quantitative, the parameters mean something, and the goodness of fit Rw is comparable between models of the same data.

Big-box modelling — Reverse Monte Carlo, as implemented in RMCProfile — moves tens of thousands of atoms in a large supercell until the calculated G(r), S(Q) and Bragg profile all match simultaneously. The output is an atomic configuration rather than a parameter list, and you interrogate it afterwards for bond-angle distributions, polyhedral tilts, local ordering. It has vastly more degrees of freedom than the data constrain, so the honest use of RMC is to ask what configurations are consistent with the data, never to claim it has found the structure.

The single most useful trick in the whole method: refine the same model over different r ranges. A fit over 1–10 Å reports the local structure; a fit over 20–50 Å approaches the crystallographic average. If the two disagree — a larger local lattice parameter, a distortion that only appears at short r — that disagreement is the physics, and it is precisely what Bragg analysis alone cannot see.

Sanity checks that catch most mistakes: the low-r baseline must be the straight line; the refined scale factor should be near one if your normalisation was right; Qdamp must come from a standard rather than floating freely, since it correlates strongly with displacement parameters; and a fit that looks excellent over 1–5 Å but drifts systematically above 20 usually means a wrong Qdamp or an unmodelled particle-size effect, not new physics.

What a small-box fit refines
scale
absorbs normalisation error; should land near 1
a, b, c
lattice parameters — and note these are local ones when fitted over a short r range
Uij
displacement parameters; thermal and static disorder together, inseparably
δ1, δ2
correlated-motion peak sharpening at low r
Qdamp, Qbroad
instrument resolution — fix from a standard, do not float
spdiameter
nanoparticle diameter, through the characteristic function γ0(r)
A nanoparticle’s G(r) is the bulk one multiplied by a function that falls to zero at the particle diameter. This makes total scattering one of the few techniques that measures particle size and internal structure from the same dataset, with no assumption of sphericity beyond the model you choose.
scope

Where it wins, and where it does not

Strengths

  • No crystallinity required. Glasses, liquids, amorphous films, nanoparticles and crystals are all handled by the same analysis.
  • True distances. Peak positions are interatomic separations directly, with no phase correction and no model needed to read them.
  • Absolute coordination numbers from peak areas, provided the normalisation is right and the weights are known.
  • Local and average in one dataset. Fitting different r ranges separates the two, which is the technique's signature capability.
  • Long reach. With a high-resolution instrument, structural information extends to tens of nanometres — far beyond any local probe.
  • Two radiations. Neutron and X-ray datasets weight the partials differently, and fitting them jointly genuinely adds information.

Limits

  • No element selectivity without isotopic substitution or resonant scattering — you get one weighted sum of all pairs.
  • Overlapping peaks. Beyond the first shell or two, distances pile up and individual contributions cannot be separated by inspection.
  • Corrections are unforgiving. Absorption, multiple scattering, Compton and Placzek errors all masquerade as structure.
  • Qmax-limited resolution. Two distances closer than about π/Qmax merge into one peak.
  • Averaging. A mixture gives the weighted sum of its phases, with no intrinsic way to separate them.
  • Light atoms are invisible to X-rays. Li, and often O beside a heavy metal, contribute almost nothing.
QuestionBragg diffractionTotal scattering / PDFEXAFS
what it reportsthe periodic average structureall interatomic distances, weightedthe neighbourhood of one element
element selectivepartly, by contrastno, without substitutionyes — you choose the edge
rangelong-range order only1 Å to tens of nmabout 5 Å
needs a crystalyesnono
distance precisionvery high, on the average~0.005–0.01 Å~0.01–0.02 Å for the first shell
coordination numberfrom the modelfrom peak area, weighted10–20% at best

PDF and EXAFS are genuinely complementary rather than competing: EXAFS knows which element it is standing on but sees only a few ångströms and struggles with coordination numbers; total scattering sees everything to much larger distances with reliable areas but cannot tell you which pair a peak belongs to. Materials problems that resist one very often yield to both.

next

Where to go from here

Software

PDFgetX3
X-ray data reduction: raw pattern to G(r), fast and largely automatic
PDFgetN3
the neutron equivalent
GudrunX / GudrunN
the careful, correction-by-correction route when the automatic one is not good enough
PDFgui
small-box refinement with a graphical interface — the place to start
Diffpy-CMI
the scriptable Python library underneath it, for anything non-standard
TOPAS
joint Bragg and PDF refinement in one program
RMCProfile
big-box Reverse Monte Carlo against G(r), S(Q) and the Bragg profile

Do what everyone does first: measure a nickel or silicon standard, reduce it, refine it in PDFgui, and get Qdamp and Qbroad for your instrument. You know the answer in advance, the whole pipeline gets exercised, and you cannot analyse anything else honestly until you have those two numbers.

Reading

1992
V. F. Sears, “Neutron scattering lengths and cross sections”, Neutron News 3, 26 — the b values everyone uses.
1999
Th. Proffen & S. J. L. Billinge, “PDFFIT”, J. Appl. Cryst. 32, 572.
2001
D. A. Keen, J. Appl. Cryst. 34, 172 — the definitive guide to which correlation function is which. Read this before your first paper.
2003
T. Egami & S. J. L. Billinge, Underneath the Bragg Peaks, Pergamon — the standard monograph (2nd edn. 2012).
2007
M. G. Tucker et al., “RMCProfile”, J. Phys.: Condens. Matter 19, 335218; C. L. Farrow et al., “PDFfit2 and PDFgui”, ibid. 19, 335219.
2007
S. J. L. Billinge & I. Levin, “The problem with determining atomic structure at the nanoscale”, Science 316, 561.
2013
P. Juhás et al., “PDFgetX3”, J. Appl. Cryst. 46, 560.