Presentation is loading. Please wait.

Presentation is loading. Please wait.

Scientific Computing Multi-Step and Predictor-Corrector Methods.

Similar presentations


Presentation on theme: "Scientific Computing Multi-Step and Predictor-Corrector Methods."— Presentation transcript:

1 Scientific Computing Multi-Step and Predictor-Corrector Methods

2 Overview One-Step Methods – use only info from previous step – Euler – Runge-Kutta Multistep Methods- use info from several prior steps – Adam Bashforth – Adam Moulton Method – Predictor-Corrector Method

3 Multi-Step Principle To solve We use an iteration scheme to find x i+1 in terms of previous values of x i, x i-1, x i-2, etc, and/or values of f i =f(t i, x i ), f i-1, f i-2, etc.

4 Multi-Step Principle The method comes from integrating the derivative to get x(t).

5 One-Step vs Multi-Step

6 Multi-Step Example Midpoint rule: Another weighted average rule:

7 Multi-Step General Form The general form for a multi-step method is The parameters a k and b k are determined by polynomial interpolation. If b m =0, the method is called explicit, as this formula gives x i+1 explicitly in terms of previously found values. If b m ≠0, the method is called implicit, as x i+1 appears on both sides of the equals sign.

8 Multi-Step Explicit Adams Method In this method we approximate the value of by interpolating f(t,x(t)) at the points (t i, x i ), (t i-1, x i-1 ), …, (t i+1-m, x i+1-m ). We then integrate this polynomial exactly to use in the formula for the next iterate:

9 Example: 3-Step Adams-Bashforth Want a formula of the type: We use the three previous values of (t i, x i ) for a Lagrange interpolating polynomial for f

10 Example: 3-Step Adams-Bashforth Then, After a change of variables: u=(t i+1 - t)/h we get

11 Example: 3-Step Adams-Bashforth Then, Now, Likewise,

12 Example: 3-Step Adams-Bashforth So, we get, Thus,

13 Example: 4-Step Adams-Bashforth

14 Implicit Multi-Step Methods Implicit multi-step methods use the value of x i+1 to find the value of x i+1. Of course, this is impossible if we do not know x i+1, so in practice we use an explicit method to approximate (predict) x i +1 and then use an implicit method to improve (correct) the value of x i+1. These methods again rely on polynomial interpolation approximation of f(t,x(t))

15 Adams-Moulton Implicit Methods Three-Point: Four Point:

16 Predictor-Corrector Methods The Predictor-Corrector technique uses an explicit scheme (like the Adams-Bashforth Method) to estimate the initial guess for x i+1 and then uses an implicit technique (like the Adams-Moulton Method) to correct x i+1.

17 Predictor-Corrector Example Adams third order Predictor-Corrector scheme: Use the Adams-Bashforth three point explicit scheme for the initial value. Use the Adams-Moulton three-point implicit method to correct.

18 Predictor-Corrector Example Consider Exact Solution Initial condition: x(0) = 1 Step size: h = 0.1 We will use the 3 Point Adams-Bashforth and 3 point Adams-Moulton. Both require 3 points to get started!

19 Predictor-Corrector Example From the 4th order Runge Kutta 3-point Adams-Bashforth Predictor Value:

20 Predictor-Corrector Example To correct, we need f(t 3, x 3 * ) 3-point Adams-Moulton Corrector Value:

21 The values for the Predictor-Corrector Scheme Predictor-Corrector Example

22 The predictor-corrector method produces a solution with nearly the same accuracy as the RK order 4 method. Generally, the n-step method will have truncation error of order at least n. Predictor-Corrector Example


Download ppt "Scientific Computing Multi-Step and Predictor-Corrector Methods."

Similar presentations


Ads by Google