Local error estimator 2026-10-14
A local error estimator approximates a numerical step's defect from the exact solution starting at the same input. Differences between formulas estimate error only after their asymptotic orders and constants are accounted for. Step-doubling error estimation, an embedded Runge-Kutta pair and predictor-corrector error estimation are common constructions. They do not by themselves bound accumulated global error.
Let be the exact endpoint of the ordinary differential equation started at the numerical value , and let be the candidate numerical endpoint. The signed local defect being estimated is . In contrast, actual global error compares with the solution of the original initial value problem, including all previous steps. The local truncation error convention inserts original exact data instead. These starting-value distinctions matter even when the same formula is used for every step. A practical local error estimator also relies on a smooth Taylor expansion; a small difference can reflect accidental cancellation rather than a rigorous upper bound.
For a discretized ordinary differential equation, error control must distinguish the local truncation error of one exact-start step from accumulated global error. For a smooth order- one-step method, these are usually and respectively, provided perturbations propagate stably. A small local defect is useful only when the underlying problem and the numerical update do not amplify it excessively.
There are several practical local error estimators. In step-doubling error estimation, compute one step and two half steps from the same starting value. If the leading method error is , the two-half-step error is , up to higher terms. Their difference therefore gives
for exact minus fine-step error. Adding that estimate is Richardson extrapolation. This costs extra evaluations but gives an independent check on a single-method implementation; nonsmooth events can invalidate the assumed expansion.
An embedded Runge-Kutta pair shares stages and uses two output weight vectors to obtain orders and . Their difference generally estimates the lower-order local error , not the higher-order error directly. Stage reuse makes this much cheaper than independent integrations. Predictor-corrector error estimation uses the appropriately calibrated difference of two formulas; raw predictor/corrector differences require their known error constants. For multistep schemes, changing the step size also changes interpolation coefficients and requires controlled step ratios and proper history updates, rather than reusing constant-step coefficients.
Component scales should reflect the requested physical accuracy. An example of absolute and relative error tolerances is
Positive absolute tolerances avoid singular scaling when a component vanishes, while relative tolerances track widely differing magnitudes. Accept the step if ; otherwise reject it without committing the new state or multistep history. If the estimated defect scales as , a basic adaptive step-size controller proposes
Growth limits, a safety factor, and proportional-integral smoothing reduce erratic changes. The exponent must match the actual estimator: for a genuine order- local defect, but for the usual embedded difference. It is not always or always . A zero estimate uses a finite maximum growth factor, not division by zero.
Local acceptance does not itself certify a global error tolerance. If a dense approximation has residual and is Lipschitz continuous with constant on the relevant trajectory region, Gronwall's inequality gives the residual bound for global ODE error
The discrete analogue propagates and sums local defects. A posteriori defect correction, repeat integrations with tighter tolerances, and adjoint-weighted estimates for a chosen final functional provide stronger global checks. A smaller local target may be needed in an unstable flow; trajectory sensitivity should not be mislabeled as a code defect.
For a stiff differential equation, absolute stability can constrain explicit steps far more tightly than accuracy alone. Use an appropriate implicit method and keep nonlinear stage/linear-solve errors below the discretization-error budget. A-stability, L-stability and B-stability address different linear damping and nonlinear contractivity properties. An error controller cannot repair a method outside its stability domain. Tolerance-driven adaptation also does not automatically preserve positivity, conservation laws or a symplectic structure; these may require a suitable method or an additional acceptance test.
Finally, event detection and dense output have their own errors. Locate an event with a consistent interpolant and account for its state sensitivity; a discontinuous right side may require restarting the integrator. Refining indefinitely eventually exposes roundoff error and conditioning limits. Reliable error control balances truncation, solution sensitivity, algebraic-solve error and floating-point error, while reporting failure to meet a target instead of endlessly shrinking a step.