---
title: Ferromagnetic resonance and spin waves
heading: How a magnet's moments precess at gigahertz frequencies, why YIG makes the best tunable microwave filters, and what magnons are
eyebrow: B12 · Lesson 39 · Spin waves
xp: 40
---

::: hook
A spinning top in gravity precesses; so does a magnetic moment in a field. In a ferromagnet, the moments are locked together and precess as one, at a frequency set by the field and by the magnet's own shape. For yttrium iron garnet, YIG, the precession is so lightly damped that a millimeter sphere of it makes a microwave resonator with a Q of thousands, tuned from 2 to 18 GHz just by changing the current in an electromagnet. Ripples in the precession travel through the crystal as spin waves, whose quanta, magnons, are to magnetism what phonons are to lattice vibrations.
:::

::: play
- The curves are the ferromagnetic resonance frequency against the applied field for three shapes: a sphere, a thin film magnetized in its plane, and a thin film magnetized perpendicular to it.
- The slider sets the saturation magnetization $\mu_0M_s$ (0.175 T for YIG, about 1 T for permalloy). A sphere's frequency doesn't depend on it at all.
- The readouts give each frequency at the marker field.
:::

```sim plot
view: graph
x: B = 0..1 T
y: f = 0..35 GHz
slider: M = 0.05..1.8 step 0.005 = 0.175 T
slider: b = 0.01..1 step 0.01 = 0.3 T
plot: 28.025*B | label: sphere | samples: 200
plot: 28.025*sqrt(B*(B + M)) | color: ch2 | label: film, in-plane | samples: 300
plot: 28.025*(B - M)*step(B - M) | dashed | color: ch3 | label: film, perpendicular | samples: 300
marker: B = b | label: your field
readout: sphere, GHz = 28.025*b | digits: 4
readout: in-plane film, GHz = 28.025*sqrt(b*(b + M)) | digits: 4
```

::: predict
## A YIG sphere and a thin YIG film magnetized in its plane sit in the same 0.1 T field. Which resonates at the higher frequency?

- [ ] The sphere
- [x] The in-plane film, by a lot
- [ ] They're the same, since it's the same material
- [ ] Neither resonates below 1 T

::: reveal
The in-plane film: 4.65 GHz against the sphere's 2.80 GHz. When a film's moments tip out of its plane during precession, they create surface magnetic charge and a strong demagnetizing field that pushes them back, stiffening the precession. A sphere's demagnetizing field is the same in every direction, so it drops out and only the applied field counts.
:::
:::

::: nameit
## Precession

An electron's magnetic moment and angular momentum are tied by the gyromagnetic ratio, $\frac{\gamma}{2\pi} = \frac{g\mu_B}{h}$ = 28.0 GHz/T. In a field B, a moment precesses at the Larmor frequency $f = \frac{\gamma}{2\pi}B$. In a ferromagnet, exchange locks all the moments together, so the whole magnetization precesses as one: **ferromagnetic resonance** (FMR).

## Shape matters

The precessing magnetization creates demagnetizing fields that depend on the sample's shape. Kittel's formulas, with $\mu_0M_s$ the saturation magnetization:

- sphere: $f = \frac{\gamma}{2\pi}B_0$;
- thin film, field in the plane: $f = \frac{\gamma}{2\pi}\sqrt{B_0(B_0 + \mu_0M_s)}$;
- thin film, field perpendicular: $f = \frac{\gamma}{2\pi}(B_0 - \mu_0M_s)$, once $B_0 > \mu_0M_s$.

## Damping and linewidth

Precession loses energy to the lattice and to conduction electrons, described by the Gilbert damping α. The resonance's full width in field is $\Delta B = \frac{2\alpha f}{\gamma/2\pi}$, and its quality factor is about $\frac{1}{2\alpha}$. Permalloy has α ≈ 0.008; YIG, an insulator with no conduction electrons, reaches $3 \times 10^{-5}$. Measured as a field linewidth ΔH, the frequency width is $\Delta f = \frac{\gamma}{2\pi}\mu_0\Delta H$.

## Spin waves and magnons

