MA2213 Lecture 10 ODE. Topics Importance p. 367-368 Introduction to the theory p. 368-373 Numerical methods Forward Euler p. 383 Richardson’s extrapolation.

Slides:



Advertisements
Similar presentations
Technique of nondimensionalization Aim: –To remove physical dimensions –To reduce the number of parameters –To balance or distinguish different terms in.
Advertisements

Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Ordinary Differential Equations (ODEs) Differential equations are the ubiquitous, the lingua franca of the sciences; many different fields are linked by.
Numerical Computation
Lecture 18 - Numerical Differentiation
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (I) 1 1 Besides the main textbook, also see Ref.: “Applied.
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
TRANSCENDENTAL FUNCTIONS
Section 8.3 Slope Fields; Euler’s Method.  Calculus,10/E by Howard Anton, Irl Bivens, and Stephen Davis Copyright © 2009 by John Wiley & Sons, Inc. All.
Numerical Solutions of Ordinary Differential Equations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 6- 1.
Homework Homework Assignment #19 Read Section 9.3 Page 521, Exercises: 1 – 41(EOO) Quiz next time Rogawski Calculus Copyright © 2008 W. H. Freeman and.
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Differential Equations 7. The Logistic Equation 7.5.
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
Chapter 16 Integration of Ordinary Differential Equations.
Differential Equations and Boundary Value Problems
Differential Equations
CISE301_Topic8L1KFUPM1 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1.
Numerical Solution of Ordinary Differential Equation
In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
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.
Fin500J Topic 6Fall 2010 Olin Business School 1 Fin500J: Mathematical Foundations in Finance Topic 6: Ordinary Differential Equations Philip H. Dybvig.
Math 3120 Differential Equations with Boundary Value Problems
Differential Equations 7. Direction Fields and Euler's Method 7.2.
The general linear 2ed order PDE in two variables x, y. Chapter 2:Linear Second-Order Equations Sec 2.2,2.3,2.4:Canonical Form Canonical Form.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
MA2213 Lecture 11 PDE. Topics Introduction p Poisson equation p Visualization of numerical results p Boundary conditions p.
Differential Equations Copyright © Cengage Learning. All rights reserved.
The elements of higher mathematics Differential Equations
Numerical Solutions of ODE
MTH16_Lec-14_sec_9-4_ODE_SlopeFields_Euler.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
Barnett/Ziegler/Byleen Business Calculus 11e1 Chapter 13 Review Important Terms, Symbols, Concepts 13.1 Antiderivatives and Indefinite Integrals A function.
Differential Equations Also known as Engineering Analysis or ENGIANA.
Differential Equations Chapter 1. A differential equation in x and y is an equation that involves x, y, and derivatives of y. A mathematical model often.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Dr. Mujahed AlDhaifallah ( Term 342)
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Ch 1.1: Basic Mathematical Models; Direction Fields Differential equations are equations containing derivatives. The following are examples of physical.
Set #1, Question E: TRUE or FALSE: “A differential equation is a type of function.” A. TRUE B. FALSE.
This chapter is concerned with the problem in the form Chapter 6 focuses on how to find the numerical solutions of the given initial-value problems. Main.
Introduction to Symmetry Analysis Brian Cantwell Department of Aeronautics and Astronautics Stanford University Chapter 1 - Introduction to Symmetry.
MA2213 Lecture 9 Nonlinear Systems. Midterm Test Results.
Lesson 9-2 Direction (Slope) Fields and Euler’s Method.
Announcements Topics: -sections 6.4 (l’Hopital’s rule), 7.1 (differential equations), and 7.2 (antiderivatives) * Read these sections and study solved.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
MA3264 Mathematical Modelling Lecture 10 Chapter 10 Modelling with a Differential Equation.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
1.1 Basic Concepts. Modeling
Differential Equations
SLOPE FIELDS & EULER’S METHOD
SLOPE FIELDS & EULER’S METHOD
Scientific Computing Lab
Slope Fields; Euler’s Method
Ch 8.6: Systems of First Order Equations
Copyright © Cengage Learning. All rights reserved.
Sec 21: Analysis of the Euler Method
Numerical Solutions of Ordinary Differential Equations
Numerical Analysis Lecture 38.
Differential Equations
Choose the differential equation corresponding to this direction field
Ch5 Initial-Value Problems for ODE
Direction Fields and Euler's Method
Reading Between the Lines!
Chapter 5 Integration Section R Review.
Presentation transcript:

MA2213 Lecture 10 ODE

Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation formula p. 391 Analytic solutions p Existence of solutions p. 372 Direction fields p Systems of equations p. 432 Two point boundary value problems p. 442

Importance “Differential equations are among the most important mathematical tools used in producing models of physical and biological sciences, and engineering.” They can be classified into: Ordinary :have 1 independent variable Partial :have > 1 independent variable wave equationheat equation

Analytic Solutions Integration Integrating Factors Separation of Variables

Existence of Solutions Theorem (page 372) Letand be continuous functions ofand at all pointsin some neighborhood of Then there is a unique function defined on some interval satisfying Example (p. 372) The initial value problem admits the solution

Direction Fields At any point (x,y) on the graph of a solution of the the slope is equation Direction fields illustrate these slopes. Example (page 376) Consider The slope at (x,y) is y (independent of x). [x,y] = meshgrid(-2:0.5:2,-2:0.5:2); dx = ones(9); % Generates a mesh of 1’s dy = y; quiver(x,y,dx,dy); xlabel('x coordinate axis') ylabel(y coordinate axis') title(' direction field v = [1 y]^T ')

Direction Field

Solution Curves The solutions of hold on x = -2:0.01:1;; y1 = exp(x); y2=-exp(x); plot(x,y1,x,y2) hold off are

Direction Field with Two Solution Curves

Forward Euler Method Letbe the solution of the initial value problem Numerical methods will give an approximate solution at a discrete set of nodes For simplicity we choose evenly spaced nodes Taylor’s approximation gives the forward Euler method for approximations

Examples of Forward Euler Method Letbe the solution of the initial value problem For nodes forward Euler method gives approximations so

Error of Forward Euler Method Letbe the solution of the initial value problem For nodes the exact solution is and the numerical approximation equals therefore we have the error

Richardson Extrapolation It can be shown, using an analysis similar to the one on the preceding page, that the numerical solution obtained using the forward Euler method with step size satisfies therefore, the approximation using step size satisfies These two estimates can be combined to give which has a much smaller error than This process can be extended as in slides 36,40 Lect 7.

Systems of Equations The general form of a system of two first-order differential equations is (page 432) This system can be simply represented using vectors

Systems of Equations For the system of two equations in slide 3 and the solution of the initial value problem is

Systems of Equations Y0 = [1;0]; h = 0.001; N = round(1000*2*pi); x0 = 0; Y(:,1) = Y0; x(1) = x0; for n = 1:N x(n+1) = x(n)+h; f = [-Y(2,n);Y(1,n)]; Y(:,n+1) = Y(:,n) + h*f; end figure(1); plot(x,Y(1,:),x,Y(2,:)); grid; title(‘approximate solution’) figure(2); plot(x,Y(1,:)-cos(x),x,Y(2,:)-sin(x)); grid; title(‘error’)

Systems of Equations

Two-Point Boundary Value Problems A second-order linear boundary value problem (p. 442) can be discretized. We choose nodes let to obtain linear equations for

Homework Due Lab 5 (Week 13, November) was proposed as a model for population growth by Peirre Verhulst in Draw its direction fields and solution curves for Y(0) =.5K and Y(0)=1.5K. 1. The logistic equation 4. Write the MATLAB Program on page 445, study pages , and do problem 7 on page 449. (Extrapolated means Richardson extrapolated) 2. Implement the forward Euler method to compute the two solutions above. Use plots and tables to show how Richardson extrapolation decreases the errors. 3. Study the Lotka-Volterra predator-prey model on page 433 and then do problem 9 on page 441. Extra Credit: Use the secant method to compute the smallest x > 0 so that Y(x) = Y(0) where Y is the solution in part (b).