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

Similar documents
Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

CHAPTER 1 INTRODUCTION TO NUMERICAL METHOD

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

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

Ordinary Differential Equations (ODE)

Introduction to First Order Equations Sections

Multistage Rocket Performance Project Two

Solution. Your sketch should show both x and y axes marked from 5 to 5 and circles of radius 1, 3, and 5 centered at the origin.

Ordinary Differential Equations (ODEs) Background. Video 17

MA 102 Mathematics II Lecture Feb, 2015

Modeling and Experimentation: Compound Pendulum

Section , #5. Let Q be the amount of salt in oz in the tank. The scenario can be modeled by a differential equation.

Solutions of the Sample Problems for the First In-Class Exam Math 246, Fall 2017, Professor David Levermore

What are Numerical Methods? (1/3)

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations

Wednesday 9/27. Please open quizizz

XXIX Applications of Differential Equations

Physics 40 Chapter 7 Homework Solutions

Ordinary Differential Equations: Worked Examples with Solutions. Edray Herber Goins Talitha Michal Washington

Math Lecture 9

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

California State Science Fair

Solution. It is evaluating the definite integral r 1 + r 4 dr. where you can replace r by any other variable.

Differential Equations and the Parachute Problem

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Example of Aircraft Climb and Maneuvering Performance. Dr. Antonio A. Trani Professor

AP Physics Laboratory #6.1: Analyzing Terminal Velocity Using an Interesting Version of Atwood s Machine

Math 307 A - Spring 2015 Final Exam June 10, 2015

The Princeton Review AP Calculus BC Practice Test 2

Math Lecture 9

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #5

Thrust and Flight Modeling

Thrust and Flight Modeling

2.41 Velocity-Dependent Forces: Fluid Resistance and Terminal Velocity

Antiderivatives. Definition A function, F, is said to be an antiderivative of a function, f, on an interval, I, if. F x f x for all x I.

Ordinary Differential Equations

Physics 584 Computational Methods

Chapter 6 - Ordinary Differential Equations

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

Computational Project 5

Fall 2003 Math 308/ Numerical Methods 3.6, 3.7, 5.3 Runge-Kutta Methods Mon, 27/Oct c 2003, Art Belmonte

Ordinary Differential Equations II

Homework 3: Kinematics and Dynamics of Particles Due Friday Feb 15, 2019

EQUATIONS OF MOTION: RECTANGULAR COORDINATES

CEE 271: Applied Mechanics II, Dynamics Lecture 1: Ch.12, Sec.1-3h

ENGI 3424 First Order ODEs Page 1-01

Physics 430, Classical Mechanics Exam 1, 2010 Oct 05

MATH 18.01, FALL PROBLEM SET #5 SOLUTIONS (PART II)

Homework Assignment 4 Root Finding Algorithms The Maximum Velocity of a Car Due: Friday, February 19, 2010 at 12noon

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

Math 308 Exam I Practice Problems

Basic Ascent Performance Analyses

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

Chap. 20: Initial-Value Problems

Rocket Science 102 : Energy Analysis, Available vs Required

Advisors: Ihor Luhach, Mathematics and Statistics Scott Campbell, Chemical and Biomedical Engineering. Problem Suggested By: Scott Campbell

High-Power Rocketry. Calculating the motion of a rocket for purely vertical flight.

for what specific application did Henri Pitot develop the Pitot tube? what was the name of NACA s (now NASA) first research laboratory?

Boyce/DiPrima 10 th ed, Ch 1.1: Basic Mathematical Models; Direction Fields

Boyce/DiPrima/Meade 11 th ed, Ch 1.1: Basic Mathematical Models; Direction Fields

Gravity Turn Concept. Curvilinear Coordinate System Gravity Turn Manoeuvre concept Solutions for Constant Pitch Rate

(you don t need to derive the result just use the formula). 2 er [2 POINTS] 1.4 Using Newton s laws, show that r satisfies the differential equation

INTRODUCTION & RECTILINEAR KINEMATICS: CONTINUOUS MOTION

Forces and Motion in One Dimension

Ordinary Differential equations

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

FORTRAN 77 Lesson 7. Reese Haywood Ayan Paul

Lecture 17: Ordinary Differential Equation II. First Order (continued)

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

= π + sin π = π + 0 = π, so the object is moving at a speed of π feet per second after π seconds. (c) How far does it go in π seconds?

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. D) u = - x15 cos (x15) + C

Cruising Flight Envelope Robert Stengel, Aircraft Flight Dynamics, MAE 331, 2018

These will be no tutorials for Math on Tuesday April 26.

Ordinary Differential Equations II

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

It is convenient to think that solutions of differential equations consist of a family of functions (just like indefinite integrals ).

Lecture 42 Determining Internal Node Values

Math 266: Ordinary Differential Equations

Math 106 Answers to Exam 3a Fall 2015

Ballistic Atmospheric Entry (Part II)

MATH 100 Introduction to the Profession

Multiple Choice. Circle the best answer. No work needed. No partial credit available. is continuous.

Ordinary differential equation II

The Shooting Method for Boundary Value Problems

Chapter 1: Introduction

Math 104: l Hospital s rule, Differential Equations and Integration

Lecture 3: Kinematics of Particles

Quiz Number 3 PHYSICS March 11, 2009

Dynamics Applying Newton s Laws The Drag Equation

MTH_256: Differential Equations Examination II Part 1 of 2 Technology Allowed Examination. Student Name:

Ordinary differential equations. Phys 420/580 Lecture 8

MA 125 CALCULUS I SPRING 2007 April 27, 2007 FINAL EXAM. Name (Print last name first):... Student ID Number (last four digits):...

Ordinary Differential Equations. Monday, October 10, 11

