Fundamentals / Numerical mathematics / Nonlinear equations

Misfit and one-sided equilibrium

Distinguish a stationary residual fit from an exact root and identify which unilateral constraints carry load.

Fit incompatible sensors

Two dimensionless residuals are

\[r_1=x-2,\ r_2=2x-3.\]

Compute the exact least-squares state, both residuals and their dot product with the Jacobian. How many undamped Gauss–Newton steps suffice from zero?

Worked solution

The gradient is \((x-2)+2(2x-3)=5x-8\), giving \(x=1.6\). The residual is \((-0.4,0.2)^T\) and the dot product with \((1,2)^T\) is zero.

The residual is affine, so its linear model is exact everywhere. One step from zero produces 1.6 even though neither individual observation is exactly satisfied.

Try this calculation. Change one observation’s uncertainty and recompute the weighted projection. More than one fitted coefficient requires the additional basis columns specified in this exercise.

A stationary point with a poor model

For the scalar residual \(r=x^2-1\), evaluate the residual, gradient and curvature of \(\Phi=r^2/2\) at zero. Analyse the undamped Gauss–Newton linear least-squares subproblem there, and compare it with a trial step to \(x=0.1\).

Worked solution

At zero \(r=-1\), \(J=0\) and \(Jr=0\). Exact curvature \(J^2+rr''=-2\) identifies a strict local maximum.

The model \(r+Js=-1\) has the same size for every step, so cannot select a descent direction. Directly testing \(x=0.1\) gives \(\Phi=0.99^2/2=0.49005\), below 0.5. A small gradient alone cannot certify a minimum.

Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.

Locate the switching load

Use \(K=\left(\begin{smallmatrix}3&-1\\-1&2\end{smallmatrix}\right)\), \(f=(t,2)^T\), \(u,w\ge0\), \(w=Ku-f\), \(u_iw_i=0\). Assume the first gap is closed. Determine the range of \(t\) for which that assumption holds and solve the case \(t=0\).

Worked solution

With \(u_1=0\), the open second gap has \(2u_2=2\), so \(u_2=1\). The first reaction is \(-1-t\), nonnegative precisely for \(t\le-1\). At the threshold the closed coordinate has zero reaction.

At \(t=0\) release the first gap. Solving \(3u_1-u_2=0\), \(-u_1+2u_2=2\) gives \((0.4,1.2)^T\) with both reactions zero. The positive gaps verify the new active set.

Explore the related calculation with adjustable inputs. Inspect the active-set switch in the scalar contact example. The two-coordinate exercise still requires checking both inequalities with its stated stiffness matrix.

Locate and follow the two equilibria of a fold

Consider equilibria of the dimensionless evolution u′ = λ − u². For λ = 0.04 find both roots, classify their stability, and estimate the movement of the positive root when λ increases by 0.002. Then find out why stepping in λ fails near zero and construct a continuation step through the fold.

Worked solution

The equilibria are u = ±0.2. A small perturbation obeys δu′ ≈ −2u δu, so +0.2 attracts while −0.2 repels. Both are perfectly valid zeros of the steady residual. A solver’s ability to converge to either root has no direct implication for dynamical stability.

Differentiating u²−λ = 0 gives du/dλ = 1/(2u). At the positive root the predicted change is +0.005. The exact change is √0.042 − 0.2 ≈ 0.00494. At the negative root the sign reverses. As the fold approaches, sensitivity diverges even though the equilibrium curve itself is the smooth parabola λ = u².

At (u,λ) = (0,0) choose the tangent along increasing u. An arclength predictor of length 0.05 gives (0.05,0). Keep the correction normal to that tangent by imposing u = 0.05 together with the residual. The corrected point is (0.05,0.0025). The two-equation Jacobian remains invertible there and at the fold. A parameter sweep fixing λ below zero would have no real point to correct to.

Explore the related calculation with adjustable inputs. Use the equilibrium parabola to inspect sensitivity and the tangent-coordinate continuation step. Translate the state coordinate if the fold is centred at a different value here.