Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

3. X-ray diffraction, structure factors and systematic absences

School of Engineering, Nazarbayev University

When monochromatic X-rays strike a crystalline powder, Bragg’s law nλ=2dhklsin⁡θn\lambda = 2 d_{hkl}\sin\theta predicts where diffraction cones could appear, yet in practice, entire families of reflections vanish completely. Copper shows (111) and (200) but never (100) or (110); iron shows (110) and (200) but never (111); and diamond-cubic silicon extinguishes (200) and (222) via destructive interference across its (14,14,14)(\frac{1}{4},\frac{1}{4},\frac{1}{4}) glide basis. In this lecture, we compute complex kinematic structure factors FhklF_{hkl} and synthesize full Bragg–Brentano powder diffractograms.

Learning objectives

  1. Apply Bragg’s law (diffraction.bragg_two_theta_deg, diffraction.bragg_d_spacing_A) for Cu Kα1\mathrm{Cu\ K\alpha_1} (1.540598 A˚1.540598\ \mathrm{\AA}) vs. Mo Kα1\mathrm{Mo\ K\alpha_1} (0.709319 A˚0.709319\ \mathrm{\AA}).

  2. Evaluate complex kinematic structure factors FhklF_{hkl} (diffraction.structure_factor_hkl) and verify FCC, BCC, Diamond, and HCP selection rules.

  3. Combine multiplicity MhklM_{hkl} and the Lorentz–polarization factor (diffraction.lorentz_polarization_factor) to simulate powder patterns (diffraction.simulate_powder_xrd).

  4. Synthesize continuous pseudo-Voigt diffractograms (diffraction.broadened_xrd_profile) and analyze Ewald-sphere wavelength cutoffs.

Time: about 60 min

1. Principles and governing equations

1.1 Bragg’s Law & Ewald Resolution Cutoff

Constructive interference between X-rays of wavelength λ\lambda scattered elastically by parallel (hkl)(hkl) planes of spacing dhkld_{hkl} occurs at glancing Bragg angle θ\theta (diffractometer detector angle 2θ2\theta):

nλ=2dhklsin⁡θ⟺2θ=2arcsin⁡ ⁣(nλ2dhkl)(1.1)n\lambda = 2 d_{hkl} \sin\theta \quad \Longleftrightarrow \quad 2\theta = 2\arcsin\!\left(\frac{n\lambda}{2 d_{hkl}}\right) \tag{1.1}

Because ∣sin⁡θ∣≤1|\sin\theta| \le 1, diffraction is physically observable only for plane spacings satisfying dhkl≥nλ2d_{hkl} \ge \frac{n\lambda}{2} (the diameter of the Ewald sphere in reciprocal space is 4π/λ4\pi/\lambda).

1.2 Kinematic Structure Factor FhklF_{hkl}

Within each unit cell, NN basis atoms at fractional coordinates (xj,yj,zj)(x_j, y_j, z_j) with atomic scattering factors fjf_j interfere with phase shifts 2π(hxj+kyj+lzj)2\pi(h x_j + k y_j + l z_j):

Fhkl=∑j=1Nfjexp⁡ ⁣[2πi(hxj+kyj+lzj)],Ihklkin∝Mhkl ∣Fhkl∣2 LP(θ)(1.2)F_{hkl} = \sum_{j=1}^N f_j \exp\!\bigl[2\pi i (h x_j + k y_j + l z_j)\bigr], \qquad I_{hkl}^{\mathrm{kin}} \propto M_{hkl}\,|F_{hkl}|^2\,\mathrm{LP}(\theta) \tag{1.2}

Demonstration 1: Bragg Angle Comparison (Cu K-alpha1 vs Mo K-alpha1) & Round-Trip Closure
=========================================================================================
Si (hkl)   |  d_hkl [A] | 2theta Cu-Ka1 [deg] | 2theta Mo-Ka1 [deg] | Round-trip d [A]
--------------------------------------------------------------------------------------
(1, 1, 1)  |    3.13553 |             28.4426 |             12.9892 |          3.13553
(2, 2, 0)  |    1.92011 |             47.3032 |             21.2882 |          1.92011
(3, 1, 1)  |    1.63748 |             56.1229 |             25.0175 |          1.63748
(4, 0, 0)  |    1.35773 |             69.1306 |             30.2845 |          1.35773
(3, 3, 1)  |    1.24593 |             76.3769 |             33.0763 |          1.24593

