First, a useful lemma:
Lemma.
For any real
for any
Proof.
Taylor
between 0 and
i.e.
For simplicity, assume that
satisfies stronger Lipschitz
condition:
![]() |
(this condition is stronger than necessary
it just simplifies proofs and avoids technicalities that can be mastered
after this case is understood).
Remark. Forward Euler (see 0.1.2) is not the best ODE integrator: but it is the simplest.
(Convergence for Forward Euler) Assume
is solution of IVP
(with
satisfying the Lipschitz condition) and
| obtained by Euler method satisfies | |||
![]() |
where
and
is the Lipschitz constant
associated with the IVP and
If, in addition,
as
for some
(e.g.
for all
)
constant
Remark.
How big is
? Could be large!!
Proof.
Let
.
let
number of steps depends on
for fixed
interval. Also,
estimate:
Now,
Apply (12) recursively:
.
![]() |
using
The
Equation (13)
gives rate of convergence of method. (Parenthetically, a
method that does not converge is useless). But
estimate may
be too large. We can sharpen the estimate if the following holds:
Corollary.
Same hypothesis as previous theorem. In addition
![]() |
![]() |
for
.
Proof. Apply Mean Value Theorem to
Since
converges to
on
and thus bounded in magnitude over
. Pick
so that
![]() |
by assumption
. Apply these 2 facts
to (15) to get
![]() |
which leads to result:
Next we consider the ``stability of solutions''. An IVP may posess
stable or unstable solutions, or both. Whether it does
depends on
, and on the initial data. If the IVP problem is
approximated using a numerical scheme, we would like the numerical
scheme to have the approximate solution behave as the IVP solutions
being studied. However, it is possible that the discretization, may
behave in ways that are different from the IVP being approximated...the
discretization depends not only on
and on the initial data, but also
on how the equation is discretized, on how big the step size is, on how
the dependent and independent variables are represented mathematically
and on the machine. The study of convergence enabled us to determine
whether the approximate solution approached the real solution of the
IVP as
got smaller for general choices of initial data and
at what rate (see0.1.5). Stability will detemine
whether systematic errors (which are usually very small) such as
round-off and/or uncertainty in the initial data will make arbitrarily
close solution paths separate from each other at a rate greater than
linear. For the IVP, this is considered its innate behavior and it is
important to know whether what you're approximating has this
behavior. For the numerical approximation, we want to know if what we
are seeing is due to the innate behavior of the IVP or due to using an
inappropriate scheme for the numerical approximation of the IVP.
Remark Numerical instability usually leads to spectacularly bad
results, i.e. code crashes. But if we had to rank what's worse, lack of
convergence or instability, lack of convergence is actually worse: the
reason is that lacking convergence means that we are not solving the IVP
we think we're solving but some other IVP! Computationally, also, when
instabilities manifest themselves they usually force you to do something
about it. But sometimes non-convergent numerical schemes are happy to
provide you with all sorts of answers and you'd not suspect anything
wrong...well, till you kill someone by solving the wrong equation in the
first place.
Stability of IVP
Theorem.
(Perturbed Problem): Assume hypothesis on
as above and
hypothesis on
as above. (16) has solution
on
, uniformly
perturbations and
that satisfy
for
sufficiently small. In addition, if
is solution of
(17), then
![]() |
Proof: exercise. This theorem assumes that
are
sufficiently small. You'll also need
Studying the stability of an equation enables us to tell whether
Forward Euler (or any other numerical scheme) produces approximate
solutions that are close enough to
, the exact solution.
Very oftenly we need to determine how close as well.
To identify whether equation is ``STIFF'' and/or ``ILL-CONDITIONED'' (this is a topic considered a little later, but for now just think of ``Stiff'' as ``very difficult'' to solve numerically.
For simplicity, consider
perturbations (the
case
is a little more involved but enters as per previous theorem).
Take
then
We can solve (19)
and
exactly
perturbations grow large as
increases.
``ILL-CONDITIONED'' and ``STIFF'' if
LARGE
Example:
For well-conditioned we require that
be
bounded from above by 0 or a small positive number as
increases
will be bounded by
constant times
.
If
but large
call ODE STIFF
and these cases present problems, numerically.
Stiffness is a qualitative assessment of an ODE or a system of
them. In a single ODE stiffness can be assessed as we did above by
having some good bounding criteria for
, and it is the bounding value
that determines how ``stiff'' the ODE is. In a system of ODE's stiffness
not only brings into play the size of each
but also the relative
size of each of these. That is, in addition to the value of each
,
what also comes into play is the wide discrepancy in the rate of change
of the
's. If you think of
as a time parameter and can bound
the rate of change of each
by a constant, say, then if these
constants are very disparate we say the ODE system is stiff and it
manifests its complication in the existence of a wide span of time
scales in the behavior of the solution.
Stability Analysis of Forward Euler Scheme
first we motivate
problem with important example:
Example)
It has the exact solution:
. Assume
.
Using Forward Euler:
take
constant for simplicity.
| Case (a): |
|
|
| Case (b): |
|
|
| Case (c): |
|
increases at each step |
Definition: In general, for
a scheme of the form
is said to be ``explicit.'' If
then scheme is said to be ``implicit.''
Example) Forward Euler is said to be an ``explicit'' scheme because each
can be solved in terms of
.
Stability Analysis for Forward Euler:
Consider
and
Look at
and
as
and as
increases:
let
independent of
with
Effect of Rounding Errors:
take
to be the local rounding error and let
where
Use same arguments as before, but let
replace
of before
then
and Asymptotic Error Analysis
Recall that if
is a function defined for
,
for sufficiently small
|
|
|
|
|
|
Theorem.
(Euler Error): Assume
solution of ODE and 3 times
continuously differentiable. Assume
and
are
continuous and bounded for
. Let
the initial value
satisfy
Then the error in Forward Euler's
satisfies
Proof. before the proof, let's do an example:
Example:
has solution
. The
equation is
So the error for Forward Euler is
the relative error
Calculation shows that the error is linearly proportional to
.
Remark.
We say Euler is an
method''
Proof.
Use Taylor's
We have
![]() | |||
So
and
Now, need to show that
is principal part of error
. Let
| but |
|||
Forward Euler is a simple but not always appropriate scheme for solving ODE'S. Let's consider some alternatives: