 # Adams-Bashforth Predictor-Corrector Method for Solving DE

by admin in on June 17, 2019

Adams-Bashforth Predictor-Corrector Method considered as Linear multistep methods that are used for the numerical solution of ordinary differential equations. Conceptually, a numerical method starts from an initial point and then takes a short step forward in time to find the next solution point. The process continues with subsequent steps to map out the solution. Single-step methods (such as Euler’s method) refer to only one previous point and its derivative to determine the current value. Methods such as Runge–Kutta take some intermediate steps (for example, a half-step) to obtain a higher order method, but then discard all previous information before taking a second step. Multistep methods attempt to gain efficiency by keeping and using the information from previous steps rather than discarding it. Consequently, multistep methods refer to several previous points and derivative values. In the case of linear multistep methods, a linear combination of the previous points and derivative values is used.

### Example On Using This Code

#### Input

% dy/dt=y-t^2+1 ; 0<=t<=2 ; y(0)=0.5;
f = @(t,y) (y-t^2+1);  % differential equation we interest to solve [change it to yours]
a = 0;                 % left end ponit   [change it to yours]
b = 2;                 % right end point  [change it to yours]
n = 100;               % number of subintervals [change it to yours]
alpha = 0.5;           % initial condition  [change it to yours]

#### Output    ### Contents

• Definitions
• Examples
• One-step Euler
• Families of multistep methods
• Backward differentiation formulas (BDF)
• Analysis
• Consistency and order
• Stability and convergence
• Example
• First and second Dahlquist barriers
• First Dahlquist barrier
• Second Dahlquist barrier
• References

### Definitions

Numerical methods for ordinary differential equations approximate solutions to initial value problems of the form The result is approximations for the value of y(t) at discrete times t_(i): where h is the time step (sometimes referred to as Delta_t) and i is an integer.

Multistep methods use information from the previous s steps to calculate the next value. In particular, a linear multistep method uses a linear combination of y_(i) and f(t_(i), y_(i)) to calculate the value of y for the desired current step. Thus, a linear multistep method is a method of the form with a_(s) = 1. The coefficients a_(0),… ,a_(s-1) and b_(0),… ,b_(s) determine the method. The designer of the method chooses the coefficients, balancing the need to get a good approximation to the true solution against the desire to get a method that is easy to apply. Often, many coefficients are zero to simplify the method.

One can distinguish between explicit and implicit methods. If b_(s) = 0, then the method is called “explicit”, since the formula can directly compute y_(n+s). If b_(s) =/= 0 then the method is called “implicit”, since the value of y_(n+s) depends on the value of f(t_(n+s), y_(n+s)), and the equation must be solved for y_(n+s). Iterative methods such as Newton’s method are often used to solve the implicit formula.

Sometimes an explicit multistep method is used to “predict” the value of y_(n+s). That value is then used in an implicit formula to “correct” the value. The result is a predictor–corrector method.

### Examples

Consider for an example the problem The exact solution is y(t) = e^(t).

### One-Step Euler

A simple numerical method is Euler’s method: Euler’s method can be viewed as an explicit multistep method for the degenerate case of one step.

This method, applied with step size h = 1/2 on the problem y’ = y, gives the following results: Euler’s method is a one-step method. A simple multistep method is the two-step Adams–Bashforth method This method needs two values, y_(n+1) and y_(n), to compute the next value, y_(n+2). However, the initial value problem provides only one value, y_(0) = 1. One possibility to resolve this issue is to use the y_(1) computed by Euler’s method as the second value. With this choice, the Adams–Bashforth method yields (rounded to four digits): The exact solution at t = t_(4) = 2 is e^(2) = 7.3891…, so the two-step Adams–Bashforth method is more accurate than Euler’s method. This is always the case if the step size is small enough.

### Families of Multistep Methods

Three families of linear multistep methods are commonly used: Adams–Bashforth methods, Adams–Moulton methods, and the backward differentiation formulas (BDFs).

The Adams–Bashforth methods are explicit methods. The coefficients are a_(s-1) = -1 and a_(s-2) =…= a_(0) = 0, while the b_(j) are chosen such that the methods has order s(this determines the methods uniquely).

The Adams–Bashforth methods with s = 1, 2, 3, 4, 5 are (Hairer, Nørsett & Wanner 1993, §III.1; Butcher 2003, p. 103): The coefficients b_(j) can be determined as follows. Use polynomial interpolation to find the polynomial p of degree s-1 such that The Lagrange formula for polynomial interpolation yields The polynomial p is locally a good approximation of the right-hand side of the differential equation y’ = f(t,y) that is to be solved, so consider the equation y’ = p(t) instead. This equation can be solved exactly; the solution is simply the integral of p. This suggests taking The Adams–Bashforth method arises when the formula for p is substituted. The coefficients b_(j) turn out to be given by Replacing f(t,y) by its interpolant p incurs an error of order hs, and it follows that the s-step Adams–Bashforth method has indeed order s (Iserles 1996, §2.1)

The Adams–Bashforth methods were designed by John Couch Adams to solve a differential equation modelling capillary action due to Francis Bashforth. Bashforth (1883)published his theory and Adams’ numerical method (Goldstine 1977).

