Professional Documents
Culture Documents
1
22
1 1
2 2
6 2
2
+
1
2
3
2
+
1 1
2 2
6 2
2 #1/2
which appears in the truncation error estimate achieves its minimum value c2 = 0
for 2 = 3/4. We call this the optimal 2nd-order
Runge-Kutta method. Show for
with exact solution Y (t) = 20/(1 + 19e4t ) on the time-interval [0, 1], using a number
of steps N = 4, 8, 16, ..., 2048. Use the results to estimate the order of convergence of
the method. Does your finding make sense from the derivation of the extrapolated
Heun method?
(b) For the same problem as in (b), compare the results of the extrapolated Heun
method with N = 256 steps and of the classical 4th-order Runge-Kutta method also
with N = 256 steps. Compare the two methods for running time. Compare also
for accuracy, by plotting the errors versus time for both methods with logarithmic
spacing for the errors (use semilogy in Matlab). Explain your observations.
3.(a) Using the Heun method, numerically solve the problem
y 0 = y + t0.1 [1.1 + t],
y(0) = 0