---
title: Negative temperature and population inversion
heading: When more members sit in the upper level than the lower, the temperature goes negative, and lasers depend on it
eyebrow: B11 · Lesson 8 · Negative temperature
xp: 40
---

::: hook
Lesson 7 found a two-level system's temperature from how its members split between the levels: the more in the upper level, the hotter it is. At infinite temperature the split is half and half. So what temperature describes a system with *more* than half its members in the upper level? Lasers, masers and some NMR experiments make exactly such states, and the answer, read straight from the definition of temperature, is a negative number. It's also hotter than any positive temperature.
:::

::: play
- The curve is the entropy per member of a two-level system, against the fraction p in the upper level. The dot marks the slider's fraction.
- Temperature is the inverse slope, $\frac1T = \frac{\partial S}{\partial U}$. Below half full the slope is positive; above, it's negative.
- The readout gives kT in units of the splitting Δ. Watch it run off to +∞ as p approaches ½ from below and come back from −∞ above.
:::

```sim plot
view: graph
x: f = 0..1
y: s = 0..0.75
slider: p = 0.03..0.98 step 0.05 = 0.23
plot: -(f*ln(f) + (1 - f)*ln(1 - f)) | label: entropy per member, S/Nk | samples: 400
point: p, -(p*ln(p) + (1 - p)*ln(1 - p)) | label: you
marker: f = 0.5 | label: half full
readout: kT/Δ = 1/ln((1 - p)/p) | digits: 3
```

::: predict
## A two-level system at −300 K touches an identical one at +300 K. Which way does energy flow?

- [ ] From +300 K to −300 K, since 300 is larger
- [x] From −300 K to +300 K
- [ ] Neither way: they're at the same temperature in magnitude
- [ ] It depends on the splitting

::: reveal
From the negative-temperature system to the positive one. Its members are mostly in the upper level, so giving energy away moves it toward half full, raising its entropy; the other system's entropy rises too as it takes the energy. Both gain, so the total entropy rises. A negative temperature is hotter than every positive one, even +∞.
:::
:::

::: nameit
## Temperature from entropy

Temperature is defined by $\frac1T = \frac{\partial S}{\partial U}$. For most systems adding energy always opens more states, so T is positive. A two-level system has a top: with N members and splitting Δ, the entropy $S = -Nk[p\ln p + (1 - p)\ln(1 - p)]$ peaks at p = ½ and falls again as the system fills toward all-up. Beyond the peak, adding energy *removes* states, so T < 0:

$$kT = \frac{\Delta}{\ln\frac{1 - p}{p}}.$$

## Hotter than infinity

Running through the states from all-down to all-up, the temperature goes +0 K, up through +∞, jumps to −∞, and rises through negative values to −0 K. In that order each state is hotter than the one before. In terms of $\beta = \frac{1}{kT}$ it's smooth: β falls steadily from +∞ through 0 to −∞. Negative temperatures need an energy ceiling, so they exist for spins and two-level atoms, never for anything with unbounded kinetic energy.

## Population inversion

A medium with more atoms in the upper level of a transition than the lower is **inverted**. Light at that transition is then amplified rather than absorbed, with gain coefficient $g = \sigma(N_2 - N_1)$ per unit length. Heating can never invert a transition, since every positive temperature leaves the lower level fuller. Lasers pump energy in by other routes, light or current, into a level that feeds the upper laser level.

## Three and four levels

In a three-level laser such as ruby the lower laser level is the ground state, so more than half the atoms must be pumped out of it before there's gain. In a four-level laser such as Nd:YAG the lower laser level sits well above the ground and empties quickly, so a small pumped population is already an inversion. Semiconductor lasers invert by injecting electrons and holes with a forward current.
:::

::: example
## A set of two-level systems with Δ = 1 meV has 70% of its members in the upper level. What's its temperature?

::: solution
1. **Solve the Boltzmann ratio for kT.**
   $$\begin{aligned} kT &= \frac{\Delta}{\ln\frac{1 - p}{p}} \\ &= \frac{1\ \text{meV}}{\ln\frac{0.3}{0.7}} \\ &= \frac{1}{-0.847} \\ &= -1.18\ \text{meV} \end{aligned}$$
2. **In kelvin.**
   $$T = -13.7\ \text{K}$$
3. **Check with Boltzmann.**
   $$\begin{aligned} \frac{N_2}{N_1} &= e^{-\Delta/kT} \\ &= e^{0.847} \\ &= 2.33 \\ &= \frac{0.7}{0.3} \end{aligned}$$
4. **Same formula.** The formula is the same as for positive temperatures; only the sign of the logarithm has changed.

**Answer:** the temperature is −13.7 K (kT = −1.18 meV).
:::
:::

