SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36 KFUPM Read 25.1-25.4, 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed ( Ordinary Differential Equations )
Advertisements

CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L4&5 KFUPM.
Chapter 6 Differential Equations
Numerical Solution for Initial Value Problem Numerical Analysis.
Solve a System Algebraically
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Chapter 2: Second-Order Differential Equations
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
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Systems of Non-Linear Equations
Simplified Method to Detail the BL Profile… P M V Subbarao Professor Mechanical Engineering Department I I T Delhi Flat Plate Boundary Layer Solutions.
Numerical Solutions of Ordinary Differential Equations
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Differential Equations and Boundary Value Problems
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.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
-S.SIVARAJA Dept of MATHEMATICS.  N-NUMERICAL  M-METHODS EASY TO LEARN & EASY TO SCORE.
Today’s class Boundary Value Problems Eigenvalue Problems
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.
Fin500J Topic 6Fall 2010 Olin Business School 1 Fin500J: Mathematical Foundations in Finance Topic 6: Ordinary Differential Equations Philip H. Dybvig.
Copyleft  2005 by Media Lab Ordinary Differential Equations Boundary Value Problems.
Computational Method in Chemical Engineering (TKK-2109)
Computer Animation Algorithms and Techniques
Integration of 3-body encounter. Figure taken from
Boundary-Value Problems Boundary-value problems are those where conditions are not known at a single point but rather are given at different values of.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
11/17/ Shooting Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 271 Boundary-Value.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Dr. Mujahed AlDhaifallah ( Term 342)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
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.
Ordinary Differential Equations
Numerical Methods by Dr. Laila Fouad.
Ordinary Differential Equations
525602:Advanced Numerical Methods for ME
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.
Numerical Analysis Lecture 45.
Chapter 27.
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Analysis Lecture 37.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
Numerical Analysis Lecture 38.
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.
Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Computation and Optimization
Differential equations
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Analysis Lecture 36.
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.
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36 KFUPM Read 25.1-25.4, 26-2, 27-1 CISE301_Topic8L8&9 KFUPM

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_Topic8L8&9 KFUPM

Lecture 35 Lesson 8: Boundary Value Problems CISE301_Topic8L8&9 KFUPM

Outlines of Lesson 8 Boundary Value Problem Shooting Method Examples CISE301_Topic8L8&9 KFUPM

Learning Objectives of Lesson 8 Grasp the difference between initial value problems and boundary value problems. Appreciate the difficulties involved in solving the boundary value problems. Grasp the concept of the shooting method. Use the shooting method to solve boundary value problems. CISE301_Topic8L8&9 KFUPM

Boundary-Value and Initial Value Problems Boundary-Value Problems The auxiliary conditions are not at one point of the independent variable More difficult to solve than initial value problem Initial-Value Problems The auxiliary conditions are at one point of the independent variable same different CISE301_Topic8L8&9 KFUPM

Shooting Method CISE301_Topic8L8&9 KFUPM

The Shooting Method Target CISE301_Topic8L8&9 KFUPM

The Shooting Method Target CISE301_Topic8L8&9 KFUPM

The Shooting Method Target CISE301_Topic8L8&9 KFUPM

Solution of Boundary-Value Problems Shooting Method for Boundary-Value Problems Guess a value for the auxiliary conditions at one point of time. Solve the initial value problem using Euler, Runge-Kutta, … Check if the boundary conditions are satisfied, otherwise modify the guess and resolve the problem. Use interpolation in updating the guess. It is an iterative procedure and can be efficient in solving the BVP. CISE301_Topic8L8&9 KFUPM

Solution of Boundary-Value Problems Shooting Method convert Boundary-Value Problem Initial-value Problem Convert the ODE to a system of first order ODEs. Guess the initial conditions that are not available. Solve the Initial-value problem. Check if the known boundary conditions are satisfied. If needed modify the guess and resolve the problem again. CISE301_Topic8L8&9 KFUPM

Example 1 Original BVP 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Original BVP 2. 0 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Original BVP 2. 0 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Original BVP 2. 0 to be determined 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Step1: Convert to a System of First Order ODEs CISE301_Topic8L8&9 KFUPM

Example 1 Guess # 1 -0.7688 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Guess # 2 0.99 0 1 x CISE301_Topic8L8&9 KFUPM

