Numerical Methods for Ordinary Differential Equations

Size: px
Start display at page:

Download "Numerical Methods for Ordinary Differential Equations"

Transcription

1 CHAPTER 1 Numerical Methods for Ordinary Differential Equations In this chapter we discuss numerical method for ODE. We will discuss the two basic methods, Euler s Method and Runge-Kutta Method. 1. Numerical Algorithm and Programming in Mathcad 1.1. Numerical Algorithm. If you look at dictionary, you will the following definition for algorithm, 1. a set of rules for solving a problem in a finite number of steps; 2. a sequence of steps designed for programming a computer to solve a specific problem. A numerical algorithm is a set of rules for solving a problem in finite number of steps that can be easily implemented in computer using any programming language. The following is an algorithm for compute the root of f(x) = 0, Input f, a, N and tol. Output: the approximate solution to f(x) = 0 with initial guess a or failure message. Step One: Set x = a Step Two: For i=0 to N do Step Three - Four Step Three: Compute x = x f(x) f (x) Step Four: If f(x) tol return x Step Five return failure. In analogy, a numerical algorithm is like a cook recipe that specify the input cooking material, the output the cooking product, and steps of carrying computation cooking steps. In an algorithm, you will see loops (for, while), decision making statements(if, then, else(otherwise)) and return statements. for loop: Typically used when specific number of steps need to be carried out. You can break a for loop with return or break statement. 1

2 2 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS while loop: Typically used when unknown number of steps need to be carried out. You can break a while loop with a break statement or a return statement. if else(otherwise): Used when condition(s) must meet before carrying out some steps. The else(otherwise) provide alternative steps if any Programming in Mathcad. To translate a numerical algorithm into a program in Mathcad, you need to define a function name with function arguments and function body. The function name can be any sequence of alphabetic letter begin with an English letter, such any myfunction, Myfunction1 etc. The function arguments specify the input to the function, typically the items specified in the input statement of an algorithm and is an comma(,) separated list enclose by () after function name, such as myfunction(f, a, N, tol), myone(a,b). Notice the function argument is optional, you can define a function with out argument as myfunction(). The function body implements the step section of an algorithm and the output statement. In Mathcad the function body is on the right side of := with vertical bars as grouping symbol. The entire function body is considered as a group, inside, it might has many subgroups. For the algorithm of finding f(x) = 0, there is an subgroup that contains step three and four, as shown in the following screen shot, the screen shot also shows how to get the programming toolbar from the math toolbar. Figure 1. mysolver and Programming toolbar

3 1. NUMERICAL ALGORITHM AND PROGRAMMING IN Mathcad 3 To enter code in Mathcad, (1) First enter the function name with arguments list and assignment operator :=, with sequence of typing, mysolver(f,a,n,tol): (2) Click the Add Line button or press ] to get a vertical bar and two (you should add more by press ] several times). (3) enter x and hold [Shift] type ] to get the local assignment or click on the programming toolbar, at the type a. Notice x a reads as assign a to x. (4) Click for on the programming menu or [Shift][Ctrl][ ] to get for in after for enter i, in after, enter 1;N, and in under for, press left bracket ] to get a vertical line and several. (5) To get if operator, you need either click on the toolbar or press [Shift][Ctrl][ ] ]. you will get if enter condition in after if and other statements in before if. (6) To get return operator, you need either click on the toolbar or press [Shift][Ctrl][ ], you get return in type any information you want to return. After defining a function, we call it with concrete input data, as shown in the screen shot, that call the mysolver function to find zero for both f(x) = x 2 1, with initial guess x = 2 and g(t) = t 3 3t 2 2t, with initial guess t = 2. Notice there is two ways to call a function, one way is to define all arguments before calling the function, another is to define some arguments and call the function with concrete values for the undefined arguments. As in all programming language, Mathcad allows you to call one function from within another. For example, we could create a function called myderivative which will compute derivative of a given function f(x) at a given number x and step size h > 0 using the forward difference formula: f (s) f(x+h) f(x). The following screen shot shows h the call of myderivative inside mysolver, Figure 2. Call another function

4 4 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS The algorithm for this function is very simple (here, we break down the computation in three steps), Input f, x, and h. Output: the approximation to f (x). Step One: Set w = f(x + h) Step Two: Set d = f(x) Step Three: return w d h 2. Euler s Method 2.1. Euler s Method. Euler s method is the simplest method in find approximate solutions to first order equations. From the forward difference formula f f(x + h) f(x) (x), h we have (1) f(x + h) f(x) + f (x)h Now if x (t) = f(t, x) is a first order differential equations, apply (1), we have x(t + h) x(t) + f(t, x(t))h. Suppose we want to find approximate solution over interval [a, b] with initial value x(a) = x 0, we divided the interval into n subintervals each with length h = b a, the ends of the subintervals is t n 0 = a, t 1 = a + h, t 2 = a + 2h,, t n = a + nh = b. Start with x 0 we can compute x 1 = x 0 + f(t 0, x 0 )h x 2 = x 1 + f(t 1, x 1 )h.x n = x n 1 + f(t n 1, x n 1 )h Example 2.1. Find approximate to x(1) if x (t) = t 2 e x sin(t), x(0) = 1 with h = Solution Here the interval is [0, 1], so a = 0, b = 1. Since h = b a = 0.25 we have n = 4 and we need to compute x n 1, x 2, x 3, x 4 starting with x 0 = x(0) = 1. x 1 = x 0 + f(t 0, x 0 )h = 1 + f(0, 1) 0.25 = x 2 = x 1 + f(t 1, x 1 )h = f(0.25, ) 0.25 = x 3 = x 2 + f(t 2, x 2 )h = f(0.5, ) 0.25 = x 4 = x 3 + f(t 3, x 3 )h = f(0.75, ) 0.25 = So the approximation to x(1) is x(1) x 4 = Also x(0.25) x 1 = , x(0.5) x 2 = , x(0.75) x 3 =

