Boundary eigenvalues by shooting and matching
A shooting solution can satisfy the differential equation at very high precision at an energy that misses the far boundary. Conversely, an eigenvector of a discretized Hamiltonian can have a tiny matrix residual while its continuum energy is still changing under mesh refinement. A smooth finite well shows how to measure those errors separately.
Specify two endpoint conditions
Section titled “Specify two endpoint conditions”Work on with , , and the usual inner product. The coordinate and energy are dimensionless. This is a regular, separated, self-adjoint problem with simple ordered eigenvalues. Since the perturbing potential has sup norm , the minimax principle places the th eigenvalue in . The three intervals for are disjoint. They provide independent labels and bracketing ranges. Teschl, first edition, §§9.1–9.2, finite-interval realizations, PDF
At a trial energy propagate from at zero and from at , both to . Match with
There is no first derivative in the equation, so this Wronskian is constant in for exact solutions. Its zero expresses proportionality of the two boundary solutions, including when both values vanish at a parity node. Dividing by either value to form a logarithmic derivative loses that advantage. For the free operator one obtains . The specified derivative normalization fixes its scale; an absolute determinant tolerance has no invariant meaning under arbitrary rescaling of the two columns.
Compare two discretizations
Section titled “Compare two discretizations”Use an adaptive eighth-order explicit Runge–Kutta integration with relative tolerance and absolute tolerance . Find each zero in . As a separate method place Dirichlet conditions directly on the ends of a uniform mesh with intervals, use the centered second derivative, and diagonalize its symmetric tridiagonal matrix. A collocation method would instead enforce the differential equation in a chosen interpolation basis; it should also be checked against changes in resolution and endpoint representation.
| Matched energy | Matrix energy error, | Error, | |
|---|---|---|---|
| 1 | 0.7951238681 | 0.00021034 | 0.00005259 |
| 2 | 3.9966672451 | 0.00322515 | 0.00080647 |
| 3 | 9.0023761081 | 0.01626044 | 0.00406730 |
Reintegrating at relative tolerance gives at the quoted unrounded shooting roots. This checks the propagated matching data. Halving the finite-difference spacing cuts the independent energies’ errors by about four, including for the third mode whose absolute error is much larger. A useful local check on any interpolated wave is on additional points, together with the two endpoint values. Such a differential residual controls a different part of the approximation from the Wronskian zero and the observed energy convergence. Reproduce the integrations and matrix refinements (Python)
Obtain the slope from the matched wave
Section titled “Obtain the slope from the matched wave”How far in energy is a trial with a small matching residual? The scale that converts residual to energy is the slope . Denote the left and right boundary solutions by and their energy derivatives by . Differentiating the ODE gives and the corresponding equation for . Since both endpoint normalizations are independent of energy, vanish at the left endpoint and at the right. For this gives
Integrating to the matching point from opposite ends and adding yields
At an eigenvalue, is a nonzero multiple of , so this derivative cannot vanish. In the present symmetric well because the endpoint derivatives were chosen as and . Reflection about the midpoint alternates even, odd, even as the node count increases. Thus is the squared norm of the left-normalized eigenfunction times . The first three slopes are , and . An integration of the energy derivative of gives the same numbers through . This also checks the odd state whose value vanishes at the midpoint. Teschl, §9.1, Lagrange identity (9.4) and Wronskian (9.5), first-edition PDF
Infer the energy error of a trial
Section titled “Infer the energy error of a trial”Use . A linear expansion around the simple zero estimates the signed energy error as . The calculation gives , so one Newton correction leaves an error of . Starting instead at offsets and leaves errors of and . The second-order remainder explains the roughly fourfold improvement.
Multiplying one column by a nonzero constant rescales and equally. Thus is independent of this choice. If the column normalization depends on energy, write with nonzero near the root. Then
For the same trial gives a correction of . The zero and first-order error estimate survive the change of normalization, while the finite Newton step changes at second order. The radial oscillator determinant gives an exact example of an energy-dependent prefactor. Run the slope, signed norm and normalization tests (Python)
References
Section titled “References”- Teschl, G. (2009). Mathematical Methods in Quantum Mechanics. Graduate Studies in Mathematics 99, American Mathematical Society. Author’s first-edition PDF.