- #1
- 2,140
- 2,716
I have to solve the 1D Time-independent Schrödinger equation (TISE) using the shooting algorithm. As far as I understood from this video on Shooting method for solving BVP, I will have to solve the problem by using IVP solvers (like RK2 or RK4 methods), and guess a value for the derivative of the function at the starting point. Then, I iterate over to the other end point. I already know the value of the function at the other end point, and I compare the numerically obtained value with the known value, and modify my guess accordingly.
I can write the 1D TISE as $$\psi''(x) = -k^2(x) \psi(x),$$ where $$k^2(x) = \dfrac{2m}{\hbar^2} \left[ E - V(x) \right].$$ Since the TISE is an eigenvalue equation, I do not know the value of E beforehand, and I have to guess it. So, I have to make two guesses — ##\psi'(x = 0)## and ##E##. Now, suppose I have been given ##\psi(x = 0)## and ##\psi(x = x_N)##, and, of course, I know the form of ##V(x)##. After one iteration from ##x = 0 \text{ to } x_N##, I find that the numerically computed ##\psi(x_N)## doesn't quite match the given value. Now, which one do I change — ##\psi'(x = 0)## or ##E##?
I can write the 1D TISE as $$\psi''(x) = -k^2(x) \psi(x),$$ where $$k^2(x) = \dfrac{2m}{\hbar^2} \left[ E - V(x) \right].$$ Since the TISE is an eigenvalue equation, I do not know the value of E beforehand, and I have to guess it. So, I have to make two guesses — ##\psi'(x = 0)## and ##E##. Now, suppose I have been given ##\psi(x = 0)## and ##\psi(x = x_N)##, and, of course, I know the form of ##V(x)##. After one iteration from ##x = 0 \text{ to } x_N##, I find that the numerically computed ##\psi(x_N)## doesn't quite match the given value. Now, which one do I change — ##\psi'(x = 0)## or ##E##?