Ordinary Differential Equations

Slides:



Advertisements
Similar presentations
Ordinary Differential Equations
Advertisements

Ch 2.7: Numerical Approximations: Euler’s Method
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 08: Series Solutions of Second Order Linear Equations.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Computational Methods in Physics PHYS 3437
Ordinary Differential Equations
Mark Trew CT BARDS of Passion and of Mirth, Ye have left your souls on earth! Have ye souls in heaven too, Double-lived in regions new? Yes, and.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
PART 7 Ordinary Differential Equations ODEs
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
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.
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.
Second Term 05/061 Part 3 Truncation Errors (Supplement)
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
Differential Equations and Boundary Value Problems
CISE301_Topic8L1KFUPM1 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1.
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
PART 7 Ordinary Differential Equations ODEs
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
LURE 2009 SUMMER PROGRAM John Alford Sam Houston State University.
Integration of 3-body encounter. Figure taken from
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Performance & Stability Analysis.
Scientific Computing Numerical Solution Of Ordinary Differential Equations - Euler’s Method.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Numerical Analysis – Differential Equation
Introduction to the Runge-Kutta algorithm for approximating derivatives PHYS 361 Spring, 2011.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
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,
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Dr. Mujahed AlDhaifallah ( Term 342)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
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.
1/14  5.2 Euler’s Method Compute the approximations of y(t) at a set of ( usually equally-spaced ) mesh points a = t 0 < t 1
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Dr. Mubashir Alam King Saud University. Outline Ordinary Differential Equations (ODE) ODE: An Introduction (8.1) ODE Solution: Euler’s Method (8.2) ODE.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
Part 7 - Chapter 25.
Root Finding Methods Fish 559; Lecture 15 a.
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Ordinary Differential Equations
ECE 576 – Power System Dynamics and Stability
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.
Class Notes 19: Numerical Methods (2/2)
Class Notes 9: Power Series (1/3)
Sec 21: Analysis of the Euler Method
Part 7 - Chapter 25.
Numerical Solutions of Ordinary Differential Equations
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 38.
MATH 175: Numerical Analysis II
Presentation transcript:

Ordinary Differential Equations Scientific Computing Numerical Solution Of Ordinary Differential Equations - Further Analysis

Solving First Order ODE’s A general form for a first order ODE is Or alternatively We desire a solution x(t) which satisfies this ODE and one specified boundary condition. x(a) = c

Numerical Solution The value of the true solution is approximated at a set of n values of t. We denote the approximation at these pts by so that

Numerical Solution Let x(t) be the actual solution for dx/dt at the step values. Then, assuming no roundoff error, the difference in the calculated and true value is the truncation error,

Taylor Series Last time we looked at expressing the solution x(t) about some starting point t0 using a Taylor expansion. The ODE is given by

Error Analysis for Taylor Approximation Then, if we use the first n terms of the series as an approximation for the solution, we get:

Error Analysis for Taylor Approximation We saw that the local truncation error is bounded as follows: where

Truncation Error vs Roundoff Error

Stability of solutions Solution of ODE is Stable if solutions resulting from perturbations of initial value remain close to original solution Asymptotically stable if solutions resulting from perturbations converge back to original solution Unstable if solutions resulting from perturbations diverge away from original solution without bound

Example: Stable Solutions

Example: Unstable solution ODE x’ = x is unstable (solution is x(t)=cet ) we show solutions with Euler’s method

Example: Unstable solution

Example: asymptotically stable solutions ODE x’ = -x is stable (solution is x(t)= ce-t ) (solution -> 0) if h too large, numerical solution is unstable we show solutions with Euler’s method in red

x’=-x, stable but slow solution

x’=-x, stable, rather inaccurate solution for h large

x’=-x, stable but poor solution

Stability Analysis The solution to satisfying some initial condition x(a) = s will be: unstable if fx ≥ δ for some positive δ and stable if fx ≤ -δ for some positive δ. Proof: Let x(t,s) be the solution to the IVP above. Then Since t and s are independent variables, then dt/ds=0, so ->

Stability Analysis Proof(continued): So, if we assume x is C1 Let The solution to this diff eq is u(t) = c eQ(t) , where If q(r) = fx(r,x(r,s)) ≥ δ >0 then Q-> ∞ so, u-> ∞ and the solution is unstable. If q(r) = fx(r,x(r,s)) ≤ -δ <0 then Q-> -∞ so, u-> 0 and the solution is stable. QED

Euler’s Method Review: The simple Euler method is a linear approximation, and is a perfect solution only if the function is linear (or at least linear in the interval). This is inherently inaccurate. Because of this inaccuracy small step sizes are required when using the algorithm.

Better Methods If we took more terms in the Taylor’s Series expansion of f(t,x), we would get a more accurate solution algorithm. Problem: It is difficult to compute higher-order derivatives numerically. Idea: Approximate the value of higher derivatives of f(t,x) by evaluating f several times between iterates: ti and ti+1 .

Better Methods The ODE +IV x(a)= x0 =s can be alternatively solved as an integral equation. For example, on the first interval from x0 to x1 :

Better Methods In general: The problem is that we don’t know x(t), so evaluating the integral is not trivial. We assume that if h is small enough, f(t,x) will not change that much over the interval [ti, ti+1]. Using “left-rectangular integration,” This is the Euler Method. A family of improved versions are called Runge-Kutta methods

Euler Method Euler Solution x xi true solution h ti ti+1 = ti + h Tuncation error: true solution

Euler vs Actual Solution Euler Solution RK methods differ in how they estimate fi For Euler Method (a type of RK method), fi ≈ f(ti, xi) x xi fi true solution h ti ti+1 = ti + h

Runge-Kutta Order 2 Method x xi fi h Weighted average of two slopes x ti ti+αh ti+1