---
title: Rotation and vibration of molecules
heading: Why air holds 5/2 kT per molecule at room temperature, which rotational levels are filled, and when vibration wakes up
eyebrow: B11 · Lesson 20 · Diatomic molecules
xp: 40
---

::: hook
Lesson 19 gave a monatomic gas $\frac32kT$ per atom. Air is nitrogen and oxygen, two-atom molecules that can also spin and vibrate, so equipartition would give it $\frac72kT$. Measured, it's $\frac52kT$ at room temperature, and the ratio of heat capacities that sets the speed of sound and adiabatic heating is 1.40. The missing kT is vibration, frozen out the same way an Einstein solid's heat capacity freezes in lesson 9. Each kind of motion switches on at its own temperature.
:::

::: play
- The curve is a diatomic gas's heat capacity per molecule, $C_V/Nk$, against temperature on a log scale. Rotation is taken as fully on, which holds above a few kelvin for everything but hydrogen.
- The slider sets the vibrational temperature $\Theta_{vib} = \hbar\omega/k$: 3390 K for N₂, 805 K for Cl₂, 309 K for I₂.
- Vibration adds its kT only when T reaches about half of $\Theta_{vib}$. The readouts give the heat capacity and γ at 300 K.
:::

```sim plot
view: graph
x: T = 50..5000 K log
y: c = 0..4
slider: v = 300..6500 step 10 = 3390 K
plot: 2.5 + (v/T)^2*exp(v/T)/(exp(v/T) - 1)^2 | label: C_V/Nk | samples: 400
plot: 2.5 | dashed | color: ch2 | label: translation and rotation
readout: C_V/Nk at 300 K = 2.5 + (v/300)^2*exp(v/300)/(exp(v/300) - 1)^2 | digits: 3
readout: γ at 300 K = (3.5 + (v/300)^2*exp(v/300)/(exp(v/300) - 1)^2)/(2.5 + (v/300)^2*exp(v/300)/(exp(v/300) - 1)^2) | digits: 3
```

::: predict
## Nitrogen's vibration has $\Theta_{vib}$ = 3390 K. Roughly how much does vibration add to its heat capacity at 300 K?

- [ ] k per molecule, as equipartition says
- [ ] ½k per molecule
- [x] Almost nothing: about 0.002k per molecule
- [ ] It takes heat capacity away

::: reveal
Almost nothing. At 300 K, $\frac{\Theta_{vib}}{T}$ = 11.3, so only $e^{-11.3}$ of the molecules have even one vibrational quantum, and the heat capacity, $x^2e^x/(e^x - 1)^2$, is 0.0016k. Vibration is frozen out, just as the high-frequency modes of a solid are. It reaches half its classical value near 1100 K.
:::
:::

::: nameit
## Counting the motions

A two-atom molecule has 6 coordinates: 3 for its center of mass, 2 angles for its axis, and 1 for the bond length. Classically that's $\frac32kT$ of translation, kT of rotation (two axes; spinning about the bond axis itself costs too much energy to excite), and kT of vibration (kinetic plus potential), for $\frac72kT$ in all. Quantum mechanics switches each on only when kT is comparable to its level spacing.

## Rotation

A rigid rotor with moment of inertia $I = \mu r^2$ has levels

$$E_J = \frac{\hbar^2}{2I}J(J + 1) = k\Theta_{rot}J(J + 1),$$

each with 2J + 1 states. $\Theta_{rot}$ is 2.78 K for CO, 2.88 K for N₂ and 87.5 K for H₂, so at room temperature many levels are filled, $Z_{rot} \approx \frac{T}{\sigma\Theta_{rot}}$ (with σ = 2 for a molecule of two identical atoms), and rotation holds the full kT. The most populated level is near $J = \sqrt{T/2\Theta_{rot}} - \frac12$. Spectroscopists quote the rotational constant B in cm⁻¹, with $\Theta_{rot} = \frac{hcB}{k} = 1.4388\,B$ K·cm.

## Vibration

The bond is an oscillator with $\Theta_{vib} = \frac{\hbar\omega}{k}$, 3390 K for N₂, 3120 K for CO and 6330 K for H₂, but only 805 K for the heavier, softer Cl₂. Its heat capacity is lesson 9's Einstein function, $\frac{x^2e^x}{(e^x - 1)^2}$ with $x = \Theta_{vib}/T$.

