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

Differential Equations

Fourth Order RK-Method

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

Numerical Methods - Initial Value Problems for ODEs

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

Section 7.4 Runge-Kutta Methods

ODE Runge-Kutta methods

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

Ordinary Differential Equations. Monday, October 10, 11

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

Lecture IV: Time Discretization

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

Scientific Computing: An Introductory Survey

SME 3023 Applied Numerical Methods

Numerical Differential Equations: IVP

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 20

NUMERICAL SOLUTION OF ODE IVPs. Overview

Ordinary Differential Equations (ODEs)

Ordinary Differential Equations II

Integration of Ordinary Differential Equations

Ordinary Differential Equations II

Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS

Euler s Method, cont d

SKMM 3023 Applied Numerical Methods

Numerical Methods for the Solution of Differential Equations

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

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

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

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

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

Solving Ordinary Differential Equations

Lecture V: The game-engine loop & Time Integration

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

Applied Math for Engineers

Initial value problems for ordinary differential equations

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

Multistep Methods for IVPs. t 0 < t < T

MTH 452/552 Homework 3

Numerical methods for solving ODEs

Consistency and Convergence

Ordinary Differential Equations (ODE)

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

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

Lecture Notes on Numerical Differential Equations: IVP

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

Ordinary Differential Equations (ode)

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

Solving scalar IVP s : Runge-Kutta Methods

Initial Value Problems for. Ordinary Differential Equations

ACCELERATION OF RUNGE-KUTTA INTEGRATION SCHEMES

Ordinary differential equation II

Numerical solution of ODEs

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

A Brief Introduction to Numerical Methods for Differential Equations

13 Numerical Solution of ODE s

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

Ordinary differential equations - Initial value problems

1 Error Analysis for Solving IVP

Numerical Integration of Ordinary Differential Equations for Initial Value Problems

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

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

Variable Step Size Differential Equation Solvers

Introduction to the Numerical Solution of IVP for ODE

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

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

Astrodynamics (AERO0024)

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

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

Maths III - Numerical Methods

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.

Math 128A Spring 2003 Week 12 Solutions

ORDINARY DIFFERENTIAL EQUATIONS EULER S METHOD

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

Physics 584 Computational Methods

Solving ODEs Euler Method & RK2/4

Ordinary Differential Equations

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1

16.1 Runge-Kutta Method

Unit I (Testing of Hypothesis)

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

Ordinary Differential Equations

Solving Ordinary Differential equations

Introduction to standard and non-standard Numerical Methods

Ordinary Differential Equations (ODEs)

Numerical Solution of ODE IVPs

CS520: numerical ODEs (Ch.2)

Initial value problems for ordinary differential equations

Chapter 6 - Ordinary Differential Equations

8.1 Introduction. Consider the initial value problem (IVP):

10 Numerical Solutions of PDEs

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

Mini project ODE, TANA22

General Linear Least-Squares and Nonlinear Regression

Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008

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

Ordinary Differential Equations Methods described here are for solving differential equations of the form: dy f dt t, y The methods in this chapter are all one-step methods and have the general format: 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 f t i, y i dt ti and the Euler method uses that estimate as the increment function: ft i, y i f 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 il 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 ft 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 ft i p n1 h, y i q n1,1 k 1 h q n1,2 k 2 h q n1,n1 k n1 h where the p s and q s are constants.

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

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

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