Fundamentals / Numerical mathematics / Numerical ordinary differential equations

Multistep formulas and parasitic modes

Derive Adams–Bashforth and BDF formulas from interpolation, test a characteristic polynomial and determine whether starting errors survive refinement.

From first principles

Integrate the straight line through two past slopes

A one-step method evaluates new slopes inside its current interval. A multistep method can instead reuse the recorded rates \(f_n=f(t_n,y_n)\) and \(f_{n-1}\). On a uniform mesh, approximate the rate by the straight line through these two values. At a future offset \(s\) from \(t_n\), extrapolation gives

\[p(s)=f_n+\frac{s}{h}(f_n-f_{n-1}),\qquad 0\le s\le h.\]

Integrating this line gives one area \(hf_n\) from the constant part and a triangle from its change. The two-step Adams–Bashforth update follows:

\[y_{n+1}=y_n+\int_0^h p(s)\,ds=y_n+\frac h2(3f_n-f_{n-1}).\]

For smooth slopes the pointwise interpolation error is \(O(h^2)\) here, so integration leaves \(O(h^3)\) local defect with exact previous data. Reusing history also means more ways for an error to propagate. Test the recurrence at zero rate by inserting \(y_n=\xi^n\):

\[\xi^2-\xi=0,\]
\[\xi=1,\ 0 .\]

One mode carries a constant initial offset and the other vanishes. More general multistep formulas require all such roots inside or on the unit circle and simple roots on the circle for zero stability. A starting method must still supply a sufficiently accurate \(y_1\).

Derivation and applications

Identify the physical and parasitic components of a two-step calculation

