A13 · Lesson 42 · Multistep methods
Reusing past steps: Adams methods, BDF and what makes them stable
A Runge–Kutta method throws away everything it computed before each new step. Multistep methods keep the last few values of y or f and fit a polynomial through them, so a high-order step can cost a single new evaluation of f. The Adams family does this for smooth, non-stiff problems, and the backward differentiation formulas (BDF, called Gear's method in SPICE) do it for stiff circuits. The price is a new kind of stability to worry about, extra roots that can grow, and a startup problem, since the first step has no history.
- The curves show the size of each method's amplification factor on for real from −20 to 0. Below 1 means the numerical solution decays.
- Adams–Bashforth 2 (AB2) is stable only for : beyond that, its extra root grows.
- BDF2 stays below 1 for every negative z, and shrinks toward 0 as z goes to −∞, like backward Euler. That's why it suits stiff problems.
Predict
AB2 and RK2 are both second order. On a non-stiff problem, roughly how do their costs per step compare?
AB2 needs one new evaluation per step; it reuses the previous step's f. RK2 needs two fresh ones. When f is expensive (a large circuit's device models, a detailed physics model), multistep methods do the same work for half the cost or less, and Adams methods of order 4 or 5 still use only one or two evaluations per step.
Name it
Linear multistep methods
A k-step method combines the last k values of y and f: . If it's explicit; otherwise it's implicit and needs a solve each step.
The Adams family
Integrate a polynomial through recent values of f over the next step:
- Adams–Bashforth 2 (explicit): .
- Adams–Moulton 2 (implicit, the trapezoidal rule): .
- Predictor–corrector: predict with AB, evaluate f there, correct with AM. That gives AM's accuracy without solving an equation, but loses its stability for stiff problems.
Backward differentiation formulas
Fit a polynomial through recent values of y and require it to satisfy the ODE at the new point. BDF2: . It's implicit, second order, stable for every negative , and damps very fast modes strongly. In a circuit simulator, a capacitor stepped by BDF2 becomes a conductance in parallel with a current source set by the two previous voltages.
Stability and starting
On a k-step method has k roots r per step, from its characteristic polynomial. One approximates ; the others are parasitic and must stay inside the unit circle (zero-stability at h = 0, and the stability region for h > 0). Dahlquist's barrier: no A-stable linear multistep method has order above 2. A k-step method needs k starting values, usually from a Runge–Kutta step or a few small steps, and changing h is awkward, since the history is on the old grid.
Worked example
Take one AB2 step for with h = 0.1, from and the exact .
Show the solution
- The two slopes. and .
- The AB2 step.
- The error. The exact value is , so the error is , from one new evaluation of f.
- Compare with Heun. Heun's method (lesson 40) gets a similar error per step but pays two evaluations for it.
Answer , an error of .
Worked example
A stiff mode has . Compare AB2 and BDF2.
Show the solution
- AB2's characteristic equation. Here it is
- Its roots. They are 0.348 and −14.35. The second makes the computed solution grow 14-fold per step, while the true mode decays as per step.
- BDF2's characteristic equation. Here it is
- Its roots. They are complex, of size so BDF2 damps the mode quickly, as it should.
- The difference. Explicit methods are restricted by the fastest mode; BDF lets the step follow the slow ones.
Answer AB2 has a root at −14.35, so the mode grows 14-fold per step; BDF2's roots have size 0.21, so it damps the mode.
Worked example
Write BDF2's companion model for a 1 µF capacitor with a 1 µs step.
Show the solution
- Discretize the capacitor.
- The conductance.
- The current source. In parallel sits a source set by the last two voltages:
- Compare with backward Euler. Its model has S and uses only .
- In SPICE. SPICE's Gear option uses BDF2 (or higher) this way: one nodal solve per step, with the history folded into current sources.
Answer a 1.5 S conductance in parallel with a current source .
Check
AB2 on with h = 0.1, from and the exact . What is ?
Check
A 1 µF capacitor is stepped with BDF2 at h = 0.1 µs. What conductance stands for it in the companion model?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Above what step does AB2 become unstable on a mode decaying as with k = 1000 s⁻¹?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
BDF2 on a mode with = −10: how large are its amplification roots?
Check
A problem is integrated over 1000 steps at fourth order.
(a)
About how many evaluations of f does RK4 use?
(b)
About how many does AB4 use, if its three starting values come from RK4?
Check
Why can't a multistep method start on its own?
Check
Derive two multistep steps. Write as a, as b, and for BDF2 write as a, as b and as z.
Step 1
Integrate the straight line through and from to . What is the AB2 increment?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Solve BDF2, , for .
Explain why
Why do multistep methods have stability problems that one-step methods don't?
A one-step method maps to , so on the test equation it has a single amplification factor that approximates . A k-step method is a recurrence that involves k past values, and a recurrence of order k has k independent solutions. One of them follows the true solution; the others are artifacts of the recurrence. They start tiny, seeded by rounding and starting errors, but if any of them has an amplification root larger than 1 it grows geometrically and eventually swamps the answer. Stability for a multistep method means keeping all k roots inside the unit circle, which limits how large the step can be and, for implicit methods, limits the order that can stay stable for all stiff modes.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.