Finite-Difference Schrödinger Equation
A finite-difference Hamiltonian replaces spatial derivatives by local combinations of wavefunction samples. For a constant-mass one-dimensional problem, the centered second derivative produces a tridiagonal Hermitian eigenproblem whose low-energy spectrum converges quadratically under suitable smoothness and boundary assumptions. Solving that matrix accurately is only the first part of approximating the continuum problem.
Required background. Boundary conditions in computation specifies endpoint rows; array representations distinguishes samples from Euclidean coefficients.
The centered kinetic stencil
Section titled “The centered kinetic stencil”Let and on with Dirichlet endpoints. Use , , and . Taylor expansion gives
Hence
The expansion assumes enough smoothness locally. Discontinuous potentials and singular endpoints can reduce the observed order or introduce alignment effects. Treat interfaces explicitly or test refinement with care; the formal stencil order alone does not determine the error of every observable.
Use a tridiagonal or sparse solver for large . Dense diagonalization is useful as a small transparent reference calculation. A matrix-free implementation must use the same endpoint rule and should agree with the assembled matrix on test vectors.
Normalization and observables
Section titled “Normalization and observables”If an eigensolver returns , the continuum samples are approximately . Then . For a multiplication observable ,
Do not multiply the last expression by again. Derivative observables need a compatible discrete operator and boundary interpretation; pointwise differentiating a poorly resolved eigenvector can produce much larger errors than its energy suggests.
Exact discrete square-well benchmark
Section titled “Exact discrete square-well benchmark”For and , try with , . These samples vanish at both endpoints. The identity makes the kinetic stencil a multiple of the same vector:
Thus the exact discrete eigenvalues are
For fixed and ,
The eigenvalues approach the continuum values from below. This finite-difference construction is not automatically a conforming Rayleigh–Ritz approximation with upper bounds. Its relative dispersion error grows approximately as , explaining why a grid that resolves the ground state can fail badly near its highest modes.
A short NumPy check in units is:
import numpy as npN = 80h = 1.0 / (N + 1)H = (np.diag(np.full(N, 2.0)) - np.diag(np.ones(N - 1), 1) - np.diag(np.ones(N - 1), -1)) / h**2E, C = np.linalg.eigh(H)E_discrete = 4.0 / h**2 * np.sin(np.pi * h / 2.0)**2print(E[0], abs(E[0] - E_discrete), abs(E[0] - np.pi**2))print(np.linalg.norm(H @ C[:, 0] - E[0] * C[:, 0]))The discrete target is about ; its continuum error is about . The matrix-solver discrepancy and residual should be much smaller in binary64. The program separates these errors instead of mistaking a small residual for a continuum accuracy certificate.
Potentials and the independent box limit
Section titled “Potentials and the independent box limit”For a harmonic oscillator in dimensionless units, insert and use . On a finite symmetric box, first refine and then enlarge the box at fixed sufficiently small . The target ground energy is ; tail truncation and stencil error can have opposite signs and accidentally cancel.
A finite square well provides a different challenge: moving the mesh relative to a discontinuous edge can change the sampled potential abruptly. Align the interface deliberately, integrate its effect in another discretization, or document an interface-aware refinement sequence. A smooth-potential order test does not automatically validate this case.
Diagnostics and limitations
Section titled “Diagnostics and limitations”Check Hermiticity, endpoint behavior, normalization, node count, and residuals. Compare low states with analytic benchmarks and run an observable-specific convergence study. Increase the box independently of the number of interior points.
Higher-order stencils require matching higher-order endpoint treatment. They can also widen the matrix bandwidth. For smooth problems, matrix Numerov or spectral methods may achieve a target accuracy with fewer points; near interfaces, finite elements offer useful flexibility.
Exercises
Section titled “Exercises”At fixed mode index , approximately how does halving change the leading eigenvalue error? What if is doubled while stays fixed and the mode remains well resolved?
Solution
Halving reduces the leading absolute error by four. Doubling increases the leading absolute error by sixteen and the relative error by four. The expansion requires ; it is not valid near the grid cutoff.
References
Section titled “References”- LeVeque, R. J., Finite Difference Methods for Ordinary and Partial Differential Equations, SIAM, 2007, author resources — stencil consistency, stability, and convergence.
- Trefethen, L. N., and D. Bau III, Numerical Linear Algebra, SIAM, 1997 — structured eigenproblems and residual checks.