5 2. EULER S METHOD Mathcad implementation of Euler s Method. First, we have the following simple algorithm for the Euler s method, Input f, a, b, x0 n. Output: the approximate solution to x = f(t, x) with initial guess x0 over interval [a, b]. Step One: Initialization Set h = b a n Set x 0 = x0 Set t 0 = a Step Two: For i=1 to n do Step Three Step Three: Set x i = x i 1 f(t i 1, x i 1 ) h Set t i = t i 1 + h Step Four return x. Notice, algorithm return an array of values, the ith element of the return array is an approximations of x(t) at t = a + ih. The following screen shot shows Mathcad code for implementing the algorithm. Notice, we also create a function tmesh(a, b, N) to compute the ending of subinterval for graphing purpose. Figure 3. Mathcad code for Euler s Method Notice the line to line corresponding between the Mathcad and the algorithm. Since Mathcad programming language is a scripting language, the translation between algorithm and code is straight forward, and you don t need to worry about the variable type, io, etc. Also, without explicit return statement, the result of last is, by default, will be returned.

6 6 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS The next screen shot shows a call to the myeuler and tmesh for the equation x = t 2 x + t 2 sin(t 3 ). It also shows the graph of approximate solution comparing with the exact solution x(t) = 3 10 cos(t3 ) 1 10 sin(t3 ) + 3 e 1 10 t3 10 Figure 4. Mathcad Euler s Approximation to x = t 2 x + t 2 sin(t 3 ) 2.3. Error analysis of Euler s Method. There are two source of error in every numerical method used to approximate a solution of x (t) = f(t, x), Local Truncation Error The roundoff error. The local truncation error is due to the method and roundoff error is due to computer that is used. For Euler s method, we use x i = x i 1 + f(t i 1, x i 1 ) h to approximate the value of x(t i ), the difference, assuming no rounding is introduced, is x i x(t i ), and is called the local truncation error. The following theorem shows how the local truncation error is depending on f(t, x) and h, Theorem 2.1. Suppose f(t, x), f(t,x) t on [a, b], and h = b 1 n, and f(t,x) are continuous x is the step size. Furthermore let x(t) be the solution of initial value problem x = f(t, x), x(a) = x 0 and x i = x i 1 + f(t i 1, x i 1 ) h be the approximate of x(t i ), and let e i = x(t i ) x i be

7 the local truncation error, then 3. RUNGE-KUTTA METHOD 7 e i+1 (1 + hk) e i h2 M, i = 1,...n., where f(t,x) K, and x (t) M. x Theorem 2.2 indicates that, without roundoff error, the smaller h gives better approximate solution. However, due the roundoff error introduced in each step of computation, (such as compute can only give approximate value for 2) we can t choose h arbitrarily small. The following result gives the optimal step size h, Theorem 2.2. With the same assumption of Theorem 2.2,and suppose at each step the roundoff error is bounded by ɛ then the optimal value for the step length is 2ɛ h opt = M 3. Runge-Kutta Method 3.1. Runge-Kutta Method. There are several Runge-Kutta methods, but the fourth order Runge-Kutta method is most popular. Suppose x (t) = f(t, x), x(a) = x 0. and h = b a is the step length, the n fourth order Runge-Kutta method is given below, k 1 = hf(t i, x i ) k 2 = hf(t i h, x i k 1) k 3 = hf(t i h, x i k 2) k 4 = hf(t i + h, x i + k 3 ) x i+1 = x i (k 1 + 2k 2 + 2k 3 + k 4 ) In general Runge-Kutta method gives more accurate result than Euler s method at the same step length. However, Runge-Kutta method is more expensive to implement, that is, at each step, Runge-Kutta method requires more computation than Euler s method( four function evaluations compare one in Euler s method). Example 3.1. Example 3.2. Find approximate to x(1) if x (t) = t 2 e x sin(t), x(0) = 1 with h = Solution Here the interval is [0, 1], so a = 0, b = 1. Since h = b a = 0.25 we have n = 4 and we need to compute x n 1, x 2, x 3, x 4 starting with x 0 = x(0) = 1, t 0 = 0

8 8 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS x 1 : k 1 = hf(t 0, x 0 ) = 0.25 f(0, 1) = 0 k 2 = hf(t 0 + 1h, x k 2 1) = f(0.125, 1) = k 3 = hf(t 0 + 1h, x k 2 2) = 0.25f(0.125, ( )) = k 4 = hf(t 0 + h, x 0 + k 3 ) = 0.25f(0.25, ) = x 1 = x 0 + 1(k k 2 + 2k 3 + k 4 ) = (0 + 2 ( ) + 2 ( ) ) 6 = t 1 = t 0 + h = = 0.25 x 2 : k 1 = hf(t 1, x 1 ) = 0.25 f(.25, ) = k 2 = hf(t 1 + 1h, x k 2 1) = f(0.125, ( )) = k 3 = hf(t 1 + 1h, x k 2 2) = 0.25f(0.125, ( )) = k 4 = hf(t 1 + h, x 1 + k 3 ) = 0.25f(0.5, ) = x 2 = x 1 + 1(k k 2 + 2k 3 + k 4 ) = ( ( ) + 2 ( ) ) 6 = t 2 = t 1 + h = = 0.5 x 3 : k 1 = hf(t 2, x 2 ) = 0.25 f(.5, ) = k 2 = hf(t 2 + 1h, x k 2 1) = f(0.625, ( )) = k 3 = hf(t 2 + 1h, x k 2 2) = 0.25f(0.625, ( )) = k 4 = hf(t 2 + h, x 2 + k 3 ) = 0.25f(0.75, ) = x 3 = x 2 + 1(k k 2 + 2k 3 + k 4 ) = ( ( ) + 2 ( ) ) 6 = t 3 = t 2 + h = = 0.75