::: example
## A helium–neon laser works on a transition at 632.8 nm. What population ratio does thermal equilibrium at 300 K give for it? What temperature describes an inversion with $N_2/N_1$ = 1.2?

::: solution
1. **Photon energy.** At 300 K,
   $$\begin{aligned} h\nu &= \frac{hc}{\lambda} \\ &= 1.959\ \text{eV} \\ &= 75.8\,kT \end{aligned}$$
2. **Equilibrium ratio.** Essentially nothing is in the upper level:
   $$\frac{N_2}{N_1} = e^{-75.8} \approx 10^{-33}$$
3. **Temperature of the inversion.** A ratio of 1.2 means $e^{-h\nu/kT} = 1.2$, so
   $$\begin{aligned} T &= -\frac{h\nu}{k\ln1.2} \\ &= -\frac{1.959}{8.617 \times 10^{-5} \times 0.182} \\ &= -125\,000\ \text{K} \end{aligned}$$
4. **What it says.** A modest inversion of an optical transition is a large negative temperature, which says how far from thermal equilibrium a laser's gain medium is.

**Answer:** equilibrium at 300 K gives $N_2/N_1 \approx 10^{-33}$, and an inversion of 1.2 corresponds to about −125 000 K.
:::
:::

::: example
## A gain medium has a stimulated-emission cross section of $3 \times 10^{-19}$ cm² and an inversion $N_2 - N_1 = 10^{18}$ cm⁻³. How much does it amplify light over 10 cm?

::: solution
1. **Gain coefficient.**
   $$\begin{aligned} g &= \sigma(N_2 - N_1) \\ &= 3 \times 10^{-19} \times 10^{18} \\ &= 0.3\ \text{cm}^{-1} \end{aligned}$$
2. **Growth over 10 cm.**
   $$\begin{aligned} \frac{I}{I_0} &= e^{0.3 \times 10} \\ &= e^3 \\ &= 20 \end{aligned}$$
3. **Reversed populations.** The same numbers would give an absorption coefficient of 0.3 cm⁻¹ and transmit only 1/20.
4. **In a laser.** A laser places the gain medium between mirrors so that light passes many times, and it lases once the round-trip gain beats the mirrors' and medium's losses.

**Answer:** the light is amplified by a factor of about 20 over 10 cm.
:::
:::

::: check
kind: parts
given: p = 0.6 | 0.75 | 0.9; D = 0.5 | 2

## Two-level systems with splitting {D} meV have a fraction {p} in the upper level.

::: part
answer: D/(0.086173*ln((1 - p)/p))
unit: K
tolerance: 0.5%

### What's their temperature?

::: misses
- [-D/(0.086173*ln((1 - p)/p))] More members are up than down, so the temperature is negative.
- [any] $kT = \frac{\Delta}{\ln\frac{1 - p}{p}}$.
:::
:::

::: part
answer: -(p*ln(p) + (1 - p)*ln(1 - p))
tolerance: 0.5%

### What's their entropy per member, in units of k?

::: misses
- [any] $-[p\ln p + (1 - p)\ln(1 - p)]$.
:::
:::
:::

::: check
given: l = 632.8 | 1064 | 1550; r = 1.1 | 2
answer: -6.62607e-34*2.99792458e8/(l*1e-9*1.380649e-23*ln(r))
unit: K
tolerance: 0.5%

## A transition at {l} nm has $N_2/N_1$ = {r}. What temperature describes it?

::: right
Right. $T = -\frac{h\nu}{k\ln(N_2/N_1)}$.
:::

::: misses
- [6.62607e-34*2.99792458e8/(l*1e-9*1.380649e-23*ln(r))] An inverted population has a negative temperature.
- [any] Solve $\frac{N_2}{N_1} = e^{-h\nu/kT}$ for T.
:::
:::

::: check
kind: choice

## Which of these spin systems is hottest?

- [ ] One at +300 K
- [ ] One at +10⁶ K
- [ ] One at −10⁶ K
- [x] One at −300 K

::: right
Right. Negative temperatures are hotter than all positive ones, and among them the ones closest to zero (most nearly all-up) are hottest.
:::

::: misses
- [1] Any negative temperature is hotter than any positive one.
- [2] Even +10⁶ K is colder than every negative temperature.
- [3] Close, but −300 K has more of its members up than −10⁶ K does.
:::
:::

::: check
given: s = 1 | 3; n = 2 | 5; L = 5 | 20
answer: exp(s*n*0.01*L)
tolerance: 0.5%

## A medium has cross section {s} × 10⁻¹⁹ cm² and inversion {n} × 10¹⁷ cm⁻³. By what factor does it amplify light over {L} cm?

::: right
Right. $e^{\sigma(N_2 - N_1)L}$.
:::

::: misses
- [s*n*0.01*L] That's the exponent; the intensity grows exponentially.
- [any] $g = \sigma(N_2 - N_1)$, then $e^{gL}$.
:::
:::

