Numerical Analysis Lecture 37.

Slides:



Advertisements
Similar presentations
Formal Computational Skills
Advertisements

Ordinary Differential Equations
Derivation of the third-order
Chapter 6 Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
HAMPIRAN NUMERIK SOLUSI PERSAMAAN DIFERENSIAL (lanjutan) Pertemuan 12 Matakuliah: METODE NUMERIK I Tahun: 2008.
PART 7 Ordinary Differential Equations ODEs
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Initial-Value Problems
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
Ch 6.2: Solution of Initial Value Problems
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Differential Equations and Boundary Value Problems
PART 7 Ordinary Differential Equations ODEs
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Taylor Series.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Computational Method in Chemical Engineering (TKK-2109)
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Integration of 3-body encounter. Figure taken from
Series Solutions of Linear Differential Equations CHAPTER 5.
Engineering Analysis – Computational Fluid Dynamics –
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Math 3120 Differential Equations with Boundary Value Problems
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Differential Equations
1/14  5.2 Euler’s Method Compute the approximations of y(t) at a set of ( usually equally-spaced ) mesh points a = t 0 < t 1
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Ch 6.2: Solution of Initial Value Problems The Laplace transform is named for the French mathematician Laplace, who studied this transform in The.
1 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
1.1 Basic Concepts. Modeling
Part 7 - Chapter 25.
Ordinary Differential Equations
Chapter 8: Linear Systems of Equations
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Class Notes 19: Numerical Methods (2/2)
Ch 8.6: Systems of First Order Equations
Ch 4.4: Variation of Parameters
Numerical Analysis Lecture 45.
Chapter 27.
Sec:25.3 RUNGE-KUTTA METHODS.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Part 7 - Chapter 25.
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Sec:5.4 RUNGE-KUTTA METHODS.
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 38.
topic4: Implicit method, Stability, ADI method
MATH 175: NUMERICAL ANALYSIS II
Numerical Analysis Lecture 2.
Numerical solution of first-order ordinary differential equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Ch5 Initial-Value Problems for ODE
topic4: Implicit method, Stability, ADI method
Numerical Analysis Lecture 36.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

Numerical Analysis Lecture 37

Chapter 7 Ordinary Differential Equations

Introduction Taylor Series Euler Method Runge-Kutta Method Predictor Corrector Method

TAYLOR’S SERIES METHOD

We considered an initial value problem described by

We expanded y (t ) by Taylor’s series about the point t = t0 and obtain

Noting that f is an implicit function of y, we have

Similarly

EULER METHOD

Consider the differential equation of first order with the initial condition y(t0) = y0.

The value of y corresponding to t = t1

Similarly

Then, we obtained the solution in the form of a recurrence relation

MODIFIED EULER’S METHOD

The recurrence relation is the modified Euler’s method.

RUNGE – KUTTA METHOD

These are computationally, most efficient methods in terms of accuracy These are computationally, most efficient methods in terms of accuracy. They were developed by two German mathematicians, Runge and Kutta.

They are distinguished by their orders in the sense that they agree with Taylor’s series solution up to terms of hr, where r is the order of the method. These methods do not demand prior computation of higher derivatives of y(t) as in TSM.

Fourth-order Runge-Kutta methods are widely used for finding the numerical solutions of linear or non-linear ordinary differential equations, the development of which is complicated algebraically.

Therefore, we convey the basic idea of these methods by developing the second-order Runge-Kutta method which we shall refer hereafter as R-K method.

Please recall that the modified Euler’s method: which can be viewed as (average of slopes) This, in fact, is the basic idea of R-K method.

Here, we find the slopes not only at tnbut also at several other interior points, and take the weighted average of these slopes and add to yn to get yn+1. Now, we shall derive the second order R-K method in the following slides.

Consider the IVP We also define and take the weighted average of k1 and k2 and add to yn to get yn+1

We seek a formula of the form Where are constants to be determined so that the above equation agree with the Taylor’s series expansion as high an order as possible

Thus, using Taylor’s series expansion, we have

Rewriting the derivatives of y in terms of f of the above equation, we get Here, all derivatives are evaluated at (tn, yn).

Next, we shall rewrite the given equation after inserting the expressions or k1 and k2 as

Now using Taylor’s series expansion of two variables, we obtain

Here again, all derivatives are computed at (tn, yn) Here again, all derivatives are computed at (tn, yn). On inserting the expression for k1, the above equation becomes

On rearranging in the increasing powers of h, we get

Now, equating coefficients of h and h2 in the two equations, we obtain Implying

Thus, we have three equations in four unknowns and so, we can chose one value arbitrarily. Solving we get where W2 is arbitrary and various values can be assigned to it

Case I We now consider two cases, which are popular If we choose W2 = 1/3, then W1 = 2/3 and

Case II: If we consider W2 = ½, then W1 = ½ and Then

In fact, we can recognize that this equation is the modified Euler’s method and is therefore a special case of a 2nd order Runge-Kutta method. These equations are known as 2nd order R –K Methods, since they agree with Taylor’s series solution up to the term h2.

Defining the local truncation error, TE, as the difference between the exact solution y(tn+1) at t = tn+1 and the numerical solution yn+1, obtained using the second order R – K method, we have

Now, substituting into the above equation, we get

Finally, we obtain The expression can further be simplified to

Therefore, the expression for local truncation error is given by Please verify that the magnitude of the TE in case I is less than that of case II

Following similar procedure, Runge-Kutta formulae of any order can be obtained. However, their derivations becomes exceedingly lengthy and complicated.

Amongst them, the most popular and commonly used in practice is the R-K method of fourth-order, which agrees with the Taylor series method up to terms of O (h4).

This well-known fourth-order R-K method is described in the following steps.

where

Please note that the second-order Runge-Kutta method described above requires the evaluation of the function twice for each complete step of integration.

Similarly, fourth-order Runge-Kutta method requires the evaluation of the function four times. The discussion on optimal order R-K method is very interesting, but will be discussed some other time.

Numerical Analysis Lecture 37