From first principles
Update a Jacobian using what one step measured
Suppose a system has residual map \(F\) and the current Jacobian approximation is \(B\). Moving by a nonzero displacement \(s\) yields an observed residual change \(y=F(x+s)-F(x)\). A local linear map consistent with this observation must satisfy
Look for the smallest adjustment \(D=B_{\rm new}-B\) in Frobenius norm. For each row the minimum-length vector with prescribed dot product against \(s\) is parallel to \(s\). Thus
Multiplying by \(s\) checks that the observation is reproduced exactly. For every vector \(v\) perpendicular to \(s\), \(Dv=0\), so the action in such directions is preserved. The resulting rank-one update is
One secant identifies only one directional response. Curvature and noise both affect \(y\), making a tiny or poorly resolved step a weak basis for updating an entire Jacobian model.
Derivation and applications
Make a secant update respect physical coordinate scales
The smallest change in the entries of a Jacobian depends on the units used for each input variable. To construct a scale-aware update, choose a positive definite state metric \(W\), so that squared step length is \(s^TWs\). Write scaled coordinates \(z=W^{1/2}x\), leaving the output units fixed. If \(B\) approximates the derivative with respect to physical \(x\), the corresponding scaled derivative and step are
Apply the ordinary smallest-Frobenius-change secant update in the scaled coordinates. Conversion back to \(x\) multiplies the resulting matrix on the right by \(W^{1/2}\). Simplifying gives
The secant equation holds for every positive definite metric. The action preserved outside the measured direction is now determined by weighted orthogonality,
This construction assumes the selected scales describe relevant changes in each variable and that the step is observed accurately. It is invariant under a common multiplication of \(W\) by a positive scalar. Different relative scales legitimately produce different unmeasured directional predictions, since a single step cannot identify those predictions from data alone.
Worked example
Compare scaled updates for an imbalanced step
Take one output, \(B=(0,0)\), step \(s=(1,10)^T\) and observed change \(y=2\). An unscaled update yields \((2,20)/101\). If typical variable scales are 1 and 10, choose \(W=\operatorname{diag}(1,0.01)\). Then \(s^TWs=2\), giving \(B_{\rm new}=(1,0.1)\). Both estimates give dot product 2 on the observed step. Their predictions on \((1,0)\) differ by a factor of 50.5.
Second application
Check invariance after a unit conversion
Suppose \(s=(2,1)^T,\ W=I,\ B=0,\ y=5\). The new row is \((2,1)\). Express the second step component in units one hundred times smaller:
The scaled update is \((2,0.01)\), which gives the same output change \(4+1=5\). A future physical unit displacement along the second coordinate also gives the same response under either representation.
What one trajectory identifies
After a step \(s=x_{k+1}-x_k\), two measured residuals provide \(y=F(x_{k+1})-F(x_k)\). Integrating the Jacobian along the connecting segment yields
Thus \(y\) measures the action of an averaged Jacobian on just one direction. Rebuilding an unrestricted \(n\times n\) Jacobian from these \(n\) numbers is underdetermined. Impose the secant equation \(B_{\rm new}s=y\) and prefer the smallest possible change to the current approximate Jacobian \(B\) in Frobenius norm.
Set \(w=y-Bs\). Each row of the correction must have specified dot product with \(s\). The shortest such row is a multiple of \(s^T\); any added component orthogonal to \(s\) increases its squared length. Solving the scalar normalisation in each row gives
The new matrix is exact on \(s\) for the observed change and leaves every vector perpendicular to \(s\) unchanged. An earlier secant equation can be disturbed if its direction has a component along the latest step. This update approximates the Jacobian; updating an inverse directly requires its own formula and conditions.
Observe two independent directions
Let \(F(x)=Ax-b\), \(A=\left(\begin{smallmatrix}2&1\\1&3\end{smallmatrix}\right)\) and \(B_0=I\). A displacement \(s_1=(1,0)^T\) gives
The first correction changes column one, giving \(B_1=\left(\begin{smallmatrix}2&0\\1&1\end{smallmatrix}\right)\). An independent orthogonal displacement \(s_2=(0,1)^T\) gives \(y_2=(1,3)^T\) and recovers the second column exactly. After these two measurements the whole linear operator is known. Such orthogonal probe steps illustrate identifiability; an actual solver selects directions from its approximate Newton equations, so its steps need not be orthogonal.
Instead repeat the first step scaled by two. The predicted and observed residual changes now agree on that direction and the update vanishes, even though \(B_1\) is still wrong on \(e_2\). Small secant corrections by themselves therefore do not demonstrate that all directions of the linearisation are reliable.
When to request a new Jacobian
Given \(B_k\), solve \(B_ks=-F(x_k)\), test the step and update with the displacement actually accepted. Reusing the proposed full displacement after a line search violates the secant equation for the measurements taken. If function data contain errors of size \(\epsilon\), then dividing a change in their difference by a tiny step can corrupt the learned derivative by order \(\epsilon/\|s\|\). Compare achieved reduction with the predicted reduction, monitor the size of the residual itself and occasionally recompute a Jacobian if the model becomes unreliable. These diagnostics matter most when evaluating the underlying residual is substantially cheaper than assembling its derivatives.
Judge a secant across a bend
For the scalar residual \(f=x^2-1\), moving from one to two supplies secant slope three, the average of endpoint slopes two and four. Reusing it near two underestimates the current slope by one. Over a step from 1.9 to two the secant slope is instead 3.9. This simple example isolates two types of Jacobian discrepancy: even perfectly accurate data constrain only the sampled direction, and nonlinear variation makes that directional measurement an average over a finite segment. Shorter accepted steps reduce the latter discrepancy until residual evaluation noise becomes important.
Update an inverse without rebuilding a factorisation
Suppose an invertible Jacobian approximation \(B\) has inverse \(H\). A secant update of the form \(B_+=B+uv^T\) has inverse \(H_+=H-Huv^TH/(1+v^THu)\) provided the scalar denominator is nonzero. Multiply this candidate by \(B+uv^T\) to verify the formula: the two added rank-one terms from the individual products are cancelled by the cross term after factoring the common denominator. If the denominator vanishes, \(B_+Hu=(1+v^THu)u=0\) and the updated matrix is singular whenever \(u\ne0\).
For Broyden's Jacobian update \(u=y-Bs,\ v=s/(s^Ts)\), the denominator becomes \(s^THy/(s^Ts)\). Substitution yields
This satisfies the inverse secant condition \(H_+y=s\). It is specifically the inverse of the minimal-change Jacobian update. Directly minimising the Frobenius change in the inverse subject to this condition gives a different formula in general, because minimum changes in a matrix and its inverse are not equivalent objectives.
Distinguish harmless secant data from a singular update
Start with \(B=H=I\), take \(s=(1,0)^T\) and observe \(y=(2,1)^T\). The new Jacobian replaces its first column with \(y\) and leaves its second unchanged, giving \(B_+=\left(\begin{smallmatrix}2&0\\1&1\end{smallmatrix}\right)\). Here \(s^THy=2\). The inverse update adds \((s-y)s^T/2\) to the identity, producing \(H_+=\left(\begin{smallmatrix}1/2&0\\-1/2&1\end{smallmatrix}\right)\). Multiplication confirms both \(H_+B_+=I\) and \(H_+y=s\). Applying it to a new residual \((0,1)^T\) leaves that residual unchanged before the sign change for the Newton correction.
Now observe \(y=(0,1)^T\) for the same step. The updated Jacobian has identical columns \((0,1)^T\) and determinant zero. This need not mean the true Jacobian is singular. For example the perfectly invertible exchange matrix with columns \((0,1)^T\) and \((1,0)^T\) gives exactly that observation. The problem is that the unmeasured old second column has become incompatible with the newly learned first one. One directional observation cannot determine which of those explanations is correct.
If the observed first component were a small \(\epsilon\) rather than exactly zero, the inverse update would amplify certain residuals by order \(1/|\epsilon|\). Monitoring the update denominator relative to the norms of \(s\) and \(Hy\), and verifying the residual reduction after the step, can detect this failure mechanism. Rebuilding independent derivative information is more informative than applying repeated almost-singular rank-one corrections derived from essentially the same trajectory.
One diagnostic is to probe the unmeasured direction directly before committing to a new inverse. In the exchange-matrix example choosing an independent displacement \(s_2=e_2\) yields measured change \(e_1\), while the singular provisional matrix predicts \(e_2\). The disagreement localises the missing derivative information in a particular column. Returning to the original linear equations then gives an invertible Jacobian with determinant minus one. A diagonal perturbation of the singular provisional matrix would also make a solve possible, but it would not reveal which physical direction the model couples to the second coordinate. Additional measurements and algebraic regularisation address different uncertainties in the step.
In a larger system, probe selection can focus on directions where the model repeatedly gives inaccurate residual predictions.
Change parameters · Explore the worked calculation
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.
Study the full derivation
Accelerating fixed points with differences of residuals · Nonlinear systems and iterative methods
A slowly convergent physical iteration contains information in the direction of successive errors. Use a scalar extrapolation and a small residual-minimisation problem to exploit that information, then test the extrapolated state against the original equation.