Ordinary Differential Equations (ode)

Size: px
Start display at page:

Download "Ordinary Differential Equations (ode)"

Transcription

1 Ordinary Differential Equations (ode) Numerical Methods for Solving Initial condition (ic) problems and Boundary value problems (bvp)

2 What is an ODE? =,,...,, yx, dx dx dx dx n n 1 n d y d y d y In general, f n n 1 n d y Example, y x y 4x dx = dx + 3 dx = 1 st order ODE: f ( x, y)

3 Initial condition (ic) problem ic refers to the type of condition the ODE has. An n th order ODE requires n conditions to have a solution. For an ic problem, the conditions must all be located at the initial independent variable. d y 3 = y t y+ 4 t ; 0< t < 4 dt dt y ( ) dt t= 0 = 0 0 = ( )

4 Numerical method for solving a 1 st order i.c. ode f t y y y dt = = (, ); ( 0) 0 Euler s (pronounced oiler s method) Derivation Consider Taylor s series, truncated after the nd term y t 0 t y t 0 t dt t= t ( + Δ ) y ( ) + ( Δ ) 0

5 Euler s method derivation (cont d) But, the derivative is given by the ode, f ( x, y ) ; y ( 0 ) y0 dx = = so, ( + Δ ) ( ) +, ( ) ( Δ ) y t0 t y t0 f t y t0 t At the t=0, the ic i.c. gives y 0 and f(0,y 0 ) which allows us to determine y ( t + Δ 0 t) And, subsequently, y( t + Δt) and so on 0

6 Example, dt IC problem, ( t ) y; y ( ) = 1 + ; 0 = 1 Analyticalsolution (forcomparison purposes) ( 1 t) dt; y( 0) 1 y = + = ( ) ( ) y = t+ t + C; y 0 = 1 C = 1 y t t 4 = + +

7 Solve using Euler s method ( +Δ ) ( ) +, ( ) ( Δ ) y t0 t y t0 f t y t0 t ( +Δ ) ( ) + ( + ) ( ) ( Δ ) y t0 t y 0 1 t y 0 t If Δ t = 0.1 ( t) ( ) ( ) yt0+δ = 1.1

8 Continue using MATLAB, >> y(1) = 1; >> t = 0; >> y(n+1) = y(n) + (1+*t)*sqrt(y(n))*0.1 y = >> n = n+1; >> t = t+0.1; >> y(n+1) = y(n) + (1+*t)*sqrt(y(n))*0.1 y = >> t = t+0.1; >> n = n+1; >> y(n+1) = y(n) + (1+*t)*sqrt(y(n))*0.1 1 y = >> t = t+0.1; >> n = n+1; >> y(n+1) = y(n) + (1+*t)*sqrt(y(n))*0.1 y = >> t = [0:.1:.4] t = >> yana = (t.^ + t + ).^/4 yana = >> plot(t,y,'+',t,yana,'o')

9 Solution of ic ode, (Euler s method, h = 01) 0.1) ( 1 t) y; y( 0) 1 dt = + =

10 Computer program for Euler s method function [t,y] = eulers(f, h, y0, t0, tf) i= 1; t(i) = t0; y(i) = y0; while t(i) < tf y(i+1) = y(i) + f(t(i),y(i))*h; t(i+1) = t(i)+h; i= i+1; end

11 From the command window >> f >> h = 0.01; >> t0 = 0; >> tf = ; >> y0 = 1; >> [t,y] = eulers(f, h, y0, t0, tf) >> yana = (t.^ + t + ).^/4; >> plot(t,y,'+',t,yana,'o')

12 Solution of ic ode, (Euler s method, h = 0.01) ( 1 t) y; y( 0) 1 dt = + =

13 Heun s method (Improvement on Euler s method.) We have seen that Euler s method can be made more by decreasing the size of h. Strategy Another way to improve accuracy is to use the slope, /dx, at the right side of the interval as well as at the left side.

14 y Euler s dx + x i 1 y Heun s dx x i + dx x dx i xi + 1 X i X i+1

15 Heun s method takes the average of the slopes on the left and right sides of the interval using two step method known as a predictor corrector. Predictor y predict ( t0 + Δt) y( t0) + f t, y( t0) ( Δt) Corrector ( ) ( ) { f ( ) ( ) } t, y t0 + f t+δ t, ypredict t0 +Δt ( ) ycorrect t0 +Δt y t0 + Δt

