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

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

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

Announcements: Warm-up Exercise:

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

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

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

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

Some Basic Information about M-S-D Systems

Problem set 6: Solutions Math 207A, Fall x 0 2 x

(1) (2) Differentiation of (1) and then substitution of (3) leads to. Therefore, we will simply consider the second-order linear system given by (4)

and v y . The changes occur, respectively, because of the acceleration components a x and a y

Math 2214 Solution Test 1B Fall 2017

Second-Order Differential Equations

Math 527 Lecture 6: Hamilton-Jacobi Equation: Explicit Formulas

MA 366 Review - Test # 1

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

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

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

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

AP Calculus BC Chapter 10 Part 1 AP Exam Problems

3.6 Derivatives as Rates of Change

Math 116 Second Midterm March 21, 2016

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

Math 2214 Solution Test 1A Spring 2016

Chapter 2. First Order Scalar Equations

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

ASTR415: Problem Set #5

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

Chapter #1 EEE8013 EEE3001. Linear Controller Design and State Space Analysis

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

ME 391 Mechanical Engineering Analysis

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...

MA Study Guide #1

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

Math 333 Problem Set #2 Solution 14 February 2003

Oscillations. Periodic Motion. Sinusoidal Motion. PHY oscillations - J. Hedberg

Two Coupled Oscillators / Normal Modes

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

Traveling Waves. Chapter Introduction

LAB 6: SIMPLE HARMONIC MOTION

Parametrics and Vectors (BC Only)

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 Final Exam Solutions

10.6 Parametric Equations

Final Spring 2007

Differential Equations

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

1 st order ODE Initial Condition

k 1 k 2 x (1) x 2 = k 1 x 1 = k 2 k 1 +k 2 x (2) x k series x (3) k 2 x 2 = k 1 k 2 = k 1+k 2 = 1 k k 2 k series

Ordinary differential equations. Phys 750 Lecture 7

Solutions to Assignment 1

Chapter 5 Kinematics

Kinematics in two dimensions

INSTANTANEOUS VELOCITY

Section 7.4 Modeling Changing Amplitude and Midline

EXERCISES FOR SECTION 1.5

Direct Current Circuits. February 19, 2014 Physics for Scientists & Engineers 2, Chapter 26 1

Module 3: The Damped Oscillator-II Lecture 3: The Damped Oscillator-II

4.5 Constant Acceleration

10.1 EXERCISES. y 2 t 2. y 1 t y t 3. y e

15. Bicycle Wheel. Graph of height y (cm) above the axle against time t (s) over a 6-second interval. 15 bike wheel

Concourse Math Spring 2012 Worked Examples: Matrix Methods for Solving Systems of 1st Order Linear Differential Equations

Lab #2: Kinematics in 1-Dimension

LAPLACE TRANSFORM AND TRANSFER FUNCTION

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

Physics 1402: Lecture 22 Today s Agenda

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004

MEI STRUCTURED MATHEMATICS 4758

Mon Apr 9 EP 7.6 Convolutions and Laplace transforms. Announcements: Warm-up Exercise:

Electrical Circuits. 1. Circuit Laws. Tools Used in Lab 13 Series Circuits Damped Vibrations: Energy Van der Pol Circuit

Chapter #1 EEE8013 EEE3001. Linear Controller Design and State Space Analysis

A. Using Newton s second law in one dimension, F net. , write down the differential equation that governs the motion of the block.

Chapter 15 Oscillatory Motion I

Solutions from Chapter 9.1 and 9.2

Math 116 Practice for Exam 2

Solutions of Sample Problems for Third In-Class Exam Math 246, Spring 2011, Professor David Levermore

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

KINEMATICS IN ONE DIMENSION

Introduction to Physical Oceanography Homework 5 - Solutions

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

Problem Set 7-7. dv V ln V = kt + C. 20. Assume that df/dt still equals = F RF. df dr = =

Check in: 1 If m = 2(x + 1) and n = find y when. b y = 2m n 2

IB Physics Kinematics Worksheet

After the completion of this section the student. Theory of Linear Systems of ODEs. Autonomous Systems. Review Questions and Exercises

( ) = Q 0. ( ) R = R dq. ( t) = I t

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

CHAPTER 12 DIRECT CURRENT CIRCUITS

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

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

Chapter 3 Kinematics in Two Dimensions

72 Calculus and Structures

ln 2 1 ln y x c y C x

Elementary Differential Equations and Boundary Value Problems

Chapter 7: Solving Trig Equations

15. Vector Valued Functions

SPH3U: Projectiles. Recorder: Manager: Speaker:

