Particle in a Box

Time-dependent Schrodinger equation in 1D — wavefunction evolution, eigenstates, quantum revivals

Wavefunction

Energy levels En = n^2 * pi^2 / 2
TDSE: psi(x,t) = sum cn * phi_n(x) * exp(-i*En*t)
phi_n(x) = sqrt(2) sin(n*pi*x), En = n^2*pi^2/2 (hbar=m=L=1)

Green: Re(psi)   Orange: Im(psi)   Blue fill: |psi|^2

Watch for quantum revivals — at t=T_rev the packet reconstructs itself. Superposition states show quantum beating.