Watching a quantum wave function breathe.

The real and imaginary parts of $\psi(\varepsilon, t) = A\varepsilon^2 e^{-\varepsilon^2/2}$ evolving in the harmonic potential.

t = 0

The quantum harmonic oscillator is the single most important model in all of quantum mechanics. Every bound potential near its minimum looks like a harmonic oscillator. Its eigenstates form a complete basis, and its coherent states are the closest quantum mechanics gets to classical motion.

Here we explore a specific question: given an initial wave function $\psi(\varepsilon, 0) = A \varepsilon^2 e^{-\varepsilon^2/2}$, what happens as time passes? The filmstrip below — the central visualization of this article — shows the answer.

The Filmstrip

Each row shows the wave function $\psi(\varepsilon, t)$ at a different time. Solid curves are the real part, dashed curves the imaginary part. Time increases from top to bottom. Notice how the wave function distorts and rotates in the complex plane, yet always remains symmetric about $\varepsilon = 0$ — parity is conserved.

The Filmstrip · Time Evolution of $\psi(\varepsilon, t) = A\varepsilon^2 e^{-\varepsilon^2/2}$
Solid = Re $\psi$, Dashed = Im $\psi$. Time increases downward. The wave function remains even at all times.

The wave function breathes — its real and imaginary parts oscillate in and out — but its symmetry never breaks. Why? Because $\varepsilon^2 e^{-\varepsilon^2/2}$ is an even function, and the harmonic oscillator conserves parity. We'll prove this below.

The Harmonic Oscillator Eigenstates

In dimensionless units ($\varepsilon = x\sqrt{m\omega/\hbar}$), the time-independent Schrödinger equation for the harmonic oscillator is:

$$-\frac{1}{2}\frac{d^2\phi}{d\varepsilon^2} + \frac{1}{2}\varepsilon^2\phi = E\phi$$

The solutions are the Hermite functions:

$$\phi_n(\varepsilon) = \frac{1}{\sqrt{2^n n! \sqrt{\pi}}} \, H_n(\varepsilon) \, e^{-\varepsilon^2/2}$$

where $H_n$ is the $n$-th Hermite polynomial. The energy eigenvalues are the famous equally spaced ladder:

$$E_n = \left(n + \tfrac{1}{2}\right)\hbar\omega \qquad n = 0, 1, 2, \ldots$$

Each eigenstate has definite parity: $\phi_n(-\varepsilon) = (-1)^n \phi_n(\varepsilon)$. Even $n$ gives even functions, odd $n$ gives odd. Explore them below:

Explore · QHO Eigenstates $\phi_n(\varepsilon)$

The ground state $\phi_0$ is a simple Gaussian — the minimum-uncertainty wave packet. Each higher state adds one more node and one more oscillation, while respecting the confining potential.

Decomposing the Initial State

Our initial wave function $\psi(\varepsilon, 0) = A\varepsilon^2 e^{-\varepsilon^2/2}$ is not an eigenstate — it's a superposition. To find which eigenstates contribute, we compute:

$$c_n = \int_{-\infty}^{\infty} \phi_n(\varepsilon) \, \psi(\varepsilon, 0) \, d\varepsilon$$

Since $\psi(\varepsilon, 0)$ is even, $c_n = 0$ for all odd $n$ (the integral of an even function times an odd function vanishes). Using the Hermite polynomial identity $\varepsilon^2 = \frac{1}{4}H_2(\varepsilon) + \frac{1}{2}$, we find that only $c_0$ and $c_2$ are non-zero:

$$\psi(\varepsilon, 0) = c_0 \, \phi_0(\varepsilon) + c_2 \, \phi_2(\varepsilon)$$

The visualization below shows the original function (white), its two eigenstate components (colored, dashed), and a coefficient bar chart:

Decomposition · $\psi(\varepsilon, 0) = c_0\phi_0 + c_2\phi_2$
White = original $\psi(\varepsilon,0)$. Colored dashed = eigenstate components $c_n \phi_n$. Bar chart shows expansion coefficients.

Time Evolution

Once we have the eigenstate decomposition, time evolution is exact. Each eigenstate acquires a phase factor:

$$\psi(\varepsilon, t) = c_0 \, \phi_0(\varepsilon) \, e^{-iE_0 t/\hbar} + c_2 \, \phi_2(\varepsilon) \, e^{-iE_2 t/\hbar}$$

With $E_0 = \frac{1}{2}\hbar\omega$ and $E_2 = \frac{5}{2}\hbar\omega$, we can factor out the overall phase:

$$\psi(\varepsilon, t) = e^{-i\omega t/2} \left[ c_0 \, \phi_0(\varepsilon) + c_2 \, \phi_2(\varepsilon) \, e^{-2i\omega t} \right]$$

The beat frequency between the two components is $\Delta E / \hbar = 2\omega$. The probability density $|\psi|^2$ oscillates at this beat frequency — the wave function "breathes" back and forth between looking more like $\phi_0$ and more like $\phi_2$.

The animated visualization below shows this directly. Watch how the real (solid blue) and imaginary (dashed pink) parts rotate and interfere:

Animate · Time Evolution of $\psi(\varepsilon, t)$
t = 0

Parity Conservation

The harmonic oscillator Hamiltonian commutes with the parity operator $\hat{P}$, where $\hat{P}\psi(\varepsilon) = \psi(-\varepsilon)$. This means parity is a conserved quantum number. Since our initial state is even:

$$\psi(-\varepsilon, 0) = A(-\varepsilon)^2 e^{-(-\varepsilon)^2/2} = A\varepsilon^2 e^{-\varepsilon^2/2} = \psi(\varepsilon, 0)$$

it must remain even at all times: $\psi(-\varepsilon, t) = \psi(\varepsilon, t)$ for all $t$. This is visible in every frame of the filmstrip — the wave function is always symmetric about $\varepsilon = 0$. The visualization below highlights this symmetry in real time:

Parity Conservation · $\psi(-\varepsilon, t) = \psi(\varepsilon, t)$ always
Parity check running...

The left half (blue tint) is always a mirror image of the right half (pink tint). No amount of time evolution can break this symmetry. In fact, this is a deep consequence of Noether’s theorem: the Hamiltonian’s invariance under $\varepsilon \to -\varepsilon$ guarantees parity conservation.

More generally: if the initial state has definite parity (even or odd), and the potential is symmetric $V(\varepsilon) = V(-\varepsilon)$, the parity is preserved for all time. An initially odd wave function ($\phi_1, \phi_3, \ldots$) would remain odd forever.

Classical Limit & Coherent States

What does classical harmonic motion look like in quantum mechanics? The answer is coherent states — Gaussian wave packets displaced from the origin that oscillate back and forth like a classical particle:

$$|\alpha\rangle = e^{-|\alpha|^2/2} \sum_{n=0}^{\infty} \frac{\alpha^n}{\sqrt{n!}} |n\rangle$$

Unlike our $\varepsilon^2 e^{-\varepsilon^2/2}$ state (which only involves two eigenstates and merely "breathes"), a coherent state involves all eigenstates and its center of probability actually translates left and right — true oscillation. Try the different initial state presets below:

Explore · Different Initial States
t = 0

The ground state $\phi_0$ is stationary — its real and imaginary parts rotate uniformly and $|\psi|^2$ is constant. The coherent state $|\alpha\rangle$ oscillates like a classical spring. Our $\varepsilon^2 e^{-\varepsilon^2/2}$ state sits in between: it breathes (shape changes) but doesn't translate.

Exercises

Exercise 1

Verify analytically that $c_n = 0$ for all odd $n$. Hint: consider the symmetry of the integrand $\phi_n(\varepsilon) \cdot \varepsilon^2 e^{-\varepsilon^2/2}$ under $\varepsilon \to -\varepsilon$.

Exercise 2

The beat period visible in the filmstrip is $T_{\text{beat}} = \pi/\omega$. Derive this from the energy difference $E_2 - E_0 = 2\hbar\omega$.

Exercise 3

At what time $t$ does $\psi(\varepsilon, t)$ become purely imaginary? Use the two-component form and find when $\text{Re}[\psi] = 0$ everywhere.

Exercise 4

If we instead start with $\psi(\varepsilon, 0) = A\varepsilon^3 e^{-\varepsilon^2/2}$ (an odd function), which eigenstates would contribute? What parity would the wave function have at later times?

Summary