Standard boundary value problem A
boundary value problem is given as follows by Stoer and Bulirsch (Section 7.3.1). w''(t) = \frac{3}{2} w^2(t), \quad w(0) = 4, \quad w(1) = 1 The
initial value problem w''(t) = \frac{3}{2} w^2(t), \quad w(0) = 4, \quad w'(0) = s was solved for
s = −1, −2, −3, ..., −100, and
F(
s) =
w(1;
s) − 1 plotted in the Figure 2. Inspecting the plot of
F, we see that there are roots near −8 and −36. Some trajectories of
w(
t;
s) are shown in the Figure 1. Stoer and Bulirsch state that there are two solutions, which can be found by algebraic methods. These correspond to the initial conditions
w′(0) = −8 and
w′(0) = −35.9 (approximately).
Eigenvalue problem The shooting method can also be used to solve eigenvalue problems. Consider the
time-independent Schrödinger equation for the
quantum harmonic oscillator -\frac{1}{2} \psi_n''(x) + \frac{1}{2} x^2 \psi_n(x) = E_n \psi_n(x). In
quantum mechanics, one seeks normalizable wave functions \psi_n(x) and their corresponding energies subject to the boundary conditions \psi_n(x \rightarrow +\infty) = \psi_n(x \rightarrow -\infty) = 0.The problem can be solved analytically to find the energies E_n = n + 1/2 for n = 0, 1, 2, \dots, but also serves as an excellent illustration of the shooting method. To apply it, first note some general properties of the Schrödinger equation: • If \psi_n(x) is an
eigenfunction, so is C \psi_n(x) for any nonzero constant C. • The n-th excited state \psi_n(x) has n roots where \psi_n(x) = 0. • For even n, the n-th excited state \psi_n(x) = \psi_n(-x) is symmetric and nonzero at the origin. • For odd n, the n-th excited state \psi_n(x) = -\psi_n(-x) is antisymmetric and thus zero at the origin. To find the n-th excited state \psi_n(x) and its energy E_n, the shooting method is then to: • Guess some energy E_n. • Integrate the Schrödinger equation. For example, use the central
finite difference-\frac{1}{2} \frac{\psi^{i+1}_n - 2 \psi^i_n + \psi^{i-1}_n}{{\Delta x}^2} + \frac{1}{2} (x^i)^2 \psi^i_n = E_n \psi^i_n. • If n is even, set \psi_0 to some arbitrary number (say \psi^0_n = 1 — the
wave function can be normalized after integration anyway) and use the symmetric property to find all remaining \psi_n^i. • If n is odd, set \psi^0_n = 0 and \psi^1_n to some arbitrary number (say \psi^1_n = 1 — the wave function can be normalized after integration anyway) and find all remaining \psi_n^i. • Count the roots of \psi_n and refine the guess for the energy E_n. • If there are n or less roots, the guessed energy is too low, so increase it and repeat the process. • If there are more than n roots, the guessed energy is too high, so decrease it and repeat the process. The energy-guessing can be done with the
bisection method, and the process can be terminated when the energy difference is sufficiently small. Then one can take any energy in the interval to be the correct energy. == See also ==