The Chartership Forum

Nonlinear Finite Element Analysis / Line search and adaptive stepping

Merit functions and backtracking

Control a Newton correction using a stated merit function and distinguish it from reducing the load increment.

Lesson review: expert verification remains open

The practical explanations, new worked calculations and numerical practice answers have been checked in the recorded reconstruction pass. Browser checks cover the listed desktop, mobile and interactive states. Original derivations are retained; independent specialist verification remains open.

Checks needed for project use

  • Mixed-equation merit scaling, non-smooth contact and history-dependent line-search evaluation. Only smooth scalar Armijo backtracking is implemented.
  • Actual browser zoom, screen-reader/additional-browser use and native-fullscreen raster quality remain unqualified.

These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.

Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.

Read the lesson register and outstanding review notes

By the end of this lesson you should be able to

  • Derive the directional decrease of a squared-residual merit function
  • Apply Armijo backtracking to a Newton direction
  • Distinguish local correction scaling, outer cutback and physical load history

What you should already know

  • Full Newton and incremental rollback
  • Directional derivatives and squared norms

Keep the target while shortening the correction

A Newton direction can be useful locally and still produce a poor full step. A line search tests shorter movements along that direction while holding the external target fixed. If the direction is Δu, the candidate is u+αΔu, where α begins at one and may be reduced.

This α is unrelated to the outer load fraction λ. Confusing them changes the problem. Reducing α asks for another trial of the same equilibrium target. Reducing an outer increment changes the target and requires the rollback procedure in Module 3. A solver log should record both quantities separately.

The teaching laboratory compares ordinary Newton with backtracking Newton from the same initial guess and force. It reports rejected trial scales as well as accepted iterations. Rejected line-search candidates are not additional physical states and are not plotted as accepted equilibria.

Follow the chain from force to a trial correction

For the cubic spring, internal force is ku+au³ and the residual is R(u)=ku+au³−P. Here k has units N/m, a has units N/m³, and u is in metres. Differentiating the internal force gives the tangent Kt=k+3au² in N/m. Linearising the residual at the current trial gives R(u+Δu)≈R(u)+KtΔu. Setting that approximation to zero gives Δu=−R/Kt, a displacement in metres.

The approximation says nothing about the neglected higher-order terms over a large correction. With k=10,000 N/m, a=100,000,000 N/m³ and a 1,000 N load, the initial tangent at zero predicts 100 mm. At that displacement the cubic contribution alone is 100,000 N. The full correction overshoots badly even though its direction is locally useful.

To measure progress, define φ=R²/2. The chain rule gives dφ/du=R(dR/du)=RKt. Along the fixed Newton direction, dφ(u+αΔu)/dα at α=0 is RKtΔu. Substitution of the Newton equation then gives −R². A negative derivative means a sufficiently short positive movement decreases φ for this smooth law; it does not mean every finite step will do so.

ϕ(u)=12R(u)2dϕ(u+αΔu)dα∣α=0=RKtΔu=−R2\begin{aligned}\phi(u)&=\tfrac12R(u)^2\\\left.\frac{d\phi(u+\alpha\Delta u)}{d\alpha}\right|_{\alpha=0}&=RK_t\Delta u=-R^2\end{aligned}

What it calculates: Directional derivative in N² per unit trial scale, for an exact scalar Newton direction. At equilibrium R=0 and no correction is required.

State the merit function and its units

Here φ is half the squared force residual, with units N². It is a numerical measure of equation imbalance, not strain energy or total potential. Decreasing it does not establish physical stability. For a conservative structural problem, potential-based strategies can also be considered, but they answer a different minimisation question and need their own assumptions.

For a vector residual, φ=RᵀR/2 gives directional derivative RᵀJΔu. An exact Newton solve JΔu=−R makes this −RᵀR. An approximate linear solve or inconsistent tangent can change that expression. A merit function for mixed force, moment and constraint equations also needs appropriate scaling; blindly summing dimensional quantities is not a satisfactory formulation.

At an exact root, no descent direction is needed. The convergence check should recognise it before the line search. At a singular tangent, forming the Newton direction can itself fail. Backtracking cannot replace a missing direction or resolve every branch-selection problem.

ϕ(u+αΔu)≤ϕ(u)+cαϕ′(u)Δu,c=10−4,α∈{1,12,14,…}\phi(u+\alpha\Delta u)\leq\phi(u)+c\alpha\phi'(u)\Delta u,\qquad c=10^{-4},\quad\alpha\in\{1,\tfrac12,\tfrac14,\ldots\}

What it calculates: Armijo sufficient decrease with repeated halving of the trial scale.

Sources and specialist review

PETSc’s SNES manual was inspected for Newton line-search context. The Armijo derivation, acceptance arithmetic and implementation are original. General mixed-equation scaling, non-smooth contact and history-dependent line searches require further implementation and specialist review. These lessons use original scalar derivations and examples. Automated checks establish the stated numerical comparisons within the exposed parameter ranges. Independent specialist review of applicability, teaching treatment and extension to general finite-element systems remains open. Download the standalone SI teaching routines. They require no commercial solver or proprietary source material.