---
title: The reciprocal lattice and X-ray diffraction
heading: How waves see a crystal, and how we measure one
eyebrow: B12 · Lesson 3 · The reciprocal lattice and X-ray diffraction
xp: 45
---

::: hook
Atoms are too small to see in a microscope that uses light, but a crystal is a near-perfect three-dimensional grating, and X-rays with wavelengths near 0.15 nm diffract from it into sharp beams at angles set by the spacing of its planes. X-ray diffraction measures lattice constants to a part in 10⁵, which is how a fab checks the germanium content of a SiGe layer or the strain in a channel. The same mathematics, the **reciprocal lattice**, will describe electron waves in the crystal in lesson 15: every gap in a band structure is a Bragg reflection of the electron's own wave.
:::

::: play
- The curve is a powder diffraction pattern of a diamond-structure crystal: X-ray intensity against the scattering angle 2θ. Each peak is a family of planes satisfying Bragg's law. (Peak heights are approximate.)
- The first peaks of silicon with copper Kα X-rays fall at 28.45°, 47.3° and 56.1°: (111), (220) and (311). Notice what's missing: no (100), (110) or (200). The diamond structure's basis makes those reflections cancel.
- Increase the lattice constant (add germanium) and every peak moves to lower angle; shorten the wavelength and they all move lower too.
:::
:::

```sim plot
view: graph
x: t = 20..100 °
y: I = 0..110
slider: a = 0.53..0.6 step 0.0005 = 0.5431 nm
slider: l = 0.07..0.16 step 0.0005 = 0.1541 nm
plot: 100*exp(-(t - 360/pi*asin(l*sqrt(3)/(2*a)))^2/0.045) + 55*exp(-(t - 360/pi*asin(l*sqrt(8)/(2*a)))^2/0.045) + 30*exp(-(t - 360/pi*asin(l*sqrt(11)/(2*a)))^2/0.045) + 6*exp(-(t - 360/pi*asin(l*sqrt(16)/(2*a)))^2/0.045) + 11*exp(-(t - 360/pi*asin(l*sqrt(19)/(2*a)))^2/0.045) + 12*exp(-(t - 360/pi*asin(l*sqrt(24)/(2*a)))^2/0.045) + 6*exp(-(t - 360/pi*asin(l*sqrt(27)/(2*a)))^2/0.045) | samples: 3000 | label: diffracted intensity (relative)
readout: (111) peak, 2θ in degrees = 360/pi*asin(l*sqrt(3)/(2*a))
readout: (400) peak, 2θ in degrees = 360/pi*asin(l*sqrt(16)/(2*a))
```

::: predict
## Copper Kα X-rays (λ = 0.1541 nm) hit silicon (a = 0.5431 nm). At what scattering angle 2θ does the (111) reflection appear?

- [ ] 14.2°
- [x] 28.45°
- [ ] 56.8°
- [ ] It's forbidden in silicon

::: reveal
$d_{111} = \frac{0.5431}{\sqrt3}$ = 0.3136 nm, so $\sin\theta = \frac{\lambda}{2d}$ = 0.2457 and θ = 14.22°. Diffractometers report the angle between incident and diffracted beams, 2θ = 28.45°. It's allowed: all three indices odd.
:::
:::

::: nameit
## Bragg's law

Waves reflected from successive planes spaced d apart add in phase when

$$2d\sin\theta = n\lambda$$

with θ measured from the planes. Higher orders n are usually written as reflections from planes (nh nk nl) at spacing d/n.

## The reciprocal lattice

For a lattice with primitive vectors $\mathbf a_i$, the reciprocal lattice is spanned by $\mathbf b_1 = 2\pi\frac{\mathbf a_2 \times \mathbf a_3}{\mathbf a_1\cdot(\mathbf a_2 \times \mathbf a_3)}$ and its cyclic partners, so that $\mathbf a_i\cdot\mathbf b_j = 2\pi\delta_{ij}$. Each reciprocal lattice vector $\mathbf G = h\mathbf b_1 + k\mathbf b_2 + l\mathbf b_3$ is perpendicular to the (hkl) planes, with $\lvert\mathbf G\rvert = \frac{2\pi}{d_{hkl}}$. Diffraction occurs when the change in the wave's wavevector equals a reciprocal lattice vector, $\mathbf k' - \mathbf k = \mathbf G$ (the Laue condition), which is Bragg's law in vector form.

## The structure factor

Atoms in the basis scatter with relative phases, and the sum can vanish. For the fcc lattice, (hkl) appear only if h, k, l are all even or all odd. The diamond basis removes more: all-even reflections also need h + k + l divisible by 4. So silicon shows (111), (220), (311), (400), but not (100), (110), (200) or (222).

## Measuring with it

