Professional Documents
Culture Documents
(CB424)
Atanu K Metya
atanu.metya@iitp.ac.in
Ordinary Differential Equations
Euler’s method
• !!"# = !! + $ℎ
• $ = & '! , !!
Example:
Use Euler’s method to numerically integrate
y' = 4e0.8t - 0.5y = f(y,t) from t = 0 to 4 with a step size of 1.
The initial condition at t = 0 is y = 2. The exact solution can be determined
by
Error Analysis for Euler’s Method
For sufficiently small h, the errors in the terms usually decrease as the order increases
and the result is often represented as
Improvements of Euler’s Method
Predictor equation
Corrector equation
Use Heun’s method to integrate y' = 4e0.8t – 0.5y from t = 0 to 4
with a step size of 1. The initial condition at t = 0 is y = 2. The
stopping criterion is 0.00001%
Midpoint Method
• The local and global errors of the midpoint method are O(h3) and O(h2),
respectively.
RUNGE-KUTTA METHODS