THE
MIDPOINT METHOD 365
From these values,
/3
0
~
1 and
/3
1
~ 0
as
h
~
0.
Therefore in the formula
(6.4.15), the term
f3
0
r
0
n
should correspond to the true solution e>.x., since the term
/3
1
rt
~
0 as h
~
0.
In fact,
(6.4.17)
whose proof we leave to the reader.
To
see
the difficulty in the numerical solution of
y'
=
AY
using (6.4.15),
examine carefully the relative sizes of r
0
and r
1
•
We consider only the case of real
A.
For
0 < A <
oo,
for all h,
Thus the term r
1
n
wili
increase less rapidly than r
0
n,
and the correct term in the
general solution
(6.4.15) will dominate, namely
f3
0
r
0
.
However,. for -
oo
< A <
0,
we
will
have
0 < r
0
< 1
h>O
As a consequence,
/3
1
r
1
n will eventually dominate
f3
0
r
0
nas
n increases, for fixed h,
no matter how small h
is
chosen initially. The term
f3
0
r
0
n
~
0 as n
~
oo;
whereas, the term
f3
1
rt
increases in magnitude, alternating in sign
as
n increases.
The term
/3
1
rt
is
called a parasitic solution of the numerical method (6.4.11),
since it does
not
correspond to any solution of the original differential equation
y'
= Ay. This original equation has a one-parameter family of solutions, depend-
ing on the initial value
Y
0
,
but the approximation (6.4.11) has the two-parameter
family
(6.4.15), which
is
dependent on y
0
and Y!· The new solution
f3
1
rt
is a
creation of the numerical method; for problem
(6.4.10) with A <
0,
it will cause
the numerical solution to diverge from the true solution
as
xn
~
oo.
Because of
this behavior,
we
say that the midpoint method is only weakly stable.
We return to this topic in Section
6.8,
after some necessary theory has been
introduced. We generalize the applicability of the model problem
(6.4.10) by
considering the sign of
aj(x,
Y(x))/
a
y.
If
it
is
negative, then the weak instability
of the midpoint method will
usmilly appear in solving the associated initial value
problem. This
is
illustrated in the second example below.
Example
1.
Consider the model problem (6.4.10) with
A=
-1.
The numerical
results are given in Table
6.6 for h = ..
25.
The value y
1
was obtained using
Euler's method, as in
(6.4.6). From the values in the table, the parasitic solution
is
clearly growing in magnitude. For xn =
2.25,
the numerical solution
Yn
becomes
negative,
and
it alternates in sign with each successive step.
2. Consider the problem
y'
=X-
y2
y(O)
= 0
The solution
¥(x)
is
strictly increasing for x;::: 0; for large
x,
Y(x)
=
/X.