Euler's Method and Error Analysis PDF
Euler's Method and Error Analysis PDF
Report By
Supervised by
In this report, we introduce the notion of Euler's method and error analysis. And we
obtain various conditions for stability analysis and it has been shown that the Euler's method is
convergent and consistent. The method is clarified with the help of numerical illustration and
graphical analysis.
It is sometimes felt that the step size is root cause for such misconceptions. But it is hardly felt
that clubbing of the forward Euler algorithm with the backward Euler algorithm for convenience can
lead to serious misconceptions and of course it depends on the nature of the problems. With this in
mind we consider few such problems that falls under the category of Ordinary Deferential Equation
(ODE).
Euler’s Method and Error Analysis Shatha Hani
1. Introduction
Differential equations are used to model problems that involve the change of some variable
with respect to another. These problems require the solution to an initial- value problem that
is, the solution to a differential equation that satisfied a given (initial condition). [1]The
methods we consider in this paper is the Euler’s method. It is a numerical technique to solve
ordinary differential equations of the form
2. Numerical Method
The numerical method forms an important part of solving initial value problem in ordinary
differential equation, most especially in cases where there is no closed form analytic, formula or
difficult to obtain exact solution. Next, we shall present Euler’s method for solving initial value
problems in ordinary differential equations
3. Euler’s Method
Euler’s method is also called tangent line method and is the simplest numerical method for
solving initial value problem in ordinary differential equation, particularly suitable for quick
programming which was originated by Leonhard Euler in 1768. This method subdivided into three
namely:
1
Euler’s Method and Error Analysis Shatha Hani
for n = 1: N −1
xn+1 = xn + h
yn+1 = yn + hf (xn , yn )
Step 6: end
From the graph let y1 denotes y(x1) and y0 denotes y(x0): So the slope
2
Euler’s Method and Error Analysis Shatha Hani
One can use the value of y(xi) (an approximate value of y at x = xi)
Then
3
Euler’s Method and Error Analysis Shatha Hani
Example (1):Use Euler's method on the interval [0, 1] to find the solution
But from the given equation ,by using the method of separation of variables,
4
Euler’s Method and Error Analysis Shatha Hani
5
Euler’s Method and Error Analysis Shatha Hani
then examine the effect of( h) on the stability of the Euler's method and give graphical
explanation when:
a) n=20
b) n=25
c) n=30
Here the solution oscillates and the error grows slowly. The method is unstable.
Here the solution oscillates and the error grows slowly. The method is in some sense stable.
6
Euler’s Method and Error Analysis Shatha Hani
n=50
n=100
So we have
which implies the solution stable and similarly when n = 100 the solution is stable Remark: The
above examples indicates that a numerical method can not be applied as we like to a given initial
value problem. The choice of the step length is very important and it is governed by the stability
condition.
7
Euler’s Method and Error Analysis Shatha Hani
4. Conclusion
In general, each numerical method has its own advantages and disadvantages of use: Euler’s
method is therefore best reserved for simple preferably, recursive derivatives that can be represented
by few terms. It is simple to implement and simplifies rigorous analysis. The major disadvantages of
this method are the tiresome, sometimes impossible calculation of higher derivatives and the slow
convergence of the series for some functions, which involves terms of opposite sign.
This report examines one of the most popular numerical methods for solving the deferential
equation of the form
This report also dealt with the error analysis of the Euler's method. And we are able to show
that the Eulers method is convergent as well as consistent .Further more we investigated the stability
conditions of the Euler's method and it is found that the stability condition is
In general a numerical method can not be applied as we like to a given initial value problem.
The choice of the step length is very important and it is governed by the stability condition.