Multistep Methods

Multistep methods solve y′ = f(x, y) by using several earlier points to take each step. The explicit Adams-Bashforth methods, such as yₙ₊₁ = yₙ + (h/2)(3fₙ − fₙ₋₁), use only known slopes. The implicit Adams-Moulton methods also use fₙ₊₁, and the two are often paired as a predictor and a corrector.

Before this lesson: Heun’s Method, Lagrange Interpolation and Runge-Kutta Method

The idea: reuse the slopes you already have

A one-step method such as Heun’s method or RK4 throws away its slope evaluations after each step. By step n, though, we already know the slopes fₖ = f(xₖ, yₖ) at many earlier points. A multistep method reuses them.

Integrating the equation from xₙ to xₙ₊₁ gives yₙ₊₁ = yₙ + ∫ f(x, y(x)) dx. Fit a polynomial through the stored slopes with polynomial interpolation, integrate the polynomial exactly, and you get a formula with fixed weights. Each new step then costs only one new evaluation of f, no matter how high the order.

Graph of slope values f against x. A curve passes through the points at x sub n minus 1 = 1 with value 0.55 and x sub n = 2 with value 1. A straight line through these two points is extended to x sub n plus 1 = 3, where it reaches 1.45. The area under the line from 2 to 3 is shaded and equals 1.225, which is h over 2 times (3 f sub n minus f sub n minus 1). The true area under the curve is 1.35.
Adams-Bashforth 2 extends the line through the last two slopes across the next step and integrates it: area = (h/2)(3fₙ − fₙ₋₁).

Adams-Bashforth and Adams-Moulton formulas

Write fₖ for f(xₖ, yₖ) and use a constant step h. The explicit Adams-Bashforth (AB) methods extrapolate the past slopes into the next step:

\begin{aligned} \text{AB2:}\quad y_{n+1} &= y_n + \frac{h}{2}\left(3f_n - f_{n-1}\right) \\ \text{AB4:}\quad y_{n+1} &= y_n + \frac{h}{24}\left(55f_n - 59f_{n-1} + 37f_{n-2} - 9f_{n-3}\right) \end{aligned}

The implicit Adams-Moulton (AM) methods also interpolate the unknown slope fₙ₊₁ = f(xₙ₊₁, yₙ₊₁), so yₙ₊₁ appears on both sides:

\begin{aligned} \text{AM2:}\quad y_{n+1} &= y_n + \frac{h}{2}\left(f_{n+1} + f_n\right) \\ \text{AM3:}\quad y_{n+1} &= y_n + \frac{h}{12}\left(5f_{n+1} + 8f_n - f_{n-1}\right) \\ \text{AM4:}\quad y_{n+1} &= y_n + \frac{h}{24}\left(9f_{n+1} + 19f_n - 5f_{n-1} + f_{n-2}\right) \end{aligned}

The number in each name is the order: ABk and AMk have global error O(hᵏ). For the same order, the Adams-Moulton error constant is much smaller, but each step needs an equation solve or a predictor.

How to use a multistep method

  1. Get the starting values y₁, …, yₖ₋₁ with a one-step method of the same order (for example RK4 for AB4), or from the exact solution when it is known.
  2. Store the slopes f₀, f₁, …, fₙ as you go.
  3. Predict with Adams-Bashforth: plug the stored slopes into the AB formula.
  4. Optionally correct with Adams-Moulton: evaluate fₙ₊₁ at the predicted value and use it in the AM formula (predictor-corrector, PECE).
  5. Evaluate and store the new slope fₙ₊₁, then move on to the next step.

Multistep methods examples

Example 1: Deriving Adams-Bashforth 2

Find the weights of AB2 by integrating the line through (xₙ₋₁, fₙ₋₁) and (xₙ, fₙ) from xₙ to xₙ₊₁ = xₙ + h.

p(x) = f_n + \dfrac{f_n - f_{n-1}}{h}(x - x_n)

Line through the two stored slopes (point-slope form).

\displaystyle\int_{x_n}^{x_n + h} f_n\,dx = h f_n

Integrate the constant term.

\displaystyle\int_{x_n}^{x_n + h} \dfrac{f_n - f_{n-1}}{h}(x - x_n)\,dx = \dfrac{f_n - f_{n-1}}{h} \cdot \dfrac{h^2}{2} = \dfrac{h}{2}(f_n - f_{n-1})

Integrate the linear term: the integral of (x − xₙ) over the step is h²/2.

h f_n + \dfrac{h}{2}(f_n - f_{n-1}) = \dfrac{h}{2}\left(3f_n - f_{n-1}\right)

Add the two parts and combine like terms.

