![]()
![]()
for
The first method we shall study for solving differential equations is called Euler's method, it serves to illustrate the concepts involved in the advanced methods. It has limited use because of the larger error that is accumulated with each successive step. However, it is important to study Euler's method because the remainder term and error analysis is easier to understand.
Theorem (Euler's
Method) Assume
that f(t,y) is
continuous and satisfies a Lipschits
condition in the variable y, and
consider the I. V. P. (initial value problem)
with
, over
the interval
.
Euler's method uses the formulas
, and
for
as an approximate solution to the differential equation using the
discrete set of points
.
Proof Euler's Method for O. D. E.'s Euler's Method for O. D. E.'s
Error analysis for
Euler's Method
When we obtained the
formula
for
Euler's method, the neglected term for each step has the form
. If
this was the only error at each step, then at the end of the interval
,
after
steps have been made, the accumulated error would be
![]()
![]()
.
The error is more complicated, but this estimate
predominates.
Theorem (Precision
of Euler's Method) Assume
that
is
the solution to the I.V.P.
with
. If
and
is
the sequence of approximations generated by Euler's method, then at
each step, the local trunctaion error is of the
order
, and
the overall global truncation
error
is of the order
, for
.
The error at the right end of the
interval is called the final global error
.
Remark. The
global truncation error
is
used to study the behavior of the error for various step
sizes. It can be used to give us an idea of how much
computing effort must be done to obtain an accurate
approximation.
Proof Euler's Method for O. D. E.'s Euler's Method for O. D. E.'s
Numerical methods used in this
module. Use Euler's method and the modified
Euler's method. Construct numerical solutions of
order
and
,
respectively. The theory for the modified Euler method is
not presented at this time, we are to trust that its development is
similar, but the order for the error is better and is known to be
.
Animations (Euler's Method Euler's Method). Internet hyperlinks to animations.
Animations (Modified Euler's Method Modified Euler's Method). Internet hyperlinks to animations.
Algorithm
(Euler's
Method). To
approximate the solution of the initial value problem
with
over
at
a discrete set of points using the formulas
, and
for
.
Computer Programs Euler's Method for O. D. E.'s Euler's Method for O. D. E.'s
Mathematica Subroutine (Euler's Method).
Algorithm
(Modified Euler's
Method). To
approximate the solution of the initial value problem
with
over
at
a discrete set of points using the formulas
, and
for
.
Mathematica Subroutine (Modified Euler's Method).
Example 1. Solve
the I.V.P.
.
Solution
1.
Example 2. Use
Mathematica to find the analytic solution and graph for the
I.V.P.
.
Solution
2.
Example 3. Plot the
error for Euler's method and the modified Euler's method.
Solution
3.
Example 4. Reduce
the step size by
and see what happens to the error.
Recalculate points for Euler's method, the Modified Euler's method,
and the analytic solution using twice as many subintervals.
Then Plot the error for Euler's method and the Modified Euler's
method.
Solution
4.
Example
5. Solve
with
over
.
Solution
5.
Example
6. Use Mathematica to find the
analytic solution and graph for the I.V.P.
.
Solution
6.
Example 7. Plot the
absolute value of the error for Euler's method and the modified
Euler's method.
Solution
7.
Example 8. Reduce
the step size by
and see what happens to the error.
Recalculate points for Euler's method, the Modified Euler's method,
and the analytic solution using twice as many subintervals.
Then Plot the error for Euler's method and the Modified Euler's
method.
Solution
8.
Example 9. Solve
the I.V.P.
.
Solution
9.
Example 10. Use
Mathematica to find the analytic solution and graph for the
I.V.P.
.
Solution
10.
Various Scenarios and Animations for Euler's Method for O.D.E's
Example 11. Solve
the I.V.P.
. Compute
Euler's solution to the I.V.P.
Solution
11.
Example 12. Solve
the I.V.P.
.
Compute the Modified Euler solution to the I.V.P.
Solution
12.
Animations (Euler's Method Euler's Method). Internet hyperlinks to animations.
Animations (Modified Euler's Method Modified Euler's Method). Internet hyperlinks to animations.
Old Lab Project (Euler's Method for O.D.E.'s Euler's Method for O.D.E.'s). Internet hyperlinks to an old lab project.
Research Experience for Undergraduates
Euler's Method for O. D. E.'s Euler's Method for O. D. E.'s Internet hyperlinks to web sites and a bibliography of articles.
Download this Mathematica Notebook Euler's Method for O.D.E.'s
Return to Numerical Methods - Numerical Analysis
(c) John H. Mathews 2004