Ordinary Differential Equations (ODEs) Background. Video 17

Similar documents
Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

Course roadmap. ME451: Control Systems. Example of Laplace transform. Lecture 2 Laplace transform. Laplace transform

Computational Project 5

Initial value problems for ordinary differential equations

Solving systems of ODEs with Matlab

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Spring Department of Mathematics

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Fall Department of Mathematics

Section 8.0 Introduction to Boundary Value Problems. How do initial value problems (IVPs) and boundary value problems (BVPs) differ?

Predicting the future with Newton s Second Law

Physics 584 Computational Methods

Calculus of Variations Summer Term 2015

The integrating factor method (Sect. 1.1)

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of

Differentiation of Parametric Space Curves. Goals: Velocity in parametric curves Acceleration in parametric curves

Volumes of Solids of Revolution Lecture #6 a

Lecture 5. Dynamics. Forces: Newton s First and Second

ACM/CMS 107 Linear Analysis & Applications Fall 2016 Assignment 4: Linear ODEs and Control Theory Due: 5th December 2016

Chapter 3: Second Order ODE 3.8 Elements of Particle Dy

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

There seems to be three different groups of students: A group around 6 A group around 12 A group around 16

Lecture 6, September 1, 2017

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

34.3. Resisted Motion. Introduction. Prerequisites. Learning Outcomes

Differential Equation (DE): An equation relating an unknown function and one or more of its derivatives.

MA 102 Mathematics II Lecture Feb, 2015

Matlab Course. Anna Kristine Wåhlin. Department of Geophysics, University of Oslo. January Matlab Course p.1/??

Physics 202 Laboratory 3. Root-Finding 1. Laboratory 3. Physics 202 Laboratory

Calculus of Variations Summer Term 2016

Computational Neuroscience. Session 1-2

MATH 100 Introduction to the Profession

Lecture 9. Systems of Two First Order Linear ODEs

Second In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 31 March 2011

System Simulation using Matlab

OPTIMAL CONTROL. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 28

1.1 Differential Equation Models. Jiwen He

Practice Midterm Exam 1. Instructions. You have 60 minutes. No calculators allowed. Show all your work in order to receive full credit.

AH Mechanics Checklist (Unit 1) AH Mechanics Checklist (Unit 1) Rectilinear Motion

Separable Differential Equations

Lecture 8: Ordinary Differential Equations

Physics 6010, Fall Relevant Sections in Text: Introduction

Announcements Wednesday, September 27

Projectile Motion: Vectors

q = tan -1 (R y /R x )

2-D Kinematics. In general, we have the following 8 equations (4 per dimension): Notes Page 1 of 7

Coordinate systems and vectors in three spatial dimensions

Chapter 1: Introduction

Dealing with Rotating Coordinate Systems Physics 321. (Eq.1)

TRACKING AND DISTURBANCE REJECTION

Chap. 3 MATH Annalisa Quaini Office : PGH 662 Lecture : MWF 11AM-12PM Office hours : W 8AM-10AM

(A) Opening Problem Newton s Law of Cooling

DIFFERENTIAL EQUATIONS

Motion Along a Straight Line (Motion in One-Dimension)

4.9 Anti-derivatives. Definition. An anti-derivative of a function f is a function F such that F (x) = f (x) for all x.

P - f = m a x. Now, if the box is already moving, for the frictional force, we use

20.6. Transfer Functions. Introduction. Prerequisites. Learning Outcomes

Modeling and Experimentation: Compound Pendulum

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Ordinary Differential Equations

Ordinary Differential Equations (ODE)

Things going in circles

Donald Fussell. October 28, Computer Science Department The University of Texas at Austin. Point Masses and Force Fields.

Chapter 13 Lecture. Essential University Physics Richard Wolfson 2 nd Edition. Oscillatory Motion Pearson Education, Inc.

HOMEWORK 3 MA1132: ADVANCED CALCULUS, HILARY 2017

These notes are based mostly on [3]. They also rely on [2] and [1], though to a lesser extent.

MATH 333: Partial Differential Equations

Write these equations in your notes if they re not already there. You will want them for Exam 1 & the Final.

Math 322. Spring 2015 Review Problems for Midterm 2

This chapter covers all kinds of problems having to do with work in physics terms. Work

Chapter 9. Linear momentum and collisions. PHY 1124 Fundaments of Physics for Engineers. Michael Wong PHY1124 Winter uottawa.

An Introduction to Differential Equations

Chapter 9 - Polarization

Physics 225 Relativity and Math Applications. Fall Unit 7 The 4-vectors of Dynamics

Path integrals in quantum mechanics

Ordinary Differential Equations I

Chapter1. Ordinary Differential Equations

Section 1.8/1.9. Linear Transformations

Solutions to Homework 1, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y(x) = ce 2x + e x

2. Two Dimensional Kinematics

Solving Differential Equations: First Steps

Chapter 3 Acceleration

Example force problems

MATH 308 Differential Equations

POLE PLACEMENT. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 19

Physics H7A, Fall 2011 Homework 4 Solutions

The Cross Product. In this section, we will learn about: Cross products of vectors and their applications.

PHY321 Homework Set 2

MA Ordinary Differential Equations

First-Order Differential Equations

Notes on numerical solution of differential equations

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

First Order ODEs (cont). Modeling with First Order ODEs

Second Order Linear Equations

Vectors and Coordinate Systems