9 x 4 : 3. RUNGE-KUTTA METHOD 9 k 1 = hf(t 3, x 3 ) = 0.25 f(0.75, ) = k 2 = hf(t 3 + 1h, x k 2 1) = f(0.875, ( )) = k 3 = hf(t 3 + 1h, x k 2 2) = 0.25f(0.875, ( )) = k 4 = hf(t 3 + h, x 3 + k 3 ) = 0.25f(1, ) = x 4 = x 3 + 1(k k 2 + 2k 3 + k 4 ) = ( ( ) + 2 ( ) ) 6 = t 4 = t 3 + h = = 1.0 So the approximation to x(1) is x(1) x 4 = Mathcad implementation. First, we have the following simple algorithm for the Euler s method, Input f, a, b, x0 n. Output: the approximate solution to x = f(t, x) with initial guess x0 over interval [a, b]. Step One: Initialization Set h = b a n Set x 0 = x0 Set t 0 = a Step Two: For i=1 to n do Step Three Step Three: Set k1 = hf(t i 1, x i 1 ) Set k2 = hf(t i 1 + 1h, x 2 i 1 + 1k 2 1) Set k3 = hf(t i 1 + 1h, x 2 i 1 + 1k 2 2) Set k4 = hf(t i 1 + h, x i 1 + k 3 ) Set x i = x i + 1(k k 2 + 2k 3 + k 4 ) Set t i = t i 1 + h Step Four return x. This algorithm returns an array of values, the ith element of the return array is an approximations of x(t) at t = a + ih. The following screen shot shows Mathcad code for implementing the algorithm. Again notice the line to line corresponding between the Mathcad and the algorithm.

10 10 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS Figure 5. Mathcad code for Euler s Method The next screen shot shows a call to the myrungekutta and tmesh for the equation x = t 2 x+t 2 sin(t 3 ). It also shows the graph of approximate solution comparing with the exact solution x(t) = 3 10 cos(t3 ) 1 10 sin(t3 ) + 3 e t3, and with the approximate solution using Euler s method. In this case Runge-Kutta provides much superior result, an almost exact match! Figure 6. Mathcad Runge-Kutta s Approximation to x = t 2 x + t 2 sin(t 3 )

11 4. NUMERICAL METHOD FOR SYSTEM OF EQUATIONS Numerical Method for System of Equations Both Euler s method and Runge-Kutta method can be used to find the approximate solution to the system of first order differential equations. In fact, the Mathcad codes for system of first differential equations are exactly the same as Mathcad does not differentiate scalar and vectors when performs most computations. The only thing needs to be taken care is that at each step the result is vector instead of a scalar. Suppose x(t) is a vector-valued function that satisfies x (t) = F (t, x(t)), where F (t, x) is also vector-valued function, t i = a+ih then the Euler s method compute the ith approximate, (2) x i = x i 1 + F (t i 1, x i 1 ). Example 4.1. Let x (t) = t 2 sin(x(t)) + e t cos(y(t)) y (t) = 2tx(t) + e y(t) x(0) = 1, y(0) = 1 Find approximate solution for x(t), y(t) over interval [0, 1] with h = 0.1 [ ] [ ] x(t) t Solution Set x(t) = and F (t, x) = 2 sin(x) + e t cos(y) y(t) 2tx + e y The equation can then be written, in vector form, x(0) = [ 1 1 x (t) = F (t, x(t)), ] From (2) we can find, with t 0 = 0, x 1 = [ x 0 + h] F [(t 0, x 0 ) ] 1 t 2 = + 0 sin(x 0 ) + e t 0 cos(y 0 ) 1 2t 0 x 0 + e y 0 [ ] cos( 1) = e 1 The following screen shot shows the results obtain by calling our Mathcad implementation of Euler s method. Notice that in defining the vector-valued function F (t, X), for Mathcad to know that X is an vector, in the definition, we use subscript to access the component of X, as shown in the screen shot.

12 12 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS Figure 7. Euler s method for system of equations

13 4. NUMERICAL METHOD FOR SYSTEM OF EQUATIONS 13 Similarly, we can use the same Mathcad code of Runge-Kutta method to find approximate solution as shown in the following screen shot for the above system of equations, Figure 8. Runge-Kutta s method for system of equations 4.1. Numerical Method for Higher Order Equations. To find numerical approximate for solutions of higher order differential equations using either Euler s method or Runge-Kutta method, we first transform an higher order differential equations into a system of first order differential equations and then apply the methods. Example 4.2. Rayleigh Equation In modeling the oscillations of a clarinet reed. Lord Rayleigh introduced an equation of the form mx + kx = ax b(x ) 3 Find approximate solution for m = 1, k = 1, a = 2, b = 3. and initial conditions x(0) = 1, x (0) = 2