## What it changes

The heat capacity ratio $\gamma = \frac{C_P}{C_V} = \frac{C_V + Nk}{C_V}$ is $\frac53$ for a monatomic gas, $\frac75$ for air at room temperature and less for gases with soft vibrations. It sets the speed of sound, $\sqrt{\gamma kT/m}$, and how hot a gas gets when compressed. The same vibrations absorb infrared light: an NDIR carbon-dioxide sensor measures CO₂ by its absorption at 4.26 µm, where the molecule's asymmetric stretch sits.
:::

::: example
## Find nitrogen's vibrational heat capacity at 300 K, 1000 K and 2000 K ($\Theta_{vib}$ = 3390 K), and its total $C_V$ per mole.

::: solution
1. **Vibrational heat capacity per molecule.** With $x = \Theta_{vib}/T$, in units of k it is
   $$\frac{x^2e^x}{(e^x - 1)^2}$$
2. **300 K.** x = 11.3, giving 0.0016.
3. **1000 K.** x = 3.39, giving 0.415.
4. **2000 K.** x = 1.70, giving 0.791.
5. **Total per mole.** $C_V$ is 2.50R at room temperature, 2.91R at 1000 K and 3.29R at 2000 K, still short of the classical 3.5R.
6. **Where it matters.** Engines and turbines work in that range, and their designers use exactly these temperature-dependent heat capacities.

**Answer:** the vibrational part is 0.0016k, 0.415k and 0.791k per molecule at 300 K, 1000 K and 2000 K, so $C_V$ is 2.50R, 2.91R and 3.29R per mole.
:::
:::

::: example
## Which rotational level of carbon monoxide ($\Theta_{rot}$ = 2.78 K) holds the most molecules at 300 K, and what fraction is in the ground level?

::: solution
1. **Population of level J.** It goes as
   $$(2J + 1)e^{-J(J + 1)\Theta_{rot}/T}$$
2. **Find the peak.** Treating J as continuous,
   $$\begin{aligned} J &= \sqrt{\frac{300}{2 \times 2.78}} - \frac12 \\ &= 6.85 \end{aligned}$$
   so J = 7 is the most populated, with 8.2% of the molecules.
3. **Partition function.**
   $$\begin{aligned} Z &\approx \frac{T}{\Theta_{rot}} + \frac13 \\ &= 108 \end{aligned}$$
4. **The ground level.** It holds $\frac1Z$ = 0.92%.
5. **The spectrum.** The molecules are spread over dozens of levels, which is why a gas's rotational spectrum, at the frequencies $2B(J + 1)$, shows a whole comb of lines with the strongest near J = 7.

**Answer:** J = 7 holds the most molecules (8.2%), and the ground level holds 0.92%.
:::
:::

::: example
## Chlorine's vibration has $\Theta_{vib}$ = 805 K. What are its $C_V$ and γ at 300 K?

::: solution
1. **Vibration over temperature.**
   $$\begin{aligned} x &= \frac{805}{300} \\ &= 2.68 \end{aligned}$$
2. **What vibration adds.** Per molecule, in units of k,
   $$\frac{x^2e^x}{(e^x - 1)^2} = 0.567$$
3. **Heat capacities.** $C_V$ = 3.07k and $C_P$ = 4.07k.
4. **Their ratio.**
   $$\begin{aligned} \gamma &= \frac{4.07}{3.07} \\ &= 1.33 \end{aligned}$$
5. **Compare with nitrogen.** Nitrogen's γ is 1.40 because its vibration is frozen. The heavy chlorine atoms and their soft bond give a low vibrational frequency, and a heat capacity already well on its way to the classical value at room temperature.

**Answer:** $C_V$ = 3.07k per molecule and γ = 1.33.
:::
:::

::: check
kind: parts
given: v = 805 | 3122 | 3393; T = 300 | 1000 | 2000

## A diatomic gas with $\Theta_{vib}$ = {v} K is at {T} K.

::: part
answer: (v/T)^2*exp(v/T)/(exp(v/T) - 1)^2
tolerance: 0.5%