A two-step formula needs an extra starting value. Even a zero differential equation can reveal how an inaccurate start persists. Begin with a uniform grid and the second-order backward differentiation formula. Compute the unique quadratic interpolant through the most recent three values, differentiate at the newest point, and equate this derivative to the new slope. On the constant equation \(y'=0\) this gives

\[(3y_{n+1}-4y_n+y_{n-1})/(2h)=0.\]

To determine which patterns in the history survive, insert \(y_n=r^n\) and cancel \(r^{n-1}\). The polynomial and its two independent modes are

\[3r^2-4r+1=(r-1)(3r-1)=0,\]
\[y_n=A+B(1/3)^n .\]

The unit root represents a constant exact solution; the second root is an unrelated decaying numerical mode. Suppose the exact initial value is \(Y\), but the supplied second value is \(Y+\delta\). At indices zero and one, solve for both constants:

\[A+B=Y,\]
\[A+B/3=Y+\delta,\]
\[y_n=Y+\tfrac32\delta[1-(1/3)^n].\]

The transient numerical component dies out, but the startup error changes the persistent constant. This illustrates the root condition for zero stability: all roots must have magnitude at most one and those on the unit circle must be simple. It does not guarantee that an arbitrarily inaccurate initializer has the intended accuracy.

Worked example

Track the effect of a faulty starting value

For an exact constant signal \(Y=2.000\) and a second reading \(2.006\), \(\delta=0.006\). The next value is

\[(4\times2.006-2.000)/3=2.008.\]

The limiting constant is \(2.009\). Reducing the time step while keeping the same fixed initializer bias leaves this limiting offset unchanged, regardless of the formal second-order truncation error.

Second application

Compare an undamped parasitic root

The centred two-step formula \((y_{n+1}-y_{n-1})/(2h)=0\) has roots \(+1\) and \(-1\). With the same initial pair, even values stay \(2.000\) and odd values \(2.006\). The sequence is bounded but alternates indefinitely. Averaging adjacent values gives \(2.003\) and conceals the oscillation in a plot. Checking the even and odd subsequences distinguishes a persistent computational mode from a physically varying solution.

Reuse information from earlier steps

A Runge–Kutta method constructs within-step stage values and can usually start from a single known initial state. A multistep method instead keeps a short history of states or slopes. Once the history exists, it can attain higher order with fewer new function evaluations per step. Startup, changes of step size and discontinuities need special care because the coefficients embody assumptions about where past data lie.

For a uniform step \(h\), approximate \(f\) on \([t_n,t_{n+1}]\) by the line through \(f_{n-1}\) and \(f_n\). In the forward interval the line is \(f_n+s(f_n-f_{n-1})/h\), with \(s=t-t_n\). Integrating from zero to \(h\) gives \(y_{n+1}=y_n+h(3f_n-f_{n-1})/2\), the two-step Adams–Bashforth method. The negative weight results from extrapolating a straight line beyond its data. The formula integrates a linearly varying right-hand side exactly if the previous states and slopes are exact.

Differentiate a polynomial at the new point

A backward differentiation formula instead interpolates the recent state values. Differentiating the quadratic through \(y_{n-1},y_n,y_{n+1}\) at \(t_{n+1}\) gives \((3y_{n+1}-4y_n+y_{n-1})/(2h)\). Equating this to \(f(t_{n+1},y_{n+1})\) defines BDF2. To check the coefficients without constructing the full polynomial, substitute the constants, linear and quadratic monomials centred at \(t_{n+1}\). Their derivatives at the evaluation point are \(0,1,0\), respectively, which gives three linear conditions for the three weights.

For \(y'=-y\) with step 0.2 and exact starts \(y_0=1,y_1=e^{-0.2}=0.81873\), BDF2 gives

\[y_2=(4y_1-y_0)/(3+0.4)=0.66910.\]

Adams–Bashforth gives

\[y_2=y_1+0.1(-3y_1+1)=0.67311.\]

The exact value at 0.4 is 0.67032. Exact starting data isolate the behaviour of the multistep formula. In a practical code, a single-step method of adequate order creates the first value. The starting error becomes an input disturbance for the recurrence.

Inspect zero stability before trusting the order

For \(y'=0\) with no new forcing, BDF2 obeys \(3y_{n+1}-4y_n+y_{n-1}=0\). Try a sequence \(y_n=\zeta^n\); the characteristic roots are \(1,1/3\). One root represents the constant physical solution, and the other is a decaying parasitic component. In a general constant-step linear multistep formula all characteristic roots must satisfy \(|\zeta|\leq1\) and those on the unit circle must be simple for zero stability. A repeated root at one would admit a term proportional to \(n\) and hence unbounded amplification of a fixed initial mismatch as \(h\) decreases at fixed physical time.

Zero stability controls propagation over many small steps near \(h=0\). Absolute stability addresses a given finite \(h\lambda\) for a dynamical test mode. A formula may satisfy the first and still require a restrictive explicit step for the second. With consistency and a Lipschitz right-hand side, zero stability is the condition that converts small local defects and sufficiently accurate starts into convergence on fixed intervals. After a state reset or a discontinuity, reconstruct the history from the new side rather than extrapolating slopes belonging to a different evolution law.

Change the step without silently changing the order

If the preceding step had length \(h_p\) and the proposed step has length \(h\), the slope of the line through the two old right-hand sides is \((f_n-f_{n-1})/h_p\). Integrating that line over the proposed interval gives \(h f_n+h^2(f_n-f_{n-1})/(2h_p)\). The constant-step coefficients \(3/2,-1/2\) are recovered only when \(h=h_p\). For \(h=h_p/2\), the new weights multiplying \(h\) are \(5/4,-1/4\).

As a numerical check, integrate \(y'=t\) starting at \(t_n=1\) with \(h_p=0.2,\ h=0.1\). Slopes are 1 and 0.8, so the variable-step formula predicts an increment \(0.1(1.25-0.25\cdot0.8)=0.105\), exactly \(\int_1^{1.1}t\,dt\). Reusing constant-step coefficients would give 0.11. Adjusting only the time interval in the integrator while leaving coefficients fixed can therefore introduce a measurable error even on linear forcing.

After an abrupt change of forcing

Suppose an input is switched from zero to one exactly at a recorded time. A two-step formula mixing a pre-switch derivative with the new value is extrapolating across a discontinuity. On the first step wholly after the switch, the true integral of the input is exactly \(h\), whereas the old and new samples in Adams–Bashforth give \(3h/2\). Restarting with a suitable one-step update reconstructs a history belonging to the new smooth segment.

An implicit formula is only as accurate as its correction solve

An implicit linear multistep method has an equation \(y_{n+1}=a+h\beta f(t_{n+1},y_{n+1})\), where \(a\) includes old states and old slopes. A predictor supplies a first iterate \(v_0\). Functional correction uses \(v_{j+1}=a+h\beta f(t_{n+1},v_j)\). If \(f\) is Lipschitz in its state with constant \(L\), differences contract whenever \(h|\beta|L<1\). Under that condition \(j\) corrections reduce an initial error by at least the corresponding geometric factor. This is a restriction on a particular inner solver and can be much more severe than the stability condition for the time formula itself.

For \(f=\lambda y\), the fixed-point correction has error multiplier \(h\beta\lambda\), even though solving the implicit time equation exactly produces a rational amplification factor. A single correction from an explicit predictor replaces that rational response by a polynomial. Accordingly, tables of stability regions for exactly solved formulas cannot be quoted unchanged when an implementation uses a fixed small number of functional corrections. Newton or a direct solve can restore the intended implicit update, provided its own arithmetic error is sufficiently controlled.

Compare a predictor, one correction and an exact implicit step

Consider \(y'=-4y,\ y_n=1,\ h=1\). The trapezoidal implicit equation is \(y_{n+1}=1-2(1+y_{n+1})\), giving \(3y_{n+1}=-1\) and \(y_{n+1}=-1/3\). For comparison the true value after the interval is \(e^{-4}\approx0.0183\). The exactly solved trapezoidal update remains bounded but oscillatory. Forward Euler prediction gives

\[v_0=1-4=-3.\]

One functional trapezoidal correction yields \(v_1=-1-2(-3)=5\), and another gives

\[v_2=-1-10=-11.\]

Relative to the implicit solution the correction errors are \(-8/3,\ 16/3,\ -32/3\). Their absolute magnitudes double after every correction, precisely as predicted by \(|h\lambda|/2=2\). The linear residual of the intended equation at the once-corrected value five is \(3(5)+1=16\). Reporting this as the result of an implicit stable solver would hide a far larger failure than the known phase error of the exactly solved trapezoidal rule. The inner iteration has failed to find the state required by the time method.

At \(h=0.1\) the correction multiplier instead becomes −0.2. The implicit update is \(2/3\), while the explicit predictor is 0.6. One correction gives \(0.8-0.2(0.6)=0.68\), and another gives 0.664. Monitoring the actual implicit-equation residual now documents successful contraction. For nonlinear multistep implementations use the same principle: record whether each implicit equation was solved to accuracy compatible with the local time error before interpreting convergence under time refinement.

One can also solve the scalar implicit equation by Newton iteration. Here its derivative with respect to the unknown is the constant three at \(h=1\), so one Newton correction from any starting guess recovers \(-1/3\) exactly. The comparison demonstrates a failure of a particular nonlinear iteration, while the mathematical time formula itself is well defined and has a unique implicit solution. More generally stiffness makes the choice of inner solver central to total runtime and reliability.

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

A delayed feedback model needs a history, not one starting value · Dynamics and numerical time integration

A controller responds to the measured displacement one time delay ago. Construct its solution in successive intervals, track propagated derivative discontinuities and derive the point at which increasing delay can destabilise negative feedback.