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.

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

School of Engineering, Nazarbayev University

Worked solutions to the three exercises of Lecture 3. Each solution is computed here and checked with assert statements against an exact identity or an independent calculation. The first code cell sets up the notebook and runs Demonstration 1 of the lecture without showing its output, because some of the solutions use its variables.

Exercise 1

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


Exercise 1: Cubic sin^2(theta) Integer Signatures & Exact Lattice-Parameter Inversion
=====================================================================================
Cu (fcc    ) | N_seq = [3, 4, 8, 11, 12] | mean recovered a = 3.614900 A (true = 3.614900 A)
Fe (bcc    ) | N_seq = [2, 4, 6, 8, 10] | mean recovered a = 2.866500 A (true = 2.866500 A)
Si (diamond) | N_seq = [3, 8, 11, 16, 19] | mean recovered a = 5.430900 A (true = 5.430900 A)

Explanation. FCC produces sin⁡2θ2/sin⁡2θ1=4/3=1.333\sin^2\theta_2 / \sin^2\theta_1 = 4/3 = 1.333, BCC produces 4/2=2.0004/2 = 2.000, and Diamond produces 8/3=2.6678/3 = 2.667, so the ratio of the first two peaks already separates the three structures.


Exercise 2

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


Exercise 2: Diagnostic Audit — B2 Superlattice Ordering vs Disordered BCC Extinction
====================================================================================
Disordered A2 (100): allowed = False, |F|^2 = 0.00
Ordered    B2 (100): allowed = True,  |F|^2 = 169.00 == (f_Fe - f_Al)^2
Ordered    B2 (110): allowed = True,  |F|^2 = 1521.00 == (f_Fe + f_Al)^2

Explanation. Breaking body-centering translational symmetry by chemical ordering (fA≠fBf_A \neq f_B) reduces the Bravais lattice from BCC to simple cubic with a 2-atom basis, lighting up superlattice peaks (h+k+lh+k+l odd) with intensity proportional to chemical contrast (fA−fB)2(f_A - f_B)^2 (the basis of long-range order parameter measurement in intermetallics).


Exercise 3

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


Exercise 3: Implement It Yourself — 7-Peak Cubic XRD Indexer (Breaking SC vs BCC Degeneracy)
============================================================================================
Po-alpha (SC)   -> classified = sc      , extracted a = 3.35900 A (true = 3.35900 A)
Fe (BCC)        -> classified = bcc     , extracted a = 2.86650 A (true = 2.86650 A)
Cu (FCC)        -> classified = fcc     , extracted a = 3.61490 A (true = 3.61490 A)
Si (Diamond)    -> classified = diamond , extracted a = 5.43090 A (true = 5.43090 A)

Summary. Because no three integers satisfy h2+k2+l2=7h^2 + k^2 + l^2 = 7, SC skips 7 ([1,2,3,4,5,6,8]) while BCC hits 14/2=714/2 = 7 via (321), a crystallographic pitfall where inspecting fewer than 7 reflections misindexes a BCC metal of edge aa as an SC crystal of edge a/2a/\sqrt{2}.