See also: Course-wide Conventions & Notation
Run the code: Notebook for Section 2.6, in which you can change and rerun the Python cells of this section in your browser.
Overview and Learning Objectives¶
The quantum harmonic oscillator is a canonical model for molecular vibrations and lattice modes in solids. In this section we derive the oscillator partition function, compute ensemble averages such as internal energy and heat capacity, and examine how the classical (equipartition) limit emerges when . We begin with a review of the one-dimensional oscillator, then connect the result to three-dimensional oscillators in the Einstein model.
Learning objectives:
State the harmonic oscillator energy levels and write the corresponding partition function
Evaluate the geometric series to obtain
Derive the mean energy and interpret the zero-point energy
Use the vibrational temperature to analyze low- and high-temperature limits and connect to the Einstein model
Core Ideas and Derivations¶
Review of the One-Dimensional Harmonic Oscillator¶
Figure 2.6.1 shows the potential energy, the first four energy levels, and the corresponding wavefunctions of the one-dimensional harmonic oscillator that is reviewed in this subsection.
Source
import sys
from math import factorial, pi
import matplotlib.pyplot as plt
import numpy as np
from scipy.special import eval_hermite
sys.path.append("..") # the book folder, which holds figstyle
import figstyle as fs
def oscillator_wavefunction(n, x):
"""Wavefunction of level n, with x in units of (hbar / (m omega))^(1/2)."""
return eval_hermite(n, x) * np.exp(-x**2 / 2) / np.sqrt(2**n * factorial(n) * np.sqrt(pi))
def draw(c):
fig, ax = plt.subplots(figsize=(4.8, 3.7), constrained_layout=True)
x = np.linspace(-5, 5, 600) # displacement in units of (hbar / (m omega))^(1/2)
levels = range(4)
# Potential energy in units of hbar omega
ax.plot(x, x**2 / 2, color=c.ink, lw=1.4)
# Energy levels, drawn between the classical turning points, with each wavefunction drawn on its level
for n in levels:
energy = n + 0.5
turning_point = np.sqrt(2 * energy)
ax.plot([-turning_point, turning_point], [energy, energy], color=c.gray, lw=1.2)
ax.plot(x, energy + 0.57 * oscillator_wavefunction(n, x), color=c.blue)
ax.text(5.15, energy, rf"$\psi_{n}$", color=c.blue, va="center", clip_on=False)
ax.text(-3.02, 4.05, "$V(x)$", ha="right", va="center")
ax.set(xlabel="Displacement $x$", ylabel="Energy", xlim=(-5, 5), ylim=(0, 4.3), xticks=[0],
yticks=[n + 0.5 for n in levels])
ax.set_yticklabels([r"$E_0 = \frac{1}{2}\hbar\omega$", r"$E_1 = \frac{3}{2}\hbar\omega$",
r"$E_2 = \frac{5}{2}\hbar\omega$", r"$E_3 = \frac{7}{2}\hbar\omega$"])
ax.tick_params(axis="y", length=0, pad=6)
ax.spines["left"].set_visible(False)
return fig
fs.show(draw, alt="Parabolic potential energy against displacement, with four equally spaced horizontal energy "
"levels at one half, three halves, five halves, and seven halves of h-bar omega. On each level, "
"the wavefunction is drawn. The lowest wavefunction is a single peak at zero displacement, and "
"each higher wavefunction has one more node and extends farther from the center.")Figure 2.6.1:Potential energy (thin curve), energy levels (gray lines), and wavefunctions (blue curves) of a one-dimensional harmonic oscillator. Each wavefunction is drawn on its energy level, and the levels are equally spaced by .
A one-dimensional harmonic oscillator is a particle of mass that moves in the potential
where is the displacement from the equilibrium position and is the force constant. A larger force constant corresponds to a stiffer spring or, for a molecular vibration, a stiffer bond. In classical mechanics, the energy of the oscillator is the sum of its kinetic and potential energies,
where is the momentum and
is the angular frequency. For the vibration of a diatomic molecule, is the displacement of the bond length from its equilibrium value, and is replaced by the reduced mass of the two atoms (Section 2.7).
In quantum mechanics, the energy of the oscillator is quantized. For a one-dimensional harmonic oscillator with angular frequency , the energy levels are
where is the reduced Planck constant and is a nonnegative integer. The lowest level, , has energy , which is called the zero-point energy.
Partition Function for a Harmonic Oscillator¶
The (single-oscillator) partition function for a one-dimensional harmonic oscillator is
Evaluation of the Sum¶
The term is a geometric series. For ,
Substituting gives
Check that
Ensemble Averages for a Harmonic Oscillator¶
Natural Logarithm of the Partition Function¶
Taking the natural logarithm of gives
Internal Energy¶
For a single oscillator, the mean energy (internal energy) follows from
Derivative of
It is often convenient to define the vibrational temperature as
Using , the internal energy can be written as
Source
Theta_vib = 805 # K, for a Cl2 molecule
T = np.linspace(10, 1000, 400) # K
Tr = T / Theta_vib # reduced temperature
U = 0.5 + 1 / (np.exp(1 / Tr) - 1) # internal energy in units of hbar omega
C_V = Tr**-2 * np.exp(1 / Tr) / (np.exp(1 / Tr) - 1)**2 # heat capacity in units of k_B
def draw(c):
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(fs.WIDTH, 3.0), constrained_layout=True)
dashed = dict(color=c.muted, lw=1.2, ls=(0, (4, 3)))
ax1.axhline(0.5, **dashed)
ax1.plot([0, 1.25], [0, 1.25], **dashed)
ax1.plot(Tr, U, color=c.ink)
ax1.text(1.25, 0.44, r"zero-point energy, $\hbar\omega/2$", color=c.muted, ha="right", va="top")
ax1.text(1.02, 0.9, r"$k_{\mathrm{B}}T$", color=c.muted, ha="left", va="top")
ax1.set(xlabel=r"$T/\Theta_{\mathrm{vib}}$", ylabel=r"$U/\hbar\omega$", xlim=(0, 1.25), ylim=(0, 1.4))
fs.panel(ax1, "a", "Internal energy")
ax2.axhline(1, **dashed)
ax2.plot(Tr, C_V, color=c.ink)
ax2.text(1.25, 1.03, "high-temperature limit", color=c.muted, ha="right", va="bottom")
ax2.set(xlabel=r"$T/\Theta_{\mathrm{vib}}$", ylabel=r"$C_V/k_{\mathrm{B}}$", xlim=(0, 1.25), ylim=(0, 1.2))
fs.panel(ax2, "b", "Heat capacity")
return fig
fs.show(draw, alt="Two panels against the reduced temperature from 0 to 1.25 for a harmonic oscillator. Panel a: "
"the internal energy in units of h-bar omega starts at the zero-point energy of 0.5, stays there up "
"to a reduced temperature of about 0.2, and then rises toward the line U equal to k_B T, reaching "
"about 1.3 at 1.25. Panel b: the heat capacity in units of k_B is zero up to a reduced "
"temperature of about 0.1, rises steeply, and levels off toward a dashed line at 1, reaching about "
"0.95 at 1.25.")Figure 2.6.2:Harmonic oscillator as a function of the reduced temperature . (a) Internal energy in units of . The dashed lines are the zero-point energy, which approaches at low temperature, and , which it approaches at high temperature. (b) Heat capacity at constant volume in units of , which is derived below. The dashed line is its high-temperature limit.
The dashed lines in panel (a) of Figure 2.6.2 are the low- and high-temperature limits of . For , the exponential is very large, so the second term in the brackets vanishes and
which is the zero-point energy. For , the ratio is small, and the expansion gives
The constant in the brackets cancels, and
This limit can be compared with the equipartition theorem of classical statistical mechanics, which states that each quadratic term in the energy contributes to the mean energy. For example, the three quadratic terms of the translational kinetic energy, , give (Section 1.2).
The value of depends on the molecule. Table 2.6.1 lists for several diatomic molecules, calculated from the harmonic vibrational wavenumber as , where is the speed of light and . The plots in this section use the value for .
Table 2.6.1:Harmonic vibrational wavenumbers (from the NIST Chemistry WebBook) and vibrational temperatures of selected diatomic molecules
Molecule | () | (K) |
|---|---|---|
4401.21 | 6332 | |
2990.95 | 4303 | |
2358.57 | 3393 | |
2169.81 | 3122 | |
1580.19 | 2274 | |
559.72 | 805 | |
325.32 | 468 | |
214.50 | 309 |
Heat Capacity at Constant Volume¶
In Section 2.3, we showed that
For a single oscillator, , and from Equation (2.6.9), it follows that
Complete Derivation of
Dividing by and using gives the expression for above.
Panel (b) of Figure 2.6.2 shows as a function of the reduced temperature.
Computational Studio: Harmonic Oscillator¶
In Figure 2.6.3, you can set the vibrational temperature , for example to a value of Table 2.6.1, and follow the probabilities of the levels, the internal energy, and the heat capacity at any temperature.
Figure 2.6.3:One harmonic oscillator with the vibrational temperature . Panel (a) shows the probabilities of the levels at the temperature . Panels (b) and (c) show the internal energy in units of and the heat capacity in units of as functions of temperature, with the dashed lines of Figure 2.6.2. The dot marks the temperature of panel (a). The buttons set to the values of Table 2.6.1.
You can also open the studio in a new tab: Harmonic Oscillator Studio.
Einstein Model¶
The Einstein model is a simple model for an atomic crystal, where identical atoms occupy lattice sites and vibrate about these sites as independent (i.e., non-interacting) three-dimensional harmonic oscillators, all with the same frequency. Because the atoms occupy fixed lattice sites, they can be treated as distinguishable. Each atom vibrates independently along , , and , so its energy is the sum of the energies of three one-dimensional oscillators, and the crystal is a collection of independent, distinguishable one-dimensional oscillators. The partition function is therefore a product of factors of (Section 2.4):
Because , the internal energy and the heat capacity are times the results for a single oscillator:
and
Dulong–Petit Law¶
The Dulong–Petit law is the empirical observation that the molar heat capacity of many elemental solids at room temperature is close to , where is the gas constant. Figure 2.6.4 compares the law with molar heat capacities measured at 25 °C. Elements whose heat capacity differs from by more than are labeled.
Source
# https://en.wikipedia.org/wiki/Heat_capacities_of_the_elements_(data_page)
import pandas as pd
df = pd.read_csv("../_static/chapter-02/section-06/dulong_petit.csv")
df = df[df.Source == "use"].copy()
df["Atomic Number"] = df["Atomic Number"].astype(int)
df["Molar (J/mol·K)"] = df["Molar (J/mol·K)"].astype(float)
df["Molar (R)"] = df["Molar (J/mol·K)"] / 8.314
df["Absolute Deviation"] = np.abs(df["Molar (R)"] - 3)
# Remove elemental gases
elemental_gases = ["H", "He", "N", "O", "F", "Ne", "Cl", "Ar", "Kr", "Xe", "Rn"]
df = df[~df.Symbol.isin(elemental_gases)]
def draw(c):
fig, ax = plt.subplots(figsize=(6.2, 3.6), constrained_layout=True)
# Dulong-Petit law
ax.axhline(3, color=c.muted, lw=1.2, ls=(0, (4, 3)))
ax.text(101.5, 3, "Dulong–Petit\nlaw, $3R$", color=c.muted, va="center", clip_on=False)
ax.scatter(df["Atomic Number"], df["Molar (R)"], s=20, color=c.blue, edgecolor=c.ground, linewidth=0.5,
zorder=3)
# Label the outliers (the two entries for carbon are graphite and diamond)
outliers = df[df["Absolute Deviation"] > 1]
for _, row in outliers.iterrows():
label, offset, ha, va = row["Symbol"], (6, 0), "left", "center"
if row["Symbol"] == "C":
allotrope = "graphite" if "graphite" in str(row["Notes"]) else "diamond"
label = f"C ({allotrope})"
offset = (6, 3) if allotrope == "graphite" else (6, -4)
elif row["Symbol"] == "B" or row["Atomic Number"] > 90:
offset, ha = (-6, 0), "right"
ax.annotate(label, (row["Atomic Number"], row["Molar (R)"]), xytext=offset, textcoords="offset points",
ha=ha, va=va)
ax.set(xlabel="Atomic number", ylabel="Molar heat capacity, $C/R$", xlim=(0, 100), ylim=(0, 8))
return fig
fs.show(draw, alt="Molar heat capacity divided by the gas constant against atomic number for 82 elements. Most "
"points lie close to the dashed line at 3, which is the Dulong–Petit law. Beryllium, boron, "
"graphite, and diamond lie well below the line, between 0.7 and 2. Gadolinium and plutonium lie "
"above it, near 4.4, and americium lies near 7.5.")Figure 2.6.4:Molar heat capacity at 25 °C of elemental solids (and liquid mercury) as a function of atomic number, in units of the gas constant . The dashed line is the Dulong–Petit law.
Worked Example¶
Mean vibrational energy at finite temperature¶
For a harmonic oscillator,
Take (the value for in Table 2.6.1) and .
Compute the exponential factor
Evaluate the bracket
Compute
Per mole, .
Compute the populations of the two lowest levels
The probability of level is (Section 2.2). With the partition function derived above, , so
Result. At 298 K, exceeds the zero-point energy, , by 14%, and 93% of the oscillators are in the lowest level.
Concept Checks¶
Why does the harmonic oscillator retain nonzero energy as ?
What does the limit predict for the heat capacity, and how does that compare to equipartition?
How does increasing (stiffer bond) change and the thermal population of excited levels?
Why is vibration often “frozen out” at room temperature for high-frequency modes?
Key Takeaways¶
The harmonic oscillator has evenly spaced energy levels and a closed-form partition function.
Zero-point energy persists at .
The vibrational temperature sets the temperature scale for activating vibrational degrees of freedom.
In the high- limit, quantum results approach classical equipartition behavior.