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

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

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

Chap. 20: Initial-Value Problems

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

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

9.6 Predictor-Corrector Methods

Fourth Order RK-Method

Differential Equations

Numerical Methods - Initial Value Problems for ODEs

Section 7.4 Runge-Kutta Methods

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Ordinary Differential Equations. Monday, October 10, 11

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

Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS

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

SME 3023 Applied Numerical Methods

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 20

ODE Runge-Kutta methods

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

Numerical Differential Equations: IVP

The family of Runge Kutta methods with two intermediate evaluations is defined by

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Scientific Computing: An Introductory Survey

Integration of Ordinary Differential Equations

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

SKMM 3023 Applied Numerical Methods

Lecture IV: Time Discretization

Solving Ordinary Differential Equations

Solving Zhou Chaotic System Using Fourth-Order Runge-Kutta Method

NUMERICAL SOLUTION OF ODE IVPs. Overview

Multistep Methods for IVPs. t 0 < t < T

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 1. Runge-Kutta Methods

Ordinary Differential Equations II

Ordinary Differential Equations (ODEs)

Ordinary Differential Equations II

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

Euler s Method, cont d

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

Numerical Methods for the Solution of Differential Equations

Do not turn over until you are told to do so by the Invigilator.

Initial value problems for ordinary differential equations

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

Consistency and Convergence

Numerical solution of ODEs

Ordinary Differential Equations (ODE)

What we ll do: Lecture 21. Ordinary Differential Equations (ODEs) Differential Equations. Ordinary Differential Equations

Lecture V: The game-engine loop & Time Integration

Ordinary Differential Equations (ode)

Initial Value Problems for. Ordinary Differential Equations

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Applied Math for Engineers

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25.

Chapter 6 - Ordinary Differential Equations

Solving Ordinary Differential equations

Variable Step Size Differential Equation Solvers

ACCELERATION OF RUNGE-KUTTA INTEGRATION SCHEMES

551614:Advanced Mathematics for Mechatronics. Numerical solution for ODEs School of Mechanical Engineering

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP):

Lecture Notes on Numerical Differential Equations: IVP

MTH 452/552 Homework 3

Numerical methods for solving ODEs

General Linear Least-Squares and Nonlinear Regression

A Brief Introduction to Numerical Methods for Differential Equations

Do not turn over until you are told to do so by the Invigilator.

Introduction to the Numerical Solution of IVP for ODE

Numerical Integration of Ordinary Differential Equations for Initial Value Problems

Introduction to standard and non-standard Numerical Methods

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

Ordinary differential equations - Initial value problems

Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras

Solving scalar IVP s : Runge-Kutta Methods

Ordinary Differential Equations

Math 128A Spring 2003 Week 12 Solutions

Astrodynamics (AERO0024)

10 Numerical Solutions of PDEs

Solving ODEs Euler Method & RK2/4

CS520: numerical ODEs (Ch.2)

Ordinary differential equation II

Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras

Runge-Kutta methods. With orders of Taylor methods yet without derivatives of f (t, y(t))

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

13 Numerical Solution of ODE s

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Mini project ODE, TANA22

Physics 584 Computational Methods

1 Error Analysis for Solving IVP

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

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

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

Math Numerical Analysis Homework #4 Due End of term. y = 2y t 3y2 t 3, 1 t 2, y(1) = 1. n=(b-a)/h+1; % the number of steps we need to take

Ordinary Differential Equations

Initial Value Problems

Ordinary Differential Equations (ODEs)

Opleiding Wiskunde & Informatica

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods

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

Maths III - Numerical Methods

Initial value problems for ordinary differential equations

Numerical Solution of ODE IVPs

Transcription:

Part 6 Chapter 20 Initial-Value Problems PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Chapter Objectives Understanding the meaning of local and global truncation errors and their relationship to step size for one-step methods for solving ODEs. Knowing how to implement the following Runge-Kutta (RK) methods for a single ODE: Euler Heun Midpoint Fourth-Order RK Knowing how to iterate the corrector of Heun s method. Knowing how to implement the following Runge-Kutta methods for systems of ODEs: Euler Fourth-order RK

Definitions Ordinary Differential Equation (ODE): The dependent variable is a function of only one independent variable. Partial Differential Equation (PDE): The dependent variable is a function of more than one independent variable. The order of a differential equation is the highest derivative in the expression. A differential equation is linear if the unknown function and its derivatives appear to the power one without products, and nonlinear otherwise.

Ordinary Differential Equations Methods described here are for solving differential equations of the form: The methods in this chapter are all one-step methods and have the general format: dy dt f t, y where is called an increment function, and is used to extrapolate from an old value y i to a new value y i+1. y i1 y i h

Euler s Method The first derivative provides a direct estimate of the slope at t i : dy dt ti f t i, y i and the Euler method uses that estimate as the increment function: ft i, y i y i1 y i f t i, y i h

Error Analysis for Euler s Method The numerical solution of ODEs involves two types of error: Truncation errors, caused by the nature of the techniques employed Roundoff errors, caused by the limited numbers of significant digits that can be retained The total, or global truncation error can be further split into: local truncation error that results from an application method in question over a single step, and propagated truncation error that results from the approximations produced during previous steps.

Error Analysis for Euler s Method The local truncation error for Euler s method is O(h 2 ) and proportional to the derivative of f(t,y) while the global truncation error is O(h). This means: The global error can be reduced by decreasing the step size, and Euler s method will provide error-free predictions if the underlying function is linear. Euler s method is conditionally stable, depending on the size of h.

MATLAB Code for Euler s Method

Heun s Method One method to improve Euler s method is to determine derivatives at the beginning and predicted ending of the interval and average them: This process relies on making a prediction of the new value of y, then correcting it based on the slope calculated at that new value. This predictor-corrector approach can be iterated to convergence:

Midpoint Method Another improvement to Euler s method is similar to Heun s method, but predicts the slope at the midpoint of an interval rather than at the end: This method has a local truncation error of O(h 3 ) and global error of O(h 2 )

Runge-Kutta Methods Runge-Kutta (RK) methods achieve the accuracy of a Taylor series approach without requiring the calculation of higher derivatives. For RK methods, the increment function can be generally written as: a 1 k 1 a 2 k 2 a n k n where the a s are constants and the k s are k 1 f t i, y i k 2 f t i p 1 h, y i q 11 k 1 h k 3 f t i p 2 h, y i q 21 k 1 h q 22 k 2 h k n f t i p n1 h, y i q n1,1 k 1 h q n1,2 k 2 h where the p s and q s are constants. q n1,n1 k n1 h

Classical Fourth-Order Runge- Kutta Method The most popular RK methods are fourthorder, and the most commonly used form is: where:, k1 f ti yi 1 1 k f ti h, yi hk 2 2 2 1 1 1 k f t h, y hk 2 2 k f t h, y hk 3 i i 2 4 i i 3 y i1 y i 1 6 k 2k 2k k 1 2 3 4 h

Systems of Equations Many practical problems require the solution of a system of equations: dy 1 dt f 1t, y 1, y 2, dy 2 f 2 t, y 1, y 2, dt, y n, y n dy n dt f n t, y 1, y 2, The solution of such a system requires that n initial conditions be known at the starting value of t., y n

Solution Methods Single-equation methods can be used to solve systems of ODE s as well; for example, Euler s method can be used on systems of equations - the one-step method is applied for every equation at each step before proceeding to the next step. Fourth-order Runge-Kutta methods can also be used, but care must be taken in calculating the k s.

MATLAB RK4 Code