What Demonstration 1 shows. Silicon’s primary (111) reflection (d111=3.1355 A˚d_{111} = 3.1355\ \mathrm{\AA}) appears at 2θ=28.443∘2\theta = 28.443^\circ under Cu Kα1\mathrm{Cu\ K\alpha_1} (1.5406 A˚1.5406\ \mathrm{\AA}), but compresses down to 2θ=12.989∘2\theta = 12.989^\circ under harder Mo Kα1\mathrm{Mo\ K\alpha_1} radiation (0.7093 A˚0.7093\ \mathrm{\AA}), with bragg_d_spacing_A inverting bragg_two_theta_deg to rounding error.


2. Systematic Absences Across FCC, BCC, Diamond & HCP Crystals

Evaluating Equation (1.2) on unit-form-factor (f=1f=1) fractional coordinates yields exact crystallographic extinction rules:

  • BCC: Fhkl=1+eiπ(h+k+l)  ⟹  ∣F∣2=4F_{hkl} = 1 + e^{i\pi(h+k+l)} \implies |F|^2 = 4 if h+k+lh+k+l is even, 0 if odd.

  • FCC: Fhkl=1+eiπ(k+l)+eiπ(h+l)+eiπ(h+k)  ⟹  ∣F∣2=16F_{hkl} = 1 + e^{i\pi(k+l)} + e^{i\pi(h+l)} + e^{i\pi(h+k)} \implies |F|^2 = 16 if (h,k,l)(h,k,l) have unmixed parity (all even or all odd), 0 otherwise.

  • Diamond: Fhkldiam=FhklFCC[1+eiπ2(h+k+l)]  ⟹  ∣F∣2=32F_{hkl}^{\mathrm{diam}} = F_{hkl}^{\mathrm{FCC}}\bigl[1 + e^{i\frac{\pi}{2}(h+k+l)}\bigr] \implies |F|^2 = 32 (h,k,l all odd), ∣F∣2=64|F|^2 = 64 (h,k,l all even and h+k+l≡0(mod4)h+k+l \equiv 0 \pmod 4), and forbidden (0) when h+k+l≡2(mod4)h+k+l \equiv 2 \pmod 4 such as (200) and (222).

  • HCP: Forbidden whenever h+2k≡0(mod3)h + 2k \equiv 0 \pmod 3 and ll is odd, extinguishing basal (001) and (003).


Demonstration 2: Kinematic Structure Factors |F_hkl|^2 & Systematic Absences
============================================================================
(hkl)      |  BCC |F|^2 |  FCC |F|^2 |  Diam |F|^2 |  HCP |F|^2
----------------------------------------------------------------
(1, 0, 0)  |       0.00 |       0.00 |        0.00 |       1.00
(0, 0, 1)  |       0.00 |       0.00 |        0.00 |       0.00
(0, 0, 2)  |       4.00 |      16.00 |        0.00 |       4.00
(1, 0, 1)  |       4.00 |       0.00 |        0.00 |       3.00
(1, 1, 0)  |       4.00 |       0.00 |        0.00 |       4.00
(1, 1, 1)  |       0.00 |      16.00 |       32.00 |       0.00
(2, 0, 0)  |       4.00 |      16.00 |        0.00 |       1.00
(2, 2, 0)  |       4.00 |      16.00 |       64.00 |       4.00
(2, 2, 2)  |       4.00 |      16.00 |        0.00 |       4.00
(4, 0, 0)  |       4.00 |      16.00 |       64.00 |       1.00
<Figure size 814x418 with 1 Axes>

Figure 3.1. Allowed reflections of four cubic structures up to h2+k2+l2=24h^2 + k^2 + l^2 = 24, from the structure factor. Since sin⁡2θ∝h2+k2+l2\sin^2\theta \propto h^2 + k^2 + l^2 for a cubic crystal, the sequence of lines identifies the structure.

What Demonstration 2 shows. Rows (2, 0, 0) and (2, 2, 2) are allowed in FCC (∣F∣2=16|F|^2 = 16), yet extinguished in Diamond (∣F∣2=0.00|F|^2 = 0.00) because the second interpenetrating FCC sublattice shifted by (14,14,14)(\frac{1}{4}, \frac{1}{4}, \frac{1}{4}) scatters 180∘180^\circ out of phase (eiπ=−1e^{i\pi} = -1). Similarly, in HCP, (001) vanishes while (100) (∣F∣2=1|F|^2 = 1), (101) (∣F∣2=3|F|^2 = 3), and (002) (∣F∣2=4|F|^2 = 4) survive in a 1:3:41:3:4 structure-factor ratio.


3. Simulating Full Powder Diffractograms (Cu, Fe, Si, Ti)

In an unpolarized Bragg–Brentano powder diffractometer, raw peak intensity combines plane multiplicity MhklM_{hkl}, ∣Fhkl∣2|F_{hkl}|^2, and the geometric Lorentz–polarization factor:

LP(θ)=1+cos⁡2(2θ)sin⁡2θ cos⁡θ(3.1)\mathrm{LP}(\theta) = \frac{1 + \cos^2(2\theta)}{\sin^2\theta\,\cos\theta} \tag{3.1}

We simulate and plot continuous pseudo-Voigt powder XRD patterns (simulate_powder_xrd + broadened_xrd_profile) for Cu, Fe, Si, and Ti.


Demonstration 3: Simulated Cu K-alpha1 Powder Diffractograms for Cu, Fe, Si & Ti
================================================================================
Cu (FCC)      |  5 peaks in [20, 100] deg | strongest = (1, 1, 1) at 2theta = 43.32 deg
Fe (BCC)      |  4 peaks in [20, 100] deg | strongest = (1, 1, 0) at 2theta = 44.67 deg
Si (Diamond)  |  7 peaks in [20, 100] deg | strongest = (1, 1, 1) at 2theta = 28.44 deg
Ti (HCP)      | 12 peaks in [20, 100] deg | strongest = (1, 0, 1) at 2theta = 40.16 deg
<Figure size 1045x572 with 1 Axes>

Figure 3.2. Computed powder patterns of Cu, Fe, Si and Ti for Cu Kα1\alpha_1 radiation, offset vertically. All atoms are given the same form factor, so only the positions and the absences are quantitative; the peak width is chosen for display.

What Demonstration 3 shows. Each structure has its own pattern: FCC Cu opens with the closely spaced (111)/(200) doublet (43.32∘,50.45∘43.32^\circ, 50.45^\circ); BCC Fe shows evenly spaced (110), (200), (211); Diamond Si shows wide gaps where (200) and (222) are missing; and lower-symmetry HCP Ti splits into the (100), (002), (101) triplet between 35∘35^\circ and 41∘41^\circ.


4. Sensitivity: Radiation Wavelength & Ewald Cutoff

How many reflections can simulate_powder_xrd observe in Cu (a=3.6149 A˚a = 3.6149\ \mathrm{\AA}, max_hkl=6, two_theta_max=150.0) when switching X-ray anode from Cr Kα\mathrm{Cr\ K\alpha} (λ=2.2897 A˚\lambda = 2.2897\ \mathrm{\AA}) to Cu Kα1\mathrm{Cu\ K\alpha_1} (1.5406 A˚1.5406\ \mathrm{\AA}) to Mo Kα1\mathrm{Mo\ K\alpha_1} (0.7093 A˚0.7093\ \mathrm{\AA})?


Demonstration 4: Anode Wavelength Sweep & Ewald Sphere Cutoff (d_min = lambda / 2)
==================================================================================
Cr K-alpha   (lambda = 2.28970 A, d_min = 1.1448 A) ->  3 observable FCC peaks <= 150 deg
Cu K-alpha1  (lambda = 1.54060 A, d_min = 0.7703 A) ->  8 observable FCC peaks <= 150 deg
Mo K-alpha1  (lambda = 0.70932 A, d_min = 0.3547 A) -> 26 observable FCC peaks <= 150 deg

