Title: SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36
1 SE301 Numerical MethodsTopic 8 Ordinary
Differential Equations (ODEs)Lecture 28-36
KFUPM (Term 102) Section 07 Read 25.1-25.4,
26-2, 27-1
2Outline of Topic 8
- Lesson 1 Introduction to ODEs
- Lesson 2 Taylor series methods
- Lesson 3 Midpoint and Heuns method
- Lessons 4-5 Runge-Kutta methods
- Lesson 6 Solving systems of ODEs
- Lesson 7 Multiple step Methods
- Lesson 8-9 Boundary value Problems
3Lecture 31Lesson 4 Runge-Kutta Methods
4Learning Objectives of Lesson 4
- To understand the motivation for using Runge
Kutta method and the basic idea used in deriving
them. - To Familiarize with Taylor series for functions
of two variables. - Use Runge Kutta of order 2 to solve ODEs.
5Motivation
- We seek accurate methods to solve ODEs that do
not require calculating high order derivatives. - The approach is to use a formula involving
unknown coefficients then determine these
coefficients to match as many terms of the Taylor
series expansion.
6Runge-Kutta Method
7Taylor Series in Two Variables
The Taylor Series discussed in Chapter 4 is
extended to the 2-independent variable case. This
is used to prove RK formula.
8Taylor Series in One Variable
Approximation
Error
9Taylor Series in One Variable- Another Look -
10Definitions
11Taylor Series Expansion
12Taylor Series in Two Variables
yk
y
x
xh
13Runge-Kutta Method
14Runge-Kutta Method
15Runge-Kutta Method
16Runge-Kutta Method
17Runge-Kutta MethodAlternative Formula
18Runge-Kutta MethodAlternative Formula
19Runge-Kutta MethodAlternative Formulas
20Runge-Kutta Method
21Second order Runge-Kutta Method Example
22Second order Runge-Kutta Method Example
23Second order Runge-Kutta Method Example
24(No Transcript)
25Summary
- Runge Kutta methods generate an accurate solution
without the need to calculate high order
derivatives. - Second order RK have local truncation error of
order O(h3). - Fourth order RK have local truncation error of
order O(h5). - N function evaluations are needed in the Nth
order RK method.
26Lecture 32Lesson 5 Applications of Runge-Kutta
Methods to Solve First Order ODEs
27Learning Objectives of Lesson 5
- Use Runge-Kutta methods of different orders to
solve first order ODEs.
28Runge-Kutta Method
29Runge-Kutta Methods
RK2
30Runge-Kutta Methods
RK3
31Runge-Kutta Methods
RK4
32Runge-Kutta Methods
Higher order Runge-Kutta methods are
available. Higher order methods are more
accurate but require more calculations. Fourth
order is a good choice. It offers good accuracy
with a reasonable calculation effort.
33Fifth Order Runge-Kutta Methods
34Second Order Runge-Kutta Method
35Second Order Runge-Kutta Method
36Second Order Runge-Kutta Method
37Example 1Second Order Runge-Kutta Method
38Example 1Second Order Runge-Kutta Method
39Example 1Second Order Runge-Kutta Method
40Example 1Second Order Runge-Kutta Method
41Example 1Second Order Runge-Kutta Method
42Example 1Summary of the solution
Summary of the solution
43Solution after 100 steps
44Example 24th-Order Runge-Kutta Method
See RK4 Formula
45Example 2Fourth Order Runge-Kutta Method
46Example 2Fourth Order Runge-Kutta Method
See RK4 Formula
47Runge-Kutta Methods
RK4
48Example 2 Fourth Order Runge-Kutta Method
49Example 2Summary of the solution
Summary of the solution
50Remaining Lessons in Topic 8
Lesson 6 Solving Systems of high order
ODE Lesson 7 Multi-step methods Lessons
8-9 Methods to solve Boundary Value Problems