Ordinary differential equations. Phys 750 Lecture 7

Similar documents
Ordinary differential equations. Phys 420/580 Lecture 8

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

Ordinary dierential equations

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

4.6 One Dimensional Kinematics and Integration

Chapter 3 Boundary Value Problem

Ordinary Differential Equations

Math 2214 Solution Test 1A Spring 2016

LAPLACE TRANSFORM AND TRANSFER FUNCTION

Chapter 2. First Order Scalar Equations

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

L07. KALMAN FILTERING FOR NON-LINEAR SYSTEMS. NA568 Mobile Robotics: Methods & Algorithms

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

CSE 3802 / ECE Numerical Methods in Scientific Computation. Jinbo Bi. Department of Computer Science & Engineering

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

Solutions to Assignment 1

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t

arxiv:quant-ph/ v1 5 Jul 2004

MA 214 Calculus IV (Spring 2016) Section 2. Homework Assignment 1 Solutions

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

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

New Seven-Step Numerical Method for Direct Solution of Fourth Order Ordinary Differential Equations

ASTR415: Problem Set #5

THE 2-BODY PROBLEM. FIGURE 1. A pair of ellipses sharing a common focus. (c,b) c+a ROBERT J. VANDERBEI

Numerical Dispersion

EXPLICIT TIME INTEGRATORS FOR NONLINEAR DYNAMICS DERIVED FROM THE MIDPOINT RULE

Chapter 4. Truncation Errors

Single and Double Pendulum Models

Announcements: Warm-up Exercise:

Random Walk on Circle Imagine a Markov process governing the random motion of a particle on a circular

Challenge Problems. DIS 203 and 210. March 6, (e 2) k. k(k + 2). k=1. f(x) = k(k + 2) = 1 x k

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Math 23 Spring Differential Equations. Final Exam Due Date: Tuesday, June 6, 5pm

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Math 2214 Solution Test 1B Fall 2017

RL Lecture 7: Eligibility Traces. R. S. Sutton and A. G. Barto: Reinforcement Learning: An Introduction 1

Unsteady Flow Problems

An Introduction to Malliavin calculus and its applications

arxiv: v1 [math.ca] 15 Nov 2016

UCLA Math 135, Winter 2015 Ordinary Differential Equations Review of First-Order Equations from Math 33b

15. Vector Valued Functions

THE WAVE EQUATION. part hand-in for week 9 b. Any dilation v(x, t) = u(λx, λt) of u(x, t) is also a solution (where λ is constant).

Math Final Exam Solutions

Lecture 9: Advanced DFT concepts: The Exchange-correlation functional and time-dependent DFT

Notes on Kalman Filtering

Physics 127b: Statistical Mechanics. Fokker-Planck Equation. Time Evolution

Class Meeting # 10: Introduction to the Wave Equation

Book Corrections for Optimal Estimation of Dynamic Systems, 2 nd Edition

3, so θ = arccos

Spring Ammar Abu-Hudrouss Islamic University Gaza

Fractional Method of Characteristics for Fractional Partial Differential Equations

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

Differential Equations

1 st order ODE Initial Condition

Q2.1 This is the x t graph of the motion of a particle. Of the four points P, Q, R, and S, the velocity v x is greatest (most positive) at

Comparison between the Discrete and Continuous Time Models

AP CALCULUS AB/CALCULUS BC 2016 SCORING GUIDELINES. Question 1. 1 : estimate = = 120 liters/hr

Math 115 Final Exam December 14, 2017

dt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.

Design of a control system

Dynamic Iterations for the Solution of Ordinary Differential Equations on Multicore Processors

Lecture 10: Wave equation, solution by spherical means

t + t sin t t cos t sin t. t cos t sin t dt t 2 = exp 2 log t log(t cos t sin t) = Multiplying by this factor and then integrating, we conclude that

System of Linear Differential Equations

EXERCISES FOR SECTION 1.5

Structural Dynamics and Earthquake Engineering

) were both constant and we brought them from under the integral.

arxiv: v1 [math.na] 23 Feb 2016

Echocardiography Project and Finite Fourier Series

Ordinary Differential Equations

Multi-scale 2D acoustic full waveform inversion with high frequency impulsive source

ENGI 9420 Engineering Analysis Assignment 2 Solutions

Sequential Importance Resampling (SIR) Particle Filter

Two Coupled Oscillators / Normal Modes

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

Robotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.

1998 Calculus AB Scoring Guidelines

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

From Particles to Rigid Bodies

Theory of! Partial Differential Equations!

