ODE jiangyushan. Pendulum As a example of a system that is nonlinear, consider the swinging pendulum shown above. When the mass of the pendulum is small.

Slides:



Advertisements
Similar presentations
Boyce/DiPrima 9th ed, Ch 2.4: Differences Between Linear and Nonlinear Equations Elementary Differential Equations and Boundary Value Problems, 9th edition,
Advertisements

Differential Equations
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Differential Equations
Ordinary Differential Equations
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Ch 2.1: Linear Equations; Method of Integrating Factors
INTEGRALS 5. INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area.  We also saw that it arises when we try to find.
Development of Empirical Models From Process Data
Ch 2.1: Linear Equations; Method of Integrating Factors
Math 3120 Differential Equations with Boundary Value Problems
Ordinary Differential Equations S.-Y. Leu Sept. 21, 2005.
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
Chapter 16 Integration of Ordinary Differential Equations.
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 02: The First Order Differential Equations.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Instructor: Tim Warburton.
Ordinary Differential Equations (ODEs)
Differential Equations and Boundary Value Problems
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solution of Ordinary Differential Equation
Solving ODEs UC Berkeley Fall 2004, E77 Copyright 2005, Andy Packard. This work is licensed under the Creative.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Some Techniques in Deterministic Modeling for Mathematical Biology By:Ryan Borek, Dallas Hamann, Heather Parsons, Carrie Ruda, Carissa Staples, Erik Wolf.
Differential Equations
SOLUTION FOR THE BOUNDARY LAYER ON A FLAT PLATE
9 Differential Equations. 9.1 Modeling with Differential Equations.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 Chapter 8 Ordinary differential equation Mathematical methods in the physical sciences 3rd edition Mary L. Boas Lecture 5 Introduction of ODE.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Dr. Hatim Dirar Department of Physics, College of Science Imam Mohamad Ibn Saud Islamic University.
Ordinary Differential Equations
Computational Biology, Part 17 Biochemical Kinetics III Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Computational Method in Chemical Engineering (TKK-2109)
Math 3120 Differential Equations with Boundary Value Problems
LURE 2009 SUMMER PROGRAM John Alford Sam Houston State University.
Differential Equations. Definition A differential equation is an equation involving derivatives of an unknown function and possibly the function itself.
Scientific Computing Numerical Solution Of Ordinary Differential Equations - Euler’s Method.
Lecture Fall 2001 Physically Based Animation Ordinary Differential Equations Particle Dynamics Rigid-Body Dynamics Collisions.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
1 Solution of Nonlinear Equation Dr. Asaf Varol
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Ch 1.3: Classification of Differential Equations
1 6. Mean, Variance, Moments and Characteristic Functions For a r.v X, its p.d.f represents complete information about it, and for any Borel set B on the.
Differential Equations Also known as Engineering Analysis or ENGIANA.
Variational and Weighted Residual Methods
1 6. Mean, Variance, Moments and Characteristic Functions For a r.v X, its p.d.f represents complete information about it, and for any Borel set B on the.
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
5 INTEGRALS.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
ACSL, POSTECH1 MATLAB 입문 CHAPTER 8 Numerical Calculus and Differential Equations.
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.
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
Amir Yavariabdi Introduction to the Calculus of Variations and Optical Flow.
DYNAMIC BEHAVIOR OF PROCESSES :
MA2213 Lecture 10 ODE. Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation.
1 Week 3 First-order ordinary differential equations (ODE) 1.Basic definitions 2.Separable ODEs 3.ODEs reducible to separable form 4.Linear first-order.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
1.1 Basic Concepts. Modeling
Manipulator Dynamics 1 Instructor: Jacob Rosen
Numerical Analysis Lecture 2.
Presentation transcript:

ODE jiangyushan

Pendulum As a example of a system that is nonlinear, consider the swinging pendulum shown above. When the mass of the pendulum is small in comparison with the mass m at the end of the pendulum, the equation of motion of the pendulum is as follows. Here is the angular position of the pendulum measured relative to vertical, m is mass at the end of the pendulum, L is the length of the pendulum, is the coefficient of viscous friction, and is the acceleration due to gravity. Again, this is a second-order equation in the form of (1.1)