::: check
kind: parts
given: E = 100 | 250; T = 300 | 400

## A four-level laser's lower laser level sits {E} meV above the ground state, at {T} K.

::: part
answer: exp(-E/(0.086173*T))
tolerance: 0.5%

### About what fraction of the atoms sit in it thermally?

::: misses
- [any] The Boltzmann factor $e^{-E/kT}$.
:::
:::

::: part
answer: 0.01/exp(-E/(0.086173*T))
tolerance: 0.5%

### If 1% of the atoms are pumped into the upper laser level, what's the ratio of upper to lower populations?

::: misses
- [any] Divide 0.01 by the lower level's fraction.
:::
:::
:::

::: check
given: B = 1 | 3; P = -0.5 | -0.2 | 0.3
answer: 0.67171*B/(0.5*ln((1 + P)/(1 - P)))
unit: K
tolerance: 0.5%

## Electron spins (moment $\mu_B$) in {B} T have polarization {P}. What's their spin temperature?

::: right
Right. $P = \tanh\frac{\mu_BB}{kT}$, so $T = \frac{\mu_BB}{k\,\text{artanh}P}$: a negative polarization gives a negative temperature.
:::

::: misses
- [0.67171*B/P] For small P that's close, but use the inverse tanh.
- [any] Invert $P = \tanh\frac{\mu_BB}{kT}$.
:::
:::

::: check
kind: choice

## Why can't heating a crystal invert a transition, however hot it gets?

- [ ] Crystals melt first
- [x] At every positive temperature the lower level holds more members than the upper
- [ ] Heat only excites phonons
- [ ] Inversion needs a magnetic field

::: right
Right. Boltzmann's ratio $e^{-\Delta/kT}$ is below 1 for every positive T, and reaches 1 only at infinite temperature.
:::

::: misses
- [1] Even an ideal crystal that never melted couldn't be inverted by heat.
- [3] Heat excites every degree of freedom, but always by Boltzmann's ratio.
- [4] Lasers invert transitions with no field at all, by pumping.
:::
:::

::: check
kind: derivation
vars: p = 0.01..0.99, D = 0.1..10

## A two-level system with splitting D (meV) and a fraction p of its members in the upper level, so U = NpD.

::: step
answer: -(p*ln(p) + (1 - p)*ln(1 - p))

### What's its entropy per member, in units of k?
:::

::: step
answer: ln((1 - p)/p)/D

### What's $\frac{1}{kT} = \frac{\partial(S/Nk)}{\partial(U/N)}$, in meV⁻¹?
:::

::: step
answer: D/(0.086173*ln((1 - p)/p))

### What's T, in kelvin?
:::

::: right
Right. The slope changes sign at p = ½, and with it the temperature.
:::
:::

::: check
given: D = 1 | 2; t = -5 | -20; T = 100 | 300
answer: (1/(1 + exp(D/(0.086173*t))) - 1/(1 + exp(D/(0.086173*T))))*D
unit: meV
tolerance: 0.5%

## A spin system (splitting {D} meV) at {t} K touches a lattice at {T} K and settles to the lattice's temperature. How much energy does each spin give up?

::: right
Right. The upper fraction falls from its negative-temperature value to the lattice's, and each spin that drops gives up Δ.
:::

::: misses
- [any] Upper fraction before minus after, times Δ.
:::
:::

::: explain
## Why is a system at negative temperature hotter than one at any positive temperature?

::: model
"Hotter" means heat flows out of it into the other system when they touch, and heat flows whichever way raises the total entropy. A system at negative temperature has more members up than down, so its entropy falls as energy is added and rises as energy is removed. When it gives energy to any system at positive temperature, both entropies rise: the negative-temperature system moves toward half full and the other system gains energy, which always opens states for it. So the flow always goes out of the negative-temperature system, whatever the other's temperature. In terms of $\frac{1}{kT}$, which is what heat flow really compares, negative temperatures have the smallest values of all.
:::
:::

::: practice

::: check
given: p = 0.55 | 0.8; D = 1 | 5
answer: D/(0.086173*ln((1 - p)/p))
unit: K
tolerance: 0.5%

## Temperature of two-level systems, Δ = {D} meV, upper fraction {p}?

::: misses
- [any] $kT = \frac{\Delta}{\ln\frac{1 - p}{p}}$.
:::
:::

::: check
given: s = 2 | 4; n = 1 | 3; L = 2 | 10
answer: exp(s*n*0.01*L)
tolerance: 0.5%

## Gain over {L} cm: σ = {s} × 10⁻¹⁹ cm², inversion {n} × 10¹⁷ cm⁻³?

::: misses
- [any] $e^{\sigma(N_2 - N_1)L}$.
:::
:::
:::
