TABLE OF CONTENTS
・Euler method
Mathematics articles that help in reading this article
・Numerical Computation:Ep. 1, Ep. 2, Ep. 5, Ep. 6, Ep. 7, Ep. 8
・Numerical Computation:Ep. 1, Ep. 2, Ep. 5, Ep. 6, Ep. 7, Ep. 8
Euler method
A differential equation in which the unknown function depends on only one variable is called an ordinary
differential equation (ODE).
Numerical integration of a differential equation refers not to solving it through indefinite
integrals, but rather to using appropriate approximation methods to obtain approximate solutions known as
numerical solutions.
Some differential equations cannot be solved in terms of indefinite integrals, or their solutions can only
be expressed using special functions.
In such cases, numerical integration becomes useful.
\[ \text{Euler method}\]
The Euler method is one of the numerical integration methods for ordinary differential
equations.
For an unknown function \( y = f(x) \), suppose that its derivative function \( y' = f'(x) \) is known.
Assuming \( n \) is a natural number, \( h \) is the step size, and the initial value is \( \left(
x_0,y_0 \right) \), the numerical solution \( \left( x_n,y_n \right) \) is obtained as follows.
\[ \begin{align}
x_n &= x_{n-1} + h \\\\
y_n &= y_{n-1} + hf'(x_{n-1})
\end{align}\]
\[ \begin{align}
y_n &= y_{n-1} + hf'(x_{n-1}) \\\\
y_n - y_{n-1} &= hf'(x_{n-1}) \\\\
\frac{y_n - y_{n-1}}{h} &= f'(x_{n-1}) \\\\
f'(x_{n-1}) &= \frac{y_n - y_{n-1}}{h}
\end{align}\]
Euler method
\[ f'(x_{n-1}) = \frac{y_n - y_{n-1}}{h} \]
The derivative at \( x_{n-1} \)
\[ \begin{align}
f'(x_{n-1}) &= \lim_{h \to 0} \frac{f(x_{n-1}+h) - f(x_{n-1})}{h} \\\\
&= \lim_{h \to 0} \frac{f(x_{n}) - f(x_{n-1})}{h}
\end{align} \]
If we regard \( y_n = f(x_n) \), Euler’s method and the definition of the derivative at \( x_{n-1} \) are
essentially the same, except for the presence or absence of the limit notation.
Euler’s method deliberately treats \( h \) not as the limit \( h \to 0 \) in the definition of the
derivative, but as a finite step size, which makes it possible to compute the value of \( y_n \) from the
initial value.
The black line represents the numerical solution obtained with Euler’s method, while the blue dashed line
shows the true solution \( y = \frac{1}{4} x^2 \).
What Euler’s method actually computes are the black dots; the black line connecting them is just drawn for
clarity, so keep that in mind.
The error between the numerical solution \( y_n \) obtained by Euler’s method and the exact value is known
to be roughly proportional to the step size \( h \).
However, making the step size smaller increases the number of calculations, and when computing on a
computer, rounding errors (round-off errors) also become more significant. So, smaller is not always
better.
From the perspective of keeping computation time short, using an excessively small step size that
drastically increases the number of calculations is also undesirable. Therefore, it is important to choose
an appropriate step size.
Finally, Leonhard Euler, who devised Euler’s method, was an 18th-century mathematician born in Switzerland.
He laid the foundations for many areas of mathematics and physics, and numerous theorems and equations bear
his name—Euler’s method is just one of them.
Leonhard Euler(1707-1783)
References:
[1] Euler method, https://en.wikipedia.org/wiki/Euler_method, August
14, 2023
[2] オイラー法の誤差について, https://hinabit.hatenablog.com/entry/2015/02/13/015201,
August 14, 2023
[3] Stanley J. Farlow, Partial Differential Equations for Scientists and Engineers, Dover Publications,
September 1, 1993
[4] Wikipedia Leonhard Euler, https://en.wikipedia.org/wiki/Leonhard_Euler,
August 22, 2025