Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Ordinary Differential Equations
Chapter 6 Differential Equations
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 08: Series Solutions of Second Order Linear Equations.
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
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
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.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Math 3120 Differential Equations with Boundary Value Problems
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Ordinary Differential Equations (ODEs)
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
PART 7 Ordinary Differential Equations ODEs
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.
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.
Numerical Integration Methods
Integrals 5.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Simpson Rule For Integration.
Integration of 3-body encounter. Figure taken from
Numerical Methods.
Engineering Analysis – Computational Fluid Dynamics –
Scientific Computing Multi-Step and Predictor-Corrector Methods.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Numerical Analysis – Differential Equation
Please remember: When you me, do it to Please type “numerical-15” at the beginning of the subject line Do not reply to my gmail,
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
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.
Math 3120 Differential Equations with Boundary Value Problems
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Ordinary Differential Equations
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
This chapter is concerned with the problem in the form Chapter 6 focuses on how to find the numerical solutions of the given initial-value problems. Main.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
Part 7 - Chapter 25.
Numerical Methods by Dr. Laila Fouad.
Ordinary Differential Equations
3-2: Solving Systems of Equations using Substitution
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)
Numerical Analysis Lecture 45.
CSE 245: Computer Aided Circuit Simulation and Verification
3-2: Solving Systems of Equations using Substitution
Solving Systems of Equations using Substitution
Chapter 26.
3-2: Solving Systems of Equations using Substitution
Numerical Analysis Lecture 23.
Part 7 - Chapter 25.
Numerical Analysis Lecture 37.
Numerical Analysis Lecture 38.
MATH 175: Numerical Analysis II
Ch5 Initial-Value Problems for ODE
3-2: Solving Systems of Equations using Substitution
MATH 175: NUMERICAL ANALYSIS II
Numerical Analysis Lecture 36.
Presentation transcript:

Lecture 40 Numerical Analysis

Chapter 7 Ordinary Differential Equations

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

RUNGA- KUTTA METHODS

We considered the IVP We also defined and took the weighted average of k 1 and k 2 and added to y n to get y n+1

We obtained Implying

We considered two cases, Case I We choose W 2 = 1/3, then W 1 = 2/3 and

Case II: We considered W 2 = ½, then W 1 = ½ and Then

The fourth-order R-K method was described as

where

PREDICTOR – CORRECTOR METHOD

Milne’s Method It is a multi-step method where we assume that the solution to the given IVP is known at the past four equally spaced point t 0, t 1, t 2 and t 3.

Alternatively, it can also be written as This is known as Milne’s predictor formula.

Similarly, integrating the original over the interval t 0 to t 2 or s = 0 to 2 and repeating the above steps, we get which is known as Milne’s predictor formula.

In general, Milne’s predictor- corrector pair can be written as

Adam-Moulton Method It is another predictor- corrector method, where we use the fact that the solution to the given initial value problem is known at past four equally spaced points t n, t n-1, t n-2, t n-3.

The task is to compute the value of y at t n+1. Let us consider the differential equation

Integrating between the limits t n to t n+1, we have That is,

To carry out integration, we proceed as follows. We employ Newton’s backward interpolation formula, so that

After substitution, we obtain

Now by changing the variable of integration (from t to s), the limits of integration also changes (from 0 to 1), and thus the above expression becomes

Actual integration reduces the above expression to Now substituting the differences such as

Equation simplifies to Alternatively, it can be written as This is known as Adam’s predictor formula.

The truncation error is To obtain corrector formula, we use Newton’s backward interpolation formula about f n+1 instead of f n.

We obtain Carrying out the integration and repeating the steps, we get the corrector formula as

Here, the truncation error is The truncation error in Adam’s predictor is approximately thirteen times more than that in the corrector, but with opposite sign.

In general, Adam-Moulton predictor-corrector pair can be written as

Example Using Adam-Moulton predictor-corrector method, find the solution of the initial value problem at t = 1.0, taking h = 0.2. Compare it with the analytical solution.

Solution In order to use Adam’s P-C method, we require the solution of the given differential equation at the past four equally spaced points, for which we use R-K method of 4 th order which is self starting.

Thus taking t 0 =0, y 0 = 1, h = 0.2, we compute k 1 = 0.2, k 2 = 0.218, k 3 = , k 4 = , and get

Taking t 1 = 0.2, y 1 = , h = 0.2, we compute k 1 = , k 2 = , k 3 = , k 4 = , and get

Now, we take t 2 = 0.4, y 2 = , h = 0.2, and compute k 1 = , k 2 = , k 3 = , k 4 = to get

Thus, we have at our disposal

Now, we use Adam’s P-C pair to calculate y (0.8) and y (1.0) as follows: Thus (1)

From the given differential equation, we have Therefore, Therefore,

Hence, from Eq. (1), we get Now to obtain the corrector value of y at t = 0.8, we use (2)

But, Therefore, Proceeding similarly, we get (3)

Noting that we calculate we calculate Now, the corrector formula for computing y 5 is given by (4)

But, Thus, finally we get (5)

The analytical solution can be seen in the following steps. After finding integrating factor and solving, we get

Integrating, we get That is, Now using the initial condition, y(0) = 1, we get c = – 1.

Therefore, the analytical solution is given by from which, we get

Convergence and Stability Considerations

The numerical solution of a differential equation can be shown to converge to its exact solution, if the step size h is very small.

The numerical solution of a differential equation is said to be stable if the error do not grow exponentially as we compute from one step to another.

Stability consideration are very important in finding the numerical solutions of the differential equations either by single-step methods or by using multi- step methods.

However, theoretical analysis of stability and convergence of R -K methods and P –C methods are highly involved and obtain numerically stable solution using 4 th order R – K method to the simple problem y’ = Ay gives us stability condition as -2.78<Ah

In practice, to get numerically stable solutions to similar problems, we choose the value of h much smaller than the value given by the above condition and also check for consistency of the result.

Another topic of interest which is not considered, namely the stiff system of differential equations that arises in many chemical engineering systems, such as chemical reactors, where the rate constants for the reactions involved are widely different.

Most of the realistic stiff DE do not have analytical solutions and therefore only numerical solutions can be obtained.

However, to get numerically stable solutions, a very small step size h is required, to use either R-K methods or P – C methods. More computer time is required

Lecture 40 Numerical Analysis