14 14 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS Solution Suppose y(t) = x (t) is the velocity, then Rayleigh equation becomes x = y y = 2y 3y 3 2x [ ] y So we apply the numerical method for F = 2y 3y 3 and 2x [ ] [ ] x(t) = x(t) 1 x (t) = F (t, x) with, x(0) =. The following y(t) 2 screen shot gives approximate solution using Runge-Kutta method, Figure 9. Runge-Kutta s method for Rayleigh s equation we also plot the solution in xy-plane, which is called the velocityposition phase plane, with y-axis represent the velocity and x-axis is the

15 4. NUMERICAL METHOD FOR SYSTEM OF EQUATIONS 15 position. The velocity-position plane shows that all velocity-position solution pairs are eventually being attracted to an closed orbit, the closed orbit is called the global attractor.

Fourth Order RK-Method

Fourth Order RK-Method Fourth Order RK-Method The most commonly used method is Runge-Kutta fourth order method. The fourth order RK-method is y i+1 = y i + 1 6 (k 1 + 2k 2 + 2k 3 + k 4 ), Ordinary Differential Equations (ODE)

More information

Section 7.4 Runge-Kutta Methods

Section 7.4 Runge-Kutta Methods Section 7.4 Runge-Kutta Methods Key terms: Taylor methods Taylor series Runge-Kutta; methods linear combinations of function values at intermediate points Alternatives to second order Taylor methods Fourth

More information

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

Fall 2003 Math 308/ Numerical Methods 3.6, 3.7, 5.3 Runge-Kutta Methods Mon, 27/Oct c 2003, Art Belmonte Fall Math 8/ Numerical Methods.6,.7,. Runge-Kutta Methods Mon, 7/Oct c, Art Belmonte Summary Geometrical idea Runge-Kutta methods numerically approximate the solution of y = f (t, y), y(a) = y by using

More information

Math 128A Spring 2003 Week 12 Solutions

Math 128A Spring 2003 Week 12 Solutions Math 128A Spring 2003 Week 12 Solutions Burden & Faires 5.9: 1b, 2b, 3, 5, 6, 7 Burden & Faires 5.10: 4, 5, 8 Burden & Faires 5.11: 1c, 2, 5, 6, 8 Burden & Faires 5.9. Higher-Order Equations and Systems

More information

ODE Runge-Kutta methods

ODE Runge-Kutta methods ODE Runge-Kutta methods The theory (very short excerpts from lectures) First-order initial value problem We want to approximate the solution Y(x) of a system of first-order ordinary differential equations

More information

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

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester HIGHER ORDER METHODS School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE

More information

A Brief Introduction to Numerical Methods for Differential Equations

A Brief Introduction to Numerical Methods for Differential Equations A Brief Introduction to Numerical Methods for Differential Equations January 10, 2011 This tutorial introduces some basic numerical computation techniques that are useful for the simulation and analysis

More information

f(s)ds, i.e. to write down the general solution in

f(s)ds, i.e. to write down the general solution in 1. First order ODEs. Simplest examples. Existence and uniqueness theorem Example 1.1. Consider the equation (1.1) x (t) = 1 This is an equation because there is an unknown: the function x(t). This is a

More information

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations S. Y. Ha and J. Park Department of Mathematical Sciences Seoul National University Sep 23, 2013 Contents 1 Logistic Map 2 Euler and

More information

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

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University 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

More information

Ordinary differential equation II

Ordinary differential equation II Ordinary Differential Equations ISC-5315 1 Ordinary differential equation II 1 Some Basic Methods 1.1 Backward Euler method (implicit method) The algorithm looks like this: y n = y n 1 + hf n (1) In contrast

More information

Chapter 6 - Ordinary Differential Equations

Chapter 6 - Ordinary Differential Equations Chapter 6 - Ordinary Differential Equations 7.1 Solving Initial-Value Problems In this chapter, we will be interested in the solution of ordinary differential equations. Ordinary differential equations

More information

Differential Equations

Differential Equations Differential Equations Overview of differential equation! Initial value problem! Explicit numeric methods! Implicit numeric methods! Modular implementation Physics-based simulation An algorithm that

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 9 Initial Value Problems for Ordinary Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

Consistency and Convergence

Consistency and Convergence Jim Lambers MAT 77 Fall Semester 010-11 Lecture 0 Notes These notes correspond to Sections 1.3, 1.4 and 1.5 in the text. Consistency and Convergence We have learned that the numerical solution obtained

More information

Math 308 Week 8 Solutions

Math 308 Week 8 Solutions Math 38 Week 8 Solutions There is a solution manual to Chapter 4 online: www.pearsoncustom.com/tamu math/. This online solutions manual contains solutions to some of the suggested problems. Here are solutions

More information

Euler s Method, cont d

Euler s Method, cont d Jim Lambers MAT 461/561 Spring Semester 009-10 Lecture 3 Notes These notes correspond to Sections 5. and 5.4 in the text. Euler s Method, cont d We conclude our discussion of Euler s method with an example

More information

δ Substituting into the differential equation gives: x i+1 x i δ f(t i,x i ) (3)

δ Substituting into the differential equation gives: x i+1 x i δ f(t i,x i ) (3) Solving Differential Equations Numerically Differential equations are ubiquitous in Physics since the laws of nature often take on a simple form when expressed in terms of infinitesimal changes of the

More information

Math 132 Lab 3: Differential Equations

Math 132 Lab 3: Differential Equations Math 132 Lab 3: Differential Equations Instructions. Follow the directions in each part of the lab. The lab report is due Monday, April 19. You need only hand in these pages. Answer each lab question in

More information

Physically Based Modeling Differential Equation Basics

