Solving the Schrödinger Equation with Numerov’s Algorithm
The Schrödinger equation describes the energy and time-evolution of a particle or system of particles, and is one of the fundamental building blocks of modern physics. In it’s general form, the (time-independent) Schrödinger equation looks like this:1
There are relatively few situations in which the Schrödinger equation can be solved analytically, and numerical methods and approximations are one way around that analytical limitation. To demonstrate how this is possible and how a numerical solution works, what better way than to solve a system which can be solved analytically and comparing the results.
In solving the Schrödinger equation, we will start with one of the simplest interesting quantum mechanical systems, the quantum mechanical harmonic oscillator.2 Let’s first define our quantum harmonic oscillator. The general form of the Schrödinger equation for a one-dimensional harmonic oscillator reads thus:
We will make use of the Numerov algorithm which is particularly
suited to solving second order differential equations of the form
. You can read more about it elsewhere, including its derivation etc., but its form is quite simple and easy to code:
As you can see, it provides 6th order accuracy which is pretty impressive for such a simple algorithm. In the above equation,
relate to those in the formula in the paragraph above.
Thus we need to manipulate
into the form:
Now the Schrödinger equation is in the correct form, we can simply plug it into the Numerov algorithm and see what comes out.
Finding the Eigenvalues Numerically
To determine the eigenvalues, the program scans a range of energies, denoted by the Greek letter
or vice versa. When that happens, the tail must have crossed zero, and therefore it must have stepped over a solution.3 The program then goes backwards and so on with increased resolution, honing in until it finds all of the solutions we want.
Given the substitution above, we should expect the eigenvalues to be
is an integer from zero (representing the ground state) upwards.4 Hit F12
to pull up the web console before you run the simulation to see what results you actually get.
Note: On a smartphone?
https://mtdevans.com/2013/07/solving-the-schrodinger-equation-with-numerovs-algorithm/index.html
No comments:
Post a Comment