A Sharp Existence and Uniqueness Theorem for Linear Fuchsian Partial Differential Equations

Week 1 Lecture 2 Problems 2, 5. What if something oscillates with no obvious spring? What is ω? (problem set problem)

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

Lecture 20: Riccati Equations and Least Squares Feedback Control

Numerical Solution of a Nonlinear Integro-Differential Equation

An introduction to the theory of SDDP algorithm

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension

ln 2 1 ln y x c y C x

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

Continuous Time. Time-Domain System Analysis. Impulse Response. Impulse Response. Impulse Response. Impulse Response. ( t) + b 0.

Intermediate Differential Equations Review and Basic Ideas

where the coordinate X (t) describes the system motion. X has its origin at the system static equilibrium position (SEP).

Math 334 Fall 2011 Homework 11 Solutions

The expectation value of the field operator.

Recursive Least-Squares Fixed-Interval Smoother Using Covariance Information based on Innovation Approach in Linear Continuous Stochastic Systems

+ γ3 A = I + A 1 (1 + γ + γ2. = I + A 1 ( t H O M E W O R K # 4 Sebastian A. Nugroho October 5, 2017

AP Calculus BC Chapter 10 Part 1 AP Exam Problems

Most Probable Phase Portraits of Stochastic Differential Equations and Its Numerical Simulation

Chapter 5 Digital PID control algorithm. Hesheng Wang Department of Automation,SJTU 2016,03

Probabilistic Robotics

Transcription:

Ordinary differenial equaions Phys 750 Lecure 7

Ordinary Differenial Equaions Mos physical laws are expressed as differenial equaions These come in hree flavours: iniial-value problems boundary-value problems eigenvalue problems

Ordinary Differenial Equaions Mos physical laws are expressed as differenial equaions These come in hree flavours: iniial-value problems boundary-value problems firs order x () =F (x(),) x(0) = x 0 second order x () =F (x(),x(),) eigenvalue problems x(0) = x 0 x (0) = v 0

Ordinary Differenial Equaions Mos physical laws are expressed as differenial equaions These come in hree flavours: x R : u (x) =F (u(x),u(x); x) iniial-value problems boundary-value problems eigenvalue problems x R : u(x) = (x) or u (x) = (x)

Ordinary Differenial Equaions Mos physical laws are expressed as differenial equaions These come in hree flavours: x R : u (x) =F (u(x),u(x); x; ) iniial-value problems boundary-value problems eigenvalue problems x R : u(x) = (x) or u (x) = (x) soluions only a specific eigenvalues

Ordinary Differenial Equaions In principle, he iniial value problem ODE can be forward inegraed from is specified saring poin dx d = F (x(),) x(0) = x 0 x() =x 0 + 0 d F (x( ),) Need o generae a numerical esimae of he inegral on he rhs of he formal soluion

Ordinary Differenial Equaions As usual, we chop he real ime variable ino discree ime seps = i+1 i x( + ) =x()+ x( i+1 )=x( i )+ + i i+1 d F (x( ),) d F (x( ),) If is sufficienly small, hen he inegral is wellapproximaed by a low-order esimae of he area

Ordinary Differenial Equaions missing weigh Various firs-order approximaions: x i+1 = x i + F i x i+1 = x i + 1 2 F i + F i+1 where in he fuure x i = x( i ),F i = F (x( i ), i ) F(x(),) box rule i i+1 F(x(),) The choices of box and rapezoid inegraion correspond o he socalled Euler and Picard mehods i i+1 rapezoid rule

Ordinary Differenial Equaions Algorihm for he Euler mehod is very simple Accuracy of he mehod is low, and large errors accumulae over ime No necessarily energyconserving Se x 0 o is iniial value Sep hrough each i (i 0): compue F i = F (x i, i ) x i+1 = x i + F i i+1 = i +

Ordinary Differenial Equaions Se x 0 o is iniial value Picard mehod requires a selfconsisen soluion Accurae bu slow May no converge for oo large a choice of ime sep Sep hrough each i (i 0): compue F i = F (x i, i ) i+1 = i + compue x (1) i+1 via Euler Loop over k =1, 2, 3,... compue F (k) i+1 = F (x(k) i+1, i+1) x (k+1) i+1 = x i + 1 2 F i + F (k) i+1 Exi loop if x (k+1) i+1 x (k) i+1 < x i+1 = x (k max) i+1

Ordinary Differenial Equaions Sysemaic expansion: replace dummy variable by and Taylor expand he inegrand F (x( + ),+ ) =F (x(),)+ F x Inegraion over 0 < < x i+1 = x i + F i + 1 F i 2 yields = + F x i + x () + F F i ( ) 2 + Truncaion a firs order corresponds o he Euler mehod + O( ) 2 no necessarily available o us

Ordinary Differenial Equaions According o he mean value heorem, an exac runcaion is of he form x i+1 = x i + F (x( ), ), [ i, i+1 ] F is evaluaed a some inermediae poin Ideal value of absorbs all curvaure correcions Possibiliy of sysemaic improvemens

Ordinary Differenial Equaions Euler x i+1 E.g., second-order Runge-Kua x i x i+1 = x i + F (x, ) x = x i + 1 2 F (x i, i ) i i+1 = i + 1 2 Runge-Kua x* x i+1 local errors a O( ) 2 x i i * i+1

Runge-Kua Schemes Exac evoluion over a small ime sep: x( + ) =x()+ 0 d( ) F (x( + ),+ ) Expand boh sides in a small ime incremen: x( + ) =x()+x () + 1 2 x ()( )2 + 1 6 x ()+ = x()+f + 1 2 F + FF x ( ) 2 + 1 6 F +2FF x + F 2 F xx + FFx 2 + F F x ( ) 3 + parial derivaives

Runge-Kua Schemes Runge-Kua ansaz a order m: x( + ) =x()+ 1 c 1 + 2 c 2 + + m c m Funcion evaluaion a many poins in he inerval c 1 =( )F (x, ) c 2 =( )F (x + 21 c 1,+ 21 ) c 3 =( )F (x + 31 c 1 + 32 c 2,+( 31 + 32 ) ) c 4 =( )F (x + 41 c 1 + 42 c 2 + 43 c 3,+( 41 + 42 + 43 ) ). m equaions and m + m(m 1)/2 unknowns { i, ij }

Second-order ODEs We have discussed he Euler, Picard, and Runge-Kua schemes for inegraing he firs-order iniial value problem: x () =F (x(),) x(0) = x 0 Similar consideraions can be applied o he second-order problem: x () =F (x(),x(),) x(0) = x 0 x (0) = v 0

Second-order ODEs Convenien o reinerpre he second-order sysem as wo coupled firs-order equaions x () =F (x(),x(),) x(0) = x 0 x (0) = v 0 v () =A(x(),v(),) x () =v() x(0) = x 0 v(0) = v 0 Obvious connecion o classical mechanics: velociy v and acceleraion model A

Second-order ODEs Naive generalizaion of Euler mehod o he pair of firs order equaions Some ambiguiy in he labelling of ime seps Se x 0 and v 0 o heir iniial values Sep hrough each i (i 0): compue a i = A(x i,v i, i ) v i+1 = v i + a i x i+1 = x i + v i i+1 = i + Could equally read v i+1 and sill be correc o O( ) (Euler-Cromer)

Second-order ODEs Can achieve higher order algorihms sysemaically a he cos of having more ime seps involved in each updae x i+1 = x i + v i + 1 2 a i( ) 2 + O( ) 3 x i 1 = x i v i + 1 2 a i( ) 2 + O( ) 3 Adding and subracing he forward and reverse forms x i+1 =2x i x i 1 + a i ( ) 2 v i = x i+1 x i 1 (Verle mehod)

Second-order ODEs Verle mehod is more numerically sable han Euler I is no self-saring: i needs boh and (x 0,v 0 ) (x 1,v 1 ) Accuracy can be arbirarily improved in his way a he cos of more saring poins: (x 2,v 2 ), ec. Forunaely, here is an updae rule mahemaically equivalen o Verle ha is self-saring: depends on x i+1 only x i+1 = x i + v i + 1 2 a i( ) 2 v i+1 = v i + 1 2 (a i+1 + a i ) (self-saring Verle)

Second-order ODEs Runge-Kua has he advanage of begin self-saring 4h order Runge-Kua for Newon s equaions of moion: k 1v = A(x i,v i, i ) k 1x = v i k 2v = A(x i + 1 2 k 1x,v i + 1 2 k 1v, i + 1 2 ) k 3v = A(x i + 1 2 k 2x,v i + 1 2 k 2v, i + 1 2 ) k 3x = v i + 1 2 k 2v k 4v = A(x i + k 3x,v i + k 3v, i + ) k 4x = v i + k 3x v i+1 = v i + 1 6 k 1v +2k 2v +2k 3v + k 4v x i+1 = x i + 1 6 k 1x +2k 2x +2k 3x + k 4x