### What does vibration add to its heat capacity per molecule, in units of k?

::: misses
- [1] That's the classical value; the vibration is only partly excited.
- [any] $\frac{x^2e^x}{(e^x - 1)^2}$ with $x = \Theta_{vib}/T$.
:::
:::

::: part
answer: (3.5 + (v/T)^2*exp(v/T)/(exp(v/T) - 1)^2)/(2.5 + (v/T)^2*exp(v/T)/(exp(v/T) - 1)^2)
tolerance: 0.5%

### What's its γ?

::: misses
- [any] $\gamma = \frac{C_V + Nk}{C_V}$, with $C_V$ = 2.5k plus the vibration.
:::
:::
:::

::: check
given: B = 1.931 | 10.59 | 60.85
answer: 1.43878*B
unit: K
tolerance: 0.5%

## A molecule's rotational constant is {B} cm⁻¹. What's its rotational temperature?

::: right
Right. $\Theta_{rot} = \frac{hcB}{k}$.
:::

::: misses
- [B/1.43878] Multiply by $\frac{hc}{k}$ = 1.4388 K·cm.
- [any] $\Theta_{rot} = \frac{hcB}{k}$.
:::
:::

::: check
given: m = 0.504 | 6.86 | 17.5; r = 0.074 | 0.113 | 0.199
answer: (1.054571817e-34)^2/(2*m*1.66053906660e-27*(r*1e-9)^2*1.380649e-23)
unit: K
tolerance: 0.5%

## A molecule has reduced mass {m} u and bond length {r} nm. What's its rotational temperature?

::: right
Right. $\Theta_{rot} = \frac{\hbar^2}{2\mu r^2k}$.
:::

::: misses
- [(1.054571817e-34)^2/(m*1.66053906660e-27*(r*1e-9)^2*1.380649e-23)] The level energy is $\frac{\hbar^2}{2I}J(J + 1)$.
- [any] $I = \mu r^2$, then $\frac{\hbar^2}{2Ik}$.
:::
:::

::: check
given: t = 2.78 | 10 | 87.5; T = 300 | 1000
answer: sqrt(T/(2*t)) - 0.5
tolerance: 0.5%

## A molecule has $\Theta_{rot}$ = {t} K. Treating J as continuous, where does the population $(2J + 1)e^{-J(J + 1)\Theta_{rot}/T}$ peak at {T} K?

::: right
Right. $J = \sqrt{\frac{T}{2\Theta_{rot}}} - \frac12$.
:::

::: misses
- [sqrt(T/t)] Set the derivative to zero: $(2J + 1)^2 = \frac{2T}{\Theta_{rot}}$.
- [any] Differentiate and set to zero.
:::
:::

::: check
given: t = 0.351 | 2.07 | 2.88; T = 300 | 1000
answer: T/(2*t)
tolerance: 0.5%

## A molecule of two identical atoms has $\Theta_{rot}$ = {t} K. What's its rotational partition function at {T} K (high-temperature limit)?

::: right
Right. $Z_{rot} \approx \frac{T}{\sigma\Theta_{rot}}$.
:::

::: misses
- [T/t] Divide by the symmetry number for identical atoms.
- [any] $\frac{T}{\sigma\Theta_{rot}}$.
:::
:::

::: check
kind: choice

## Why does vibration add almost nothing to air's heat capacity at room temperature?

- [ ] Air molecules are rigid
- [ ] Vibrations only store kinetic energy
- [x] One vibrational quantum costs over ten times kT, so almost no molecules are excited
- [ ] Rotation absorbs the vibrational energy

::: right
Right. $\Theta_{vib}$ is about 2000 to 3400 K for N₂ and O₂, so at 300 K the vibration is frozen in its ground state.
:::

::: misses
- [1] The bonds can stretch; their levels are just too far apart to reach.
- [2] A vibration stores both kinetic and potential energy, which is why it contributes a full kT when excited.
- [4] Rotation and vibration are separate degrees of freedom with their own levels.
:::
:::

::: check
given: v = 805 | 1200; T = 300 | 1000
answer: exp(-v/T)*100
unit: %
tolerance: 0.5%