Example 1 Interpolation for Guess # 3 y(1) 0.99 Guess y(1) 1 -0.7688 2 0.9900 0 1 2 y’(0) -0.7688 CISE301_Topic8L8&9 KFUPM

Example 1 Interpolation for Guess # 3 y(1) 2 Guess 3 0.99 Guess y(1) 1 -0.7688 2 0.9900 1.5743 0 1 2 y’(0) -0.7688 CISE301_Topic8L8&9 KFUPM

Example 1 Guess # 3 2.000 0 1 x This is the solution to the boundary value problem. y(1)=2.000 CISE301_Topic8L8&9 KFUPM

Summary of the Shooting Method Guess the unavailable values for the auxiliary conditions at one point of the independent variable. Solve the initial value problem. Check if the boundary conditions are satisfied, otherwise modify the guess and resolve the problem. Repeat (3) until the boundary conditions are satisfied. CISE301_Topic8L8&9 KFUPM

Properties of the Shooting Method Using interpolation to update the guess often results in few iterations before reaching the solution. The method can be cumbersome for high order BVP because of the need to guess the initial condition for more than one variable. CISE301_Topic8L8&9 KFUPM

Lecture 36 Lesson 9: Discretization Method CISE301_Topic8L8&9 KFUPM

Outlines of Lesson 9 Discretization Method Examples Finite Difference Methods for Solving Boundary Value Problems Examples CISE301_Topic8L8&9 KFUPM

Learning Objectives of Lesson 9 Use the finite difference method to solve BVP. Convert linear second order boundary value problems into linear algebraic equations. CISE301_Topic8L8&9 KFUPM

Solution of Boundary-Value Problems Finite Difference Method convert Boundary-Value Problems Algebraic Equations Find the unknowns y1, y2, y3 y4=0.8 y3=? y y1=? y2=? y0=0.2 0 0.25 0.5 0.75 1.0 x x0 x1 x2 x3 x4 CISE301_Topic8L8&9 KFUPM

Solution of Boundary-Value Problems Finite Difference Method Divide the interval into n intervals. The solution of the BVP is converted to the problem of determining the value of function at the base points. Use finite approximations to replace the derivatives. This approximation results in a set of algebraic equations. Solve the equations to obtain the solution of the BVP. CISE301_Topic8L8&9 KFUPM

Finite Difference Method Example To be determined Divide the interval [0,1 ] into n = 4 intervals Base points are x0=0 x1=0.25 x2=.5 x3=0.75 x4=1.0 y3=? y4=0.8 y y1=? y2=? y0=0.2 0 0.25 0.5 0.75 1.0 x x0 x1 x2 x3 x4 CISE301_Topic8L8&9 KFUPM

Finite Difference Method Example Divide the interval [0,1 ] into n = 4 intervals Base points are x0=0 x1=0.25 x2=.5 x3=0.75 x4=1.0 CISE301_Topic8L8&9 KFUPM

Second Order BVP CISE301_Topic8L8&9 KFUPM

Second Order BVP CISE301_Topic8L8&9 KFUPM

Second Order BVP CISE301_Topic8L8&9 KFUPM

Second Order BVP CISE301_Topic8L8&9 KFUPM

CISE301_Topic8L8&9 KFUPM

Summary of the Discretiztion Methods Select the base points. Divide the interval into n intervals. Use finite approximations to replace the derivatives. This approximation results in a set of algebraic equations. Solve the equations to obtain the solution of the BVP. CISE301_Topic8L8&9 KFUPM

Remarks Finite Difference Method : Different formulas can be used for approximating the derivatives. Different formulas lead to different solutions. All of them are approximate solutions. For linear second order cases, this reduces to tri-diagonal system. CISE301_Topic8L8&9 KFUPM

Summary of Topic 8 Solution of ODEs Lessons 1-3: Introduction to ODE, Euler Method, Taylor Series methods, Midpoint, Heun’s Predictor corrector methods Lessons 4-5: Runge-Kutta Methods (concept & derivation) Applications of Runge-Kutta Methods To solve first order ODE Lessons 6: Solving Systems of ODE Lesson 7: Multi-step methods Lessons 8-9: Boundary Value Problems Discretization method CISE301_Topic8L8&9 KFUPM