Physically Based Modeling Differential Equation Basics Physically Based Modeling Differential Equation Basics Andrew Witkin and David Baraff Pixar Animation Studios Please note: This document is 2001 by Andrew Witkin and David Baraff. This chapter may be freely

More information

Homework and Computer Problems for Math*2130 (W17).

Homework and Computer Problems for Math*2130 (W17). Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should

More information

Lösning: Tenta Numerical Analysis för D, L. FMN011,

Lösning: Tenta Numerical Analysis för D, L. FMN011, Lösning: Tenta Numerical Analysis för D, L. FMN011, 090527 This exam starts at 8:00 and ends at 12:00. To get a passing grade for the course you need 35 points in this exam and an accumulated total (this

More information

Physics 584 Computational Methods

Physics 584 Computational Methods Physics 584 Computational Methods Introduction to Matlab and Numerical Solutions to Ordinary Differential Equations Ryan Ogliore April 18 th, 2016 Lecture Outline Introduction to Matlab Numerical Solutions

More information

Multistep Methods for IVPs. t 0 < t < T

Multistep Methods for IVPs. t 0 < t < T Multistep Methods for IVPs We are still considering the IVP dy dt = f(t,y) t 0 < t < T y(t 0 ) = y 0 So far we have looked at Euler s method, which was a first order method and Runge Kutta (RK) methods

More information

Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t)

Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t) Runga-Kutta Schemes Exact evolution over a small time step: x(t + t) =x(t)+ t 0 d(δt) F (x(t + δt),t+ δt) Expand both sides in a small time increment: x(t + t) =x(t)+x (t) t + 1 2 x (t)( t) 2 + 1 6 x (t)+

More information

CHAPTER 12 Numerical Solution of Differential Equations

CHAPTER 12 Numerical Solution of Differential Equations CHAPTER 12 Numerical Solution of Differential Equations We have considered numerical solution procedures for two kinds of equations: In chapter 10 the unknown was a real number; in chapter 6 the unknown

More information

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

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University 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

More information

Infinity Unit 2: Chaos! Dynamical Systems

Infinity Unit 2: Chaos! Dynamical Systems Infinity Unit 2: Chaos! Dynamical Systems Iterating Linear Functions These questions are about iterating f(x) = mx + b. Seed: x 1. Orbit: x 1, x 2, x 3, For each question, give examples and a symbolic

More information

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1 Lectures - Week 11 General First Order ODEs & Numerical Methods for IVPs In general, nonlinear problems are much more difficult to solve than linear ones. Unfortunately many phenomena exhibit nonlinear

More information

Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS

Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS The general form of a first order differential equations is = f(x, y) with initial condition y(a) = y a We seek the solution y = y(x) for x > a This is shown

More information

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

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 9 Initial Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

MECH : a Primer for Matlab s ode suite of functions

MECH : a Primer for Matlab s ode suite of functions Objectives MECH 4-563: a Primer for Matlab s ode suite of functions. Review the fundamentals of initial value problems and why numerical integration methods are needed.. Introduce the ode suite of numerical

More information

Ph 22.1 Return of the ODEs: higher-order methods

Ph 22.1 Return of the ODEs: higher-order methods Ph 22.1 Return of the ODEs: higher-order methods -v20130111- Introduction This week we are going to build on the experience that you gathered in the Ph20, and program more advanced (and accurate!) solvers

More information

Introduction to the Numerical Solution of IVP for ODE

Introduction to the Numerical Solution of IVP for ODE Introduction to the Numerical Solution of IVP for ODE 45 Introduction to the Numerical Solution of IVP for ODE Consider the IVP: DE x = f(t, x), IC x(a) = x a. For simplicity, we will assume here that

More information

AMS 27L LAB #8 Winter 2009

AMS 27L LAB #8 Winter 2009 AMS 27L LAB #8 Winter 29 Solving ODE s in Matlab Objectives:. To use Matlab s ODE Solvers 2. To practice using functions and in-line functions Matlab s ODE Suite Matlab offers a suite of ODE solvers including:

More information

Lecture 1, August 21, 2017

Lecture 1, August 21, 2017 Engineering Mathematics 1 Fall 2017 Lecture 1, August 21, 2017 What is a differential equation? A differential equation is an equation relating a function (known sometimes as the unknown) to some of its

More information

13 Numerical Solution of ODE s

13 Numerical Solution of ODE s 13 NUMERICAL SOLUTION OF ODE S 28 13 Numerical Solution of ODE s In simulating dynamical systems, we frequently solve ordinary differential equations. These are of the form dx = f(t, x), dt where the function

More information

Solving systems of ODEs with Matlab

Solving systems of ODEs with Matlab Solving systems of ODEs with Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University October 20, 2013 Outline 1 Systems of ODEs 2 Setting Up

More information

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo 2008-11-07 Graded Project #1 Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo This homework is due to be handed in on Wednesday 12 November 2008 before 13:00 in the post box of the numerical

More information

Physically Based Modeling: Principles and Practice Differential Equation Basics

Physically Based Modeling: Principles and Practice Differential Equation Basics Physically Based Modeling: Principles and Practice Differential Equation Basics Andrew Witkin and David Baraff Robotics Institute Carnegie Mellon University Please note: This document is 1997 by Andrew

More information

Laplace's equation: the potential between parallel plates

Laplace's equation: the potential between parallel plates 4/3/01 Electrostatics Laplace Solver 1 Laplace's equation: the potential between parallel plates Laplace's equation describing the electric potential in two dimensions is: ( x, y) 0 At right is the potential

