---
title: Spin and the Stern–Gerlach experiment
heading: An angular momentum with no classical picture, described by 2×2 matrices
eyebrow: B10 · Lesson 23 · Spin and the Stern–Gerlach experiment
xp: 50
---

::: hook
In 1922 Stern and Gerlach sent a beam of silver atoms through a strongly non-uniform magnetic field and found it split cleanly in two. The atoms carry a magnetic moment from an angular momentum that isn't orbital at all: the electron's **spin**, which has only two possible values along any axis you choose to measure. Spin is the simplest quantum system there is, a two-dimensional Hilbert space, and an enormous amount of technology runs on it: MRI, electron spin resonance, magnetic hard-disk read heads (spin-dependent scattering), spin qubits, and the Pauli principle that fills the periodic table and the bands of every solid.
:::

::: play
- A spin starts tilted at angle θ from a magnetic field along z, and precesses about the field at the Larmor frequency, 28.0 GHz per tesla for an electron.
- $\langle S_x\rangle$ (solid) oscillates; $\langle S_z\rangle$ (dashed) stays fixed at $\frac\hbar2\cos\theta$, since the field can't change the energy, which depends only on $S_z$.
- Raise B: the precession speeds up in proportion. Tilt θ to 0: nothing precesses, because spin-up along z is a stationary state.
:::
:::

```sim plot
view: graph
x: t = 0..2 ns
y: S = -1.1..1.1
slider: B = 0..0.2 step 0.005 = 0.05 T
slider: th = 0..180 step 5 = 60 °
plot: sin(th°)*cos(2*pi*28.025*B*t) | samples: 1500 | label: ⟨Sₓ⟩ in units of ħ/2
plot: cos(th°) | dashed | label: ⟨S_z⟩ in units of ħ/2
readout: precession frequency, GHz = 28.025*B
readout: chance of spin up along z = cos(th°/2)^2
```

::: predict
## Electrons are prepared spin-up along z, then sent through a Stern–Gerlach magnet oriented along x. What fraction come out spin-up along x?

- [ ] All of them
- [ ] None
- [x] Half
- [ ] It depends on the field strength

::: reveal
Half. Spin-up along z is an equal superposition of up and down along x: $\chi_+^{(z)} = \frac{1}{\sqrt2}(\chi_+^{(x)} + \chi_-^{(x)})$. For a measurement axis at angle θ from the preparation axis, the chance of "up" is $\cos^2(\theta/2)$, which is ½ at 90°. Send the x-up beam into a z magnet and it splits in half again: the x measurement erased the z information.
:::
:::

::: nameit
## Spin ½

The spin state is a two-component **spinor** $\chi = \begin{pmatrix}a\\ b\end{pmatrix} = a\chi_+ + b\chi_-$, with $\lvert a\rvert^2 + \lvert b\rvert^2 = 1$. Spin operators are $\hat S_i = \frac\hbar2\sigma_i$ with the **Pauli matrices**

$$\sigma_x = \begin{pmatrix}0 & 1\\ 1 & 0\end{pmatrix}, \quad \sigma_y = \begin{pmatrix}0 & -i\\ i & 0\end{pmatrix}, \quad \sigma_z = \begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}$$

Each has eigenvalues ±1, so any spin component measures ±ħ/2. They obey $[\hat S_x, \hat S_y] = i\hbar\hat S_z$, the same algebra as orbital angular momentum, with $S^2 = \frac34\hbar^2$ (s = ½).

## Any direction

The state "up along the direction at polar angle θ, azimuth φ" is $\begin{pmatrix}\cos(\theta/2)\\ e^{i\phi}\sin(\theta/2)\end{pmatrix}$. Every spinor is up along some direction, so spin states are points on a sphere (the **Bloch sphere**). For it, $\langle\mathbf S\rangle = \frac\hbar2(\sin\theta\cos\phi, \sin\theta\sin\phi, \cos\theta)$, and the probability of "up" along an axis at angle α from it is $\cos^2(\alpha/2)$.

## In a magnetic field

The electron's magnetic moment is $\boldsymbol\mu = -g\frac{e}{2m}\mathbf S$ with g = 2.0023, so $\hat H = -\boldsymbol\mu\cdot\mathbf B$. In a field along z, the two levels split by $g\mu_BB$, where $\mu_B = 57.9$ µeV/T is the Bohr magneton: 116 µeV per tesla. A spin not along z **precesses** about the field at the Larmor frequency

$$f_L = \frac{g\mu_BB}{h} = 28.0\text{ GHz/T} \times B$$

which is also the frequency that drives transitions between the two levels: **electron spin resonance**. Protons do the same at 42.58 MHz/T, which is the frequency an MRI scanner tunes to.

## Stern–Gerlach

A field gradient $\partial B_z/\partial z$ pushes on the moment with force $\pm\mu_B\frac{\partial B_z}{\partial z}$, opposite for the two spin states, so the beam splits in two. It measures $S_z$ and leaves each output beam in a $S_z$ eigenstate.
:::

::: example
## An ESR spectrometer works at X band. What field brings free electrons into resonance at 9.8 GHz?

::: solution
1. **Resonant field.** Free electrons precess at 28.0 GHz per tesla:
   $$\begin{aligned} B &= \frac{9.8}{28.0}\ \text{T} \\ &= 0.350\ \text{T} \end{aligned}$$
2. **In practice.** X-band ESR magnets sweep around 0.35 T, and the exact field where a sample absorbs gives its g value, which shifts with the electron's surroundings: that's how ESR identifies defects in semiconductors and oxides.

**Answer:** a field of 0.350 T.
:::
:::

::: example
## Silver atoms at 500 m/s cross a 3.5 cm Stern–Gerlach magnet with a gradient of 1000 T/m. How far apart are the two beams when they leave?

::: solution
1. **Force.**
   $$\begin{aligned} F &= \mu_B \times 1000 \\ &= 9.27 \times 10^{-21}\ \text{N} \end{aligned}$$
2. **Acceleration.** Silver's mass is $1.79 \times 10^{-25}$ kg, so a = 51,800 m/s².
3. **Time in the magnet.**
   $$\begin{aligned} t &= \frac{0.035}{500}\ \text{s} \\ &= 70\ \text{µs} \end{aligned}$$
4. **Deflection.** Each beam deflects $\frac12at^2$ = 0.127 mm, up or down, so they're 0.25 mm apart, and they keep separating after the magnet.

**Answer:** the two beams leave 0.25 mm apart.
:::
:::

::: example
## At what frequency does an electron's spin precess in a 1 T field, and a proton's in the 1.5 T field of an MRI scanner?

::: solution
1. **Electron.**
   $$\begin{aligned} f &= \frac{g\mu_BB}{h} \\ &= \frac{2.0023 \times 9.274 \times 10^{-24} \times 1}{6.626 \times 10^{-34}} \\ &= 28.0\ \text{GHz} \end{aligned}$$
2. **Proton.** The proton's precession is 42.58 MHz per tesla, so 63.9 MHz at 1.5 T.
3. **Why so different.** The proton's magnetic moment is 660 times smaller, so its resonance sits at radio frequencies rather than microwaves. An MRI scanner tunes its coils to 63.9 MHz and maps where the protons are by making the field vary across the body.

**Answer:** the electron precesses at 28.0 GHz in 1 T, and the proton at 63.9 MHz in 1.5 T.
:::
:::

::: check
given: a = 30 | 60 | 100 | 150
answer: cos(a°/2)^2
tolerance: 0.1%

## A spin is prepared up along one axis and measured along another at {a}° to it. What's the probability of "up"?

::: right
Right. $\cos^2(\alpha/2)$ = {answer}.
:::

::: misses
- [cos(a°)^2] Spinors use half angles: $\cos^2(\alpha/2)$.
- [any] Not yet. Write the state in the measurement axis's basis.
:::
:::

::: check
given: B = 0.1 | 0.35 | 1.5
answer: 28.025*B
unit: GHz
tolerance: 0.1%

## At what frequency does an electron spin precess in {B} T?

::: right
Right. $\frac{g\mu_BB}{h}$ = {answer} GHz.
:::

::: misses
- [13.996*B] Include g ≈ 2: the spin's moment is about twice what its angular momentum alone would suggest.
- [any] Not yet. 28.0 GHz per tesla.
:::
:::

::: check
given: B = 0.5 | 2 | 9.4
answer: 115.9*B
unit: µeV
tolerance: 0.2%

## How far apart in energy are spin-up and spin-down electrons in {B} T?

::: right
Right. $g\mu_BB$ = {answer} µeV.
:::

::: misses
- [57.88*B] That's $\mu_BB$; the splitting is $g\mu_BB$, twice as big.
- [any] Not yet. $\mu_B$ = 57.9 µeV/T.
:::
:::

::: check
given: a = 1 | 2 | 3; b = 2 | 1 | 4
answer: (a + b)^2/(2*(a^2 + b^2))
tolerance: 0.1%

## A spin state is $\chi \propto \given{a}\chi_+ + \given{b}\chi_-$ (both real). What's the probability of up along x?

::: right
Right. $\lvert\langle\chi_+^{(x)}|\chi\rangle\rvert^2 = \frac{(a + b)^2}{2(a^2 + b^2)}$ = {answer}.
:::