## A diatomic gas with $\Theta_{vib}$ = {v} K is at {T} K. What percentage of molecules are out of the vibrational ground state?

::: right
Right. For an oscillator the ground state holds $1 - e^{-x}$, so the rest is $e^{-\Theta_{vib}/T}$.
:::

::: misses
- [exp(-v/T)/(1 + exp(-v/T))*100] An oscillator has many levels, so $Z = \frac{1}{1 - e^{-x}}$, not $1 + e^{-x}$.
- [any] $1 - p_0 = e^{-x}$.
:::
:::

::: check
kind: derivation
vars: g = 1.1..1.67, m = 2..80, T = 100..1000

## A gas with heat-capacity ratio g and molecular mass m (u) at T (K).

::: step
answer: sqrt(g*1.380649e-23*T/(m*1.66053906660e-27))

### What's its speed of sound, in m/s?
:::

::: step
answer: sqrt(g*pi/8)

### What's that as a fraction of the molecules' mean speed $\sqrt{8kT/\pi m}$?
:::

::: right
Right. Sound travels at about three quarters of the mean molecular speed, since it's carried by those very molecules.
:::
:::

::: check
kind: python

## Write `rot_heat_capacity(t)` returning a heteronuclear rigid rotor's heat capacity per molecule in units of k, at reduced temperature t = T/Θ_rot. Sum the levels $E_J = J(J + 1)$ directly (enough of them to converge) and use $C = \frac{\langle E^2\rangle - \langle E\rangle^2}{t^2}$.

```python starter
import numpy as np

def rot_heat_capacity(t):
    return 1.0

print(rot_heat_capacity(0.5), rot_heat_capacity(5))
```

```python solution
import numpy as np

def rot_heat_capacity(t):
    J = np.arange(0, 400)
    e = J * (J + 1.0)
    w = (2 * J + 1) * np.exp(-e / t)
    Z = w.sum()
    m1 = (e * w).sum() / Z
    m2 = (e * e * w).sum() / Z
    return float((m2 - m1 * m1) / t**2)

print(rot_heat_capacity(0.5), rot_heat_capacity(5))
```

```python tests
assert abs(rot_heat_capacity(5) - 1.00105) < 1e-4, f"At T = 5Θ the rotor is classical: C ≈ 1.001k. Got {rot_heat_capacity(5)}"
assert abs(rot_heat_capacity(0.5) - 0.79398) < 1e-4, f"At T = Θ/2, C = 0.794k. Got {rot_heat_capacity(0.5)}"
assert abs(rot_heat_capacity(1) - 1.07291) < 1e-4, "At T = Θ the heat capacity overshoots to 1.073k."
assert rot_heat_capacity(0.2) < 0.02, "Far below Θ the rotation freezes out."
```

::: right
Right. The rotor's heat capacity overshoots the classical k, peaking at 1.098k near T = 0.81Θ_rot, before settling.
:::
:::

::: explain
## Why do heat capacities of gases rise in steps as temperature increases?

::: model
Each kind of motion has quantized levels, and it can only take up energy when kT is comparable to its level spacing. Translation's levels are so close together that it's always classical, $\frac32kT$. Rotation's spacing is a few kelvin for most molecules, so it switches on far below room temperature and adds kT. Vibration's spacing is thousands of kelvin, so it stays frozen until the gas is very hot, then adds another kT. Between those temperatures the heat capacity sits on a plateau, and each step marks a new set of levels coming within reach of thermal energy.
:::
:::

::: practice

::: check
given: v = 500 | 2000 | 6000; T = 300 | 1500
answer: (v/T)^2*exp(v/T)/(exp(v/T) - 1)^2
tolerance: 0.5%

## Vibrational heat capacity per molecule (units of k), $\Theta_{vib}$ = {v} K, {T} K?

::: misses
- [any] $\frac{x^2e^x}{(e^x - 1)^2}$.
:::
:::

::: check
given: t = 2 | 15; T = 100 | 400
answer: sqrt(T/(2*t)) - 0.5
tolerance: 0.5%

## Peak rotational J for $\Theta_{rot}$ = {t} K at {T} K (J continuous)?

::: misses
- [any] $\sqrt{\frac{T}{2\Theta_{rot}}} - \frac12$.
:::
:::
:::
