6.1 Quantum bound states
Source: Ideas from Computational Physics (Landau, Páez, Bordeianu), Ch. 6 intro–§6.1. Rewritten in original wording. Continues 5.9 Integration reference sketches. Next algorithm: 6.2 Bisection search.
Chapter 6 is about searching and fitting. Many physics problems do not hand you explicitly — they hand you a nonlinear condition (or a table of measurements) and ask you to recover a parameter. Two themes run through the chapter:
- Trial-and-error search — guess a value, evaluate a residual, improve the guess (bisection, Newton, …).
- Fitting — later sections interpolate or fit tabulated data (Lagrange §6.5, splines §6.6).
The first concrete search problem is a finite square well: find the allowed energies by solving a transcendental matching condition.
The square-well eigenvalue problem
A particle in a finite square well of depth and half-width has even and odd bound stationary states. Continuity of and at the wall produces a transcendental equation for the bound energy .
Work in the book's convenient units
Bound energies sit below the continuum; write with binding energy . In what follows means that positive (book notation), so . Define
Even parity states obey
or the algebraically equivalent residual (same zeros, fewer poles to trip over)
Odd parity uses the companion matching condition
or the residual form (same zeros)
(Even used ; odd flips to — poles sit in different places, so pick a fresh bracket.)
The numerical job is the same: find roots of a continuous residual on a safe bracket. There is no closed-form — evaluate at trial energies and hunt for sign changes (bisection in §6.2).
Drag in the explorer until the even residual crosses zero — that energy is a candidate bound state for .
A safe even-root bracket
For , the even residual changes sign on
Halving that interval until the width is tiny yields the bound energy
(Use with math.sin / math.cos. Near the residual has poles — stay inside a bracket that already has opposite signs.)
Deepening the well to adds more even roots (near and ). The same with and a fresh bracket finds them.
Takeaway
| Parity | Matching idea | Residual to root-find |
|---|---|---|
| Even | ||
| Odd | ||
| Either | No closed | Bracket → bisect (§6.2) → check |
Here (with in the explorer).
Bound states and search
1 / 4In units ħ=1, 2m=1, a=1, V₀=10, the even residual we root-find is…
Pick an answer to see if you are right.
Next: 6.2 Bisection search — turn the sign-change into a reliable algorithm. Labs follow in 6.2b.