Skip to content

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.

Work on 0≤x≤π0\le x\le\pi with H=−d2/dx2+0.4cos⁡(2x)H=-d^2/dx^2+0.4\cos(2x), u(0)=u(π)=0u(0)=u(\pi)=0, and the usual L2(dx)L^2(dx) 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 0.40.4, the minimax principle places the nnth eigenvalue in [n2−0.4,n2+0.4][n^2-0.4,n^2+0.4]. The three intervals for n=1,2,3n=1,2,3 are disjoint. They provide independent labels and bracketing ranges. Teschl, first edition, §§9.1–9.2, finite-interval realizations, PDF

At a trial energy EE propagate uLu_L from (u,u′)=(0,1)(u,u')=(0,1) at zero and uRu_R from (0,−1)(0,-1) at π\pi, both to x∗=π/2x_*=\pi/2. Match with

D(E)=uL(x∗)uR′(x∗)−uL′(x∗)uR(x∗). D(E)=u_L(x_*)u_R'(x_*)-u_L'(x_*)u_R(x_*).

There is no first derivative in the equation, so this Wronskian is constant in xx 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 D(E)=−sin⁡(πE)/ED(E)=-\sin(\pi\sqrt E)/\sqrt E. The specified derivative normalization fixes its scale; an absolute determinant tolerance has no invariant meaning under arbitrary rescaling of the two columns.

Use an adaptive eighth-order explicit Runge–Kutta integration with relative tolerance 10−1110^{-11} and absolute tolerance 10−1310^{-13}. Find each zero in [n2−0.5,n2+0.5][n^2-0.5,n^2+0.5]. As a separate method place Dirichlet conditions directly on the ends of a uniform mesh with MM 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.

nnMatched energyMatrix energy error, M=64M=64Error, M=128M=128
10.79512386810.000210340.00005259
23.99666724510.003225150.00080647
39.00237610810.016260440.00406730

Reintegrating at relative tolerance 3×10−133\times10^{-13} gives ∣D(E)∣<6×10−12|D(E)|\lt6\times10^{-12} 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 −u′′+(V−E)u-u''+(V-E)u 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)

How far in energy is a trial with a small matching residual? The scale that converts residual to energy is the slope D′(E)D'(E). Denote the left and right boundary solutions by u,vu,v and their energy derivatives by uE,vEu_E,v_E. Differentiating the ODE gives uE′′=(V−E)uE−uu_E''=(V-E)u_E-u and the corresponding equation for vEv_E. Since both endpoint normalizations are independent of energy, uE,uE′u_E,u_E' vanish at the left endpoint and vE,vE′v_E,v_E' at the right. For W(f,g)=fg′−f′gW(f,g)=fg'-f'g this gives

∂xW(uE,v)=uv,∂xW(u,vE)=−uv.\begin{aligned} \partial_x W(u_E,v)&=uv,\\ \partial_x W(u,v_E)&=-uv. \end{aligned}

Integrating to the matching point from opposite ends and adding yields

D′(E)=∫0πu(x,E)v(x,E) dx.D'(E)=\int_0^\pi u(x,E)v(x,E)\,dx .

At an eigenvalue, vv is a nonzero multiple of uu, so this derivative cannot vanish. In the present symmetric well v(x,E)=u(π−x,E)v(x,E)=u(\pi-x,E) because the endpoint derivatives were chosen as +1+1 and −1-1. Reflection about the midpoint alternates even, odd, even as the node count increases. Thus D′(En)D'(E_n) is the squared L2L^2 norm of the left-normalized eigenfunction times (−1)n−1(-1)^{n-1}. The first three slopes are +1.82563329+1.82563329, −0.42009001-0.42009001 and +0.17913729+0.17913729. An integration of the energy derivative of uu gives the same numbers through D′(E)=−uE(π,E)D'(E)=-u_E(\pi,E). 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

Use Etrial=E2+0.01E_{\rm trial}=E_2+0.01. A linear expansion around the simple zero estimates the signed energy error as D/D′D/D'. The calculation gives 0.01002101340.0100210134, so one Newton correction leaves an error of −2.10×10−5-2.10\times10^{-5}. Starting instead at offsets 0.0050.005 and 0.00250.0025 leaves errors of −5.23×10−6-5.23\times10^{-6} and −1.30×10−6-1.30\times10^{-6}. The second-order remainder explains the roughly fourfold improvement.

Multiplying one column by a nonzero constant rescales DD and D′D' equally. Thus D/D′D/D' is independent of this choice. If the column normalization depends on energy, write D~=g(E)D\widetilde D=g(E)D with gg nonzero near the root. Then

D~D~′=DD′+(g′/g)D.\frac{\widetilde D}{\widetilde D'} =\frac{D}{D'+(g'/g)D}.

For g(E)=e2(E−4)g(E)=e^{2(E-4)} the same 0.010.01 trial gives a correction of 0.00982411810.0098241181. 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)

  • Teschl, G. (2009). Mathematical Methods in Quantum Mechanics. Graduate Studies in Mathematics 99, American Mathematical Society. Author’s first-edition PDF.