- Home
- Library
- Computational Quantum Field Theory
- Solving Boundary and Evolution Equations
- Nonlinear Solvers and Continuation
Nonlinear Solvers and Continuation
A nonlinear boundary equation can have two solutions at the same parameter, or no solution at all. Newton's method sees only a local linearization: its convergence does not enumerate the branches, and its failure does not prove that a solution is absent. Continuation turns isolated solves into a study of a solution family.
We first follow an exactly known fold in the Bratu equation. We then transfer the numerical construction to a scalar kink with a localized change in its quartic coupling. These are separate equations: the first calibrates branch tracking, while the second supplies a field-theory application without assuming that its branch also folds.
Preparation: Boundary discretization, Jacobians, and the scalar kink. Finite differences introduces the mesh equations.
Newton solves a local problem
Let a discretized boundary equation be , with and a real control parameter . At fixed , Newton's step is
Here gives ordinary Newton iteration; a damped method decreases until a chosen residual merit function improves. The local quadratic-convergence statement requires a sufficiently good initial guess, a nonsingular Jacobian at the solution, and appropriate smoothness. It does not promise that a distant initial guess finds a specified branch.
Scaling matters. A residual containing second differences naturally carries factors of , while a boundary residual may not. A tiny residual is an algebraic statement about the chosen equations; its relation to solution error depends on the inverse Jacobian and discretization error. Damping protects against some poor steps, but cannot turn a nonexistent fixed-parameter solution into an existing one.
An exact fold on a specified interval
The Bratu problem is
Its positive solutions are described by
Twice differentiating verifies the ODE and the two boundary values. Conversely, makes a solution concave with one maximum. The autonomous first integral gives equal travel times from that maximum to the equal endpoint values, placing it at ; integrating from the maximum produces (3). The interval matters: using a formula normalized on without rescaling would change the parameter by a factor of four.
Differentiating gives
The turning point therefore satisfies . Numerically,
For there are two solutions, coalescing at the fold. The exact family proves the absence of a positive solution above ; a failed iteration alone would not prove it.
On a uniform grid with interior points and , the equations are
The endpoint values are inserted before solving for the interior unknowns. At a fold, is singular: changing is no longer a regular way to parameterize the curve. This is a failure of that parameterization, not the end of the solution curve. See Dickson et al., §§2.1–2.2 (PDF).
Continuing through the fold
Write and choose the metric
The spatial weight prevents the norm of a fixed smooth profile from growing merely because the grid is refined. The relative scale assigned to remains an explicit algorithm choice; rescaling it changes the steps, not the physical branch.
A tangent obeys
Align its sign with the previous tangent. From a converged point , predict . Correct by solving the original equations and the additional condition
The second equation defines a hyperplane normal to the old tangent. It does not force the corrected solution to remain on the tangent line. Newton's corrector uses the bordered matrix
Why can this work when is singular? At a simple fold, assume , with right and left null vectors , and
The first condition makes the augmented derivative full rank. The second makes the turning quadratic rather than a higher-order degeneracy. At the fold, and points along . For a sufficiently accurate tangent, the extra row in (10) fixes that remaining null direction. These are local hypotheses, not conclusions warranted by one successful augmented solve. The precise assumptions and condition estimates are discussed in Dickson et al., §2.2 and the subsequent analysis (PDF).
A nonsingular bordered system also need not be uniformly well conditioned under arbitrary mesh or unit changes. The retained raw Euclidean condition numbers grow with ; preconditioning and scaling remain relevant even though continuation crosses the fold.
Following and locating the branch
The companion nonlinear_branch.py starts at from a zero profile, then follows the branch with and . Its corrector uses a Euclidean residual merit function, Armijo coefficient and halving of a rejected step. Every failed corrector and retry would be retained; these six branch runs required none and reached the upper branch near .
The largest sampled value of is not a precision estimate of the fold. Instead, the calculation refines a nearby numerical point by solving
Its Jacobian includes derivatives of with respect to both and . A directional finite-difference check of this complete Jacobian gives relative discrepancies below in the retained runs.
| Interior points | Refined discrete fold | Difference from the exact fold |
|---|---|---|
Halving reduces the fold error by about four, as expected for the centered stencil. Halving changes the refined fold only at the numerical floor; it mainly changes how densely the branch is traversed. The solver residual at is about , far smaller than the discretization error in . Reporting the residual as the fold accuracy would conceal that difference.
At and , fixed-parameter Newton from zero finds a peak near . Starting from finds the other branch, with peak near . A zero-start attempt at terminates with a failed line search and residual about . The failure is retained. Its interpretation as a parameter beyond the fold comes from (3), not from the error message.
The next figure compares the actual continuation points with the exact family and shows the scalar profiles introduced below.
Left: the exact Bratu family and the retained , continuation. Right: independently solved scalar profiles on , displayed through . The Bratu parameter and the scalar coupling deformation belong to different equations.
A nonlinear scalar family
Consider the dimensionless static energy
The positive quartic coefficient is an externally specified spatial function. It preserves the two asymptotic vacua but breaks continuous translation symmetry. The odd, centered boundary problem is
At the infinite-domain solution is . It is not the exact solution of (14) at finite , since .
Discretizing (14) gives a tridiagonal Jacobian with diagonal
and off-diagonal entries . On each mesh, solve successively at , using the previous solution as the next initial guess. Natural parameter continuation suffices for this retained segment. Other branches and their stability require separate continuation and perturbation calculations.
The scan varies and , comparing with adaptive collocation at tolerances and . The adaptive method and its residual tolerance follow the SciPy 1.13.1 documentation. At , the tight collocation results are:
| Coupling deformation | Center slope | Full symmetric-interval energy |
|---|---|---|
For , the maximum finite-difference profile error decreases from to to under the two mesh refinements. The corresponding algebraic residuals are already below . Changing the collocation tolerance changes the retained energies by at most across the scan. These comparisons separate mesh error from solver convergence; they do not establish a continuum quantum-field-theory observable.
A useful check survives the loss of translation symmetry. Define the static stress
Using the equation of motion cancels the terms proportional to , leaving
Thus the stress is not constant when the coupling varies. The integrated identity is satisfied within in the retained collocation calculations. It checks a physical consequence of the inhomogeneity rather than merely reevaluating the same local residual.
Along a stationary family with fixed boundary values, variations of contribute no bulk or endpoint term to the energy derivative. Hence
At and infinite , this is . A centered energy difference at agrees with the integral derivative to about across the retained radii, including the expected finite-difference step error. This checks both the stationary-family interpretation and the factor from the two symmetric halves.
Summary
Newton iteration finds a nearby root, whereas continuation organizes roots into a family. Pseudo-arclength changes the parameterization so that a regular curve can pass through a simple fold. Check the fold conditions, refine the spatial equations separately from the continuation step, and preserve failed attempts. For a field profile, boundary limits and physical identities provide information that a small nonlinear residual alone cannot supply.
Exercises
1. Why the border removes the null direction
Derive the fold condition from (3). Assuming (11), prove that the bordered matrix at the fold is nonsingular when its last row is the exact tangent row. Explain the additional role of the quadratic condition.
Solution
Equation (4) vanishes when . The left-hand side is strictly increasing for positive , so there is one such point. The derivative of is strictly negative; consequently and it is a maximum.
Suppose the bordered matrix annihilates . Its first row is . Multiplication by gives because . Then . At the fold, the tangent has and proportional to , so its metric pairing with vanishes only when . The kernel is trivial.
Differentiate twice at the fold. Since , multiplying the second derivative by yields
The numerator condition in (11) ensures a nonzero quadratic turning. Without it, the augmented curve may still be regular but its stationary parameter value can have higher-order behavior. A successful bordered solve by itself does not classify that behavior.
2. Energy and stress with a varying coupling
Starting from (13), derive (17) and (18). Evaluate the latter in the infinite-domain solution and explain why using a translation-invariant stress conservation law would be incorrect for .
Solution
Differentiate (16):
The first two terms cancel by (14), proving (17). The external spatial coupling exchanges momentum with the field, so a constant field stress is not expected.
For the energy derivative, integrate the variation of by parts. The Euler–Lagrange term vanishes on a solution, and fixed endpoint values remove the boundary term. Only the explicit coupling derivative remains:
The integrand is even, giving (18). For , it becomes . Set :
The finite- problem has its own stationary derivative, with its own profile; it approaches this limit as the boundary is taken away.
References
- K. I. Dickson, C. T. Kelley, I. C. F. Ipsen and I. G. Kevrekidis, “Condition Estimates for Pseudo-Arclength Continuation,” SIAM Journal on Numerical Analysis 45 (2007), 263–276, doi:10.1137/060654384; author manuscript, arXiv:math/0603716 (PDF), §§2.1–2.2.
- SciPy developers, SciPy 1.13.1 Reference Guide,
scipy.integrate.solve_bvp, including the Bratu initial-guess example and residual-control description.
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.