$a = d_{hkl}\sqrt{h^2 + k^2 + l^2}$ from a measured angle. In alloys the lattice constant interpolates almost linearly with composition (**Vegard's law**): for $\text{Si}_{1-x}\text{Ge}_x$, $a \approx 0.5431 + 0.0227x$ nm. A shift of a few tenths of a degree in the (400) peak reads out x to a fraction of a percent.
:::

::: example
## A SiGe layer has 20% germanium. Where does its (400) peak fall with copper Kα?

::: solution
1. **Lattice constant.**
   $$\begin{aligned} a &= 0.5431 + 0.2 \times 0.0227 \\ &= 0.5476\ \text{nm} \end{aligned}$$
2. **Plane spacing.**
   $$\begin{aligned} d_{400} &= \frac a4 \\ &= 0.1369\ \text{nm} \end{aligned}$$
3. **Bragg angle.**
   $$\begin{aligned} \sin\theta &= \frac{0.1541}{0.2738} \\ &= 0.5628 \end{aligned}$$
   so θ = 34.25° and 2θ = 68.50°.
4. **Compare with silicon.** That's 0.65° below silicon's 69.15°.
5. **Strain.** A thin layer grown on silicon is also strained, which shifts the peak further; real measurements separate the two.

**Answer:** the (400) peak falls at 2θ = 68.50°, 0.65° below silicon's.
:::
:::

::: example
## Is the (200) reflection allowed in copper (fcc) and in silicon (diamond)?

::: solution
1. **Copper.** In copper, h, k, l = 2, 0, 0 are all even, so (200) is allowed: it's one of copper's strong peaks.
2. **Silicon.** The diamond basis adds the condition h + k + l = 4n for all-even indices, and 2 + 0 + 0 = 2 fails it, so the (200) reflection vanishes.
3. **The fingerprint.** Its absence, and (111) and (220) being present, is the fingerprint of the diamond structure.

**Answer:** the (200) reflection is allowed (and strong) in copper and absent in silicon.
:::
:::

::: example
## Silicon nanocrystals give a (111) peak at 2θ = 28.44° with copper Kα (0.15406 nm), 0.5° wide at half maximum (after subtracting the instrument's width). How big are the crystallites?

::: solution
1. **Why small crystals broaden peaks.** Small crystals have too few planes to make sharp interference, so their peaks broaden.
2. **Inputs.** The width β goes in radians, 0.5° = 0.00873, and K ≈ 0.9 for roughly spherical grains.
3. **Scherrer's formula.**
   $$\begin{aligned} \tau &= \frac{K\lambda}{\beta\cos\theta} \\ &= \frac{0.9 \times 0.15406}{0.00873 \times \cos14.22°}\ \text{nm} \\ &= 16\ \text{nm} \end{aligned}$$
4. **Narrower peaks.** A 0.1° peak would mean about 80 nm; beyond a few hundred nanometers the broadening is too small to separate from the instrument's own.

**Answer:** the crystallites are about 16 nm across.
:::
:::

::: check
given: d = 0.1 | 0.2 | 0.3136; l = 0.1541 | 0.0709
answer: 360/pi*asin(l/(2*d))
unit: °
tolerance: 0.2%

## Planes spaced {d} nm apart diffract X-rays of wavelength {l} nm. At what scattering angle 2θ is the first-order peak?

::: right
Right. $2\arcsin\frac{\lambda}{2d}$ = {answer}°.
:::

::: misses
- [180/pi*asin(l/(2*d))] That's θ; diffractometers report 2θ.
- [any] Not yet. Bragg's law, then double the angle.
:::
:::

::: check
given: a = 0.5431 | 0.5653 | 0.5658; m = 3 | 8 | 11 | 16; w = 0.1541
answer: 360/pi*asin(w*sqrt(m)/(2*a))
unit: °
tolerance: 0.2%

## A diamond-structure crystal has a = {a} nm. With {w} nm X-rays, at what 2θ does its reflection with $h^2 + k^2 + l^2$ = {m} appear?

::: right
Right. $d = a/\sqrt{h^2 + k^2 + l^2}$, then $2\arcsin\frac{\lambda}{2d}$ = {answer}°.
:::

::: misses
- [any] Not yet. $d = a/\sqrt{m}$.
:::
:::

::: check
given: t = 68.3 | 68.6 | 69.0; l = 0.1541
answer: 4*l/(2*sin(t*pi/360))
unit: nm
tolerance: 0.05%

## The (400) peak of a cubic crystal appears at 2θ = {t}° with {l} nm X-rays. What's the lattice constant?

::: right
Right. $d_{400} = \frac{\lambda}{2\sin\theta}$ and a = 4d = {answer} nm.
:::

::: misses
- [l/(2*sin(t*pi/360))] That's $d_{400}$; multiply by $\sqrt{16}$ = 4.
- [any] Not yet. Bragg's law with θ = half of 2θ.
:::
:::

::: check
given: a = 0.5445 | 0.5475 | 0.5520
answer: (a - 0.5431)/0.0227
tolerance: 1%

## A relaxed SiGe layer has a = {a} nm. What's its germanium fraction x by Vegard's law?

::: right
Right. $x = \frac{a - 0.5431}{0.0227}$ = {answer}.
:::

::: misses
- [any] Not yet. $a = 0.5431 + 0.0227x$ nm.
:::
:::

::: check
given: d = 0.1 | 0.2 | 0.3136
answer: 2*pi/d
unit: nm^-1
tolerance: 0.1%

## How long is the reciprocal lattice vector for planes spaced {d} nm apart?

::: right
Right. $\lvert\mathbf G\rvert = 2\pi/d$ = {answer} nm⁻¹.
:::

::: misses
- [1/d] Include the 2π.
- [any] Not yet. $\lvert\mathbf G\rvert = 2\pi/d_{hkl}$.
:::
:::

::: check
kind: choice

## Which of these reflections does silicon (diamond structure) show?

- [ ] (100)
- [ ] (200)
- [x] (220)
- [ ] (222)

::: misses
- [1] Mixed even and odd indices are forbidden by the fcc lattice.
- [2] All even but 2 + 0 + 0 isn't a multiple of 4: the diamond basis cancels it.
- [4] All even but 2 + 2 + 2 = 6 isn't a multiple of 4.
:::
:::

::: check
kind: parts
given: b = 0.2 | 0.5 | 1; t = 28.44 | 47.3 | 56.1

## A powder pattern taken with copper Kα (0.15406 nm) has a peak at 2θ = {t}° that's {b}° wide (instrument width removed).

::: part
answer: b*pi/180
unit: rad
tolerance: 0.5%

### What's the width in radians?

::: misses
- [any] Multiply degrees by $\frac{\pi}{180}$.
:::
:::

::: part
answer: 0.9*0.15406/(b*pi/180*cos(t/2*pi/180))
unit: nm
tolerance: 0.5%

### What crystallite size does Scherrer's formula give?

::: misses
- [0.9*0.15406/(b*pi/180*cos(t*pi/180))] Use θ, half of 2θ.
- [any] $\tau = \frac{0.9\lambda}{\beta\cos\theta}$.
:::
:::
:::

::: check
kind: derivation
vars: l = 0.05..0.2, d = 0.15..0.5

## X-rays of wavelength l diffract from planes spaced d (both in nm).

::: step
answer: l/(2*d)

### What's sin θ at the Bragg condition?
:::

::: step
answer: 2*asin(l/(2*d))*180/pi

### What's the scattering angle 2θ, in degrees?
:::

::: step
answer: 4*pi*(l/(2*d))/l

### What's the wavevector change $4\pi\sin\theta/\lambda$, in nm⁻¹?
:::

::: right
Right. It equals $\frac{2\pi}{d}$: Bragg's law says the scattering vector is a reciprocal lattice vector.
:::
:::

::: explain
## Why does a crystal diffract X-rays only at particular angles, while an amorphous solid gives broad rings?

::: model
Each atom scatters a small part of the incoming wave. In a crystal, the atoms sit on planes repeated exactly, so the waves scattered by successive planes add in phase only when their path difference, $2d\sin\theta$, is a whole number of wavelengths. Away from those angles the contributions from millions of planes cancel almost perfectly, so the intensity concentrates in sharp peaks. An amorphous solid has well-defined nearest-neighbor distances but no long-range repetition, so there's no set of planes for the waves to add across: the scattering shows only broad halos that reflect the typical spacing between neighbors.
:::
:::

::: practice

::: check
given: d = 0.12 | 0.35; l = 0.1541 | 0.0709
answer: 360/pi*asin(l/(2*d))
unit: °
tolerance: 0.2%

## 2θ for d = {d} nm, λ = {l} nm?

::: misses
- [any] $2\arcsin(\lambda/2d)$.
:::
:::

::: check
given: t = 66 | 66.5 | 67 | 68 | 68.5 | 69.2; l = 0.1541
answer: 4*l/(2*sin(t*pi/360))
unit: nm
tolerance: 0.05%

## a from the (400) peak at {t}°?

::: misses
- [any] $4\lambda/(2\sin\theta)$.
:::
:::

::: check
given: a = 0.5445 | 0.547 | 0.55 | 0.552 | 0.556 | 0.56 | 0.564
answer: (a - 0.5431)/0.0227
tolerance: 1%

## Ge fraction for a = {a} nm?

::: misses
- [any] Vegard's law.
:::
:::
:::