More information

Chap. 20: Initial-Value Problems

Chap. 20: Initial-Value Problems Chap. 20: Initial-Value Problems Ordinary Differential Equations Goal: to solve differential equations of the form: dy dt f t, y The methods in this chapter are all one-step methods and have the general

More information

Week 4: Differentiation for Functions of Several Variables

Week 4: Differentiation for Functions of Several Variables Week 4: Differentiation for Functions of Several Variables Introduction A functions of several variables f : U R n R is a rule that assigns a real number to each point in U, a subset of R n, For the next

More information

Physics 115/242 Comparison of methods for integrating the simple harmonic oscillator.

Physics 115/242 Comparison of methods for integrating the simple harmonic oscillator. Physics 115/4 Comparison of methods for integrating the simple harmonic oscillator. Peter Young I. THE SIMPLE HARMONIC OSCILLATOR The energy (sometimes called the Hamiltonian ) of the simple harmonic oscillator

More information

Math 216 Final Exam 14 December, 2012

Math 216 Final Exam 14 December, 2012 Math 216 Final Exam 14 December, 2012 This sample exam is provided to serve as one component of your studying for this exam in this course. Please note that it is not guaranteed to cover the material that

More information

Solving Ordinary Differential Equations

Solving Ordinary Differential Equations Solving Ordinary Differential Equations Sanzheng Qiao Department of Computing and Software McMaster University March, 2014 Outline 1 Initial Value Problem Euler s Method Runge-Kutta Methods Multistep Methods

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro September 19, 2014 1 / 55 Motivation

More information

3.3. SYSTEMS OF ODES 1. y 0 " 2y" y 0 + 2y = x1. x2 x3. x = y(t) = c 1 e t + c 2 e t + c 3 e 2t. _x = A x + f; x(0) = x 0.

3.3. SYSTEMS OF ODES 1. y 0  2y y 0 + 2y = x1. x2 x3. x = y(t) = c 1 e t + c 2 e t + c 3 e 2t. _x = A x + f; x(0) = x 0. .. SYSTEMS OF ODES. Systems of ODEs MATH 94 FALL 98 PRELIM # 94FA8PQ.tex.. a) Convert the third order dierential equation into a rst oder system _x = A x, with y " y" y + y = x = @ x x x b) The equation

More information

Math 252 Fall 2002 Supplement on Euler s Method

Math 252 Fall 2002 Supplement on Euler s Method Math 5 Fall 00 Supplement on Euler s Method Introduction. The textbook seems overly enthusiastic about Euler s method. These notes aim to present a more realistic treatment of the value of the method and

More information

Lesson 9: Predator-Prey and ode45

Lesson 9: Predator-Prey and ode45 Lesson 9: Predator-Prey and ode45 9.1 Applied Problem. In this lesson we will allow for more than one population where they depend on each other. One population could be the predator such as a fox, and

More information

You may not use your books, notes; calculators are highly recommended.

You may not use your books, notes; calculators are highly recommended. Math 301 Winter 2013-14 Midterm 1 02/06/2014 Time Limit: 60 Minutes Name (Print): Instructor This exam contains 8 pages (including this cover page) and 6 problems. Check to see if any pages are missing.

More information

Mathematical Review Problems

Mathematical Review Problems Fall 6 Louis Scuiero Mathematical Review Problems I. Polynomial Equations an Graphs (Barrante--Chap. ). First egree equation an graph y f() x mx b where m is the slope of the line an b is the line's intercept

More information

Section 7.2 Euler s Method

Section 7.2 Euler s Method Section 7.2 Euler s Method Key terms Scalar first order IVP (one step method) Euler s Method Derivation Error analysis Computational procedure Difference equation Slope field or Direction field Error Euler's

More information

Ordinary Differential Equations (ODEs)

Ordinary Differential Equations (ODEs) Ordinary Differential Equations (ODEs) 1 Computer Simulations Why is computation becoming so important in physics? One reason is that most of our analytical tools such as differential calculus are best

More information

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 Math 2250 Lab 4 Name/Unid: 1. (25 points) A man bails out of an airplane at the altitute of 12,000 ft, falls freely for 20 s, then opens his parachute. Assuming linear air resistance ρv ft/s 2, taking

More information

Math 116 Practice for Exam 2

Math 116 Practice for Exam 2 Math 6 Practice for Exam 2 Generated November 9, 206 Name: Instructor: Section Number:. This exam has 0 questions. Note that the problems are not of equal difficulty, so you may want to skip over and return

More information

Introduction to standard and non-standard Numerical Methods

Introduction to standard and non-standard Numerical Methods Introduction to standard and non-standard Numerical Methods Dr. Mountaga LAM AMS : African Mathematic School 2018 May 23, 2018 One-step methods Runge-Kutta Methods Nonstandard Finite Difference Scheme

More information

5. Hand in the entire exam booklet and your computer score sheet.

5. Hand in the entire exam booklet and your computer score sheet. WINTER 2016 MATH*2130 Final Exam Last name: (PRINT) First name: Student #: Instructor: M. R. Garvie 19 April, 2016 INSTRUCTIONS: 1. This is a closed book examination, but a calculator is allowed. The test

More information

Algebra I Calculator Activities

Algebra I Calculator Activities First Nine Weeks SOL Objectives Calculating Measures of Central Tendency SOL A.17 Organize a set of data Calculate the mean, median, mode, and range of a set of data Describe the relationships between

More information

Higher Order Taylor Methods

