Interactive simulations & visualizations

Visualizing the beauty in physics and mathematics


Project maintained by zhendrikse Hosted on GitHub Pages — Theme by mattgraham

Visualizing a Complex Plane wave


JavaScript   Three.js  

🎯 Improved understanding of a one-dimensional complex plane wave:

\[\psi(x, t) = Ae^{i(k x - \omega t)}\]

These visualizations help to build intuition for complex waves, phase propagation, and the role of $k$ and $\omega$.

3D visualization


Source  

🧠 Idea taken from the book Visualizing Quantum Mechanics with Python
🐍 A VPython demo is available as well, see plane_wave.py

Each arrow represents the complex value of the wave function at a fixed position $x$. The arrow rotates in the complex plane as time evolves:

The length of the arrows is constant, showing that the magnitude $|\psi|$ of a plane wave does not change in space or time. The color encodes the phase, making the spatial and temporal phase structure visible.

2D visualization


Source  

🧠 Based on SinusoidalWave.html by Daniel V. Schroeder, Weber State University
🔑 Updated and refactored and by Zeger Hendrikse
👉 More physics software by Daniel V. Schroeder can be found here

Density/phase

This is an animated visualization of the behavior of a pure sinusoidal wavefunction in one dimension, representing a free quantum particle with a precise momentum that is inversely proportional to the wavelength. There is no potential energy and the particle is nonrelativistic, so the phase velocity is directly proportional to the momentum.

The real part is shown in orange, the imaginary part in blue. Alternatively, the probability density and phase are drawn, with the phase represented by hues going from

  • red (pure real and positive) to
  • light green (pure imaginary and positive) to
  • cyan (pure real and negative) to
  • purple (pure imaginary and negative) and finally back to red.

For a pure sinusoidal wavefunction, the probability density is the same everywhere. — Paraphrased from instructions at SinusoidalWave.html

Guided Exploration


Use the controls to explore the properties of the plane wave.


Exercise 1 — Spatial phase

  1. Set $\omega = 0$.
  2. Change the wave number $k$.

Questions


Exercise 2 — Temporal evolution

  1. Fix $k$.
  2. Increase $\omega$.

Questions


Exercise 3 — Direction of propagation

  1. Set $k > 0$.
  2. Observe how the phase moves in space.
  3. Repeat for $k < 0$.

Questions


Exercise 4 — Real vs imaginary parts

Focus on a single arrow and track its motion.

Questions


Exercise 5 — Interpretation

A plane wave is not normalizable.

Questions


Optional challenge

Predict what would happen if **two plane waves with slightly different $k$ ** were added together. What new structure would you expect to see?

Complex Plane Waves in Quantum Mechanics


In quantum mechanics, the state of a free particle with definite momentum is described by a plane wave

\[\psi(x,t) = A e^{i(kx - \omega t)}.\]

This visualization shows the wave function as a geometric object rather than a real-valued curve.

At each position $x$:

The real and imaginary parts are shown along orthogonal axes. The constant arrow length illustrates that

\[|\psi(x,t)|^2 = |A|^2\]

is uniform in space and time.

This emphasizes an important quantum-mechanical point:

A plane wave does not represent a localized particle, but a state with definite momentum and completely delocalized position.

The animation separates:

which is often obscured in standard textbook plots.

Concise derivation of the Schrödinger equation


According to De Broglie we have:

\[\begin{equation} p = \dfrac{h}{\lambda} = \dfrac{h}{2\pi} \dfrac{2\pi}{\lambda} = \hbar k \Rightarrow \hbar k = \hbar \dfrac{\partial}{\partial x} \psi(x,t) = p \psi(x, t) \Rightarrow p = \hbar \dfrac{\partial}{\partial x} \end{equation}\]

The Kinetic energy can be expressed as:

\[\begin{equation} K = \dfrac{p^2}{2m} = -\dfrac{\hbar^2}{2m}\dfrac{\partial^2}{\partial x^2} \psi(x,t) \end{equation}\]

The total energy is given by the Planck-Einstein relation:

\[\begin{equation} E = hf = \dfrac{h}{2\pi}\dfrac{2\pi}{T} = \hbar \omega \Rightarrow -i\hbar\dfrac{\partial}{\partial t} \psi(x,t) = E \psi(x,t) \Rightarrow E = -i\hbar\dfrac{\partial}{\partial t} \end{equation}\]

From this we arrive at the Schrödinger equation:

\[\begin{equation} (KE + PE)\Psi(x,,t) = E\Psi(x,t) = -i\hbar \dfrac{\partial}{\partial t}\Psi(x, t) = -\dfrac{\hbar^2}{2m}\dfrac{\partial^2}{\partial x^2} \Psi(x,t) + V(x)\Psi(x,t) \end{equation}\]

Share on: