Presentation is loading. Please wait.

Presentation is loading. Please wait.

MATH 175: NUMERICAL ANALYSIS II

Similar presentations


Presentation on theme: "MATH 175: NUMERICAL ANALYSIS II"— Presentation transcript:

1 MATH 175: NUMERICAL ANALYSIS II
Lecturer: Jomar Fajardo Rabajante 2nd Sem AY IMSP, UPLB

2 STIFF ODEs Remember that in our discussion from Variable Step-Size Methods, I told you that if h* becomes very small (say 10^-10) then halt the process. This is an indicator that your IVP might be stiff! There is no precise definition of stiffness but one instance that stiffness may occur is when solution to your IVP changes values drastically (slopes are too steep).

3

4 STIFF ODEs There are methods that for some h>stab, the method is unstable (where stab is the value of h at the boundary between stability and instability). Example: Given the following system of ODE, we need to choose h<0.2 in Euler’s method, so that we can get stable solutions. (Note: h<0.2 only gives us stability and not yet our desired accuracy.)

5 STIFF ODEs But sometimes we do not want our step size to be so small and sacrifice our computing time just to attain stability (especially when our time period considered is to wide). We want method that has larger stability region (graphed in a complex plane).

6 Stability Region for Euler Method

7 Stability Region for RK 3

8 Stability Region for RK 4

9 Stability Region for Implicit Trapezoidal Method

10 Stability Region for Backward Euler
The shaded area is the stability region.

11 STIFF ODEs Note: Stiffness is a property of the ODE not of the numerical methods we have discussed (remember that all our discussed methods are consistent and convergent as h0). It is just for stiff ODEs, we cannot endure having very small h because of computational concerns. However, note that for Implicit Trapezoidal and Backward Euler’s methods, the left-hand side of their complex planes are shaded. These mean that they are A-stable methods, i.e. for any value of h the approximates will converge to the long-term behavior of the solution.

12 Euler’s method requires tiny step
Source: Paul Heckbert Computer Science Department Carnegie Mellon University Note: this is not the solution to our previous example.

13 Euler’s method with too large a step
Source: Paul Heckbert Computer Science Department Carnegie Mellon University Note: this is not the solution to our previous example.

14 Large steps OK with Backward Euler’s
Source: Paul Heckbert Computer Science Department Carnegie Mellon University Note: this is not the solution to our previous example.

15 Very large steps OK, too for Backward Euler’s
Source: Paul Heckbert Computer Science Department Carnegie Mellon University Note: this is not the solution to our previous example.

16 Numerical Methods (Implicit) for Stiff ODEs
One way to solve stiff ODEs is to bring information from the right side of the interval [ti , ti+h] instead of relying solely on the left side. We have already seen the Implicit Trapezoidal method. Now, we will see Backward Euler’s Method (Implicit Euler’s Method). Implicit R-K methods are known to be A-stable. Berkeley Madonna uses Rosenbrock Method. Note: Implicit methods can be made adaptive.

17 BACKWARD EULER’S METHOD
Example 1: Given the following IVP:

18 BACKWARD EULER’S METHOD
Notice that we need to do some root-finding to get the approximates. Example 2: Then solve for wi+1 using Chapter 1, use wi as initial guess.

19 BDF Actually, Backward Euler’s Method is a 1st order Backward Differentiation Formula (BDF). The 2nd order BDF is


Download ppt "MATH 175: NUMERICAL ANALYSIS II"

Similar presentations


Ads by Google