4.5.
Stiff
systems
of
ODEs
117
that
requires
a
small time
step—initially,
the
solution
is
changing over
a
very small
time scale,
and the
time step must
be
small
to
model this behavior accurately.
If,
at the
same time, there
are
small negative eigenvalues, then
the
system also
models components
that
die out
more slowly. Once
the
transients have died out,
one
ought
to be
able
to
increase
the
time
step
to
model
the
more slowly varying
components
of the
solution. However, this
is the
weakness
of
explicit methods like
Euler's method, RK4,
and
others:
the
transient behavior inherent
in the
system
haunts
the
numerical method even when
the
transient
components
of the
solution
have died out.
A
time step
that
ought
to be
small enough
to
accurately
follow
the
slowly
varying components produces instability
in the
numerical method
and
ruins
the
computed solution.
A
system with negative eigenvalues
of
widely
different
magnitudes (that
is, a
system
that
models components
that
decay
at
greatly
different
rates)
is
sometimes
called
stiff.
22
Stiff
problems require special numerical methods;
we
give examples
below
in
Section 4.5.2. First, however,
we
discuss
a
simple example
for
which
the
ideas presented above
can be
easily understood.
4.5.1
A
simple
example
of a
stiff
system
The
IVP
has
solution
and the
system
qualifies
as
stiff
according
to the
description given above.
We
will
apply Euler's method, since
it is
simple enough
that
we can
completely understand
its
behavior. However, similar results would
be
obtained with
RK4 or
another
explicit
method.
To
understand
the
behavior
of
Euler's method
on
(4.37),
we
write
it out ex-
plicitly.
We
have
with
that
is,
22
Stiffness
is a
surprisingly
subtle
concept.
The
definition
we
follow
here
does
not
capture
all of
this
subtlety;
moreover,
there
is not a
single,
well-accepted
definition
of a
stiff
system.
See
[33],
Section
6.2,
for a
discussion
of the
various
definitions
of
stiffness.
4.5. Stiff systems of ODEs
117
that
requires a small time
step-initially,
the solution is changing over a very small
time scale,
and
the
time step must
be
small
to
model this behavior accurately.
If,
at
the
same time, there are small negative eigenvalues,
then
the system also
models components
that
die
out
more slowly. Once
the
transients have died out,
one ought
to
be able
to
increase
the
time step
to
model
the
more slowly varying
components of
the
solution. However, this is
the
weakness of explicit methods like
Euler's method, RK4,
and
others:
the
transient behavior inherent in
the
system
haunts
the
numerical method even when
the
transient components of
the
solution
have died out. A time step
that
ought
to
be small enough
to
accurately follow
the
slowly varying components produces instability in
the
numerical method and ruins
the
computed solution.
A system with negative eigenvalues of widely different magnitudes
(that
is, a
system
that
models components
that
decay
at
greatly different rates) is sometimes
called
stiJJ.22
Stiff problems require special numerical methods;
we
give examples
below in Section 4.5.2. First, however,
we
discuss a simple example for which
the
ideas presented above can be easily understood.
4.5.1 A simple example
of
a stiff system
The
IVP
has solution
d~l
=
-10
7
Ul,
Ul(O)
=
1,
dU2
dt
=
-U2,
U2(0) = 1
(t) = [
ul(0)e-
107t
]
u
u2(0)e-
t
'
(4.37)
and
the system qualifies as stiff according
to
the
description given above.
We
will
apply Euler's method, since
it
is simple enough
that
we
can completely understand
its behavior. However, similar results would be obtained with RK4 or another
explicit method.
To understand
the
behavior of Euler's method on (4.37),
we
write
it
out
ex-
plicitly.
We
have
with
that
is,
U~n+1)
=
u~n)
_
10
7
~tu~n)
=
(1
- 10
7
~t)
u~n),
u~n+1)
=
u~n)
_
~tu~n)
=
(1
-
~t)
u~n).
22Stiffness is a surprisingly subtle concept.
The
definition we follow here does
not
capture
all of
this subtlety; moreover,
there
is not a single, well-accepted definition
of
a stiff system. See
[33],
Section 6.2, for a discussion
of
the
various definitions of stiffness.