Answer: yₙ₊₁ = yₙ + (h/2)(3fₙ − fₙ₋₁). The weights 3/2 and −1/2 add to 1, so the formula is exact when f is constant. Using a quadratic through three slopes gives AB3, and a cubic through four gives AB4.

Example 2: Two steps of Adams-Bashforth 2

Solve y′ = y − x, y(0) = 2 with h = 0.1. Take y₁ = 2.205 from one step of Heun’s method, then use AB2 to estimate y(0.2) and y(0.3). The exact solution is y = x + 1 + eˣ.

f_0 = 2 - 0 = 2,\quad f_1 = 2.205 - 0.1 = 2.105

Slopes at the two known points.

y_2 = 2.205 + 0.05\left(3(2.105) - 2\right) = 2.205 + 0.05(4.315)

AB2 with h/2 = 0.05.

y_2 = 2.205 + 0.21575 = 2.42075

Multiply and add.

f_2 = 2.42075 - 0.2 = 2.22075

Evaluate and store the new slope.

y_3 = 2.42075 + 0.05\left(3(2.22075) - 2.105\right) = 2.42075 + 0.05(4.55725)

AB2 again.

y_3 = 2.42075 + 0.2278625 = 2.6486125

Multiply and add.

y(0.3) = 0.3 + 1 + e^{0.3} \approx 2.649859

Exact value.

Answer: y(0.3) ≈ 2.648613, with error about 0.0012. Each AB2 step used only one new evaluation of f, while a Heun step uses two.

Example 3: An implicit Adams-Moulton step

Use AM3 with h = 0.1 for y′ = −2y, with y₀ = 1 and y₁ = 0.818731 (the exact e^(−0.2)). Find y₂. Because f is linear in y, the implicit equation can be solved directly.

y_2 = y_1 + \tfrac{0.1}{12}\left(5(-2y_2) + 8(-2y_1) - (-2y_0)\right)

AM3 with fₖ = −2yₖ.

y_2 = y_1 - \tfrac{1}{12}y_2 - \tfrac{1.6}{12}y_1 + \tfrac{0.2}{12}y_0

Distribute 0.1/12.

\tfrac{13}{12}y_2 = y_1\left(1 - \tfrac{1.6}{12}\right) + \tfrac{0.2}{12}y_0

Collect the y₂ terms on the left.

\tfrac{13}{12}y_2 \approx 0.818731(0.866667) + 0.016667 \approx 0.709567 + 0.016667 = 0.726233

Substitute y₁ = 0.818731 and y₀ = 1.

y_2 \approx 0.726233 \cdot \tfrac{12}{13} \approx 0.670369

Divide by 13/12.

y(0.2) = e^{-0.4} \approx 0.670320

Exact value.

Answer: y₂ ≈ 0.670369, with error about 0.00005. For a nonlinear f, the implicit equation needs Newton’s method or fixed-point iteration, which is why Adams-Moulton formulas are usually used as correctors.

Example 4: Cooling coffee with a predictor-corrector pair (word problem)

Coffee at 92°C cools in a 22°C room by Newton’s law of cooling, dT/dt = −0.1(T − 22), with t in minutes. A one-step method gave T(1) ≈ 85.3387. Use h = 1 with an AB2 predictor and an AM2 corrector to estimate T(2).

f_0 = -0.1(92 - 22) = -7,\quad f_1 = -0.1(85.3387 - 22) = -6.33387

Stored slopes (see Newton’s law of cooling).

\tilde{T}_2 = 85.3387 + 0.5\left(3(-6.33387) - (-7)\right) = 85.3387 + 0.5(-12.00161)

Predict with AB2.

\tilde{T}_2 = 85.3387 - 6.000805 = 79.337895

Multiply and add.

\tilde{f}_2 = -0.1(79.337895 - 22) = -5.7337895

Evaluate the slope at the prediction.

T_2 = 85.3387 + 0.5\left(-5.7337895 + (-6.33387)\right) = 85.3387 + 0.5(-12.0676595)

Correct with AM2.

T_2 = 85.3387 - 6.03382975 \approx 79.30487

Multiply and add.

T(2) = 22 + 70e^{-0.2} \approx 79.31115

Exact value.

Answer: about 79.30°C after 2 minutes. The predictor alone was off by about 0.027°C and the corrector cut the error to about 0.006°C, at the cost of one extra evaluation of f.

Example 5: One step of Adams-Bashforth 4

For y′ = y with h = 0.1, the exact starting values to six decimals are y₀ = 1, y₁ = 1.105171, y₂ = 1.221403 and y₃ = 1.349859. Use AB4 to estimate y(0.4).