Inside the algorithm

Halving X-ray wavelength doubles the radius 2π/λ2\pi/\lambda of the Ewald sphere, so the number of Cu reflections below 2θ=150∘2\theta = 150^\circ grows from 3 (Cr Kα\mathrm{Cr\ K\alpha}) to 8 (Cu Kα1\mathrm{Cu\ K\alpha_1}) to 26 (Mo Kα1\mathrm{Mo\ K\alpha_1}). Below we inspect diffraction.structure_factor_hkl and verify a vectorized NumPy structure-factor matrix across 20 reflections simultaneously.

Check against the library


Inside the Algorithm: Vectorized NumPy Complex Phase Matrix vs structure_factor_hkl
===================================================================================
def structure_factor_hkl(
    hkl: tuple | list | np.ndarray,
    fractional_coords: np.ndarray,
    form_factors: np.ndarray | float | None = None,
) -> dict:
    """Evaluate complex kinematic structure factor F_hkl = sum_j f_j exp(2*pi*i*(h*x_j + k*y_j + l*z_j))."""
    idx = np.asarray(hkl, dtype=float).reshape(3)
    frac = np.asarray(fractional_coords, dtype=float)
    if frac.ndim != 2 or frac.shape[1] != 3:
        raise ValueError("fractional_coords must have shape (N, 3).")
    n_atoms = frac.shape[0]
    if form_factors is None:
        f_arr = np.ones(n_atoms, dtype=float)
    elif np.ndim(form_factors) == 0:
        f_arr = np.full(n_atoms, float(form_factors), dtype=float)
    else:
        f_arr = np.asarray(form_factors, dtype=float).reshape(n_atoms)

    phases = 2.0 * np.pi * (frac @ idx)
    f_complex = np.sum(f_arr * np.exp(1j * phases))
    f2 = float(np.abs(f_complex) ** 2)
    return {
        "F_complex": complex(f_complex),
        "F_real": float(np.real(f_complex)),
        "F_imag": float(np.imag(f_complex)),
        "intensity_F2": f2,
        "allowed": bool(f2 > 1e-10),
    }

NumPy |F|^2: [25088.     0. 50176. 25088.     0. 50176. 25088. 50176.]
Library    |F|^2: [25088.     0. 50176. 25088.     0. 50176. 25088. 50176.]

Exercises

Worked solutions are in 03_solutions.ipynb. The cell below the list is a short self-check to start from.

  1. Verify a result. Verify the exact first-5 allowed Nhkl=h2+k2+l2N_{hkl} = h^2 + k^2 + l^2 sequences for Cu (fcc), Fe (bcc), and Si (diamond) via simulate_powder_xrd, and recover aSia_{\mathrm{Si}} from λNhkl/(2sin⁡θhkl)\lambda\sqrt{N_{hkl}} / (2\sin\theta_{hkl}) across all peaks to rounding error.

  2. Find how it fails. Compare (100) superlattice and (110) fundamental structure factors in ordered B2 FeAl (form_factors=[26.0, 13.0]) versus disordered A2 ([19.5, 19.5]) using diffraction.structure_factor_hkl.

  3. Implement it yourself. Implement index_unknown_cubic_xrd(two_theta_deg_list, wavelength_A) using 7 reflections under Mo Kα1\mathrm{Mo\ K\alpha_1} to break the 6-peak SC/BCC degeneracy (N7/N1=8N_7/N_1 = 8 vs. 7) and verify exact classification and a [A˚]a\ [\mathrm{\AA}] recovery on SC, Fe (bcc), Cu (fcc), and Si (diamond).


Self-check for the exercises
============================
fcc      first 5 allowed N = h^2+k^2+l^2: [3, 4, 8, 11, 12]
bcc      first 5 allowed N = h^2+k^2+l^2: [2, 4, 6, 8, 10]
diamond  first 5 allowed N = h^2+k^2+l^2: [3, 8, 11, 16, 19]
All checks passed.