The Chartership Forum

Computational Engineering / Nonlinear and explicit analysis

Newton–Raphson and the residual

Residual is the current force imbalance.

Lesson review: expert verification remains open

This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.

Checks needed for project use

  • A computational engineering reviewer must check algorithms, convergence claims, statistical assumptions and numerical examples beyond the cases explicitly recorded.
  • Review the arch limit-point numerical example and all lab convergence controls independently.
  • Contact, plasticity and post-buckling instruction requires specialist confirmation of loading history and stability.
  • Specialist nonlinear review remains required for constitutive law, geometry, contact, solution control, stability and explicit time-step accuracy.

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

Why this matters

At a trial displacement, internal resistance may not balance the applied load. Newton’s method uses that imbalance to calculate the next correction.

By the end of this lesson you should be able to

  • Define the residual and say what it physically is
  • Follow one Newton–Raphson iteration through its four steps
  • Explain quadratic convergence and when it does not apply
  • Say when the modified method is the better choice
  • Explain why load increments help even though the final answer is the same

Residual and tangent define a Newton correction

Residual and tangent define a Newton correctionThe spring has Fint = 150(1−exp(−u/1.2)). The marker samples u from 0 to 0.8 m and its tangent intercept predicts the next iterate under 100 kN. The slider samples trial states, not elapsed time.ForceDisplacement
The spring has Fint = 150(1−exp(−u/1.2)). The marker samples u from 0 to 0.8 m and its tangent intercept predicts the next iterate under 100 kN. The slider samples trial states, not elapsed time.

Move the trial state and inspect its local tangent correction.

Newton trial-state comparison. Geometry and movement are schematic; use the lesson calculations for numerical results.

Orange load
Applied force remains 100 kN.
Blue curve
At each trial state, Δu = (100−Fint)/kT. The tangent is local.

Measure imbalance, then correct displacement

For the scalar spring, calculate internal force at the current displacement. Subtract it from the applied force to obtain residual R. Divide by the tangent stiffness at that point to obtain Δu, then update u and repeat. In a structural system, a matrix solve replaces this division.

Use scaled residual and displacement criteria appropriate to the problem. A small residual establishes approximate equation balance, not model suitability or stability. Translational and rotational equations also have different physical units.

Full Newton updates the tangent; modified Newton reuses it for a stated period. Their cost and convergence differ. Near a regular root, full Newton can converge rapidly, but a poor start, nonsmooth contact or a near-singular tangent can prevent that behaviour. Smaller increments can help, with step-size accuracy checks where history matters.

Newton–Raphson iteration
Ri=Fapplied−Finternal(ui),Δui=RikT(ui),ui+1=ui+ΔuiR_i = F_{\text{applied}} - F_{\text{internal}}(u_i), \qquad \Delta u_i = \frac{R_i}{k_T(u_i)}, \qquad u_{i+1} = u_i + \Delta u_i

What it calculates: The next estimate of the displacement that balances the applied load

R
Residual — the out-of-balance force (kN)
Finternal
Force the structure develops at the current displacement (kN)
kT
Tangent stiffness at the current displacement (kN/m)
Δu
Correction applied this iteration (m)

This assumes

  • The tangent is a usable local predictor — false near a limit point
  • The tangent is non-zero; a zero tangent makes the correction infinite
  • Convergence is declared when |R| falls below a tolerance you chose

In plain terms: Every term is a physical quantity. The residual is a force you could measure; the tangent is a stiffness you could measure; the correction is the displacement that force would cause at that stiffness. Nothing in the method is abstract, which is why watching one iteration is worth more than reading three derivations of it.

Try it

Newton–Raphson explorer

Three nonlinear springs. Watch the residual, the tangent and the correction at every iteration.

System

kN

Method

Modified holds the first tangent throughout: more iterations, each much cheaper.

Tension stiffening. The tangent only ever increases, so Newton–Raphson converges from any starting point and load control never fails.

Iteration trace. R is the residual; kT the tangent used; Δu the correction.
#u (m)R (kN)kT (kN/m)Δu (m)
10.0000500.00100.05.0000
25.0000-5000.003100.0-1.6129
33.3871-1393.041476.7-0.9434
42.4437-328.13816.6-0.4018
52.0419-44.75600.3-0.0745
61.9674-1.34564.5-0.0024
71.9650-0.00563.4-0.0000
Result
converged
Iterations
7
Displacement
1.9650 m
Check: internal force
500.00 kN

must equal the applied load

Things worth trying

  • Hardening at 500 kN: the first correction is the LINEAR answer, and it overshoots by nearly three times. That is what nonlinearity means in practice.
  • Switch to modified Newton and every row shows the same tangent. It takes many more iterations and each is far cheaper.
  • Yielding at 200 kN: above the plateau of 150 kN there is no displacement that balances the load, and no number of iterations finds one.
  • Snap-through at 25 kN: above the limit point of 24.1 kN, load control either fails or lands on the far branch — a completely different state of the structure.

What this shows: The residual is a force in kilonewtons — the load the structure is not yet carrying — and convergence is a tolerance you chose.

Worked example

Three iterations on a hardening spring

Given

  • A cable-like spring: F = 100u + 40u³, so kT = 100 + 120u²
  • Applied load 500 kN
  • Starting from u = 0
  • Tolerance on the residual: 10⁻⁶ kN

Find

The first three iterations, and how the residual falls

    Predict first

    A nonlinear analysis now needs 40 iterations per step. Which structural possibility should be investigated alongside the solver settings?

    Practice

    A nonlinear spring carries F = 150(1 − e^(−u/1.2)). At u = 0 the applied load is 100 kN. What is the residual at the first iteration, in kN?

    Practice

    The same spring has tangent stiffness kT = 125e^(−u/1.2). At u = 0, what correction does the first Newton–Raphson iteration apply under a 100 kN load, in metres?

    Check yourself

    What is the residual in a Newton–Raphson iteration?

    Check yourself

    A nonlinear analysis converges in every increment and reports a final answer. What has that established?

    Summary

    • Residual is the current force imbalance.
    • Use the current tangent to calculate the correction.
    • Convergence and physical stability are separate assessments.

    Sources & further information

    NASA NPARC verification and validation tutorial (CFD background on general V&V methods).

    Reviewed 19 October 2026: explanations, teaching calculations and figures checked within the recorded course audit. This is not independent engineering approval. Specialist nonlinear review remains required for constitutive law, geometry, contact, solution control, stability and explicit time-step accuracy.