Title: SE301:Numerical Methods Unit 7 Solution of Ordinary Differential Equations
1SE301Numerical MethodsUnit 7Solution of
Ordinary Differential Equations
- Lesson 6 Solution of Systems of ODEs
2Learning Objectives of Lesson 6
- Convert a single (or a system of ) high order
ODEs to a system of first order ODEs - Use the methods discussed earlier in this unit
to solve systems of first order ODEs.
3Outlines of Lesson 6
- Solution of a system of first order ODEs
- Conversion of a high order ODEs to a system of
first order ODEs - Conversion of a system of high order ODEs to a
system of first order ODEs - Use different methods to solve systems of first
order ODEs. - Use different methods to solve high order ODEs.
- Use different methods to solve systems of high
order ODEs.
4Solving a system of first order ODEs
- Methods discussed earlier such as Euler,
Runge-Kutta,are used to solve first order
ordinary differential equations - The same formulas will be used to solve a system
of first order ODEs. In this case, the
differential equation is a vector equation and
the dependent variable is a vector variable.
5Euler method for solving a system of first order
ODEs
- Recall Euler method for solving first order ODE.
6Example Euler method
- Euler method to solve a system of n first order
ODE.
7Solving a system of n first order ODEs
- Exactly the same formula is used but the scalar
variables and functions are replaced by vector
variables and vector values functions. - Y is a vector of length n
- F(Y,x) is vector valued function
8Example Euler method for solving a system of
first order ODEs
9Example RK2 method for solving a system of
first order ODEs
10Example RK2 method for solving a system of
first order ODEs
11Method for solving a system of first order ODEs
- We have extended Euler and RK2 methods to solve
systems of first order ODE - Other methods used to solve first order ODE can
be easily extended to solve systems of first
order ODE
12High Order ODE
- How do solve second order ODE?
- How do solve high order ODE?
13The general approach to solve ODEs
convert
solve
high order ODE
System of first order ODE
convert
solve
Second order ODE
Two first order ODEs
14Conversion Procedure
convert
solve
high order ODE
System of first order ODE
- Select of dependent variables
- One way is to take the original dependent
variable and its derivatives up to one degree
less than the highest order derivative. - Write the Differential Equations in terms of the
new variables. The equations comes from the way
the new variables are defined or from the
original equation. - Express the equations in matrix form
15Remarks on the Conversion Procedure
convert
solve
high order ODE
System of first order ODE
- Any nth order ODE is converted to a system of n
first order ODE. - There are infinite number of ways to select the
new variables. As a result, for each high order
ODE there are infinite number of set of
equivalent first order systems of ODEs. - Use a table to make conversion easier.
16Example of converting High order ODE to first
order ODEs
One degree less than the highest order derivative
17Example of converting High order ODE to first
order ODEs
18Example of converting High order ODE to first
order ODEs
One degree less than the highest order derivative
19Example of converting High order ODE to first
order ODEs
20Conversion Procedure for Systems of high order
ODEs
convert
solve
System of high order ODE
System of first order ODE
- Select of dependent variables
- take the original dependent variables and
their derivatives up to one degree less than the
highest order derivative for each variable. - Write the Differential Equations in terms of the
new variables. The equations comes from the way
the new variables are defined or from the
original equation. - Express the equations in matrix form
21Example of converting High order ODE to first
order ODEs
One degree less than the highest order derivative
One degree less than the highest order derivative
22Example of converting High order ODE to first
order ODEs
One degree less than the highest order derivative
One degree less than the highest order derivative
23Example of converting High order ODE to first
order ODEs
24Solution of a second order ODE
- Solve the equation using Euler method. Use h0.1
25Solution of a second order ODE
26Summary
- Formulas used in solving a first order ODE are
used to solve systems of first order ODEs.
Instead of scalar variables and functions we have
vector variables and vector functions. - High order ODEs are converted to a set of first
order ODEs
27Remaining Lessons in Unit 7
Solution of ODE
Lesson 7 Multi-step methods
- Lessons 8-9
- Boundary Value Problems
- Discretization method