COSC 3361 Numerical Analysis I Ordinary Differential Equations (I) - Introduction

Similar documents
CS537. Numerical Analysis

Comparison between the Discrete and Continuous Time Models

Theory of! Partial Differential Equations!

Theory of! Partial Differential Equations-I!

TMA4329 Intro til vitensk. beregn. V2017

Announcements: Warm-up Exercise:

ASTR415: Problem Set #5

Tutorial Sheet #2 discrete vs. continuous functions, periodicity, sampling

Chapter 3 Boundary Value Problem

Scientific Research of the Institute of Mathematics and Computer Science DIFFERENT VARIANTS OF THE BOUNDARY ELEMENT METHOD FOR PARABOLIC EQUATIONS

Elementary Differential Equations and Boundary Value Problems

Ordinary differential equations. Phys 750 Lecture 7

Ordinary dierential equations

Linear Quadratic Regulator (LQR) - State Feedback Design

Math 2214 Solution Test 1A Spring 2016

nonlinear system Signals & systems Output signals Input signals Dynamic system

MA 366 Review - Test # 1

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.

5.2 Design for Shear (Part I)

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page

Exam 1 Solutions. 1 Question 1. February 10, Part (A) 1.2 Part (B) To find equilibrium solutions, set P (t) = C = dp

Math 1b. Calculus, Series, and Differential Equations. Final Exam Solutions

8.1. a) For step response, M input is u ( t) Taking inverse Laplace transform. as α 0. Ideal response, K c. = Kc Mτ D + For ramp response, 8-1

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

PROBLEMS FOR MATH 162 If a problem is starred, all subproblems are due. If only subproblems are starred, only those are due. SLOPES OF TANGENT LINES

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

Derivation of longitudinal Doppler shift equation between two moving bodies in reference frame at rest

Approximating the Powers with Large Exponents and Bases Close to Unit, and the Associated Sequence of Nested Limits

And the solution to the PDE problem must be of the form Π 1

SUFFICIENT CONDITIONS FOR EXISTENCE SOLUTION OF LINEAR TWO-POINT BOUNDARY PROBLEM IN MINIMIZATION OF QUADRATIC FUNCTIONAL

MA Study Guide #1

Review - Quiz # 1. 1 g(y) dy = f(x) dx. y x. = u, so that y = xu and dy. dx (Sometimes you may want to use the substitution x y

Class Notes 1: Introduction. MAE 82 Engineering Mathematics

A. V. SVISHCHUK AND A. V. KALEMANOVA

Dual Phase Lag Model of Melting Process in Domain of Metal Film Subjected to an External Heat Flux

Math 2214 Solution Test 1B Fall 2017

Generalized electromagnetic energy-momentum tensor and scalar curvature of space at the location of charged particle

Basic solution to Heat Diffusion In general, one-dimensional heat diffusion in a material is defined by the linear, parabolic PDE

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation

Sirindhorn International Institute of Technology Thammasat University

Solutions to Assignment 1

Additional Exercises for Chapter What is the slope-intercept form of the equation of the line given by 3x + 5y + 2 = 0?

Lecture #6: Continuous-Time Signals

Higher Order Difference Schemes for Heat Equation

mywbut.com Lesson 11 Study of DC transients in R-L-C Circuits

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

A New Formulation of Electrodynamics

Method For Solving Fuzzy Integro-Differential Equation By Using Fuzzy Laplace Transformation

3. Differential Equations

Topic Astable Circuits. Recall that an astable circuit has two unstable states;

Mass Transfer Coefficients (MTC) and Correlations I

Chapter 2: Solution of First order ODE

Chapter 8 The Complete Response of RL and RC Circuits

û s L u t 0 s a ; i.e., û s 0

in Engineering Prof. Dr. Michael Havbro Faber ETH Zurich, Switzerland Swiss Federal Institute of Technology

Math 221: Mathematical Notation

Differential Equations

Second Order Linear Differential Equations

Ordinary Differential Equations

Solution to Review Problems for Midterm II

F (u) du. or f(t) = t

System of Linear Differential Equations

Some Basic Information about M-S-D Systems

( ) 2. Review Exercise 2. cos θ 2 3 = = 2 tan. cos. 2 x = = x a. Since π π, = 2. sin = = 2+ = = cotx. 2 sin θ 2+

An Inventory Model for Weibull Time-Dependence. Demand Rate with Completely Backlogged. Shortages

Math Wednesday March 3, , 4.3: First order systems of Differential Equations Why you should expect existence and uniqueness for the IVP

THE SINE INTEGRAL. x dt t

Second Order Linear Differential Equations

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

y = (y 1)*(y 3) t

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

ME 391 Mechanical Engineering Analysis

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Vehicle Arrival Models : Headway

CHBE320 LECTURE IV MATHEMATICAL MODELING OF CHEMICAL PROCESS. Professor Dae Ryook Yang

