SMA 3261 - Lecture 7 - Numerical ODEs
SMA 3261 - Lecture 7 - Numerical ODEs
The general solution of is a relation between , and arbitrary constants which satisfies
the equation and is of the form:
If particular values of are given, then becomes a particular solution. (for this to
be obtained, conditions must be given).
Solution of first degree, first order ODE.
General form:
- -------------
B. Implicit Methods
Equation for has the form where is unknown.
RHS is non-linear. Therefore the equation must be solved for using suitable numerical
methods.
DEKUT-MPS Page 1 of 8
Numerical Methods Lec. 7
NB: Implicit Methods give better accuracy over explicit methods at the expense of additional
effort.
I. Taylor Series Method
NB: The method is applicable only when the derivatives of exist and the value of is
small enough so that the series converges.
An order Taylor series method uses order truncated Taylor series expansion. For
example, order Taylor Series method is:
Worked example
1. Solve the initial value problem , for at with . Use
4th degree Taylor seties method correct to decimal places.
Solution
DEKUT-MPS Page 2 of 8
Numerical Methods Lec. 7
Worked example
1. Solve the initial value problem , for at with . Use
Euler’s method.
Solution
The Euler method is given by
Procedure
First is obtained by unmodified Euler’s formula
Similarly,
DEKUT-MPS Page 3 of 8
Numerical Methods Lec. 7
The modified formula is iterated until convergence is achieved i.e. the condition
, is satisfied, where is a very small arbitrary value selected depending on the level
of accuracy desired.
Worked example
1. Solve the initial value problem , for at with . Use
Modified Euler’s method correct to decimal places.
Solution
The modified Euler method is given by
Then,
IV. Runge-Kutta
Fourth order Runge-Kutta method
Let ,
DEKUT-MPS Page 4 of 8
Numerical Methods Lec. 7
Where,
The fourth order Runge-Kutta method is most commonly used and is known as Runge-Kutta
method only.
Working rule
To solve , , calculate , ,
, and .
Then .
Starting from and repeating the process, obtain etc
Worked example
1. Solve the initial value problem , for at with . Use
fourth order Runge-Kutta method and work with decimal places.
Solution
V. Predictor-Corrector methods
DEKUT-MPS Page 5 of 8
Numerical Methods Lec. 7
Worked example
1. Given , , , and ,
evaluate using Milne’s method correct to decimal places. Work with decimal places.
Solution
and
By the Milne’s predictor formula,
DEKUT-MPS Page 6 of 8
Numerical Methods Lec. 7
where,
where,
Worked example
2. Given , , , and ,
evaluate using ABM method correct to decimal places. Work with decimal places.
Solution
and
By the Adam-Bashforth predictor formula,
DEKUT-MPS Page 7 of 8
Numerical Methods Lec. 7
EXERCISES
1) Use 5th degree Taylor method to solve with when and find the value of
and with .
2) Using Taylor Series method, find at given , correct to d.p.
using the 4th order method.
3) Given with , find approximately the value of for by Euler’s method (in
five steps).
4) Obtain a numerical solution of the differential equation given the initial conditions
that when , in the range . Use modified Euler’s method correct to
decimal places.
5) Obtain a numerical solution of the differential equation given the initial condition
for .
6) Find given , , , ,
using Milne’s method and Adam’s method. { , }
7) Solve , using values by the fourth-order Runge-Kutta method.
8) Use the Adam-Bashforth-Moulton predictor-corrector method to find the approximation of the
solution to the IVP , , with the starting values obtained by the
modified Euler’s method. Compare both your approximate solutions with the true solution
.
9) Using Adams-Moulton method, obtain the solution of at given the values
DEKUT-MPS Page 8 of 8