
The ®rst-order ordinary diÿerential equation
dy
dx
f x; y; 13:18
with the initial condition y y
0
when x x
0
, has the solution
y ÿ y
0
Z
x
x
0
f t; ytdt: 13:19
This integral equation cannot be evaluated because the value of y under the
integral sign is unknown. We now consider three simple methods of obtaining
approximate solutions: Euler's method, Taylor series method, and the Runge±
Kutta method.
Euler's method
Euler proposed the following crude approach to ®nding the approximate solution.
He began at the initial point x
0
; y
0
and extended the solution to the right to the
point x
1
x
0
h, where h is a small quantity. In order to use Eq. (13.19) to
obtain the approximation to yx
1
, he had to choose an approximation to f on
the interval x
0
; x
1
. The simplest of all approximations is to use f t; yt
f x
0
; y
0
. With this choice, Eq. (13.19) gives
yx
1
y
0
Z
x
1
x
0
f x
0
; y
0
dt y
0
f x
0
; y
0
x
1
ÿ x
0
:
Letting y
1
yx
1
, we have
y
1
y
0
f x
0
; y
0
x
1
ÿ x
0
: 13:20
From y
1
; y
0
1
f x
1
; y
1
can be computed. To extend the approximate solution
further to the right to the point x
2
x
1
h, we use the approximation:
f t; yt y
0
1
f x
1
; y
1
. Then we obtain
y
2
yx
2
y
1
Z
x
2
x
1
f x
1
; y
1
dt y
1
f x
1
; y
1
x
2
ÿ x
1
:
Continuing in this way, we approximate y
3
, y
4
, and so on.
There is a simple geometrical interpretation of Euler's method. We ®rst note
that f x
0
; y
0
y
0
x
0
, and that the equation of the tangent line at the point
x
0
; y
0
to the actual solution curve (or the integral curve) y yx is
y ÿ y
0
Z
x
x
0
f t; ytdt f x
0
; y
0
x ÿ x
0
:
Comparing this with Eq. (13.20), we see that x
1
; y
1
lies on the tangent line to the
actual solution curve at (x
0
; y
0
). Thus, to move from point (x
0
; y
0
) to point (x
1
; y
1
)
we proceed along this tangent line. Similarly, to move to point (x
2
; y
2
we proceed
parallel to the tangent line to the solution curve at (x
1
; y
1
, as shown in Fig. 13.8.
470
NUMERICAL METHODS