Explicite Euler method
To describe an evolutionary process, or the profile of a water line, for example, we often have to solve a first-order ordinary differential equation (EDO). This equation writes how a function varies, at a given point (an instant or a point in space), knowing the value of this mathematical function, the problem to be solved is written:
where
As we often do not know an analytical solution to this problem, we will use approximate methods to estimate the solution. So we make a discretization of the variable
The explicit Euler method is the most intuitive; it consists in considering that, from a point
The problem is solved as follows:
- we know the function
, a point where we know - so we can calculate
- we then estimate the value of
at point : - you can then iterate (solve step by step) to move to the next point. The problem is initialized from
where we know (boundary condition).
We can feel that this scheme will only work well if Delta is not too big. Values of too high
Example application: exponential process
Consider the following (simple) problem:
So we have here
- we choose
(for example, ) - calculate
- calculate
etc.
It can be seen that the resolution is not very precise; this is linked to the calculation step being too large given the method chosen and the equation to be solved.