Higher Order Taylor Methods Higher Order Taylor Methods Marcelo Julio Alvisio & Lisa Marie Danz May 6, 2007 Introduction Differential equations are one of the building blocks in science or engineering. Scientists aim to obtain numerical

More information

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

Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras Computational Techniques Prof. Dr. Niket Kaisare Department of Chemical Engineering Indian Institute of Technology, Madras Module No. # 07 Lecture No. # 04 Ordinary Differential Equations (Initial Value

More information

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2 Matrices A matrix is a rectangular array of numbers For example, the following rectangular arrays of numbers are matrices: 7 A = B = C = 3 6 5 8 0 6 D = [ 3 5 7 9 E = 8 7653 0 Matrices vary in size An

More information

Using web-based Java pplane applet to graph solutions of systems of differential equations

Using web-based Java pplane applet to graph solutions of systems of differential equations Using web-based Java pplane applet to graph solutions of systems of differential equations Our class project for MA 341 involves using computer tools to analyse solutions of differential equations. This

More information

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS II: Graphical and Numerical Methods David Levermore Department of Mathematics University of Maryland

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS II: Graphical and Numerical Methods David Levermore Department of Mathematics University of Maryland FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS II: Graphical and Numerical Methods David Levermore Department of Mathematics University of Maryland 9 January 0 Because the presentation of this material in

More information

Manifesto on Numerical Integration of Equations of Motion Using Matlab

Manifesto on Numerical Integration of Equations of Motion Using Matlab Manifesto on Numerical Integration of Equations of Motion Using Matlab C. Hall April 11, 2002 This handout is intended to help you understand numerical integration and to put it into practice using Matlab

More information

Lecture 4: Numerical solution of ordinary differential equations

Lecture 4: Numerical solution of ordinary differential equations Lecture 4: Numerical solution of ordinary differential equations Department of Mathematics, ETH Zürich General explicit one-step method: Consistency; Stability; Convergence. High-order methods: Taylor

More information

Infinite series, improper integrals, and Taylor series

Infinite series, improper integrals, and Taylor series Chapter 2 Infinite series, improper integrals, and Taylor series 2. Introduction to series In studying calculus, we have explored a variety of functions. Among the most basic are polynomials, i.e. functions

More information

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

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

Numerical Solution of Differential

Numerical Solution of Differential Chapter 14 Numerical Solution of Differential Equations We have considered numerical solution procedures for two kinds of equations: In chapter 10 the unknown was a real number; in chapter 6 the unknown

More information

Modeling and Experimentation: Compound Pendulum

Modeling and Experimentation: Compound Pendulum Modeling and Experimentation: Compound Pendulum Prof. R.G. Longoria Department of Mechanical Engineering The University of Texas at Austin Fall 2014 Overview This lab focuses on developing a mathematical

More information

Parametric Equations, Function Composition and the Chain Rule: A Worksheet

Parametric Equations, Function Composition and the Chain Rule: A Worksheet Parametric Equations, Function Composition and the Chain Rule: A Worksheet Prof.Rebecca Goldin Oct. 8, 003 1 Parametric Equations We have seen that the graph of a function f(x) of one variable consists

More information

Solving Ordinary Differential equations

Solving Ordinary Differential equations Solving Ordinary Differential equations Taylor methods can be used to build explicit methods with higher order of convergence than Euler s method. The main difficult of these methods is the computation

More information

AM 205 Final Project The N-Body Problem

AM 205 Final Project The N-Body Problem AM 205 Final Project The N-Body Problem Leah Birch Elizabeth Finn Karen Yu December 14, 2012 Abstract The N-Body Problem can be solved using a variety of numeric integrators. Newton s Law of Universal

More information

Previous Year Questions & Detailed Solutions

Previous Year Questions & Detailed Solutions Previous Year Questions & Detailed Solutions. The rate of convergence in the Gauss-Seidal method is as fast as in Gauss Jacobi smethod ) thrice ) half-times ) twice 4) three by two times. In application

More information

1. Consider the initial value problem: find y(t) such that. y = y 2 t, y(0) = 1.

1. Consider the initial value problem: find y(t) such that. y = y 2 t, y(0) = 1. Engineering Mathematics CHEN30101 solutions to sheet 3 1. Consider the initial value problem: find y(t) such that y = y 2 t, y(0) = 1. Take a step size h = 0.1 and verify that the forward Euler approximation

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations Initial value problems for ordinary differential equations Xiaojing Ye, Math & Stat, Georgia State University Spring 2019 Numerical Analysis II Xiaojing Ye, Math & Stat, Georgia State University 1 IVP

More information

Runge - Kutta Methods for first and second order models

Runge - Kutta Methods for first and second order models Runge - Kutta Methods for first and second order models James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University October 3, 2013 Outline 1 Runge -

More information

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 2018

First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 2018 First In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 20 September 208 () [6] In the absence of predators the population of mosquitoes in a certain area would increase at a rate proportional

More information

Math 471. Numerical methods Introduction

Math 471. Numerical methods Introduction Math 471. Numerical methods Introduction Section 1.1 1.4 of Bradie 1.1 Algorithms Here is an analogy between Numerical Methods and Gastronomy: Calculus, Lin Alg., Diff. eq. Ingredients Algorithm Recipe

More information

MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox

MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox Laplace Transform and the Symbolic Math Toolbox 1 MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox In this laboratory session we will learn how to 1. Use the Symbolic Math Toolbox 2.

More information

Chem 1 Kinetics. Objectives. Concepts