### Backward differentiation formulas (BDF)

The BDF methods are implicit methods with b_(s-1) = … = b_(0) = 0 and the other coefficients chosen such that the method attains order s (the maximum possible). These methods are especially used for the solution of stiff differential equations.

### Analysis

The central concepts in the analysis of linear multistep methods, and indeed any numerical method for differential equations, are convergence, order, and stability.

### Consistency and order

The first question is whether the method is consistent: is the difference equation a good approximation of the differential equation y’ = f(t,y) ? More precisely, a multistep method is consistent if the local truncation error goes to zero faster than the step size h as h goes to zero, where the local truncation error is defined to be the difference between the result y_(n+s) of the method, assuming that all the previous values y_(n+s-1),… ,y_(n) are exact, and the exact solution of the equation at time t_(n+s). A computation using Taylor series shows that a linear multistep method is consistent if and only if All the methods mentioned above are consistent (Hairer, Nørsett & Wanner 1993, §III.2). If the method is consistent, then the next question is how well the difference equation defining the numerical method approximates the differential equation. A multistep method is said to have order p if the local error is of order O(h^(p+1)) as h goes to zero. This is equivalent to the following condition on the coefficients of the methods: The s-step Adams–Bashforth method has order s, while the s-step Adams–Moulton method has order s+1 (Hairer, Nørsett & Wanner 1993, §III.2). These conditions are often formulated using the characteristic polynomials In terms of these polynomials, the above condition for the method to have order p becomes In particular, the method is consistent if it has order at least one, which is the case if rho(1) = 0 and rho'(1) = sigma(1).

### Stability and convergence

The numerical solution of a one-step method depends on the initial condition y_(0), but the numerical solution of an s-step method depend on all the s starting values, y_(0), y_(1),… ,y_(s-1). It is thus of interest whether the numerical solution is stable with respect to perturbations in the starting values. A linear multistep method is zero-stable for a certain differential equation on a given time interval, if a perturbation in the starting values of size ε causes the numerical solution over that time interval to change by no more than Kε for some value of K which does not depend on the step size h. This is called “zero-stability” because it is enough to check the condition for the differential equation y’ = 0 (Süli & Mayers 2003, p. 332).

If the roots of the characteristic polynomial ρ all have modulus less than or equal to 1 and the roots of modulus 1 are of multiplicity 1, we say that the root condition is satisfied. A linear multistep method is zero-stable if and only if the root condition is satisfied (Süli & Mayers 2003, p. 335).

Now suppose that a consistent linear multistep method is applied to a sufficiently smooth differential equation and that the starting values y_(1),… ,y_(s-1) all converge to the initial value y_(0) as h–>0. Then, the numerical solution converges to the exact solution as h–>0 if and only if the method is zero-stable. This result is known as the Dahlquist equivalence theorem, named after Germund Dahlquist; this theorem is similar in spirit to the Lax equivalence theorem for finite difference methods. Furthermore, if the method has order p, then the global error (the difference between the numerical solution and the exact solution at a fixed time) is O(h^(p)) (Süli & Mayers 2003, p. 340).

Furthermore, if the method is convergent, the method is said to be strongly stable if z = 1 is the only root of modulus 1. If it is convergent and all roots of modulus 1 are not repeated, but there is more than one such root, it is said to be relatively stable. Note that 1 must be a root for the method to be convergent; thus convergent methods are always one of these two.

To assess the performance of linear multistep methods on stiff equations, consider the linear test equation y’ = λy. A multistep method applied to this differential equation with step size h yields a linear recurrence relation with characteristic polynomial This polynomial is called the stability polynomial of the multistep method. If all of its roots have modulus less than one then the numerical solution of the multistep method will converge to zero and the multistep method is said to be absolutely stable for that value of hλ. The method is said to be A-stable if it is absolutely stable for all hλ with negative real part. The region of absolute stability is the set of all hλ for which the multistep method is absolutely stable (Süli & Mayers 2003, pp. 347 & 348). For more details, see the section on stiff equations and multistep methods.

### Example One characteristic polynomial is thus which has roots z = 0, 1, and the conditions above are satisfied. As z = 1 is the only root of modulus 1, the method is strongly stable. The other characteristic polynomial is ### First and second Dahlquist barriers

These two results were proved by Germund Dahlquist and represent an important bound for the order of convergence and for the A-stability of a linear multistep method. The first Dahlquist barrier was proved in Dahlquist (1956) and the second in Dahlquist (1963).

### First Dahlquist barrier

A zero-stable and linear q-step multistep method cannot attain an order of convergence greater than q + 1 if q is odd and greater than q + 2 if q is even. If the method is also explicit, then it cannot attain an order greater than q (Hairer, Nørsett & Wanner 1993, Thm III.3.5).

### Second Dahlquist barrier

There are no explicit A-stable and linear multistep methods. The implicit ones have order of convergence at most 2. The trapezoidal rule has the smallest error constant amongst the A-stable linear multistep methods of order 2.

Share Now!

#### Release Information

• Price
:

\$4.99

• Released
:

June 17, 2019

• Last Updated
:

June 18, 2019 