![]()
![]()
for
We have seen that Euler's method for
solving and O. D. E. has global precision of
order
. A
method which uses Euler's method as a predictor and then correcting
the predictor is called Heun's method and has global precision of
order
.
Theorem (Heun'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
.
Heun's method uses the formulas
, and
the
predictor
, and
the
corrector
for
as an approximate solution to the differential equation using the
discrete set of points
.
Proof Heun's Method for O. D. E.'s Heun's Method for O. D. E.'s
Theorem (Precision
of Heun's Method) Assume
that
is
the solution to the I.V.P.
with
. If
and
is
the sequence of approximations generated by Heun's method, then at
each step, the local truncation 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
.
Proof Heun's Method for O. D. E.'s Heun's Method for O. D. E.'s
Animations (Heun's Method Heun's Method). Internet hyperlinks to animations.
Algorithm
(Heun'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 Heun's Method for O. D. E.'s Heun's Method for O. D. E.'s
Mathematica Subroutine (Heun'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 Heun's method.
Solution
3.
Example 4. Reduce
the step size by
and see what happens to the error.
Recalculate points for Heun's method, and the analytic solution using
twice as many subintervals.
Then Plot the error for Heun'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 Heun's method.
Example 8. Reduce
the step size by
and see what happens to the error.
Recalculate points for Heun's method, and the analytic solution using
twice as many subintervals.
Then Plot the error for Heun's method.
Example 9. Solve
the I.V.P.
.
Example 10. Use
Mathematica to find the analytic solution and graph for the
I.V.P.
.
Various Scenarios and Animations for Heun's Method for O.D.E's
Example 11. Solve
the I.V.P.
. Compute
Heun's solution to the I.V.P.
Animations (Heun's Method Heun's Method). Internet hyperlinks to animations.
Research Experience for Undergraduates
Heun's Method for O. D. E.'s Heun's Method for O. D. E.'s Internet hyperlinks to web sites and a bibliography of articles.
Download this Mathematica Notebook Heun's Method for O.D.E.'s
Return to Numerical Methods - Numerical Analysis
(c) John H. Mathews 2004