f_k = y_k:\quad f_0 = 1,\ f_1 = 1.105171,\ f_2 = 1.221403,\ f_3 = 1.349859

For y′ = y, each slope equals the y-value.

55(1.349859) = 74.242245,\quad 59(1.221403) = 72.062777

First two weighted slopes.

37(1.105171) = 40.891327,\quad 9(1) = 9

Last two weighted slopes.

74.242245 - 72.062777 + 40.891327 - 9 = 34.070795

Combine with the signs of AB4.

y_4 = 1.349859 + \tfrac{0.1}{24}(34.070795) \approx 1.349859 + 0.141962 = 1.491821

Multiply by h/24 and add to y₃.

e^{0.4} \approx 1.491825

Exact value.

Answer: y(0.4) ≈ 1.491821, with error about 0.000004. RK4 reaches similar accuracy but needs four evaluations of f per step; AB4 needs one.

Common mistakes

MistakeExample of the errorFix
Mixing up the order of the old slopesUsing (h/2)(3fₙ₋₁ − fₙ) in AB2The newest slope gets the largest weight: 3fₙ, then −fₙ₋₁.
Starting with a low-order methodGetting y₁, y₂, y₃ for AB4 from Euler’s methodUse a starter of the same order, such as RK4, so the start does not ruin the accuracy.
Treating an Adams-Moulton formula as explicitPlugging in fₙ₊₁ before yₙ₊₁ is knownSolve the implicit equation, or predict yₙ₊₁ with Adams-Bashforth first.
Changing h without new start-up valuesHalving h halfway but reusing slopes spaced by the old hThe weights assume equal spacing; restart or interpolate the stored values.
Forgetting to store the new slopeReusing fₙ in the next step instead of fₙ₊₁After each step, evaluate and store fₙ₊₁ = f(xₙ₊₁, yₙ₊₁).

Related methods

One-step versus multistep methods

Runge-Kutta methods need only the current point, so they start themselves and can change h at any step. Adams methods need start-up values and equal spacing but are cheaper per step. Many solvers start with RK4 and then switch to an Adams pair.

Predictor-corrector schemes

Pairing AB4 with AM4 gives the Adams-Bashforth-Moulton method. The difference between the corrected and predicted values estimates the local error, which a solver can use to decide when to change h.

Backward differentiation formulas

Another family of implicit multistep methods, the backward differentiation formulas (BDF), approximates y′ at xₙ₊₁ from several earlier y-values instead of integrating f. BDF1 is the backward Euler method, which is the starting point for Stiff Differential Equations.

Practice problems

  1. For y′ = x + y with y(0) = 1 and h = 0.1, a starter gives y₁ = 1.1103. Use AB2 to find y₂ and compare with the exact value 2e^0.2 − 1.2.
  2. Show that integrating the line through (xₙ, fₙ) and (xₙ₊₁, fₙ₊₁) over one step gives AM2.
  3. Use AM2 with h = 0.2 for y′ = −3y, y(0) = 1. Solve the implicit equation for y₁ and compare with e^(−0.6).
  4. How many evaluations of f do AB4 and RK4 need for 100 steps (ignore the start-up steps)?
  5. Show that the AB4 weights 55, −59, 37 and −9 divided by 24 add to 1. Why must they?
  6. AB2 has global error 0.002 at x = 1 with h = 0.1. Estimate the error with h = 0.05.
  7. A cake cools by dT/dt = −0.05(T − 20) with T(0) = 80°C and t in minutes. A starter gives T(1) = 77.0738. Use AB2 with h = 1 to estimate T(2).
  8. Why can’t a multistep method start from the initial condition alone?
  9. Use AM3 with h = 0.1 for y′ = −y, with y₀ = 1 and y₁ = 0.904837. Find y₂.
  10. In Example 2, correct the AB2 prediction y₂ = 2.42075 with one AM2 step.
Show answers

1.

f_0 = 0 + 1 = 1,\quad f_1 = 0.1 + 1.1103 = 1.2103

Stored slopes.

y_2 = 1.1103 + 0.05\left(3(1.2103) - 1\right) = 1.1103 + 0.05(2.6309)

AB2.

y_2 = 1.1103 + 0.131545 = 1.241845

Multiply and add.

Answer: y(0.2) ≈ 1.241845; the exact value is about 1.242806, so the error is about 0.001

2.

p(x) = f_n + \dfrac{f_{n+1} - f_n}{h}(x - x_n)

Line through the two slopes.

\displaystyle\int_{x_n}^{x_n + h} p(x)\,dx = h f_n + \dfrac{h}{2}(f_{n+1} - f_n) = \dfrac{h}{2}(f_{n+1} + f_n)

