MATH 175: NUMERICAL ANALYSIS II

Slides:



Advertisements
Similar presentations
Boyce/DiPrima 9th ed, Ch 2.4: Differences Between Linear and Nonlinear Equations Elementary Differential Equations and Boundary Value Problems, 9th edition,
Advertisements

Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Ordinary Differential Equations
1cs542g-term Notes  Notes for last part of Oct 11 and all of Oct 12 lecture online now  Another extra class this Friday 1-2pm.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
CSE245:Lec4 02/24/2003. Integration Method Problem formulation.
31 Oct B - Introduction to Scientific Computing1 Initial Value Problems Paul Heckbert Computer Science Department Carnegie Mellon University.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solutions of Differential Equations Taylor Methods.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Section 12.0 Review of Linear Inequalities
Ordinary Differential Equations (ODEs)
MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY IMSP, UPLB.
Solving Linear Inequalities and Systems of Inequalities MCC9-12.A.REI.12.
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
ME451 Kinematics and Dynamics of Machine Systems
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante 2 nd Sem AY IMSP, UPLB.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Integration of 3-body encounter. Figure taken from
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Numerical Analysis – Differential Equation
§3.6 Newton’s Method. The student will learn about
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Chapter 3 Section 3.7 Graphing Linear Inequalities.
Ordinary Differential Equations
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Sem AY
1.1 Basic Concepts. Modeling
Lecture 11 Alessandra Nardi
MATH 175: Numerical Analysis II
CHAPTER 3 NUMERICAL METHODS
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Derivative of a Function
ECE 576 – Power System Dynamics and Stability
CSE245: Computer-Aided Circuit Simulation and Verification
Numerical Solutions of Ordinary Differential Equations
Derivative of a Function
CSE 245: Computer Aided Circuit Simulation and Verification
Differential Equations
MATH 175: Numerical Analysis II
CSE245: Computer-Aided Circuit Simulation and Verification
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
MATH 174: Numerical Analysis I
Numerical Solutions of Ordinary Differential Equations
MATH 174: NUMERICAL ANALYSIS I
MATH 174: NUMERICAL ANALYSIS I
MATH 175: NUMERICAL ANALYSIS II
Slope Fields and Euler’s Method
Math 175: Numerical Analysis II
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Overview Class #2 (Jan 16) Brief introduction to time-stepping ODEs
MATH 175: Numerical Analysis II
Notes for Analysis Et/Wi
MATH 175: NUMERICAL ANALYSIS II
MATH 175: Numerical Analysis II
MATH 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
Implicit and Explicit Runge-Kutta methods
Derivative of a Function
Fixed- Point Iteration
Chapter 2 A Survey of Simple Methods and Tools
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
Presentation transcript:

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

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).

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.)

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).

Stability Region for Euler Method

Stability Region for RK 3

Stability Region for RK 4

Stability Region for Implicit Trapezoidal Method

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

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.

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.

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.

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.

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.

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.

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

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.

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