Matlab and Python programming: how to get started

Cointegration in Frequency Domain*

Exact solution of the(2+1)-dimensional hyperbolic nonlinear Schrödinger equation by Adomian decomposition method

MATH 31B: MIDTERM 2 REVIEW. x 2 e x2 2x dx = 1. ue u du 2. x 2 e x2 e x2] + C 2. dx = x ln(x) 2 2. ln x dx = x ln x x + C. 2, or dx = 2u du.

Chapters 6 & 7: Trigonometric Functions of Angles and Real Numbers. Divide both Sides by 180

Fitting Parameters in a Differential Equation With a Non-Analytical Solution

Chapter 6. Systems of First Order Linear Differential Equations

Logarithms Practice Exam - ANSWERS

6.2 Transforms of Derivatives and Integrals.

Stochastic Reliability Analysis of Two Identical Cold Standby Units with Geometric Failure & Repair Rates

MA2264 -NUMERICAL METHODS UNIT V : INITIAL VALUE PROBLEMS FOR ORDINARY DIFFERENTIAL. By Dr.T.Kulandaivel Department of Applied Mathematics SVCE

15. Vector Valued Functions

Peakon, pseudo-peakon, and cuspon solutions for two generalized Camassa-Holm equations

Amit Mehra. Indian School of Business, Hyderabad, INDIA Vijay Mookerjee

Our main purpose in this section is to undertake an examination of the stock

AN INVENTORY MODEL FOR DETERIORATING ITEMS WITH EXPONENTIAL DECLINING DEMAND AND PARTIAL BACKLOGGING

Lecture #7. EECS490: Digital Image Processing. Image Processing Example Fuzzy logic. Fourier Transform. Basics Image processing examples

Chapter 7: Solving Trig Equations

5. An economic understanding of optimal control as explained by Dorfman (1969) AGEC

Outline of Topics. Analysis of ODE models with MATLAB. What will we learn from this lecture. Aim of analysis: Why such analysis matters?

EA Properties of NCGPC applied to nonlinear SISO systems with a relative degree one or two M. DABO, N. LANGLOIS & H. CHAFOUK

κt π = (5) T surrface k BASELINE CASE

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

DIFFERENTIAL EQUATIONS

Fuzzy Laplace Transforms for Derivatives of Higher Orders

Transcription:

COSC 336 Numerial Analsis I Ordinar Dierenial Equaions I - Inroduion Edgar Gabriel Fall 5 COSC 336 Numerial Analsis I Edgar Gabriel

Terminolog Dierenial equaions: equaions onaining e derivaive o a union as a variable An ordinar dierenial equaion ODE onl onains unions o one independen variable A parial dierenial equaion PDE onains unions o muliple independen variables and eir parial derivaives Te order o a dierenial equaion is a o e iges derivaive a i onains Te goal is o ind a union wose derivaives ulill e given dierenial equaions, e.g.,,,,..., n n COSC 336 Numerial Analsis I Edgar Gabriel

Iniial value vs. boundar value problems Addiional equaions required or unique soluion o e ODE s: Iniial value problem :, a b a Boundar value problem, a b a b n COSC 336 Numerial Analsis I Edgar Gabriel 3

Example rom meanis: modeling e suspension x Car m d w Damper Spring k w x Weel m w ux Sree Spring kw m m w k w k w w d d w w k w u w COSC 336 Numerial Analsis I Edgar Gabriel 4

5 COSC 336 Numerial Analsis I Edgar Gabriel Transorming ODE s o order > An ODE o order > an alwas be ransormed ino a ssem o ODEs o order Example: Deine: 5: beomes en onl dealing wi s order ODEs z z 5: z z z z z o 5: z z

Some eorems I Exisene Teorem or iniial-value Problems: I is oninuous in a reangle R enered around en e iniial value problem α, β, a a soluion or min α, β / M wi on R M max, COSC 336 Numerial Analsis I Edgar Gabriel 6

Some eorems II Uniqueness eorem or iniial-value problems I and are oninuous on e reangle R deined previousl, en e iniial value problem as a unique soluion in e inerval min α, β / M COSC 336 Numerial Analsis I Edgar Gabriel 7

Approximaing soluions o iniial-value problems I Given: d, d a a b 8: B replaing e derivaive b e dierene quoien d d ou an alulae an approximae soluion or 8:,, 8: COSC 336 Numerial Analsis I Edgar Gabriel 8

Approximaing soluions o iniial-value problems II Goal: deermine x a disree poins Deine: i i b Na i Using 8: one an derive e algorims Inpu,a,b,N, b-a/n or i :N i i-,i- end COSC 336 Numerial Analsis I Edgar Gabriel 9

Grapial inerpreaion Sine, e evaluaion o, alulaes e slope a a given loaion. a a a COSC 336 Numerial Analsis I Edgar Gabriel

