Solutions to infinite square well problems and visualization of energy quantization

In MIT’s Physics 8.04 course the professor poses walking through many values of k where only special values of k will satisfy the boundary conditions imposed upon us. For these problems I did not find good visualizations, and I wanted to work on one. This is just a gif visualization of the boundary conditions in the well forcing energy quantization, and I have the assumption the reader is familiar with these infinite square well / particle in a box problems.

TISE:22md2ϕdx2+V(x)ϕ=Eϕand V(x)=0 in well\text{TISE:}-\frac{\hbar^2}{2m}\frac{d^2\phi}{dx^2}+V(x)\phi=E\phi \text{; \quad and V(x)=0 in well}
22mϕ(x)=Eϕ(x)ϕ+k2ϕ=0,k2=2mE2 -\frac{\hbar^2}{2m}\phi”(x)=E\phi(x) \quad \Rightarrow \quad \phi”+k^2\phi=0, \qquad k^2=\frac{2mE}{\hbar^2}
solutions of form ϕE(x)=Acos(kx)+Bsin(kx)\text{solutions of form }\phi_E(x)=A\cos(kx)+B\sin(kx)

I have my work briefly summarized on this page. Whereas ϕ(0) = 0 forces A to 0, leaving only the sine term, he posed walking through values of k until we find those very special values of kL for which we hit 0 at L.

An animated simulation of the shooting method used to find energy eigenfunctions for an infinite square well. The plot shows trial wavefunctions scanning through different wavenumbers (k), highlighting the first five successful solutions that satisfy the boundary condition psi(L)=0 in distinct colors

I found it really cool that even in the most trivial, idealistic, simplified example of solving the TISE, we’re faced with the peculiar fact that energy [eigenvalues] are discrete and greater than zero.

I will probably try to follow this with a similar visualization of the simple harmonic oscillator, as those failed solutions explode (diverge) at infinity which is a much more dramatic visualization for how our energies are forced to discrete values. The math is much more complicated and I leave it at this for now!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *