The Standard Form of a Differential Equation

Similar documents
MSc. Econ: MATHEMATICAL STATISTICS, 1995 MAXIMUM-LIKELIHOOD ESTIMATION

Lagrangian and Hamiltonian Mechanics

Inverse Trig Functions

Exponential Functions: Differentiation and Integration. The Natural Exponential Function

Fluid Pressure and Fluid Force

Differentiability of Exponential Functions

Answers to the Practice Problems for Test 2

Elliptic Functions sn, cn, dn, as Trigonometry W. Schwalm, Physics, Univ. N. Dakota

y or f (x) to determine their nature.

10.2 Systems of Linear Equations: Matrices

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 14 10/27/2008 MOMENT GENERATING FUNCTIONS

Here the units used are radians and sin x = sin(x radians). Recall that sin x and cos x are defined and continuous everywhere and

15.2. First-Order Linear Differential Equations. First-Order Linear Differential Equations Bernoulli Equations Applications

Web Appendices of Selling to Overcon dent Consumers

Introduction to Integration Part 1: Anti-Differentiation

To differentiate logarithmic functions with bases other than e, use

Web Appendices to Selling to Overcon dent Consumers

JON HOLTAN. if P&C Insurance Ltd., Oslo, Norway ABSTRACT

MODELLING OF TWO STRATEGIES IN INVENTORY CONTROL SYSTEM WITH RANDOM LEAD TIME AND DEMAND

The mean-field computation in a supermarket model with server multiple vacations

Calibration of the broad band UV Radiometer

On Adaboost and Optimal Betting Strategies

A Generalization of Sauer s Lemma to Classes of Large-Margin Functions

Calculus Refresher, version c , Paul Garrett, garrett@math.umn.edu garrett/

Sensitivity Analysis of Non-linear Performance with Probability Distortion

20. Product rule, Quotient rule

Data Center Power System Reliability Beyond the 9 s: A Practical Approach

DIFFRACTION AND INTERFERENCE

Math , Fall 2012: HW 1 Solutions

An intertemporal model of the real exchange rate, stock market, and international debt dynamics: policy simulations

Given three vectors A, B, andc. We list three products with formula (A B) C = B(A C) A(B C); A (B C) =B(A C) C(A B);

Digital barrier option contract with exponential random time

Ch 10. Arithmetic Average Options and Asian Opitons

Maxwell equations in Lorentz covariant integral form

Search Advertising Based Promotion Strategies for Online Retailers

The one-year non-life insurance risk

Linear Equations in Linear Algebra

Factoring Dickson polynomials over finite fields

Mannheim curves in the three-dimensional sphere

CURRENCY OPTION PRICING II

Section 3.3. Differentiation of Polynomials and Rational Functions. Difference Equations to Differential Equations

New Trade Models, New Welfare Implications

The Quick Calculus Tutorial

A Universal Sensor Control Architecture Considering Robot Dynamics

Measures of distance between samples: Euclidean

Safety Stock or Excess Capacity: Trade-offs under Supply Risk

Detecting Possibly Fraudulent or Error-Prone Survey Data Using Benford s Law

APPLICATION OF CALCULUS IN COMMERCE AND ECONOMICS

Optimal Control Policy of a Production and Inventory System for multi-product in Segmented Market

Enterprise Resource Planning

BLS 100 Orifice Plate DIN 19206

TO DETERMINE THE SHELF LIFE OF IBUPROFEN SOLUTION

2r 1. Definition (Degree Measure). Let G be a r-graph of order n and average degree d. Let S V (G). The degree measure µ(s) of S is defined by,

Mathematics Review for Economists

Simulation of Boiler Model in a Cloud Environment

Mathematical Models of Therapeutical Actions Related to Tumour and Immune System Competition

BOSCH. CAN Specification. Version , Robert Bosch GmbH, Postfach , D Stuttgart

Research Objective 1: Development of a Q3D MMF

WEAKLY DISSIPATIVE SEMILINEAR EQUATIONS OF VISCOELASTICITY. Monica Conti. Vittorino Pata. (Communicated by Alain Miranville)

Optimal Control Of Production Inventory Systems With Deteriorating Items And Dynamic Costs

How To Understand The Structure Of A Can (Can)

Parameterized Algorithms for d-hitting Set: the Weighted Case Henning Fernau. Univ. Trier, FB 4 Abteilung Informatik Trier, Germany

IPA Derivatives for Make-to-Stock Production-Inventory Systems With Lost Sales

Security Vulnerabilities and Solutions for Packet Sampling

BV has the bounded approximation property

Lecture L25-3D Rigid Body Kinematics

Tracking Control of a Class of Hamiltonian Mechanical Systems with Disturbances

ThroughputScheduler: Learning to Schedule on Heterogeneous Hadoop Clusters

Stock Market Value Prediction Using Neural Networks

The Classical Particle Coupled to External Electromagnetic Field Symmetries and Conserved Quantities. Resumo. Abstract

Reading: Ryden chs. 3 & 4, Shu chs. 15 & 16. For the enthusiasts, Shu chs. 13 & 14.

Cross-Over Analysis Using T-Tests

A Theory of Exchange Rates and the Term Structure of Interest Rates

Product Differentiation for Software-as-a-Service Providers

Firewall Design: Consistency, Completeness, and Compactness

How to Avoid the Inverse Secant (and Even the Secant Itself)

Cost Efficient Datacenter Selection for Cloud Services