Pendulum If we define the state vector to be, then from above (1.1) we get the following first-order system. This is an autonomous system because there is no explicit dependence on t. Furthermore, it is nonlinear due to the presence of the term.

Predator-prey Ecological System Dynamic systems occur in many fields of study. Consider, for example, the problem of modeling the population levels of a predator-prey pair of species. Let denote the population level of the prey, and let denote the population level of the predator. Suppose and are expressed in units of,say, thousands. The following simplified model of population growth is referred to as the Lotka-Volterra system.

Here the parameter denotes the normalized growth rat e of the prey when the predator is not present. Similarly, denotes the rate at which the predator popul ation decrease in the absence of prey. The term represents the decrease in the prey po pulation as a result of the actions by the predator, and the term represents the increase in the predat or population as a result of the availability of prey. Predator-prey Ecological System

This is a nonlinear system due to the presence of the product terms. As we shall see, it has a periodic solution in which the population levels of the predator and prey g o through ecological cycles. It can be shown that amplitu de of the cycle depends on the initial conditions, while th e period of the cycle is Predator-prey Ecological System

INITIAL AND BOUNDARY PROBLEM By itself, a differential equation does not uniquely determ ine a solution; additional side conditions must be impose d on the solution to make it unique. These side condition s prescribe values that the solution or its derivatives mus t have at some specified point or points. If all of the side conditions are specified at the same point, then we have an initial value problem, which we call it an Initial Value P roblem. If the side conditions are specified at more than one point, then we have a Boundary Value Problem.

Euler’s Method The example of dynamic systems introduced earlier repr esent special cases of the following general first-order no nlinear system where is an n×1 vector. we restrict our consideration to systems for which the rig ht-hand side function is sufficiently smooth that Equation (1.5) has a unique solution satisfying the initial condition, Sufficient conditions on to ensure the existence of a unique solution over can be foun d in (Vid78).

Euler’s Method We are interested in estimating for wh ere the are equality spaced over the interval. That is, where the step size is Suppose the value of is known. This is certainly tru e for because To find in te rms of we multiply both sides of Equation (1.5) by and then integrate from. This yields the follo wing reformulation of (1.5) as an integral equation.

Euler’s Method The problem with applying (1.7) directly is that we do not k now the value of for,and without it we c an not evaluate the integral. However, if the stepsize, is sufficiently small, we can approximate the integrand over t he interval,by it value at the start of t he interval.

Euler’s Method In this case, the integral in (1.7) simplifies to.If denotes the approximate solution obtained in this manner, this yields the following solution formula, which i s called Euler’s method. Euler’s method has a local truncation error of order and the global truncation error is of order

An Example for Euler’s method To illustrate the use of Euler’s method, consider the follo wing simple one-dimensional first-order system. Here the constant. This is a one-dimensional linea r system whose exact solution is. Appl ying Euler’s method in (1.8),we have

An Example for Euler’s method This difference equation is simple enough that we can write a closed-form expression for the solution. If then Recall that the exact solution is a decaying exponential t hat approaches zero in the steady state. The Euler estim ate of the solution will go to zero as approaches infin ity only if or

RUNGE-KUTTA METHODS The coefficients of the fourth-order Runge-Kutta method a re chosen to ensure that its local truncation error is of ord er, and its global truncation error is of order.

Consider the predator-prey equations discussion in (1.3). For convenience, suppose the parameters of the system are. Using the fourth-order Runge-Kutta method to solve this system from to using an initial condition of An Example for Runge-Kutta method

Objectives Know how to convert a higher-order differe ntial equation into an equivalent system of first-order equations. Understand the difference between initial and boundary conditions. Understand the relationship between local and global truncation error. Be able to apply the Runge-Kutta single-st ep solution methods.

Know how to adjust the step size to control the local truncation error. Understand how ordinary differential equat ion techniques can be used to solve practi cal engineering problems. Understand the relative strengths and wea knesses of each computational method an d know which are most applicable for a giv en problem.

Exercise: Chemical Reactor