Approximaing soluions o iniial-value problems III Te meod presened so ar is known as Euler s meod I is a speial ase o e Talor series meod i.e. Euler s meod is e Talor series meod o degree Euler s meod requires One union evaluaion or ea new poin No derivaives o as o be small or aepable preisions COSC 336 Numerial Analsis I Edgar Gabriel

Example using Eulers meod Given:.5 COSC 336 Numerial Analsis I Edgar Gabriel

Talor series meod I Generalizing Euler s meod, ake e Talor series e.g. 3! 3!... Te appearing derivaives an be obained rom e dierenial equaion Te order o e meod i e las power o wi is used Te runaion error is e irs power o wi as no been used 4 4! 4 3: COSC 336 Numerial Analsis I Edgar Gabriel 3

Talor series meod II Given: os sin 3 Derive e algorim or e aording Talor series meod o degree 4 To generae 3:, we need o deermine e ig order derivaives o rom e dierenial equaion 4: sin os sin os os 4 sin os 3 sin 3 os x 4: 4: 4:3 4:4 COSC 336 Numerial Analsis I Edgar Gabriel 4

Talor series meod III - Algorim Inpu a,b,, Nb-a/ or i :N alulae as in 5: alulae as in 5: alulae as in 5:3 alulae 4 as in 5:4 i i- / /3 /4 4 end COSC 336 Numerial Analsis I Edgar Gabriel 5

Error esimaes Loal runaion error: error made in one sep b replaing e ininie Talor series b a inie one Loal roundo error: error made in one sep due o e limi preision o e ompuer Global runaion error: aumulaion o all loal runaion errors I loal runaion error is o order O n, e global runaion error is o order O n, sine e number o seps is inal - / Global roundo errors: aumulaion o all loal roundo errors in prior seps Toal error: sum o global runaion and roundo error COSC 336 Numerial Analsis I Edgar Gabriel 6

Talor series meod Pros Simple Wi a large number o derivaives e meod an produe good approximaions even or large values o Cons Meod depends on e availabili o e derivaives Large amoun o preliminar work Calulaions per sep an be ver large COSC 336 Numerial Analsis I Edgar Gabriel 7

8 COSC 336 Numerial Analsis I Edgar Gabriel Runge-Kua Meods I Te Talor series or is To deermine e derivaives o rom e ODE, one an wrie generall Tus, 8: an be rewrien as... 4! 3!! 4 4 3, ',, 8: 8: 3 O 3 O

Runge-Kua Meods II On e oer and, e Talor polnomial in wo variables an be wrien as, Hene 8: beomes O,,, O To alulae aording o 9: one ould do s, s, s s s nd Order Runge-Kua meod or Heun s meod 3 9: COSC 336 Numerial Analsis I Edgar Gabriel 9

Runga-Kua Meods III General ormulaion o nd order Runge-Kua meods: 3 ω ω α, β O wi ω, ω, α, β being parameers a our disposal. B rewriing : as in 8: and b omparing e parameers o 8: e ollowing ondiions or e parameers arise: ω ω ω α ω : :4 β : COSC 336 Numerial Analsis I Edgar Gabriel

Runge-Kua Meods IV Equaions :-:4 are over deermined and ave ereore several soluions: ω ω α β Heun s meod ω, ω α β modiied Euler meod COSC 336 Numerial Analsis I Edgar Gabriel

Grapial Inerpreaion e.g. nd order Runge-Kua: averaging e slopes a and a Slope : a avergage o Slope and slope Slope : a a a/ COSC 336 Numerial Analsis I Edgar Gabriel

4 order Runge-Kua Te lassial Runge-Kua algorim s, s, s s 3, s s 4, s3 s s s3 s4 6 COSC 336 Numerial Analsis I Edgar Gabriel 3

4 Order Runge-Kua II Inpu a,b,,, Nb-a/ a or i :N s * eval,, i- s * eval, /, i-s/ s3 * eval, /, i-s/ s4 * eval,, i-s3 i i- /6s*s*s3s4 end COSC 336 Numerial Analsis I Edgar Gabriel 4

5 COSC 336 Numerial Analsis I Edgar Gabriel General Runge-Kua ormulas General ormulas or iger order Runge-Kua meods: wi Buer oeiien seme m i i s i ω m i ω i, m j j ij i i s a s and m j i a ij m mm m m m m m a a a a a a a a a ω ω ω T D L R A A A ω

General Runge-Kua ormulas II i A R A D : explii Runge-Kua ormulas i A R : semi-implii Runge-Kua ormulas else: implii Runge-Kua ormulas Example: Buer oeiien seme or e 4 order Runge-Kua 6 3 COSC 336 Numerial Analsis I Edgar Gabriel 6 3 6 Explii Runge-Kua ormula