Fundamentals / Numerical mathematics / Nonlinear equations / Nonlinear systems and iterative methods

Certifying a Newton step before the root is known

A small correction is meaningful only together with a curvature estimate. Construct a ball that contains a solution and use a frozen linear solve to make damping decisions independent of equation units.

Bound all future corrections from initial data

Let \(F\) be differentiable on a convex neighbourhood, \(J_0=F'(x_0)\) invertible, and fix an induced norm. Suppose \(\|J_0^{-1}F(x_0)\|\le b\) and \(\|J_0^{-1}(F'(x)-F'(y))\|\le L\|x-y\|\). These estimates must hold on the entire proposed ball. Define the scalar majorant \(g(t)=b-t+Lt^2/2\). If \(2Lb<1\), its smaller zero is \(r=2b/(1+\sqrt{1-2Lb})\). Require the closed ball of that radius to lie in the domain.

Set \(t_0=0\) and apply scalar Newton to \(g\). Since \(g\) is decreasing and convex on \([0,r]\), the iterates increase to \(r\). At a point no farther than \(t\) from \(x_0\), the Neumann series for \(J_0^{-1}F'(x)=I+E\), \(\|E\|\le Lt<1\), bounds \(\|F'(x)^{-1}J_0\|\le 1/(1-Lt)\). If \(s\) is an exact Newton correction, the constant and linear terms cancel. Integrating the Jacobian variation along that step gives

\[\|J_0^{-1}F(x+s)\|\le L\|s\|^2/2.\]

At the scalar Newton points exactly the same formula holds with equality for \(g(t_{j+1})=L(t_{j+1}-t_j)^2/2\). Induction now gives \(\|x_{j+1}-x_j\|\le t_{j+1}-t_j\). The vector sequence is Cauchy and stays in the ball, its limit is a root and \(\|x_*-x_j\|\le r-t_j\). Two roots in that ball would be joined by an averaged Jacobian differing from the identity, after scaling, by at most \(Lr<1\). It is invertible, so the roots coincide.

Use the linearised correction as the measuring stick

Premultiply the equations by any fixed nonsingular matrix \(S\). The Newton correction and the majorant data stay the same since \((SJ_0)^{-1}S=J_0^{-1}\). The Euclidean norm of the raw residual generally changes. For a trial factor \(\lambda\), form \(s=-J^{-1}F(x)\) and \(\bar s=-J^{-1}F(x+\lambda s)\) with the same factorisation. Linear prediction gives \(\bar s=(1-\lambda)s+e\), where local curvature bounded in the current scaled norm implies \(\|e\|\le L_x\lambda^2\|s\|^2/2\). Backtrack until \(\|e\|\le \lambda\|s\|/2\). Then \(\|\bar s\|\le(1-\lambda/2)\|s\|\). For smooth regular points sufficiently small steps pass. Rebuild the Jacobian after acceptance. Global convergence requires additional bounds keeping iterates within a regular level set.

For \(F=(x_1^2-2,x_2^2-1)\) start at \((1.5,0.9)\) in the maximum norm. Here \(b=0.19/1.8\) and \(L=\max(1/1.5,1/0.9)\). Both follow directly from the diagonal Jacobian. With \(2Lb<1\) the positive quadrant contains the certified ball.

OneSimulation experiment · Test the radius after a change of units

Replace a starting coordinate by a smaller positive value. Recheck the certificate before iterating.

Download the executable notebook · Python source

Adjust the experiment in the browser. Change the two starting coordinates for \(F=(x_1^2-2,x_2^2-1)\). The plot recomputes the iterates, the maximum-norm correction \(\beta\), the preconditioned derivative bound \(L=\max(1/x_{1,0},1/x_{2,0})\), and the guaranteed radius whenever \(\beta L\le1/2\). Move beyond the certified region and observe that failure of this sufficient test does not establish divergence. Rescale the first equation by up to six orders of magnitude: its Jacobian must receive the same scale. The browser uses the explicit diagonal solve; the notebook performs the corresponding OneSimulation dense solve.

"""Test a Newton certificate without knowing the solution in advance."""
import matplotlib.pyplot as plt
import numpy as np
from onesim.numerics.linear.matrices.dense_linear_algebra import solve_dense

start = np.array([1.5, 0.9])
target = np.array([2.0, 1.0])
beta = np.linalg.norm((start**2 - target) / (2 * start), np.inf)
lipschitz = max(1 / start)
radius = 2 * beta / (1 + np.sqrt(1 - 2 * beta * lipschitz))
print(f"beta={beta:.6f}, L={lipschitz:.6f}, certified radius={radius:.6f}")
fig, ax = plt.subplots(figsize=(7, 4), layout="constrained")
for label, scale in [("Original equations", [1., 1.]), ("Rescaled equations", [1e4, 0.01])]:
    x = start.copy()
    distances = [0.0]
    for _ in range(5):
        residual = np.asarray(scale) * (x*x - target)
        jacobian = np.diag(2 * np.asarray(scale) * x)
        x -= solve_dense(jacobian, residual)
        distances.append(np.linalg.norm(x-start, np.inf))
    assert max(distances) <= radius and np.allclose(x**2, target)
    ax.plot(distances, "o-" if scale[0] == 1 else "x--", label=label)
ax.axhline(radius, color="black", ls=":", label="Guaranteed radius")
ax.set(xlabel="Newton iteration", ylabel="Distance from initial point (maximum norm)")
ax.legend()
fig.savefig("numerics-certified-newton.png", dpi=170)

Output from the reference run

beta=0.105556, L=1.111111, certified radius=0.112599
Two Newton paths coincide inside the same a priori convergence ball.
Two Newton paths coincide inside the same a priori convergence ball.

Tutorial on certification and damping

Compute the first majorant step and use it as a bound

Work through the solution

Scalar Newton at zero gives \(t_1=b\). The vector correction has size \(b\). After that move the distance to the root is at most \(r-b\), which can be evaluated without substituting a known root.

Change the starting point to a nearly singular configuration

Work through the solution

For \((1.5,0.1)\), the second correction is \(0.99/0.2=4.95\) and \(L=10\). The majorant gives no conclusion. For that coordinate a full step reaches \(5.05\), whereas halving the step decreases its size. The failure of the sufficient inequality leaves open whether an actual iteration converges.

Deuflhard · local and global Newton methods