Chem 1 Kinetics. Objectives. Concepts Chem 1 Kinetics Objectives 1. Learn some basic ideas in chemical kinetics. 2. Understand how the computer visualizations can be used to benefit the learning process. 3. Understand how the computer models

More information

Differential Equations

Differential Equations Pysics-based simulation xi Differential Equations xi+1 xi xi+1 xi + x x Pysics-based simulation xi Wat is a differential equation? Differential equations describe te relation between an unknown function

More information

Introduction. How to use this book. Linear algebra. Mathematica. Mathematica cells

Introduction. How to use this book. Linear algebra. Mathematica. Mathematica cells Introduction How to use this book This guide is meant as a standard reference to definitions, examples, and Mathematica techniques for linear algebra. Complementary material can be found in the Help sections

More information

Ordinary Differential Equations II

Ordinary Differential Equations II Ordinary Differential Equations II CS 205A: Mathematical Methods for Robotics, Vision, and Graphics Justin Solomon CS 205A: Mathematical Methods Ordinary Differential Equations II 1 / 29 Almost Done! No

More information

MATH 1910 Limits Numerically and Graphically Introduction to Limits does not exist DNE DOES does not Finding Limits Numerically

MATH 1910 Limits Numerically and Graphically Introduction to Limits does not exist DNE DOES does not Finding Limits Numerically MATH 90 - Limits Numerically and Graphically Introduction to Limits The concept of a limit is our doorway to calculus. This lecture will explain what the limit of a function is and how we can find such

More information

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland 30 September 0 Because the presentation of this material

More information

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations Lecture 8: Calculus and Differential Equations Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 9. Numerical Methods MATLAB provides

More information

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations Lecture 8: Calculus and Differential Equations Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE21: Computer Applications. See Textbook Chapter 9. Numerical Methods MATLAB provides

More information

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Numerical Methods for Initial Value Problems; Harmonic Oscillators 1 Numerical Methods for Initial Value Problems; Harmonic Oscillators Lab Objective: Implement several basic numerical methods for initial value problems (IVPs), and use them to study harmonic oscillators.

More information

Integration of Differential Equations

Integration of Differential Equations Integration of Differential Equations Gabriel S. Cabrera August 4, 018 Contents 1 Introduction 1 Theory.1 Linear 1 st Order ODEs................................. 3.1.1 Analytical Solution...............................

More information

FORTRAN 77 Lesson 7. Reese Haywood Ayan Paul

FORTRAN 77 Lesson 7. Reese Haywood Ayan Paul FORTRAN 77 Lesson 7 Reese Haywood Ayan Paul 1 Numerical Integration A general all purpose Numerical Integration technique is the Trapezoidal Method. For most functions, this method is fast and accurate.

More information

Modeling & Simulation 2018 Lecture 12. Simulations

Modeling & Simulation 2018 Lecture 12. Simulations Modeling & Simulation 2018 Lecture 12. Simulations Claudio Altafini Automatic Control, ISY Linköping University, Sweden Summary of lecture 7-11 1 / 32 Models of complex systems physical interconnections,

More information

Numerical Methods - Initial Value Problems for ODEs

Numerical Methods - Initial Value Problems for ODEs Numerical Methods - Initial Value Problems for ODEs Y. K. Goh Universiti Tunku Abdul Rahman 2013 Y. K. Goh (UTAR) Numerical Methods - Initial Value Problems for ODEs 2013 1 / 43 Outline 1 Initial Value

More information

If you buy 4 apples for a total cost of 80 pence, how much does each apple cost?

If you buy 4 apples for a total cost of 80 pence, how much does each apple cost? Introduction If you buy 4 apples for a total cost of 80 pence, how much does each apple cost? Cost of one apple = Total cost Number 80 pence = 4 = 20 pence In maths we often use symbols to represent quantities.

More information

Core Mathematics 3 Differentiation

Core Mathematics 3 Differentiation http://kumarmaths.weebly.com/ Core Mathematics Differentiation C differentiation Page Differentiation C Specifications. By the end of this unit you should be able to : Use chain rule to find the derivative

More information

Regents Review Session #3 Functions

Regents Review Session #3 Functions Regents Review Session #3 Functions A relation is a set of ordered pairs. A function is a relation in which each element of the domain corresponds t exactly one element in the range. (Each x value is paired

More information

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t)

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t) Math 380 Practice Final Solutions This is longer than the actual exam, which will be 8 to 0 questions (some might be multiple choice). You are allowed up to two sheets of notes (both sides) and a calculator,

More information

UNIVERSITY OF SOUTHAMPTON

UNIVERSITY OF SOUTHAMPTON UNIVERSITY OF SOUTHAMPTON MATH03W SEMESTER EXAMINATION 0/ MATHEMATICS FOR ELECTRONIC & ELECTRICAL ENGINEERING Duration: 0 min This paper has two parts, part A and part B. Answer all questions from part

More information

PH36010: Numerical Methods - Evaluating the Lorenz Attractor using Runge-Kutta methods Abstract

PH36010: Numerical Methods - Evaluating the Lorenz Attractor using Runge-Kutta methods Abstract PH36010: Numerical Methods - Evaluating the Lorenz Attractor using Runge-Kutta methods Mr. Benjamen P. Reed (110108461) IMPACS, Aberystwyth University January 31, 2014 Abstract A set of three coupled ordinary

More information

Ordinary differential equations. Phys 420/580 Lecture 8

Ordinary differential equations. Phys 420/580 Lecture 8 Ordinary differential equations Phys 420/580 Lecture 8 Most physical laws are expressed as differential equations These come in three flavours: initial-value problems boundary-value problems eigenvalue

More information