Mandate-Based Health Reform and the Labor Market: Evidence from the Massachusetts Reform

FACTORING IN THE HYPERELLIPTIC TORELLI GROUP

How To Find Out How To Calculate Volume Of A Sphere

Optimal Energy Commitments with Storage and Intermittent Supply

Lagrange s equations of motion for oscillating central-force field

Application Report ...

Chapter 11: Feedback and PID Control Theory

Automatic Long-Term Loudness and Dynamics Matching

Strong solutions of the compressible nematic liquid crystal flow

Definition of the spin current: The angular spin current and its physical consequences

Notes on tangents to parabolas

Coalitional Game Theoretic Approach for Cooperative Transmission in Vehicular Networks

Option Pricing for Inventory Management and Control

Scalar : Vector : Equal vectors : Negative vectors : Proper vector : Null Vector (Zero Vector): Parallel vectors : Antiparallel vectors :

Risk Adjustment for Poker Players

Rules for Finding Derivatives

NEAR-FIELD TO FAR-FIELD TRANSFORMATION WITH PLANAR SPIRAL SCANNING

Brief Introduction to Vectors and Matrices

Matlab Practical: Solving Differential Equations

The influence of anti-viral drug therapy on the evolution of HIV-1 pathogens

These axioms must hold for all vectors ū, v, and w in V and all scalars c and d.

A Comparison of Performance Measures for Online Algorithms

An Alternative Approach of Operating a Passive RFID Device Embedded on Metallic Implants

Transcription:

Fall 6 The Stanar Form of a Differential Equation Format require to solve a ifferential equation or a system of ifferential equations using one of the comman-line ifferential equation solvers such as rkfie, Rkaapt, Raau, Stiffb, Stiffr or Bulstoer. For a numerical routine to solve a ifferential equation (DE), we must somehow pass the ifferential equation as an argument to the solver routine. A stanar form for all DEs will allow us to o this. Basic iea: get ri of any secon, thir, fourth, etc. erivatives that appear, leaving only first erivatives. y () Eample + y () y() This DE contains a secon erivative. How o we write a secon erivative as a first erivative? A secon erivative is a first erivative of a first erivative. y () y () Step : STANDARDIZATION Let's efine two functions y () an y () as y () y () an y () y () Then this ifferential equation can be written as y () + y () y () This DE contains functions instea of one, but there is a strong relationship between these two functions y () y ()

So, the original DE is now a system of two DEs, y () y () an y () + y () y () The convention is to write these equations with the erivatives alone on the left-han sie. y () y () y () + y () y () This is the first step in the stanarization process. Step : DEFINE A SINGLE FUNCTION FOR THE NUMERICAL SOLVER y () y () y () + 7 y () y () We have two functions of, y () an y () These functions y an y allow us to efine a single function D Dy (, ) y + 7 y y which specifies for each vector, the corresponing vector of erivative values. This function D is the essential component to be use in solving a ifferential equation numerically. When constructing this function, be sure to use the array subscript to inicate the orer of the erivative. use of rkfie to solve ifferential equations: rkfie(ic,,, npoints, D) This function returns a matri in which the first column contains the points at which the ODE solution is evaluate an the remaining columns contains the corresponing values of the ODE solution(s) an its first n- erivatives. A fourth-orer Runge-Kutta metho is use. ic is a vector of n initial values or a single initial value., are enpoints of the interval on which the solution to ifferential equations will be evaluate. Initial values in y are the values at. npoints is the number of points beyon the initial point at which the solution is to be approimate. This controls the number of rows ( + npoints) in the matri returne by rkfie. D is an n-element vector-value function containing first erivatives of unknown functions. When using this function you will better off by not incluing the units. Units can always be ae after the calculations are one.

Initial Conitions ic npoints Q rkfie( ic,,, npoints, D) Q =....8..8 Q 6......7 6 Q The iea is to change the n-th orer ODE into a system of n couple first-orer ifferential equations Systems of Differential Equations Eample It may be that you are solving a system of equations rather than a single ifferential equation. Consier the following system Define u'' () v () v'' () v () + u()

y () u () y () v () The system of equations becomes the system y () y () an y () y () y () y () y () y () + y () then D( y, ) y y y y + y u' () u'' () v' () v'' () s In this case, we have efine functions so that the even inices correspon to the unknown function u an it erivatives, while the o inices correspon to v. Now that the erivative vector D is set, we'll solve the secon-orer system using Rkaapt. Rkaapt takes the following arguments: Rkaapt(ic, start, en, npts, D) ic - vector of initial conitions. Scalar for a first-orer DE. start, en - enpoints of the solution interval npts - number of approimating points past the initial conition. The result will be a matri containing npts + rows D - the erivative vector ic.. u ( ) v ( ) u' ( ) v' ( ) Initial conition vector D( y, ) y y y y + y u' () v' () u'' () v () v'' () v () + u() Vector-value function containing the erivatives of the unknown functions

Z Rkaapt( ic,,,, D) Rkaapt returns a vector of ata where the first column contains the values of the inepenent variable. The remaining columns contain the function an erivatives evaluate at the corresponing values of the inepenent variable. For a system, the columns are returne in the same orer in which the initial conitions are entere. u v u' v' Z = 6 7 8 9.. -.8.........6.......8.7...6..6...9.7..6.6.8..7..9 Z u Z v Z u' Z v' Z uu Z vv Z...7 u() v() u'() v'()