Laplace Transforms Chapter 3

The Big Picture. Discuss Examples of unpredictability. Odds, Stanisław Lem, The New Yorker (1974) Chaos, Scientific American (1986)

c 1 = y 0, c 2 = 1 2 y 1. Therefore the solution to the general initial-value problem is y(t) = y 0 cos(2t)+y sin(2t).

ES 111 Mathematical Methods in the Earth Sciences Lecture Outline 15 - Tues 20th Nov 2018 First and Higher Order Differential Equations

Physics 351 Monday, February 26, 2018

Old Dominion University Momentum and Collisions

Bayesian Inference and the Symbolic Dynamics of Deterministic Chaos. Christopher C. Strelioff 1,2 Dr. James P. Crutchfield 2

Transcription:

Ordinary Differential Equations (ODEs) Background Video 17 Daniel J. Bodony Department of Aerospace Engineering University of Illinois at Urbana-Champaign

In this video you will learn... 1 What ODEs are 2 Matlab and ODEs: first order form D. J. Bodony (UIUC) AE199 IAC Video 17 2 / 9

What ODEs Are Let s introduce ODEs by way of a familiar example: a ballistic trajectory. Consider this picture of a sphere of mass m leaving a planar surface with initial speed v 0 and an angle θ 0 from the x-axis: How do you find the trajectory? You apply Newton s 2nd Law F = m a on the sphere to get ma x = 0 ma y = mg. D. J. Bodony (UIUC) AE199 IAC Video 17 3 / 9

What ODEs Are From the definition of acceleration we know that the velocity v and acceleration are related via d v dt = a and the position x(t) of the sphere is also given by Putting all of these together yields d x dt = v. m d2 x dt 2 = 0 m d2 y dt 2 = mg. D. J. Bodony (UIUC) AE199 IAC Video 17 4 / 9

What ODEs Are Assuming g is a constant, we can integrate these two equations to get x(t) = x 0 + v 0 t cos θ 0 y(t) = y 0 + v 0 t sin θ 0 gt2 2 for the trajectory x(t) = (x(t), y(t)) of the sphere. D. J. Bodony (UIUC) AE199 IAC Video 17 5 / 9

What ODEs Are Assuming g is a constant, we can integrate these two equations to get x(t) = x 0 + v 0 t cos θ 0 y(t) = y 0 + v 0 t sin θ 0 gt2 2 for the trajectory x(t) = (x(t), y(t)) of the sphere. So what? Well, go back to the equations m d2 x dt 2 = 0 m d2 y dt 2 = mg from the previous slide. Notice they are of the form {some derivative of at least one function} = {another function} This is precisely what we mean by an ordinary differential equation. D. J. Bodony (UIUC) AE199 IAC Video 17 5 / 9

What ODEs Are Going back to Newton s 2nd Law, we are free to write it as (for a constant mass m) d 2 x dt 2 = F m as an ODE for the trajectory x(t) as a function of the applied forces F and mass m. D. J. Bodony (UIUC) AE199 IAC Video 17 6 / 9

What ODEs Are Going back to Newton s 2nd Law, we are free to write it as (for a constant mass m) d 2 x dt 2 = F m as an ODE for the trajectory x(t) as a function of the applied forces F and mass m. When we found the solution for the trajectory of the sphere of mass m, we used two other ODEs d v dt = a d x dt = v. So, in reality, you already know a lot about ODEs. D. J. Bodony (UIUC) AE199 IAC Video 17 6 / 9

Matlab and ODEs: first order form Matlab has several functions that integrate ODEs for you, even the ones you can t do by hand. There s a catch, though: you have to write the ODEs in first order form which means that the equations must look like this {first derivative of one function} = {another function}. In terms of our trajectory example this means the ODE must be written as instead of as d v dt = F m d x = v. }{{} dt first deriv. d 2 x F }{{} dt 2 = m. second deriv. D. J. Bodony (UIUC) AE199 IAC Video 17 7 / 9

Matlab and ODEs: first order form Matlab generically refers to the ODE as d y dt = y = f (t, y) where f is known as the right-hand-side function. 1 You ll learn much more about it in AE370. D. J. Bodony (UIUC) AE199 IAC Video 17 8 / 9

Matlab and ODEs: first order form Matlab generically refers to the ODE as d y dt = y = f (t, y) where f is known as the right-hand-side function. The most heavily used ODE integrator in Matlab is ode45. There is lots of details about what ode45 is, how it works, when it fails, etc.; however, the only you thing you need to know is how to use it. 1 1 You ll learn much more about it in AE370. D. J. Bodony (UIUC) AE199 IAC Video 17 8 / 9

Matlab and ODEs: first order form The ode45 function call looks like this: where [time, out] = ode45(@fun, tspan, ic); time out @fun tspan ic = column vector of time = matrix of the solution (more later on this) = function handle of f (t, y) = row vector of [t 0, t f ], the initial and final times = row vector of initial conditions D. J. Bodony (UIUC) AE199 IAC Video 17 9 / 9

Matlab and ODEs: first order form The ode45 function call looks like this: where [time, out] = ode45(@fun, tspan, ic); time out @fun tspan ic = column vector of time = matrix of the solution (more later on this) = function handle of f (t, y) = row vector of [t 0, t f ], the initial and final times = row vector of initial conditions In the next video we ll do some examples. D. J. Bodony (UIUC) AE199 IAC Video 17 9 / 9