Integrate, then combine like terms.

Answer: yₙ₊₁ = yₙ + (h/2)(fₙ₊₁ + fₙ), which is AM2 (the trapezoidal method)

3.

y_1 = 1 + 0.1(-3y_1 - 3)

AM2 with h/2 = 0.1 and fₖ = −3yₖ.

y_1 + 0.3y_1 = 1 - 0.3 \Rightarrow 1.3y_1 = 0.7

Collect y₁ on the left.

y_1 = \dfrac{0.7}{1.3} \approx 0.538462

Divide.

Answer: y₁ ≈ 0.5385, compared with e^(−0.6) ≈ 0.5488

4.

\text{AB4: } 100 \times 1 = 100,\quad \text{RK4: } 100 \times 4 = 400

One new slope per AB4 step, four per RK4 step.

Answer: 100 for AB4 and 400 for RK4

5.

\dfrac{55 - 59 + 37 - 9}{24} = \dfrac{24}{24} = 1

Add the weights.

Answer: they add to 1 because the formula must be exact when f is a constant c: then y increases by exactly hc

6.

0.002 \cdot \left(\tfrac{1}{2}\right)^2 = 0.0005

Second order: halving h divides the error by about 4.

Answer: about 0.0005

7.

f_0 = -0.05(80 - 20) = -3,\quad f_1 = -0.05(77.0738 - 20) = -2.85369

Stored slopes.

T_2 = 77.0738 + 0.5\left(3(-2.85369) - (-3)\right) = 77.0738 + 0.5(-5.56107)

AB2 with h/2 = 0.5.

T_2 = 77.0738 - 2.780535 = 74.293265

Multiply and add.

Answer: about 74.29°C; the exact value 20 + 60e^(−0.1) ≈ 74.29025

8.

Answer: the formula for yₙ₊₁ needs slopes at several earlier points, but at the start only y₀ is known; a one-step method (or the exact solution) must supply y₁, …, yₖ₋₁ first

9.

y_2 = y_1 + \tfrac{0.1}{12}\left(-5y_2 - 8y_1 + y_0\right)

AM3 with fₖ = −yₖ.

\left(1 + \tfrac{0.5}{12}\right)y_2 = y_1\left(1 - \tfrac{0.8}{12}\right) + \tfrac{0.1}{12}y_0

Collect y₂ on the left.

1.041667\,y_2 \approx 0.844515 + 0.008333 = 0.852848

Substitute y₁ = 0.904837 and y₀ = 1.

y_2 \approx 0.852848 \div 1.041667 \approx 0.818734

Divide.

Answer: y₂ ≈ 0.818734, compared with e^(−0.2) ≈ 0.818731

10.

\tilde{f}_2 = 2.42075 - 0.2 = 2.22075

Slope at the prediction.

y_2 = 2.205 + 0.05(2.22075 + 2.105) = 2.205 + 0.2162875 = 2.4212875

AM2 corrector.

Answer: y₂ ≈ 2.421288, closer to the exact 2.421403 than the prediction 2.42075

Multistep methods FAQ

What is a multistep method?

It is a method for differential equations that computes yₙ₊₁ from several earlier values, such as yₙ, fₙ, fₙ₋₁ and fₙ₋₂, instead of from yₙ alone. The Adams-Bashforth and Adams-Moulton methods are the most common examples.

What is the difference between Adams-Bashforth and Adams-Moulton?

Adams-Bashforth methods are explicit: they use only slopes that are already known. Adams-Moulton methods are implicit: they also use the slope at the new point, so they are more accurate but need an equation solve or a predictor.

Why are multistep methods efficient?

Each step needs only one new evaluation of f, because the earlier slopes are stored and reused. A fourth-order Runge-Kutta step needs four evaluations.

What are the disadvantages of multistep methods?

They need start-up values from another method, changing the step size is awkward, and high-order explicit versions can be unstable for some equations.

Summary

  • Multistep methods reuse stored slopes from earlier points to take each step.
  • Adams-Bashforth (explicit): AB2 is yₙ₊₁ = yₙ + (h/2)(3fₙ − fₙ₋₁); AB4 uses 55, −59, 37, −9 over 24.
  • Adams-Moulton (implicit) methods include fₙ₊₁ and are more accurate; AM2 is the trapezoidal method.
  • The weights come from integrating the interpolating polynomial of the slopes.
  • Start with a one-step method of the same order, and pair AB with AM as a predictor-corrector.

Previous lesson: Heun’s Method

Next lesson: Stiff Differential Equations

Back to the Numerical Methods Index