English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Consider the initial-value problem
y' = -y, y(0) = 1.
The analytic solution is: y(x) = e^(-x).

(a) Approximate y(0.1) using one step Euler's method.
(b) Find a bound for the local truncation error in y_1 (where '_' means subscript).
(c) Compare the error in y_1 with your error bound.

Thanks!

2007-08-15 14:39:17 · 1 answers · asked by amckee851 1 in Science & Mathematics Mathematics

1 answers

(a) y' = -y, so y'(0) = -y(0) = -1.
So for one step Euler's method we get
y_1 = y(0) + y'(0) (y_1 - 0) = 1 + (-1) (0.1) = 0.9.

(b) Error is bounded by (y"(x)/2)(0.1)^2 for some x in [0, 0.1], and y"(x) = e^(-x) so max error bound is (0.1)^2 / 2 = 0.005.

(c) Actual error is e^-0.1 - 0.9 = 0.004837 (4 s.f.) which is 96.7% of the maximum error bound given in (b).

2007-08-16 21:14:41 · answer #1 · answered by Scarlet Manuka 7 · 0 0

fedest.com, questions and answers