Lecture 21 Ordinary Differential Equations IVP - PowerPoint PPT Presentation

1 / 43
About This Presentation
Title:

Lecture 21 Ordinary Differential Equations IVP

Description:

July 20, 2001. Lecture's Goals. 4th order Runge-Kutta Method. Multi-step ... four step program to get an estimate of the Taylor series through the fourth order. ... – PowerPoint PPT presentation

Number of Views:709
Avg rating:3.0/5.0
Slides: 44
Provided by: San59
Category:

less

Transcript and Presenter's Notes

Title: Lecture 21 Ordinary Differential Equations IVP


1
Lecture 21 - Ordinary Differential Equations -
IVP
  • CVEN 302
  • July 20, 2001

2
Lectures Goals
ODE Methods
  • 4th order Runge-Kutta Method
  • Multi-step Method
  • Adam Bashforth
  • Adam Moulton Method
  • Predictor-Corrector Method
  • Stability

3
Runge-Kutta Methods
The Runge-Kutta methods are higher order
approximation of the basic forward integration.
These methods provide solutions which are
comparable in accuracy to Taylor series solution
in which higher order derivatives are retained.
It should be noted that the equations are not
need to be linear.
4
Runge-Kutta Methods
5
The 4th order Runge-Kutta
This is a fourth order function that solves an
initial value problems using a four step program
to get an estimate of the Taylor series through
the fourth order. This will result in a local
error of O(Dh5) and a global error of O(Dh4)
6
The 4th order Runge-Kutta
The general form of the equations
7
4th-orderRunge-Kutta Method
f2
f4
f3
f1
xi
xi h/2
xi h
8
Runge-Kutta Method (4th Order) Example
Consider Exact
Solution The initial condition is The step
size is
9
The 4th order Runge-Kutta
The example of a single step
10
Runge-Kutta Method (4th Order) Example
The values for the 4th order Runge-Kutta method
11
Runge-Kutta Method (4th Order) Example
The values are equivalent to those of the exact
solution. If we were to go out to x5. y(5)
-111.4129 (-111.4132) The error is small relative
to the exact solution.
12
Runge-Kutta Method (4th Order) Example
A comparison between the 2nd order and the 4th
order Runge-Kutta methods show a slight
difference.
13
The 4th order Runge-Kutta
Higher order differential equations can be
treated as if they were a set of first-order
equations. Runge-Kutta type forward integration
solutions can be obtain. A more direct solution
can be obtained by repeating the whole process
used in first-order cases.
14
The 4th order Runge-Kutta
The general form of the equations
15
The 4th order Runge-Kutta
The step sizes are
The next step would be
16
One Step Method
Up until this point we have dealt with These
methods are called single step methods, because
they use only the information from the previous
step.
  • Euler Method
  • Modified Euler/Midpoint
  • Runge-Kutta Methods

17
One Step Method
The techniques are defined as
  • These methods allow us to vary the step size.
  • Use only one initial value
  • After each step is completed the past step is
    forgotten We do not use this information.

18
Multi-Step Methods
The principle behind a multi-step method is to
use past values, y and/or dy/dx to construct a
polynomial that approximate the derivative
function.
19
Multi-Step Methods
The method comes from integrating the functions.
20
Multi-Step Methods
The integral can be represented.
21
Multi-Step Methods
The integral can be represented.
22
Multi-Step Methods
These methods are known as explicit schemes
because the use of current and past values are
used to obtain the future step. The method is
initiated by using either a set of know results
or from the results of a Runge-Kutta to start the
initial value problem.
23
Adam Bashforth Method (4th Point) Example
Consider Exact
Solution The initial condition is The step
size is
24
4 Point Adam Bashforth
From the 4th order Runge Kutta The 4 Point
Adam Bashforth is
25
4 Point Adam Bashforth
The results are Upgrade the values
26
4 Point Adam Bashforth Method - Example
The values for the Adam Bashforth
27
4 Point Adam Bashforth Method - Example
The explicit Adam Bashforth method gave solution
gives good results without having to go through
large number of calculations.
28
Multi-Step Methods
There are second set of multi-step methods, which
are known as implicit methods. The implicit
methods use the future steps to modify the future
steps. What is used to do iterative method,
which will make an initial guess and use it until
stability is reached. The method is initiated by
using either a set of know results or from the
results of a Runge-Kutta to start the initial
value problem.
29
Implicit Multi-Step Methods
The main method is Adam Moulton Method
30
Implicit Multi-Step Methods
The method uses what is known as a
Predictor-Corrector technique. It uses the
explicit scheme to estimate the initial guess and
uses the value to guess the future y and dy/dx
f(x,y) values. Using these results, the Adam
Moulton method can be applied.
31
Implicit Multi-Step Methods
Adams third order Predictor-Corrector
scheme. Use the Adam Bashforth three point
explicit scheme for the initial guess. Use
the Adam Moulton three point implicit scheme to
take a second step.
32
Adam Moulton Method (3th Point) Example
Consider Exact
Solution The initial condition is The step
size is
33
4 Point Adam Bashforth
From the 4th order Runge Kutta The 3 Point
Adam Bashforth is
34
3 Point Adam Moulton Predictor-Corrector Method
The results of explicit scheme is The
functional values are
35
3 Point Adam Moulton Predictor-Corrector Method
The results of implicit scheme is The
functional values are
36
3 Point Adam Moulton Predictor-Corrector Method
The values for the Adam Moulton
37
3 Point Adam Moulton Predictor-Corrector Method
The implicit Adam Moulton method gave solution
gives good results without using more than a
three points.
38
Numerical Stability
  • Amplification or decay of numerical errors
  • A numerical method is stable if error incurred at
    one stage of the process do not tend to magnify
    at later stages
  • Ill-conditioned differential equation
  • -- numerical errors will be magnified
    regardless
  • of numerical method
  • Stiff differential equation
  • -- require extremely small step size to
    achieve
  • accurate results

39
Stability
  • Example problem

40
Explicit Euler Method
  • Stability criterion
  • Region of absolute stability

41
Stability
  • Explicit Euler method
  • Second-order Adams-Bashforth
  • Second-order Adams-Moulton

42
Summary
  • 4th order Runge-Kutta Method
  • Higher order Runge-Kutta Methods
  • Explicit Multi-Step Methods
  • Implicit Multi-Step Methods
  • Stability

43
Homework
  • Check the Homework webpage
Write a Comment
User Comments (0)
About PowerShow.com