Quantum Particle-in-a-Box Simulator

Solve 1D and 2D Schrödinger wavefunctions (ψ), probability densities (|ψ|²), nodal surfaces, and cyanine dye polymethine UV-Vis absorption transitions in real time.

QUANTUM MECHANICS SOLVER Theoretical Foundation: Exact Analytic Solutions to the Time-Independent Schrödinger Equation. Solves the infinite potential well (Ĥψ = Eψ) for particles confined in 1D and 2D boundaries. Cyanine dye calculations use the Free-Electron Molecular Orbital (FEMO) Kuhn/Brooker model with zero arbitrary fitting parameters.

1D Infinite Square Well Parameters

n = 1
1.0 nm
State Energy (E)
—

Quantized eigenvalue in eV

Internal Nodes
—

Points where wavefunction crosses zero

Excitation (Δ E)
—

Transition energy to next level

Absorption Wavelength (λ)
—

Photon wavelength (λ = hc/Δ E)

2. Wavefunction & Probability Distribution Plot

Quantum Mechanics of the Infinite Square Well

1. The 1D Particle in a Box

Consider a particle of mass m (typically an electron) confined to a one-dimensional region 0 ≤ x ≤ L bounded by infinitely high potential barriers (V(x) = ∞ for x < 0 or x > L). Inside the box, the potential V(x) = 0, so the time-independent Schrödinger equation is:

-(ħ²)/(2m) (d²ψ)/(dx²) = E ψ(x)

Applying the Dirichlet boundary conditions ψ(0) = 0 and ψ(L) = 0 restricts the allowed wavenumbers k = (nπ)/(L), yielding quantized energy eigenvalues:

Eₙ = (n² h²)/(8mL²), \quad n = 1, 2, 3, \dots

and normalized stationary state wavefunctions:

ψₙ(x) = √(2/L) · sin(nπx / L) x)/(L))

2. 2D Rectangular Well & Quantum Degeneracy

For a particle confined in a 2D box of dimensions Lₓ × L_y:

E_{nₓ, n_y} = (h²)/(8m) ( (nₓ²)/(Lₓ²) + (n_y²)/(L_y²) )

When the box is square (Lₓ = L_y), states with distinct quantum numbers such as (nₓ=1, n_y=2) and (nₓ=2, n_y=1) possess identical energies (E_{1,2} = E_{2,1} = 5 E_{1,1}). This is a classic example of geometric or symmetry-induced degeneracy.

3. Free-Electron Molecular Orbital (FEMO) Model for Cyanine Dyes

In linear conjugated polymethine dyes (Et₂N⁺ = CH-(CH=CH)ₚ-NEt₂), the π-electrons are delocalized across the carbon backbone. In the FEMO model, the π-electrons are treated as non-interacting particles in a 1D box of length L = (N_{bonds} + α) · l_{C-C}.

Because each orbital accommodates two paired electrons, the HOMO state is n_{HOMO} = Nₑ / 2, and the lowest allowed electronic excitation is the HOMO → LUMO transition (n_{HOMO} → n_{HOMO} + 1):

Δ E = (h²)/(8mL²) (Nₑ + 1) ⟹ λ = (8 m c L²)/(h (Nₑ + 1))

As the chain length p increases, L grows linearly (L² in the numerator) while Nₑ + 1 grows linearly in the denominator, causing the absorption wavelength λ to shift bathochromically (red-shift) by approximately 100 nm per double bond.