Neighboring moments can precess slightly out of phase, giving a wave that carries angular momentum through the crystal with dispersion $f = \frac{\gamma}{2\pi}(B + Dk^2)$ from exchange. Its quanta, **magnons**, each lower the total spin by one unit; like phonons they're bosons, with occupancy $\frac{1}{e^{hf/kT} - 1}$. Thermal magnons are why a ferromagnet's magnetization falls with temperature, as $T^{3/2}$ at low T (Bloch's law). Spin waves carry information without moving charge, which is the basis of proposals for magnonic logic.
:::

::: example
## A YIG-tuned filter must cover 2 to 18 GHz with a sphere. What field range does that take, and what's its Q at 10 GHz if YIG's linewidth is ΔH = 40 A/m (0.5 Oe)?

::: solution
1. **Field range.** For a sphere,
   $$B_0 = \frac{f}{28.0\ \text{GHz/T}}$$
   so 2 GHz needs 71 mT and 18 GHz needs 642 mT, a range one electromagnet covers smoothly.
2. **Linewidth in frequency.**
   $$\begin{aligned} \Delta f &= 28.0\ \text{GHz/T} \\ &\quad \times \mu_0 \times 40\ \text{A/m} \\ &= 1.41\ \text{MHz} \end{aligned}$$
3. **Q at 10 GHz.**
   $$\begin{aligned} Q &= \frac{10\ \text{GHz}}{1.41\ \text{MHz}} \\ &= 7100 \end{aligned}$$
4. **Why YIG.** No lumped LC filter comes close at those frequencies, and the sphere's tuning is linear in the magnet current, which is why YIG filters and oscillators are standard in spectrum analyzers and microwave synthesizers.

**Answer:** the filter needs fields from 71 to 642 mT, and its Q at 10 GHz is about 7100.
:::
:::

::: example
## A thin YIG film ($\mu_0M_s$ = 0.175 T) sits in a 0.1 T in-plane field. What's its resonance? What if the field is perpendicular instead, at 0.3 T?

::: solution
1. **In-plane field.**
   $$\begin{aligned} f &= 28.0\sqrt{0.1 \times (0.1 + 0.175)} \\ &= 4.65\ \text{GHz} \end{aligned}$$
   well above the sphere's 2.80 GHz at the same field.
2. **Perpendicular field.** Now the demagnetizing field opposes the applied one:
   $$\begin{aligned} f &= 28.0 \times (0.3 - 0.175) \\ &= 3.50\ \text{GHz} \end{aligned}$$
3. **Weak perpendicular fields.** Below 0.175 T a perpendicular film can't even stay magnetized out of its plane.
4. **Choosing a geometry.** Thin-film devices exploit both geometries, picking the one that puts the resonance where it's wanted at a convenient field.

**Answer:** the film resonates at 4.65 GHz in the 0.1 T in-plane field and at 3.50 GHz in the 0.3 T perpendicular one.
:::
:::

::: example
## YIG has α = 10⁻⁴ and permalloy α = 0.008. What are their resonance linewidths in field, and their Q, at 10 GHz?

::: solution
1. **Linewidth in field.**
   $$\Delta B = \frac{2\alpha f}{\gamma/2\pi}$$
2. **YIG.**
   $$\begin{aligned} \Delta B &= \frac{2 \times 10^{-4} \times 10}{28.0}\ \text{T} \\ &= 0.071\ \text{mT} \end{aligned}$$
   with Q ≈ $\frac{1}{2\alpha}$ = 5000.
3. **Permalloy.** Its line is 80 times wider, 5.7 mT, with Q ≈ 63.
4. **Why they differ.** Permalloy's conduction electrons drain the precession's energy; YIG's insulating lattice barely does.
5. **Where each is used.** That's why spin-wave devices that must carry signals over millimeters use YIG, while permalloy serves where low coercivity matters more.

**Answer:** YIG's linewidth is 0.071 mT with Q ≈ 5000, and permalloy's is 5.7 mT with Q ≈ 63.
:::
:::

::: check
kind: parts
given: B = 0.05 | 0.2 | 0.5; M = 0.175 | 1

## A ferromagnet with $\mu_0M_s$ = {M} T sits in a {B} T field.

::: part
answer: 28.025*B
unit: GHz
tolerance: 0.5%

### At what frequency does a sphere of it resonate?

::: misses
- [any] $f = \frac{\gamma}{2\pi}B_0$, with 28.0 GHz/T.
:::
:::

::: part
answer: 28.025*sqrt(B*(B + M))
unit: GHz
tolerance: 0.5%

### And a thin film magnetized in its plane?

::: misses
- [28.025*B] The film's demagnetizing field raises the frequency.
- [any] $\frac{\gamma}{2\pi}\sqrt{B_0(B_0 + \mu_0M_s)}$.
:::
:::
:::

::: check
given: B = 0.5 | 1.2 | 2; M = 0.175 | 0.4
answer: 28.025*(B - M)
unit: GHz
tolerance: 0.5%

## A thin film with $\mu_0M_s$ = {M} T is magnetized perpendicular to its plane by {B} T. What's its resonance?

::: right
Right. The demagnetizing field subtracts: $\frac{\gamma}{2\pi}(B_0 - \mu_0M_s)$.
:::

::: misses
- [28.025*(B + M)] For a perpendicular film the demagnetizing field opposes the applied field.
- [any] $\frac{\gamma}{2\pi}(B_0 - \mu_0M_s)$.
:::
:::

::: check
given: f = 2 | 8 | 18
answer: f/28.025*1000
unit: mT
tolerance: 0.5%

## What field tunes a YIG sphere to {f} GHz?

::: right
Right. $B_0 = \frac{f}{28.0\text{ GHz/T}}$.
:::

::: misses
- [f*28.025] Divide the frequency by 28.0 GHz/T.
- [any] $B_0 = \frac{2\pi f}{\gamma}$.
:::
:::

::: check
kind: parts
given: H = 20 | 40 | 200; f = 5 | 10

## A ferrite resonator has field linewidth ΔH = {H} A/m and runs at {f} GHz.

::: part
answer: 28.025*1.25663706e-6*H*1000
unit: MHz
tolerance: 0.5%

### What's its frequency linewidth?

::: misses
- [any] $\Delta f = \frac{\gamma}{2\pi}\mu_0\Delta H$.
:::
:::

::: part
answer: f*1000/(28.025*1.25663706e-6*H*1000)
tolerance: 0.5%

### What's its Q?

::: misses
- [any] $Q = \frac{f}{\Delta f}$.
:::
:::
:::

::: check
given: a = 0.00003 | 0.0001 | 0.008; f = 5 | 10
answer: 2*a*f/28.025*1000
unit: mT
tolerance: 0.5%

## A magnet with Gilbert damping {a} resonates at {f} GHz. What's its linewidth in field?

::: right
Right. $\Delta B = \frac{2\alpha f}{\gamma/2\pi}$.
:::

::: misses
- [a*f/28.025*1000] The full width has a factor of 2.
- [any] $\Delta B = \frac{2\alpha f}{\gamma/2\pi}$.
:::
:::

::: check
kind: parts
given: f = 1 | 10 | 100; T = 4 | 300

## A spin wave has frequency {f} GHz, at {T} K.

::: part
answer: 6.62607015e-34*f*1e9/1.602176634e-19*1e6
unit: µeV
tolerance: 0.5%

### What's the energy of one magnon?

::: misses
- [any] $E = hf$.
:::
:::

::: part
answer: 1/(exp(6.62607015e-34*f*1e9/(1.380649e-23*T)) - 1)
tolerance: 1%

### How many thermal magnons occupy that mode on average?

::: misses
- [exp(-6.62607015e-34*f*1e9/(1.380649e-23*T))] Magnons are bosons: $\frac{1}{e^{hf/kT} - 1}$.
- [any] Bose–Einstein occupancy.
:::
:::
:::

::: check
kind: choice

## Why is YIG used for tunable microwave filters rather than a metallic ferromagnet like permalloy?

- [ ] YIG has a larger saturation magnetization
- [x] YIG is an insulator with extremely low damping, so its resonance is very narrow
- [ ] Permalloy can't be magnetized at microwave frequencies
- [ ] YIG's gyromagnetic ratio is larger

::: right
Right. With no conduction electrons to absorb the precession's energy, YIG's α is about 100 times smaller than permalloy's.
:::

::: misses
- [1] YIG's magnetization is actually small, 0.175 T.
- [3] Permalloy resonates fine, just with a broad line.
- [4] Both have g close to 2, so γ is the same.
:::
:::

::: check
kind: derivation
vars: B = 0.01..2, M = 0.05..2

## A ferromagnet with $\mu_0M_s$ = M in a field B (both in tesla).

::: step
answer: 28.025*B

### What's a sphere's resonance, in GHz?
:::

::: step
answer: 28.025*sqrt(B*(B + M))

### What's an in-plane film's?
:::

::: step
answer: sqrt(1 + M/B)

### By what factor is the film's frequency higher?
:::

::: right
Right. At low fields the film's resonance is set mostly by its own magnetization, going as $\sqrt{B\mu_0M_s}$.
:::
:::

::: check
kind: python

## Write `llg(alpha, t_end, dt)` integrating the Landau–Lifshitz–Gilbert equation for a unit moment in a field along z, in units where γB = 1: $\frac{d\mathbf m}{dt} = -\frac{1}{1 + \alpha^2}[\mathbf m \times \hat z + \alpha\,\mathbf m \times (\mathbf m \times \hat z)]$, starting from $\mathbf m$ = (sin 0.3, 0, cos 0.3) with RK4. Return `(t, m)` as arrays, m of shape (n, 3).

```python starter
import numpy as np

def llg(alpha, t_end, dt):
    t = np.arange(0, t_end, dt)
    return t, np.zeros((len(t), 3))

t, m = llg(0.01, 200, 0.01)
print(m[-1])
```

```python solution
import numpy as np

def llg(alpha, t_end, dt):
    z = np.array([0.0, 0.0, 1.0])
    def f(m):
        a = np.cross(m, z)
        return -(a + alpha * np.cross(m, a)) / (1 + alpha**2)
    n = int(round(t_end / dt))
    m = np.empty((n + 1, 3))
    m[0] = [np.sin(0.3), 0.0, np.cos(0.3)]
    for i in range(n):
        x = m[i]
        k1 = f(x)
        k2 = f(x + 0.5 * dt * k1)
        k3 = f(x + 0.5 * dt * k2)
        k4 = f(x + dt * k3)
        y = x + dt / 6 * (k1 + 2 * k2 + 2 * k3 + k4)
        m[i + 1] = y / np.linalg.norm(y)
    return np.arange(n + 1) * dt, m

t, m = llg(0.01, 200, 0.01)
print(m[-1])
```

```python tests
import numpy as np
t, m = llg(0.01, 200, 0.01)
assert abs(np.linalg.norm(m[-1]) - 1) < 1e-9, "The moment's length must stay 1."
x = m[:, 0]
up = np.where((x[:-1] < 0) & (x[1:] >= 0))[0]
period = np.mean(np.diff(t[up]))
assert abs(period / (2 * np.pi * (1 + 0.01**2)) - 1) < 2e-3, f"The precession period should be 2π(1 + α²); got {period}"
rate = np.log(np.hypot(m[0, 0], m[0, 1]) / np.hypot(m[-1, 0], m[-1, 1])) / t[-1]
assert abs(rate / (0.01 / (1 + 0.01**2)) - 1) < 0.05, f"The transverse part should decay at about α per unit time; got {rate}"
```

::: right
Right. The moment precesses at γB and spirals in toward the field at a rate αγB: the damping sets both the linewidth and the ringdown.
:::
:::

::: explain
## Why does a ferromagnet's resonance frequency depend on its shape when a single electron's doesn't?

::: model
A single electron's moment precesses in whatever field it feels, and nothing else changes when it tips. A ferromagnet's moments precess together, and as the magnetization tips away from equilibrium it creates magnetic poles on the sample's surfaces, whose field depends on the shape. In a thin film tipped out of its plane, those poles make a large field pushing the magnetization back, adding to the restoring torque and raising the frequency. In a sphere the demagnetizing field is the same in every direction, so it adds nothing to the torque. Kittel's formulas include these internal fields, which is why the same YIG resonates at different frequencies as a sphere and as a film.
:::
:::

::: practice

::: check
given: B = 0.1 | 0.4; M = 0.175 | 0.8
answer: 28.025*sqrt(B*(B + M))
unit: GHz
tolerance: 0.5%

## In-plane film resonance at {B} T with $\mu_0M_s$ = {M} T?

::: misses
- [any] $\frac{\gamma}{2\pi}\sqrt{B_0(B_0 + \mu_0M_s)}$.
:::
:::

::: check
given: f = 1 | 2 | 3 | 5 | 10 | 12
answer: f/28.025*1000
unit: mT
tolerance: 0.5%

## Field for a {f} GHz YIG sphere?

::: misses
- [any] $\frac{f}{28.0\text{ GHz/T}}$.
:::
:::
:::