::: misses
- [a^2/(a^2 + b^2)] That's the probability of up along z.
- [any] Not yet. $\chi_+^{(x)} = \frac{1}{\sqrt2}(1, 1)$.
:::
:::

::: check
given: G = 500 | 1000 | 2000; L = 3 | 5; v = 400 | 700
answer: 0.5*51.776*G*(L/100/v)^2*1000
unit: mm
tolerance: 0.5%

## A silver atom (moment $\mu_B$, mass 108 u) at {v} m/s crosses a {L} cm magnet with gradient {G} T/m. How far is it deflected by the end?

::: right
Right. $\frac12\frac{\mu_BG}{m}\left(\frac Lv\right)^2$ = {answer} mm.
:::

::: misses
- [51.776*G*(L/100/v)^2*1000] Include the ½ in $\frac12at^2$.
- [any] Not yet. $\frac{\mu_B}{m_{Ag}}$ = 51.8 m/s² per T/m.
:::
:::

::: check
given: t = 30 | 90 | 120
answer: 0.5*sin(t°)
tolerance: 0.1%

## A spin points at {t}° from z in the x–z plane. What's $\langle S_x\rangle$ in units of ħ?

::: right
Right. $\frac12\sin\theta$ = {answer}.
:::

::: misses
- [sin(t°)] In units of ħ the spin's length along its own axis is ½.
- [0.5*cos(t°)] That's $\langle S_z\rangle$.
- [any] Not yet. $\langle\mathbf S\rangle = \frac\hbar2(\sin\theta, 0, \cos\theta)$.
:::
:::

::: check
kind: choice

## Electrons pass a z-up filter, then an x-up filter, then a z magnet. What fraction of those entering the second filter come out of the last magnet spin-down?

- [ ] 0
- [x] ¼
- [ ] ½
- [ ] 1

::: misses
- [1] The x filter erased the z information.
- [3] Half pass the x filter, then half of those are z-down.
- [4] Each step is a 50/50 split.
:::
:::

::: check
kind: parts
given: B = 0.35 | 1 | 3

## An electron (g = 2.0023) and a proton (42.58 MHz/T) sit in a {B} T field.

::: part
answer: 2.0023*9.274e-24*B/6.626e-34/1e9
unit: GHz
tolerance: 0.5%

### At what frequency does the electron's spin precess?

::: misses
- [9.274e-24*B/6.626e-34/1e9] Include g ≈ 2.
- [any] $f = \frac{g\mu_BB}{h}$.
:::
:::

::: part
answer: 42.58*B
unit: MHz
tolerance: 0.5%

### And the proton's?

::: misses
- [any] 42.58 MHz per tesla.
:::
:::
:::

::: check
kind: derivation
vars: t = 0..3.14

## A spin prepared up along z is measured along an axis tilted by θ (write t).

::: step
answer: cos(t/2)^2

### What is the chance of finding it up along the new axis?
:::

::: step
answer: cos(t)

### What is the average result, in units of ħ/2?
:::

::: right
Right. The probabilities use half angles, but the average follows the full angle, as a classical arrow's projection would.
:::
:::

::: explain
## Why do spin states use half angles, $\cos(\theta/2)$, when the spin direction turns through θ?

::: model
A spin-½ state lives in a two-dimensional complex space, while its direction lives on an ordinary sphere. "Up" and "down" along the same axis point in opposite directions, 180° apart, yet as state vectors they're orthogonal, which is a 90° relationship. The map from the sphere to the state space halves every angle, so a spin tilted by θ has components $\cos(\theta/2)$ and $\sin(\theta/2)$ along up and down. A striking consequence is that rotating a spin by 360° multiplies its state by −1: it takes 720° to bring it back exactly, which neutron interferometry has measured.
:::
:::

::: practice

::: check
given: a = 30 | 45 | 60 | 90 | 120 | 135
answer: cos(a°/2)^2
tolerance: 0.1%

## Probability of up at {a}° from the preparation axis?

::: misses
- [any] $\cos^2(\alpha/2)$.
:::
:::

::: check
given: B = 0.1 | 0.2 | 0.35 | 1 | 1.5 | 3
answer: 28.025*B
unit: GHz
tolerance: 0.1%

## Electron Larmor frequency in {B} T?

::: misses
- [any] 28.0 GHz/T.
:::
:::

::: check
given: B = 0.5 | 1.5 | 3 | 7 | 9.4 | 11.7
answer: 42.577*B
unit: MHz
tolerance: 0.1%

## Proton resonance frequency in a {B} T MRI magnet?

::: misses
- [any] 42.58 MHz/T.
:::
:::
:::
