SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36 KFUPM (Term 101) Section 04 Read 25.1-25.4, 26-2, 27-1 CISE301_Topic8L2.

Slides:



Advertisements
Similar presentations
Formal Computational Skills
Advertisements

Ordinary Differential Equations
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L4&5 KFUPM.
Chapter 6 Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
HAMPIRAN NUMERIK SOLUSI PERSAMAAN DIFERENSIAL (lanjutan) Pertemuan 12 Matakuliah: METODE NUMERIK I Tahun: 2008.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
CISE301_Topic8L1KFUPM1 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Fin500J Topic 7Fall 2010 Olin Business School 1 Fin500J Mathematical Foundations in Finance Topic 7: Numerical Methods for Solving Ordinary Differential.
CSE 330 : Numerical Methods Lecture 17: Solution of Ordinary Differential Equations (a) Euler’s Method (b) Runge-Kutta Method Dr. S. M. Lutful Kabir Visiting.
PART 7 Ordinary Differential Equations ODEs
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Computational Method in Chemical Engineering (TKK-2109)
Numerical Solutions of ODE
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Numerical Analysis – Differential Equation
Please remember: When you me, do it to Please type “numerical-15” at the beginning of the subject line Do not reply to my gmail,
Dr. Mujahed AlDhaifallah ( Term 342)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
CALCULUS REVIEW BME 3510 C PO-WEI CHEN 8/19/2014.
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Methods for Partial Differential Equations
Ordinary Differential Equations
Engineering Problem Solution
Part 7 - Chapter 25.
Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equation
525602:Advanced Numerical Methods for ME
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
CSE245: Computer-Aided Circuit Simulation and Verification
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Chapter 23.
Ordinary differential equaltions:
Chapter 26.
Part 7 - Chapter 25.
Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
CSE245: Computer-Aided Circuit Simulation and Verification
Numerical Analysis Lecture 37.
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 38.
MATH 175: NUMERICAL ANALYSIS II
Numerical Analysis Lecture 2.
Numerical solution of first-order ordinary differential equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L6.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Numerical Computation and Optimization
Differential equations
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 KFUPM.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L1 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L6 KFUPM.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36 KFUPM (Term 101) Section 04 Read 25.1-25.4, 26-2, 27-1 CISE301_Topic8L2

Outline of Topic 8 Lesson 1: Introduction to ODEs Lesson 2: Taylor series methods Lesson 3: Midpoint and Heun’s method Lessons 4-5: Runge-Kutta methods Lesson 6: Solving systems of ODEs Lesson 7: Multiple step Methods Lesson 8-9: Boundary value Problems CISE301_Topic8L2

Lecture 29 Lesson 2: Taylor Series Methods CISE301_Topic8L2

Learning Objectives of Lesson 2 Derive Euler formula using the Taylor series expansion. Solve the first order ODEs using Euler method. Assess the error level when using Euler method. Appreciate different types of errors in the numerical solution of ODEs. Improve Euler method using higher-order Taylor Series. CISE301_Topic8L2

Taylor Series Method The problem to be solved is a first order ODE: Estimates of the solution at different base points: are computed using the truncated Taylor series expansions. CISE301_Topic8L2

Taylor Series Expansion The nth order Taylor series method uses the nth order Truncated Taylor series expansion. CISE301_Topic8L2

Euler Method First order Taylor series method is known as Euler Method. Only the constant term and linear term are used in the Euler method. The error due to the use of the truncated Taylor series is of order O(h2). CISE301_Topic8L2

First Order Taylor Series Method (Euler Method) CISE301_Topic8L2

Euler Method CISE301_Topic8L2

Interpretation of Euler Method y2 y1 y0 x0 x1 x2 x CISE301_Topic8L2

Interpretation of Euler Method Slope=f(x0,y0) y1 y1=y0+hf(x0,y0) hf(x0,y0) y0 x0 x1 x2 x h CISE301_Topic8L2

Interpretation of Euler Method y2 y2=y1+hf(x1,y1) Slope=f(x1,y1) hf(x1,y1) Slope=f(x0,y0) y1 y1=y0+hf(x0,y0) hf(x0,y0) y0 x0 x1 x2 x h h CISE301_Topic8L2

Example 1 Use Euler method to solve the ODE: to determine y(1.01), y(1.02) and y(1.03). CISE301_Topic8L2

Example 1 CISE301_Topic8L2

Example 1 Summary of the result: i xi yi 1.00 -4.00 1 1.01 -3.98 2 1.00 -4.00 1 1.01 -3.98 2 1.02 -3.9595 3 1.03 -3.9394 CISE301_Topic8L2

Example 1 Comparison with true value: i xi yi 1.00 -4.00 1 1.01 -3.98 True value of yi 1.00 -4.00 1 1.01 -3.98 -3.97990 2 1.02 -3.9595 -3.95959 3 1.03 -3.9394 -3.93909 CISE301_Topic8L2

Example 1 A graph of the solution of the ODE for 1<x<2 CISE301_Topic8L2

Types of Errors Local truncation error: Error due to the use of truncated Taylor series to compute x(t+h) in one step. Global Truncation error: Accumulated truncation over many steps. Round off error: Error due to finite number of bits used in representation of numbers. This error could be accumulated and magnified in succeeding steps. CISE301_Topic8L2

Second Order Taylor Series Methods CISE301_Topic8L2

Third Order Taylor Series Methods CISE301_Topic8L2

High Order Taylor Series Methods CISE301_Topic8L2

Higher Order Taylor Series Methods High order Taylor series methods are more accurate than Euler method. But, the 2nd, 3rd, and higher order derivatives need to be derived analytically which may not be easy. CISE301_Topic8L2

Example 2 Second order Taylor Series Method CISE301_Topic8L2

Example 2 CISE301_Topic8L2

Example 2 CISE301_Topic8L2

Example 2 Summary of the results: i ti xi 0.00 1 0.01 0.9901 2 0.02 0.00 1 0.01 0.9901 2 0.02 0.9807 3 0.03 0.9716 CISE301_Topic8L2

Programming Euler Method Write a MATLAB program to implement Euler method to solve: CISE301_Topic8L2

Programming Euler Method f=inline('1-2*v^2-t','t','v') h=0.01 t=0 v=1 T(1)=t; V(1)=v; for i=1:100 v=v+h*f(t,v) t=t+h; T(i+1)=t; V(i+1)=v; end CISE301_Topic8L2

Programming Euler Method f=inline('1-2*v^2-t','t','v') h=0.01 t=0 v=1 T(1)=t; V(1)=v; for i=1:100 v=v+h*f(t,v) t=t+h; T(i+1)=t; V(i+1)=v; end Definition of the ODE Initial condition Main loop Euler method Storing information CISE301_Topic8L2

Programming Euler Method Plot of the solution plot(T,V) CISE301_Topic8L2

More in This Topic Lesson 3: Midpoint and Heun’s method Provide the accuracy of the second order Taylor series method without the need to calculate second order derivative. Lessons 4-5: Runge-Kutta methods Provide the accuracy of high order calculate high order derivative. CISE301_Topic8L2