- Home
- Library
- Computational Quantum Field Theory
- Solving Boundary and Evolution Equations
- Shooting and Boundary Matching
Shooting and Boundary Matching
A bound-state wavefunction must satisfy conditions at two ends of space. Integrating from one end is easy; preventing a tiny unwanted solution from dominating at the other end is often the difficult part. The scalar kink provides an unusually useful test: its bound-state energy and wavefunction are known, but a numerical method must recover them without putting that answer into the boundary condition.
Preparation: Second-order ODEs, linear dependence of solutions, and the kink fluctuation problem. Spectral collocation provides the comparison method.
An odd mode on the half-line
For the dimensionless kink coordinate , the fluctuation equation is
The full-line translation mode is even and has . We select the odd sector by solving on with and a square-integrable tail. The shape mode is
The continuum begins at . Equation (2) will check the calculation; it will not supply its unknown decay constant.
For a trial , define . Far from the kink, the two independent solutions behave as and . A small growing admixture therefore has a relative effect proportional to . A well-posed boundary problem can produce an ill-conditioned initial-value formulation. This distinction, and its remedy by matching shorter integrations, is developed in Süli, §6.1, pp. 62–65 (PDF).
Local data that retain the eigenvalue
Write the ODE as a first-order system,
The origin is regular. Since the overall scale is arbitrary, choose and . Expanding gives
This series also supplies consistent data at a small positive starting coordinate when a different problem makes the endpoint inconvenient. Here the exact origin conditions are simpler, and starting at with (4) is a separate check.
At a large but finite , using would insert the exact decay exponent of (2). Instead expand the trial decaying solution as
Since , substituting into the differential equation and equating powers of yields
Truncation at order gives the logarithmic derivative
Every trial energy changes both and the coefficients. The denominator must remain nonzero; the retained radii and trial-energy bracket satisfy this condition. Set the right initial vector to and integrate inward. This normalization avoids an extremely small endpoint amplitude while preserving the one-dimensional space of allowed solutions.
Matching solutions instead of large endpoint values
Integrate the left solution from zero and the right solution from to a common . At the correct energy they must be linearly dependent. Their Wronskian supplies the condition
There is no first-derivative term in (1), so the Wronskian of two exact solutions at the same is independent of . A numerically useful residual is
The two norms must be finite and nonzero. Multiplying either solution by a nonzero constant leaves the zero of unchanged. A bracketed scalar root finder then adjusts .
A logarithmic-derivative mismatch, , works away from zeros of either wavefunction. Its poles can be mistaken for sign-changing roots. Equation (9) avoids those division poles. It does not prevent overflow during an excessively long integration; normalization, subdivision or propagation of a stable subspace may still be necessary.
This is two-sided shooting. In a general multiple-shooting scheme, divide the interval at , assign an initial vector to each segment, and let denote its numerical flow. The nonlinear system contains
together with the endpoint conditions and a normalization. Its Jacobian couples neighboring segments through the flow sensitivities. The larger algebraic system replaces one badly conditioned long propagation by shorter ones; it does not remove the need to control integration and matching errors. See Süli, Eqs. (107)–(109) (PDF).
What the retained calculation resolves
The companion kink_shooting.py uses DOP853 integrations, a bracket , and . It scans , tail orders , and relative ODE tolerances from to . The root tolerance is in . Selected signed energy errors at the tightest ODE tolerance are:
| Endpoint | Leading tail, | First correction, | Second correction, |
|---|---|---|---|
The early improvement reflects better boundary data. The later plateau is numerical: more tail terms cannot establish extra digits once integration, root finding and rounding dominate. These are deterministic errors against a known answer, not statistical uncertainties.
The figure contrasts this successful matching calculation with an unstable outward integration. Even exact input accumulates numerical growing contamination; an explicit shift of makes it much larger.
Left: two-sided shooting with ODE relative tolerance . Right: forward integration from , compared with the unnormalized exact shape . The right panel measures relative error in a rapidly decaying quantity; it is not an instability of the physical bound state.
At , the relative forward error is about for input and for input . By , their magnitudes reach roughly and . Higher precision or tighter tolerances can postpone this amplification. They do not make the outward propagation insensitive to an unwanted growing component. Changing only the initial derivative would rescale the odd solution, so it would not be a meaningful test of this mechanism.
Independent boundary and collocation checks
The potential admits an exact decaying solution for any positive :
It follows by applying to and normalizing the large- coefficient. Direct substitution checks (1). At the origin, its numerator is ; the positive root is , hence . This provides an independent exact-boundary control, distinct from the truncated expansion used above.
The companion also solves the same finite Robin problem by adaptive collocation, treating as an unknown parameter. There are two first-order equations plus one parameter, so three boundary conditions are needed:
For and , collocation and tight shooting agree within in the retained comparisons. The SciPy 1.13.1 solve_bvp documentation describes its fourth-order collocation and residual tolerance. That tolerance is not a bound on the true eigenvalue error. Agreement between two solvers first establishes consistency for (12); only comparison with the infinite-domain answer tests the remaining boundary approximation.
A separate Dirichlet control imposes , matching the finite-box problem in spectral collocation. It gives at and at . These are correct finite-box energies, not failures to reproduce the Robin result.
Finally, join the matched solutions and normalize them on . At , the numerical and exact profiles, each normalized on that interval, differ in norm by . The full half-line exact state still has tail probability (squared norm)
about at . The excellent comparison of two finite-interval normalized profiles must not be reported as that small a full half-line truncation error.
Summary
A useful shooting residual matches allowed solution spaces rather than a large endpoint amplitude. Keep the eigenvalue in the boundary asymptotics, integrate in stable directions, and test matching-point independence. Compare algorithms for identical boundary conditions before interpreting an infinite-domain limit. Coordinate maps and singular endpoints solve this same mode without a finite endpoint, at the price of a singular coordinate representation.
Exercises
1. The first boundary correction
Derive in (5), obtain the first corrected logarithmic derivative, and explain why fixing for all trial energies changes the eigenvalue problem.
Solution
The coefficient of in gives . Thus and
This approximation requires the denominator to remain nonzero and the omitted tail terms to be small. At the physical root , the correction is positive: the shape's logarithmic derivative approaches from above.
For a trial , the asymptotic equation is . Its decaying solution has exponent , not a fixed number. Freezing therefore imposes the wrong Robin condition except at the answer. It can accidentally return a convincing energy in this known example while failing to define the intended energy-dependent decaying subspace.
2. A pole is not a matching zero
Show how independent rescalings affect (8)–(9). Then use the solutions and of to exhibit a logarithmic-derivative pole without a Wronskian zero.
Solution
Under and , with nonzero real constants, the Wronskian becomes . Its normalized form becomes . The root set is unchanged, although its plotted sign can reverse.
For the two linear solutions,
They are linearly independent everywhere. Nevertheless,
has poles at zero and one. A sign change across either pole does not identify a root of the matching determinant. A bracketed root finder requires a continuous residual on its bracket; testing that requirement is part of choosing the residual, not a task the root finder can infer from endpoint signs.
References
- SciPy developers, SciPy 1.13.1 Reference Guide,
scipy.integrate.solve_bvp, especially unknown parameters, residual control, and the eigenparameter example. - Endre Süli, Numerical Solution of Ordinary Differential Equations, University of Oxford lecture notes, §6.1, pp. 62–65, author-hosted notes (PDF).
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.