16 Example dt IC problem, ( t ) y; y ( ) Analytical, = 1+ ; 0 = 1 1 y t t 4 = + + ( + Δ ) ( ) +, ( ) ( Δ ) y predict t0 t y t0 f t y t0 t ( + Δ ) ( ) + ( + ) ( ) ( Δ ) y t0 t y 0 1 t y 0 t predict

17 As before, t y( ) Δ = 0.1, 0 = 1 ( ) ( ) ( ) y predict t0 + Δt = 1.1 ( ) ( ) { f ( ) ( ) } t, y t0 + f t+ Δ t, ypredict t0 + Δt ( ) ycorrect t0 +Δt y t0 + Δt ( ) ( ) {( 1+ t ) ( ) ( ) } 0 y t0 +Δt y predict Δt ycorrect ( t0 +Δt) y( t0) + ( Δt ) ( ) ( ) {( 1+ 0) ( ) 1.1} ( ) ycorrect t0 +Δt = 1.113

18 MATLAB to solve some more steps >> n = 1; >> t = 0; >> y(1) = 1; >> yp(n+1) = y(n)+(1+*t)*sqrt(y(n))*0 ( yp = >> y(n+1) = y(n) + ((1+*t)*sqrt(y(n))+(1+*(t+0.1))*sqrt(yp(n+1)))/*0.1 y = >> n = n+1; >> t = t+0.1; >> yp(n+1) = y(n) + (1+*t)*sqrt(y(n))*0.1 yp = ( 1) ( ) ((1 *t)* t( ( )) (1 *(t 0 1))* t( ( 1)))/*0 1 >> y(n+1) = y(n) + ((1+*t)*sqrt(y(n))+(1+*(t+0.1))*sqrt(yp(n+1)))/*0.1 y = Etc >> y(n+1) = y(n) + ((1+*t)*sqrt(y(n))+(1+*(t+0.1))*sqrt(yp(n+1)))/*0.1 y =

19 MATLAB (cont d) >> t = [0:.1:.4] t = >> yana = (t.^ + t + ).^/4 yana = >> plot(t,y,'+',t,yana,'o')

20 Solution of ic ode, (Heun s method, h = 01) 0.1) ( 1 t) y; y( 0) 1 dt = + =

21 Runge Kutta methods Heun s method could be represented as where 1 1 yi+ = yi + k + k k = ( i, i) (, ) f t y k = f t + h y + kh i i 1 This is known as a nd order Runge Kutta method.

22 Extending this concept, the classical l l4 th order Runge Kutta method can be devised. where 1 ( ) y = i 1 y + + i k1 k k3 k4 h ( i i) ( i, i ) ( i, i ) (, ) k1 = f t, y k = f t + h y + kh 1 k = f t + h y + kh 3 k = f t + h y + k h 4 i i 3

23 Example problem 1 ; 0 1 dt = + = Solve ( t) y y( ) using the 4 th order Runge Kutta method. Use a step size of h = 0.4. Define k i for I = 1,,3,4 = ( + ) = ( + ) = k1 1 t y k = 1+ t+ h yi + kh 1 = = k3 = 1+ t+ h yi + kh = = k4 = 1 + t + h yi + k3 h = ( 1 + ( ) ) =

24 Plug k values, y i, and h into 1 y = i 1 y + + i ( k1 k k3 k4) h ( ) y i + 1 = = Heun method: k k 1 = 1.0 ( ) = ( = y i + 1 = = Analytical: y i+1 =

25 Using MATLAB function, ODE45 MATLAB has a number of ic ode solvers. One of the more popular solvers is known as ode45. To learn more about this particular solver as well as others, use the MATLAB help facility.

26 In a nutshell As a simple example, let s use ode45 to solve, Steps: ( 1 t) y; y( 0) 1 dt = + = 1. Create m file that conveys the ode and ic(s) to MATLAB. Call the m file from the command window.

27 Example 1 st order ode (higher order odes can also be solved) ( 1 t) y; y( 0) 1 dt = + = M file (lifted from MATLAB example) function = example1(t,y) = zeros(1,1); 1) % a column vector (1) = (1+*t)*sqrt(y(1));

28 Call m file from MATLAB command window [TY] [T,Y] = ode45(@example1,[0 0.4],[1]); 04][1]); where [T,Y] example1 [0 04] 0.4] is the output from ode45 is the name of the m file tspan is the length of time over which the ode is solved [1] is the value of the i. c., y(0)

29 MATLAB ode45 solution >> [T,Y] = ode45(@example1,[0 0.4],[1]); >> size(y) ans = 41 1 >> Y(41,1) ans = Whi h i th th lti l t l tt Which is the same as the analytical, at least to four places.

30 Higher order ODE ic problems MATLAB ode45 can also solve higher h order ode s as well as systems of ode s with multiple dependant variables. Consider a second order ode with two ic s. d y ( 0) + + y = e y( ) = = dt dt dx 1.5t , 0 1, 0 This equation is non homogeneous and linear, but ode45 can solve non linear ode s as well.

31 Converting an n th order ode to n 1 st order odes. Generic n th order ode, =,,...,,, y, t n n 1 n d y d y d y d y f n n 1 n dt dt dt dt dt Define variables y 1, y,, y n 1, y n y y y 1... y = y 1 = dt d y1 3 = = n dt dt n d y = = n dt dt n 1

32 Or, dt dt... 1 dt n dt = y = y n 1 = = 3 y n f( y, y,..., y, y, t) n n 1 1 The nth order n n 1 n ode, f d y d y d y d y =,,...,,,, n y t n 1 n dt dt dt dt dt has been converted into n 1 st order ode s.

33 Example, Consider the previous example ode with ic s, d y ( ) 1.5t y = 10 e, y ( 0 ) = 1, = 0 dt dt dx Define, y y ( 1) ( ) y ( 1 ) dx

34 Rearrange ode, d y ( 0 ) t 0 = 3.5y 10 e, y ( 0) = 1, = 0 dt dt dx Convert to two 1 st order ode s ( 1 ) dx ( ) dt ( ) ( ) = y ;@ t = 0, y 1= t ( ) ( ) t ( ) = 3y.55 y 1 10 e t = 0, y = 0

35 Create m file for system of 1 st order odes function = example(t,y) = zeros(,1); % a column vector (1) = y(); () = 3*y().5*y(1) 10*exp( 1.5*t); Comparing this m file to that from the 1 st example, we see the in zeros(,1) indicates that there are 1 st order odes to solve. The variable (1) means the derivative of variable y(1) with respect to t.

36 In the command window, enter the statement, [T,Y] = ode45(@example,[0 10],[1,0]); Also check out the size of the output, Y. >> [TY] [T,Y] = ode45(@example,[0 10],[1,0]); 0]) >> size(y) ans = 105 Y(105 ) has the solution at 105 time steps Y(105,) has the solution at 105 time steps for both y(1) and y(), y and y.

37 Analytical solution of the ode. Solve d y ( 0) + + y = e y( ) = = dt dt dx 1.5t , 0 1, 0 ( ) ( ) y t = + t t e 1.5t

38 Compare numerical solution to analytical >> plot(t,y(:,1),'o') >> grid on >> hold on >> t = linspace(0,10); >> y = ( *t 5*t.^).*exp( 1.5*t); >> plot(t,y) solution of ode, y" + 3y' +.5y = -10exp(-1.5t); y(0) = 1, y'(0) = 0 numerical analytical y(t) t

39 Two Point Boundary Value Problems (pbvp) With a higher order ode ( or greater), boundary conditions can be set at the lower end of the interval and also at the higher end of the interval. For example, d y y = 100sinh 5 dx dx 1 y( 0) = 0; y = 5 ( x )

40 For pbvp s, the boundary condition has to be satisfied at both y(0) and y(x end ). Two methods for solving the pbvp. 1. Shooting method.. Finite difference method.

41 Shooting method: Problem: ode has boundary conditions, y(0) and y(x f ), but Runge Kutta method requires initial conditions, y(0) & y (0) (0). Strategy: vary y (0) until the correct boundary condition for y(x f ) = y f is obtained.

42 Analogy: Firing a mortar. The angle of the mortar relative to the vertical is varied until the projectile hits the target. Technique: Vary the y (0) until y(x f ) = y f. Rootfinding problem, find y (0) such that f(y (0)) = y(x f ) y f = 0. Use the secant method to speed up convergence. k+ 1 ( 0) y ( 0) y = k ( 1 y ( 0 ) y ( 0 ) ) f y ( 0 ) k k ( k ) ( k ( ) ) ( k 1 0 ( 0) ) f y f y

43 Example: Consider the ode, pbvp: d y y = 100sinh 5 dx dx y 1 ( 0) = 0; y = 5 ( x) The analytical solution is ( ) y = x e + e x e x x x

44 For the numerical solution, solve using ode45 as if the problem is an ic ode, but iterate as described above to determine the required y (0) that causes y(0.5) = 5. The m file that describes the ode: function = example(x,y) = zeros(,1); % a column vector (1) = y(); () = 10*y() 5*y(1) + 100*sinh(5*x);

45 Thecommand window, >> xp0 = 0; >> xp1 = 10; %this is and initial guess for y (0) >> Yright = 5; >> toll = ; >> [xp, Yrhs, iter] = shoot(xp0,xp1,yright,toll) xp = Yrhs = iter =

46 A program employing the secant method, function [xp, Yrhs, iter] = shoot(xp0,xp1,yright,toll) [X,Y] = ode45(@example,[0.5],[0 xp0]); Y0 = Y(size(Y,1),1) Yright; [X,Y] = ode45(@example,[0.5],[0 xp1]); Y1 = Y(size(Y,1),1) Yright; iter = 0; while abs(y1 Y0)>tollY0)>toll iter = iter + 1; xp = xp1 Y1*(xp1 xp0)/(y1 Y0); [X,Y] = ode45(@example,[0.5],[0 xp]); Y = Y(size(Y,1),1) Yright; xp0 = xp1; xp1 = xp; Y0 = Y1; Y1 = Y; end plot(x,y(:,1)) % Plot the numerical result. xp = xp; Yrhs = Y + Yright;

47 Plot the analytical, >> x = linspace(0,.5,10) >> y = ( *x).*exp( 5*x) + exp(5*x)/ 5*x.^.*exp( 5*x) >> hold on >> plot(x,y,'+') '')

48 6 solution of y'' + 10y' + 5y = 100sinh(5x); y(0) = 0, Y(0.5) = 5 5 numerical analytical 4 3 y x

49 Finite difference method (for linear pbvp ode s) Basic strategy: 1. Consider a grid consisting of n nodes. Substitute finite difference expressions for derivatives in ode. This yields a system of n linear algebraic equations. 3. Solve for the resulting matrix for y(x).

50 Example: Given: d y y = 100sinh 5 dx dx 1 y( 0) = 0; y = 5 ( x ) i=1 i=n At nodes 1 and n, b.c. s are given. At nodes n 1, apply finite it difference version of ode.

51 Finite it difference ode: d y y = 100sinh 5 dx dx 1 y( 0) = 0; y = 5 ( x ) yi 1 yi + yi + 1 yi+ 1 yi y 100sinh 5 i = Δx Δx y1 = 0; y n = 5 Multiply by Δx ( x ) ( ) ( ) y y + y + 5Δx y y + 5Δ x y = 100Δx sinh 5x i 1 i i+ 1 i+ 1 i 1 i i y1 = 0; y n = 5 i

52 Solve for y i in terms of everything else: ( ) ( ) ( ) ( ) y 5Δ x y = y + y + 5Δx y y 100Δx sinh 5x y = i i i i 1 i+ 1 i+ 1 i 1 i y + y + 5Δx y y 100Δx sinh 5x 5Δx i 1 i+ 1 i+ 1 i 1 i Solve for y i using excel: 1 st, set Δ x = 0.05 to create 10 intervals between x = 0 and x = 0.5. Note that n = 11.

53 nd, define y i in nodes n = to n = 10 in excel in terms of x i, y i 1, and y i+1 i1using finite difference equation. The formula for n = is =(B3+D3+5*(C B)*(D3 B3) 100*(C B)^*SINH(5*C))/( 5*(C B)^) B)*(D3 B3) B)^*SINH(5*C))/( 5*(C B)^) Copy this formula to cells You will alsoneed to turn on excel s facility to iterate: MS Office button, excel options, formulas, enable iterative calculations.

54 Result: Analytical: for cell C4: =( *C 0.5)*EXP( 5*C)+0.5*EXP(5*C) 5*C^*EXP( 5*C) i xi yi yana

55 Result: Plot: yi yana

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 Equations (ODE)

Ordinary Differential Equations (ODE) Ordinary Differential Equations (ODE) Why study Differential Equations? Many physical phenomena are best formulated mathematically in terms of their rate of change. Motion of a swinging pendulum Bungee-jumper

More information

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS LECTURE 10 APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS Ordinary Differential Equations Initial Value Problems For Initial Value problems (IVP s), conditions are specified

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

Numerical Methods - Boundary Value Problems for ODEs

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

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

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

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 21 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University 1 All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

Differential Equations

Differential Equations Differential Equations Definitions Finite Differences Taylor Series based Methods: Euler Method Runge-Kutta Methods Improved Euler, Midpoint methods Runge Kutta (2nd, 4th order) methods Predictor-Corrector

More information

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

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

Initial Value Problems

Initial Value Problems Numerical Analysis, lecture 13: Initial Value Problems (textbook sections 10.1-4, 10.7) differential equations standard form existence & uniqueness y 0 y 2 solution methods x 0 x 1 h h x 2 y1 Euler, Heun,

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

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

Numerical Methods for the Solution of Differential Equations

Numerical Methods for the Solution of Differential Equations Numerical Methods for the Solution of Differential Equations Markus Grasmair Vienna, winter term 2011 2012 Analytical Solutions of Ordinary Differential Equations 1. Find the general solution of the differential

More information

Section 2.1 Differential Equation and Solutions

Section 2.1 Differential Equation and Solutions Section 2.1 Differential Equation and Solutions Key Terms: Ordinary Differential Equation (ODE) Independent Variable Order of a DE Partial Differential Equation (PDE) Normal Form Solution General Solution

More information

Ordinary Differential Equations. Monday, October 10, 11

Ordinary Differential Equations. Monday, October 10, 11 Ordinary Differential Equations Monday, October 10, 11 Problems involving ODEs can always be reduced to a set of first order differential equations. For example, By introducing a new variable z, this can

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

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

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

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

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

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of Scientific Computing with Case Studies SIAM Press, 2009 http://www.cs.umd.edu/users/oleary/sccswebpage Lecture Notes for Unit V Solution of Differential Equations Part 1 Dianne P. O Leary c 2008 1 The

More information

Initial value problems for ordinary differential equations

Initial value problems for ordinary differential equations AMSC/CMSC 660 Scientific Computing I Fall 2008 UNIT 5: Numerical Solution of Ordinary Differential Equations Part 1 Dianne P. O Leary c 2008 The Plan Initial value problems (ivps) for ordinary differential

More information

9.6 Predictor-Corrector Methods

9.6 Predictor-Corrector Methods SEC. 9.6 PREDICTOR-CORRECTOR METHODS 505 Adams-Bashforth-Moulton Method 9.6 Predictor-Corrector Methods The methods of Euler, Heun, Taylor, and Runge-Kutta are called single-step methods because they use

More information

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations An Overly Simplified and Brief Review of Differential Equation Solution Methods We will be dealing with initial or boundary value problems. A typical initial value problem has the form y y 0 y(0) 1 A typical

More information

Lecture 42 Determining Internal Node Values

Lecture 42 Determining Internal Node Values Lecture 42 Determining Internal Node Values As seen in the previous section, a finite element solution of a boundary value problem boils down to finding the best values of the constants {C j } n, which

More information

Ordinary differential equations - Initial value problems

Ordinary differential equations - Initial value problems Education has produced a vast population able to read but unable to distinguish what is worth reading. G.M. TREVELYAN Chapter 6 Ordinary differential equations - Initial value problems In this chapter

More information

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

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods Numerical Analysis by Dr. Anita Pal Assistant Professor Department of Matematics National Institute of Tecnology Durgapur Durgapur-7109 email: anita.buie@gmail.com 1 . Capter 8 Numerical Solution of Ordinary

More information

Ordinary Differential equations

Ordinary Differential equations Chapter 1 Ordinary Differential equations 1.1 Introduction to Ordinary Differential equation In mathematics, an ordinary differential equation (ODE) is an equation which contains functions of only one

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MATLAB sessions: Laboratory 4 MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for

More information

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP MAT 75 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP. Use MATLAB solvers for solving higher order ODEs and systems

More information

2.1 NUMERICAL SOLUTION OF SIMULTANEOUS FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS. differential equations with the initial values y(x 0. ; l.

2.1 NUMERICAL SOLUTION OF SIMULTANEOUS FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS. differential equations with the initial values y(x 0. ; l. Numerical Methods II UNIT.1 NUMERICAL SOLUTION OF SIMULTANEOUS FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS.1.1 Runge-Kutta Method of Fourth Order 1. Let = f x,y,z, = gx,y,z be the simultaneous first order

More information

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations ECE257 Numerical Methods and Scientific Computing Ordinary Differential Equations Today s s class: Stiffness Multistep Methods Stiff Equations Stiffness occurs in a problem where two or more independent

More information

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

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 Math 32 - Numerical Analysis Homework #4 Due End of term Note: In the following y i is approximation of y(t i ) and f i is f(t i,y i ).. Consider the initial value problem, y = 2y t 3y2 t 3, t 2, y() =.

More information

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

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

The family of Runge Kutta methods with two intermediate evaluations is defined by AM 205: lecture 13 Last time: Numerical solution of ordinary differential equations Today: Additional ODE methods, boundary value problems Thursday s lecture will be given by Thomas Fai Assignment 3 will

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. # 05 Ordinary Differential Equations (Refer Slide

More information

MATH 100 Introduction to the Profession

MATH 100 Introduction to the Profession MATH 100 Introduction to the Profession Differential Equations in MATLAB Greg Fasshauer Department of Applied Mathematics Illinois Institute of Technology Fall 2012 fasshauer@iit.edu MATH 100 ITP 1 What

More information

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

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn Review Taylor Series and Error Analysis Roots of Equations Linear Algebraic Equations Optimization Numerical Differentiation and Integration Ordinary Differential Equations Partial Differential Equations

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

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

Symbolic Solution of higher order equations

Symbolic Solution of higher order equations Math 216 - Assignment 4 - Higher Order Equations and Systems of Equations Due: Monday, April 16. Nothing accepted after Tuesday, April 17. This is worth 15 points. 10% points off for being late. You may

More information

Ordinary Differential Equations

Ordinary Differential Equations Chapter 7 Ordinary Differential Equations Differential equations are an extremely important tool in various science and engineering disciplines. Laws of nature are most often expressed as different equations.

More information

Applied Math for Engineers

Applied Math for Engineers Applied Math for Engineers Ming Zhong Lecture 15 March 28, 2018 Ming Zhong (JHU) AMS Spring 2018 1 / 28 Recap Table of Contents 1 Recap 2 Numerical ODEs: Single Step Methods 3 Multistep Methods 4 Method

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

Vector Fields and Solutions to Ordinary Differential Equations using Octave

Vector Fields and Solutions to Ordinary Differential Equations using Octave Vector Fields and Solutions to Ordinary Differential Equations using Andreas Stahel 6th December 29 Contents Vector fields. Vector field for the logistic equation...............................2 Solutions

More information

Solving ODEs and PDEs in MATLAB. Sören Boettcher

Solving ODEs and PDEs in MATLAB. Sören Boettcher 16.02.2009 Introduction Quick introduction to syntax ODE in the form of Initial Value Problems (IVP) what equations can handle how to code into how to choose the right solver how to get the solver to do

More information

4.4 Computing π, ln 2 and e

4.4 Computing π, ln 2 and e 252 4.4 Computing π, ln 2 and e The approximations π 3.1415927, ln 2 0.69314718, e 2.7182818 can be obtained by numerical methods applied to the following initial value problems: (1) y = 4, 1 + x2 y(0)

More information

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction 1 Introduction In this module, we develop solution techniques for numerically solving ordinary

More information

1.1 Motivation: Why study differential equations?

1.1 Motivation: Why study differential equations? Chapter 1 Introduction Contents 1.1 Motivation: Why stu differential equations?....... 1 1.2 Basics............................... 2 1.3 Growth and decay........................ 3 1.4 Introduction to Ordinary

More information

Least squares regression

Least squares regression Curve Fitting Least squares regression Interpolation Two categories of curve fitting. 1. Linear least squares regression, determining the straight line that best fits data points. 2. Interpolation, determining

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

Lecture 4. Programming

Lecture 4. Programming Lecture 4 Advanced Matlab Programming Announcements Hands-on Session on Friday 1318 EB Read Chapters 3-6 in your MATLAB book HW 2 opens up Friday evening Today Numerical analysis - I Visualization I Some

More information

Ordinary Differential Equations: Initial Value problems (IVP)

Ordinary Differential Equations: Initial Value problems (IVP) Chapter Ordinary Differential Equations: Initial Value problems (IVP) Many engineering applications can be modeled as differential equations (DE) In this book, our emphasis is about how to use computer

More information

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

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods COSC 336 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods Fall 2005 Repetition from the last lecture (I) Initial value problems: dy = f ( t, y) dt y ( a) = y 0 a t b Goal:

More information

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat. Numerical Methods for Engineers An Introduction with and Scientists Applications using MATLAB Third Edition Amos Gilat Vish- Subramaniam Department of Mechanical Engineering The Ohio State University Wiley

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Final Exam Sample Problems, Math 246, Spring 2018

Final Exam Sample Problems, Math 246, Spring 2018 Final Exam Sample Problems, Math 246, Spring 2018 1) Consider the differential equation dy dt = 9 y2 )y 2. a) Find all of its stationary points and classify their stability. b) Sketch its phase-line portrait

More information

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

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 1. Runge-Kutta Methods Numerical Analysis by Dr. Anita Pal Assistant Professor Department of Mathematics National Institute of Technology Durgapur Durgapur-71309 email: anita.buie@gmail.com 1 . Chapter 8 Numerical Solution of

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

Chapter 4: Numerical Methods for Common Mathematical Problems

Chapter 4: Numerical Methods for Common Mathematical Problems 1 Capter 4: Numerical Metods for Common Matematical Problems Interpolation Problem: Suppose we ave data defined at a discrete set of points (x i, y i ), i = 0, 1,..., N. Often it is useful to ave a smoot

More information

Solutions of Math 53 Midterm Exam I

Solutions of Math 53 Midterm Exam I Solutions of Math 53 Midterm Exam I Problem 1: (1) [8 points] Draw a direction field for the given differential equation y 0 = t + y. (2) [8 points] Based on the direction field, determine the behavior

More information

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis Appendix 3B MATLAB Functions for Modeling and Time-domain analysis MATLAB control system Toolbox contain the following functions for the time-domain response step impulse initial lsim gensig damp ltiview

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

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group NUMERICAL METHODS lor CHEMICAL ENGINEERS Using Excel', VBA, and MATLAB* VICTOR J. LAW CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup,

More information

Lesson 14: Van der Pol Circuit and ode23s

Lesson 14: Van der Pol Circuit and ode23s Lesson 4: Van der Pol Circuit and ode3s 4. Applied Problem. A series LRC circuit when coupled via mutual inductance with a triode circuit can generate a sequence of pulsing currents that have very rapid

More information

Quantitative Understanding in Biology Module IV: ODEs Lecture I: Introduction to ODEs

Quantitative Understanding in Biology Module IV: ODEs Lecture I: Introduction to ODEs Quantitative Understanding in Biology Module IV: ODEs Lecture I: Introduction to ODEs Ordinary Differential Equations We began our exploration of dynamic systems with a look at linear difference equations.

More information

Applied Numerical Analysis

Applied Numerical Analysis Applied Numerical Analysis Using MATLAB Second Edition Laurene V. Fausett Texas A&M University-Commerce PEARSON Prentice Hall Upper Saddle River, NJ 07458 Contents Preface xi 1 Foundations 1 1.1 Introductory

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

Finite Difference Method

Finite Difference Method Finite Difference Method for BVP ODEs Dec 3, 2014 1 Recall An ordinary differential equation is accompanied by auxiliary conditions. In the analytical method, these conditions are used to evaluate the

More information

MAT 275 Test 1 SOLUTIONS, FORM A

MAT 275 Test 1 SOLUTIONS, FORM A MAT 75 Test SOLUTIONS, FORM A The differential equation xy e x y + y 3 = x 7 is D neither linear nor homogeneous Solution: Linearity is ruinied by the y 3 term; homogeneity is ruined by the x 7 on the

More information

Lecture 10: Linear Multistep Methods (LMMs)

Lecture 10: Linear Multistep Methods (LMMs) Lecture 10: Linear Multistep Methods (LMMs) 2nd-order Adams-Bashforth Method The approximation for the 2nd-order Adams-Bashforth method is given by equation (10.10) in the lecture note for week 10, as

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

SME 3023 Applied Numerical Methods

SME 3023 Applied Numerical Methods UNIVERSITI TEKNOLOGI MALAYSIA SME 3023 Applied Numerical Methods Ordinary Differential Equations Abu Hasan Abdullah Faculty of Mechanical Engineering Sept 2012 Abu Hasan Abdullah (FME) SME 3023 Applied

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

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

Computer Labs for. Differential Equations & Linear Algebra

Computer Labs for. Differential Equations & Linear Algebra Computer Labs for Differential Equations & Linear Algebra Contents Preface............................... i Lab 1: Slope Fields and Solution Curves................. 1 Lab 2: Numerical Methods of Euler...................

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

More information

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

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations Supplemental Unit S5. Solving Initial Value Differential Equations Defining the Problem This supplemental unit describes how to solve a set of initial value ordinary differential equations (ODEs) numerically.

More information

Numerical Solution of Differential Equations

Numerical Solution of Differential Equations 1 Numerical Solution of Differential Equations A differential equation (or "DE") contains derivatives or differentials. In a differential equation the unknown is a function, and the differential equation

More information

SKMM 3023 Applied Numerical Methods

SKMM 3023 Applied Numerical Methods UNIVERSITI TEKNOLOGI MALAYSIA SKMM 3023 Applied Numerical Methods Ordinary Differential Equations ibn Abdullah Faculty of Mechanical Engineering Òº ÙÐÐ ÚºÒÙÐÐ ¾¼½ SKMM 3023 Applied Numerical Methods Ordinary

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

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point,

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point, 1.2. Direction Fields: Graphical Representation of the ODE and its Solution Section Objective(s): Constructing Direction Fields. Interpreting Direction Fields. Definition 1.2.1. A first order ODE of the

More information

(6.2) -The Shooting Method for Nonlinear Problems

(6.2) -The Shooting Method for Nonlinear Problems (6.2) -The Shooting Method for Nonlinear Problems Consider the boundary value problems (BVPs) for the second order differential equation of the form (*) y f x,y,y, a x b, y a and y b. When f x,y,y is linear

More information

EXAMPLE OF ONE-STEP METHOD

EXAMPLE OF ONE-STEP METHOD EXAMPLE OF ONE-STEP METHOD Consider solving y = y cos x, y(0) = 1 Imagine writing a Taylor series for the solution Y (x), say initially about x = 0. Then Y (h) = Y (0) + hy (0) + h2 2 Y (0) + h3 6 Y (0)

More information

TWO METHODS FOR OF EQUATIONS

TWO METHODS FOR OF EQUATIONS TWO METHODS FOR FINDING ROOTS OF EQUATIONS Closed (Bracketing) Methods Open Methods Motivation: i In engineering applications, it is often necessary to determine the rootofan of equation when a formula

More information

Numerical Integration of Ordinary Differential Equations for Initial Value Problems

Numerical Integration of Ordinary Differential Equations for Initial Value Problems Numerical Integration of Ordinary Differential Equations for Initial Value Problems Gerald Recktenwald Portland State University Department of Mechanical Engineering gerry@me.pdx.edu These slides are a

More information

sing matlab Farida Mosally Mathematics Department King Abdulaziz University

sing matlab Farida Mosally Mathematics Department King Abdulaziz University Solve ode, dde & pde us sing matlab Farida Mosally Mathematics Department King Abdulaziz University 2014 Outline 1. Ordinary Differential Equations (ode) 1.1 Analytic Solutions 1.2 Numerical Solutions

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations We call Ordinary Differential Equation (ODE) of nth order in the variable x, a relation of the kind: where L is an operator. If it is a linear operator, we call the equation

More information

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

Lecture 17: Ordinary Differential Equation II. First Order (continued) Lecture 17: Ordinary Differential Equation II. First Order (continued) 1. Key points Maple commands dsolve dsolve[interactive] dsolve(numeric) 2. Linear first order ODE: y' = q(x) - p(x) y In general,

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

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

Matlab Course. Anna Kristine Wåhlin. Department of Geophysics, University of Oslo. January Matlab Course p.1/?? Matlab Course Anna Kristine Wåhlin Department of Geophysics, University of Oslo January 2003 Matlab Course p.1/?? Numerical estimate of the derivative An estimate of the time derivative of dataset at time

More information

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method) Section 2.7 Euler s Method (Computer Approximation) Key Terms/ Ideas: Numerical method for approximating the solution of an IVP Linear Approximation; Tangent Line Euler Algorithm (the simplest approximation

More information

2D1240 Numerical Methods II / André Jaun, NADA, KTH NADA

2D1240 Numerical Methods II / André Jaun, NADA, KTH NADA ND 2D24 Numerical Methods II / ndré Jaun, ND, KTH 2. INITIL- / OUNDRY VLUE PROLEMS 2.. Remember: what we saw during the last lesson Euler and Runge-Kutta methods for solving ODEs Predator-prey model using

More information

Popping tags means. How long will it take to cool the trunnion? Physical Examples. ), a dt

Popping tags means. How long will it take to cool the trunnion? Physical Examples. ), a dt Ordinary Differential Equations Everything is ordinary about them Popping tags means A. Popping bubble wrap B. Using firecrackers C. Changing tags of regular items in a store with tags from clearance items

More information

Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations

Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations Research Computing with Python, Lecture 7, Numerical Integration and Solving Ordinary Differential Equations Ramses van Zon SciNet HPC Consortium November 25, 2014 Ramses van Zon (SciNet HPC Consortium)Research

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

Numerical solution of ODEs

Numerical solution of ODEs Péter Nagy, Csaba Hős 2015. H-1111, Budapest, Műegyetem rkp. 3. D building. 3 rd floor Tel: 00 36 1 463 16 80 Fax: 00 36 1 463 30 91 www.hds.bme.hu Table of contents Homework Introduction to Matlab programming

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 / 33 Almost Done! Last

More information