spitz
- 57
- 0
Homework Statement
Use Euler's method with h = 1/2 to estimate y(1) for the IVP:
y(0)=1 y'(t)=t^2-y(t)
Assuming that |y(t)| \le 1 for 0 \le t \le 1 determine the value of n needed to ensure that |E_n| \le 10^{-2}
Homework Equations
|E_n| \le \frac{T}{L}(e^{L(t_n-t_0)-1})
The Attempt at a Solution
The first part is easy enough:
y_1=y_0+f(t_0,y_0)h=1+f(0,1)(1/2)=1/2
y_2=y_1+f(x_1,y_1)h=1/2-1/8=3/8
\Rightarrow y(1)=3/8
I'm having trouble with the second part. Could somebody help me out?