Wall. x(t) f(t) x(t = 0) = x 0, t=0. which describes the motion of the mass in absence of any external forcing.

This is an example to show you how SMath can calculate the movement of kinematic mechanisms.

Single and Double Pendulum Models

Math 2214 Sol Test 2B Spring 2015

Transcription:

Mah 2280 Wednesda March 3, 200 4., 4.3: Firs order ssems of Differenial Equaions Wh ou should epec eisence and uniqueness for he IVP Eample: Consider he iniial value problem relaed o page 4 of his eserda s class noes. d d = 0 0.0 0.2 = 0 Remember, his was a firs order ssem we go b convering a second order DE for a cerain damped spring oscillaion problem, () +.2 () +.0 () = 0 (0)= (0)=0 so we alread know he soluion. I is (fill in here!)

Bu le s preend we don know he soluion, and r o undersand wh we would epec one, and wh we would epec i o be unique, jus based on he geomeric meaning of his IVP: If we plo he soluion curve [((),()] in he plane, i passes hrough [,0] a =0, and hen moves so ha is angen vecor [ (), ()] agrees wih he DE vecor field a he poin [(),()], namel wih [,.0.2]. So if we creae a picure of he vecor field we can visualize where he soluion rajecor mus sar and hen go: resar:wih(deools):wih(plos):wih(linearalgebra): fieldplo([,.0*.2*],=..,=...); 0 We can use Euler s mehod o ge an approimae numerical soluion! In oher words, approimae using he angen line approimaion, and for he angen vecor use wha he differenial equaion sas i is (hose equals signs are reall approimae equals signs): = d d =.0 0.2.

Wih he specified iniial condiions we sar a he poin [,0], and hen follow he angen field around a curve which looks a lo like a spiral. If we wan o ge a numerical approimaion, we can jus ranspose Euler (or improved Euler or Runge Kua) for firs order equaions o firs order ssems... all he original jusificaions make jus as much sense in vecor form!!! (Or we can use one of Maple s numerical packages.) f:=(,,) >: f2:=(,,) >.0*.2*: #our righ hand side F(X,)=[f(X,),f2(X,)] #in our firs order ssem of DE s dx/ = F(,X). n:=00: #number of ime seps 0:=0: #iniial ime n:=evalf(2*pi): #final ime choice h:=(n 0)/n: #ime sep s:=vecor(n+): s:=vecor(n+): #vecors o hold Euler approimaes s[]:=: s[]:=0: #iniial condiions Euler loop #Euler loop: for i from o n do X:=s[i]: Y:=s[i]: :=0+(i )*h: k:=f(x,y,): k2:=f2(x,y,): #k and k2 are veloci componens s[i+]:=x+h*k: s[i+]:=y+h*k2: #updae s and s wih Euler! od:

angefield:=fieldplo([,.0*.2*],=...0,=...): alpha:=arcan(.): C:=/cos(alpha): Eulerappro:=poinplo({seq([s[i],s[i]],i=..n+)}): eacsol:=plo([c*ep(.*s)*cos(s alpha), C*ep(.*s)*(.*cos(s alpha) sin(s alpha)), s=0..2*pi],color=black): #This is he acual #soluion o he IVP displa({angefield,eulerappro,eacsol},ile="go wih he flow"); go wih he flow 0 An firs order ssem is analogous o he above eample, and ha s wh we epec eisence and uniqueness in general. As wih firs order DE s, we ll ge beer approimae soluions using more sophisicaed algorihms, like improved Euler and Runge Kua. For eample, here s some improved Euler code, firs for he firs order scalar ODE, hen convered o he ssem above. Original improved Euler loop, solen from he file numerical.mw, in our class lecures direcor. for i from o n do k:=f(,): #lef hand slope k2:=f(+h,+h*k): #approimaion o righ hand slope k:= (k+k2)/2: #approimaion o average slope := +h*k: #improved Euler updae := +h: #updae prin(,,ep()); od: We now vecorize everhing, and sore he [,] values in a vecor so we can make a picure like we did for unimproved Euler. (Before eecuing he code one he ne page I re enered all he iniializaion definiions from he previous page.)

Improved Euler loop for firs order ssem of wo differenial equaions: #Improved Euler loop: for i from o n do X:=s[i]: Y:=s[i]: :=0+(i )*h: k:=f(x,y,): k2:=f2(x,y,): #k and k2 are lef hand angen esimaes k2:=f(x+h*k,y+h*k2,): k22:=f2(x+h*k,y+h*k2,): #k2 and k22 are righ hand angen esimaes s[i+]:=x+h*(k+k2)/2: s[i+]:=y+h*(k2+k22)/2: #updae s and s wih improved Euler! od: angefield:=fieldplo([,.0*.2*],=...0,=...): alpha:=arcan(.): C:=/cos(alpha): Eulerappro:=poinplo({seq([s[i],s[i]],i=..n+)}): eacsol:=plo([c*ep(.*s)*cos(s alpha), C*ep(.*s)*(.*cos(s alpha) sin(s alpha)), s=0..2*pi],color=black): #This is he acual #soluion o he IVP, more complicaed han #he formula in eserda s noes, bu correc #for his IVP, I hope. displa({angefield,eulerappro,eacsol},ile="go wih he flow beer wih Improved Euler"); go wih he flow beer wih Improved Euler 0

Remarks: () An single nh order differenial equaion is equivalen o a relaed firs order ssem of n firs order differenial equaions, as we ve been discussing. You ge his ssem in he same wa as we did in he worked ou eample. Then he eisence and uniqueness heorem for firs order ssems, which makes clear geomeric sense, implies he eisence and uniqueness heorem ha we quoed a monh ago for nh order (linear) differenial equaions (which wasn as inuiivel believable). (2) If ou wan o solve an nh order differenial equaion numericall ou firs conver i o a firs order ssem, and hen use Euler or Runge Kua, o solve i! (Or ou use a package ha does somehing like ha while ou aren looking.) Oher nea eamples: The picures we drew above are called "phase porrais", like he d phase diagrams we drew for auonomous single firs order equaions in chaper 2. (To ge picures analgous o he 2 d (,) slope field picures ou would need o inroduce a "" ais, so ou d be drawing a 3 d (,,) skech.) If ou remember ha for he mechanical eamples he verical direcion corresponds o veloci and he horizonal direcion corresponds o posiion, hen he phase porrai is a beauiful wa o ehibi posiion and veloci simulaneousl (alhough ime is no eplicil shown). Here are some oher mechanical ssems convered ino firs order ssems: Undamped harmonic oscillaor: Le m=k= and c=0 in he mass spring differenial equaion. Thus, for displacemen (), d 2 2 = 0. Convering his o a firs order ssem as before, i.e. inroducing he funcion () as a pro for (), ields d d Can ou eplain he picure on he ne page? Can ou eplain wh he soluions curves [(),()] raverse circles, direcl from he DE? How is his relaed o he oal energ (KE+PE) of he oscillaor being consan? =

resar: wih(plos): plo:=fieldplo([, ],=.5...5,=.5...5): plo2:=plo({[cos(), sin(),=0..2*pi], [.5*cos(),.5*sin(),=0..2*Pi]},color=black): displa({plo,plo2},ile= undamped harmonic oscillaor ); undamped harmonic oscillaor.5.5 0.5 Nonlinear pendulum: Recall ha (for g=l) he non linear pendulum equaion was d 2.5 L 2 g sin = 0 and ha we derived his equaion b seing he derivaive of he oal energ equal o zero, where his sum of kineic and poenial energ was given b m L 2 2 d E = m g L cos. 2 If we ake L=g, and wrie = = d we ge he equivalen firs order ssem d d = sin.

Wha are he equilibrium soluions of his auonomous ssem? Which ones do ou hink are "sable"? Inerpre his picure: velocfield:=fieldplo([, sin()],= 7..7,= 4..4): pendeqn:={diff((),)=(),diff((),)= sin(()), (0)=0,(0)=}: raj:=odeplo(dsolve(pendeqn,[(),()], pe=numeric),[(),()],0..3, numpoins=25,color=black): pendeqn2:={diff((),)=(),diff((),)= sin(()), (0)= 3.,(0)=0}: raj2:=odeplo(dsolve(pendeqn2,[(),()],pe=numeric), [(),()],0..3,numpoins=25,color=black): pendeqn3:={diff((),)=(),diff((),)= sin(()), (0)= 3.,(0)=}: raj3:=odeplo(dsolve(pendeqn3,[(),()], pe=numeric),[(),()], 0..3,numpoins=25,color=black): displa({velocfield,raj,raj2,raj3}, ile="nonlinear pendulum moion"); nonlinear pendulum moion 4 3 2 6 4 2 0 2 4 6 2 3 4 Noice ha if ou magnif he picure near he origin, i sars looking like he undamped harmonic oscillaor of he previous eample. If we added appropriae damping o our pendulum model, hen he magnified picure near he origin could conceivabl look like our original eample of he damped harmonic oscillaor. These are geomeric illusraions of he idea of linearizaion! (You could also linearize near he unsable equilibria.)