Section 6.5 Impulse Functions

Mathematical Methods - Lecture 7

2016 FAMAT Convention Mu Integration 1 = 80 0 = 80. dx 1 + x 2 = arctan x] k2

NEWTON S LAWS OF MOTION. Chapter 2: pages Review questions 1, 5-10, 14, 17, 21-24, 30

The E80 Wind Tunnel Experiment the experience will blow you away. by Professor Duron Spring 2012

Transcription:

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

Acceleration Initial-Value Problems Consider a skydiver falling from an airplane. A Free-Body Diagram of the skydiver is shown: Aero Drag Newton s First Law is given by: F = ma mg F D = m dv dt Substitute an expression for the Aerodynamic Drag Force: mg 1 2 ρv2 AC D = m dv dt Weight

Acceleration Initial-Value Problems mg 1 2 ρv2 AC D = m dv dt Aero Drag This is a First-Order Ordinary Differential Equation. In particular, it is called an Initial-Value Problem, because it is solved by knowing an Initial Value of the Dependent Variable. For instance, we can assume that the Downward Velocity of the skydiver was initially zero: Weight v = 0 at t = 0

Euler Method mg 1 2 ρv2 AC D = m dv dt ; v = 0 at t = 0 This Initial-Value Problem can be solved for the skydiver s velocity as a function of time by using the Euler Method, which starts with the Definition of the Derivative. The derivative of the velocity is: dv dt = lim v t + t v(t) t 0 t The derivative of the velocity can be approximated by allowing t be a small (but finite) value: dv v t + t v(t) dt t

Euler Method dv dt = 1 m mg 1 2 ρv2 AC D v t + t v(t) t = 1 m mg 1 2 ρv2 AC D v t + t = v t + t m mg 1 2 ρ v t 2 AC D Knowing the Initial Condition for the velocity, the skydiver s velocity can now be found by Marching Forward in Time.

Euler Method v t + t = v t + t m mg 1 2 ρ v t 2 AC D This equation can be cast into a form appropriate for solution using MATLAB. The new velocity at time t + t is: v k+1 = v k + t m mg 1 2 ρ v k 2 AC D The new position at time t + t is found by integrating the velocity: x k+1 = x k + t 2 v k + v k+1 The new time is found by incrementing by time step t: t k+1 = t k + t

Euler Method Let t = 0.1 sec, C D = 0.8, A = 0.4 m 2, ρ = 1.225 kg/m 3, m = 82 kg, g = 9.81 m/s 2 Initial Velocity: v t = 0 = 0 or v k = 1 = 0 Initial Position: x t = 0 = 0 or x k = 1 = 0 v k+1 = v k + t m v 2 = (0) + (0.1) (82) = 0.981 m/s x(2) = 0 + 0.1 2 mg 1 2 ρ v k 2 AC D (82)(9.81) 1 2 (1.225) 0 2 (0.4)(0.8) 0) + (0.981 = 0.04905 m t 2 = 0 + 0.1 = 0.1 sec

Euler Method

Euler Method

Euler Method

Time-Step Independence The solution of the differential equation for the skydiver is dependent on the chosen time step t. As the time step size decreases, the solution curves begin to overlap. This is called Time-Step Independence. Conversely, if t becomes too large, the solution can become unstable, as shown for t = 5.0 seconds.

MATLAB ODE Solvers The Euler Method uses a fixed time step size that we specify and control. MATLAB has built-in ODE solvers that use variable step sizes. This speeds up the solution time. However, you no longer have control of the time step size. ode45: ode15s: Combination of 4 th - and 5 th -order Runge- Kutta methods. Used when ode45 has difficulty. Basic syntax: [t, y] = ode45(@ydot,tspan,y0)

MATLAB ODE Solvers [t, y] = ode45(@ydot,tspan,y0) @ydot: Handle of function file that describes ODE equation. tspan: Starting and ending values of time t [t0,tfinal] y0: Initial value of y(0) Use MATLAB to compute and plot the solution of the following equation: 10 dy dt + y = 20 + 7 sin 2t y 0 = 15

MATLAB ODE Solvers 10 dy dt + y = 20 + 7 sin 2t y 0 = 15 y = 1 10 Function File: 20 y + 10 + 7 sin 2t = 0.1y + 2 + 0.7sin(2t) 10

Script File: use ode45 MATLAB ODE Solvers y = 0.1y + 2 + 0.7 sin 2t y 0 = 15

MATLAB ODE Solvers y = 0.1y + 2 + 0.7 sin 2t y 0 = 15 ode45 does not resolve the solution well: Note the sharp peaks. Use ode15 to improve resolution.

Script File: Use ode15s MATLAB ODE Solvers y = 0.1y + 2 + 0.7 sin 2t y 0 = 15

MATLAB ODE Solvers y = 0.1y + 2 + 0.7 sin 2t y 0 = 15

Problem 9.22: Using the Euler Method, find the solution of the equation 6 y + y = f(t) if f t = 0 for t < 0 and f t = 15 for t 0. The initial condition is y 0 = 7. The Exact Solution is obtained by using the Integrating Factor Method: y t = 7e t/6 + 15 1 e t/6 Plot the Exact Solution and the Euler Method Solution on the same graph to prove that your solution is Time-Step Independent.

Problem 9.22:

Problem 9.25: The equation of motion of a rocket-propelled sled is, from Newton s Law, m v = f cv where m = 1000 kg is the sled mass, f = 75,000 N for t > 0 is the rocket thrust, and c = 500 N-s/m is an air resistance coefficient. Suppose that the initial velocity is v 0 = 0. Using the Euler Method, determine the speed of the sled until t = 10 seconds. Plot the sled velocity versus time, and show that the solution is independent of time step size.

Problem 9.25: