(a) m1 = f(0,0) = 0, m2 = f(.1, .1 m1) = f(.1,0) = -.1 so y1 = y0 + h (m1 + m2)/2 = -.005.

(b) Improved Euler has p=2, so the Richardson approximation is yR = (4 y.05 - y.1)/(4-1) = -1.193590986. Taking this as exact, the error at h = 0.05 is .000230188. The error being approximately proportional to h2, it will be about .00001 when h = .05 (.00001/.000230188)1/2 = .010421454. You could round this off to .01.

(c) The overflow is caused by the fact that with this initial value, y goes to $\infty$ at some value of x between 0 and 2.



 

Robert Israel
12/7/1997