Chapter 1: Q17 E (page 2)
Consider the initial-value problem . The analytic solution is
(a) Find a formula involving cand hfor the local truncation error in the nth step if Euler's method is used.
(b) Find a bound for the local truncation error in each step if h = 0.1is used to approximate y(1.5).
(c) Approximate y(1.5)using h = 0.1and h = 0.05with Euler's method. See Problem 1 in Exercises 2.6.
(d) Calculate the errors in part (c) and verify that the global truncation error of Euler's method is O(h).
Short Answer
- The formula for the local truncation error in the nth step is .
- The upper bound of the local truncation error for the initial value problem is 0.19.
- The value y(1.5) for step size h = 0.1 and h = 0.05 is obtained as 1.8207 and 1.9423 respectively.
- The actual error when h = 0.05 is approximately half the error when h = 0.1.