- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
We take into consideration the following ODE: $\left\{\begin{matrix}
y'=2t &, 0 \leq t \leq 1 \\
y(0)=0 &
\end{matrix}\right.$
Its solution is $y(t)=t^2$.
The following graph shows geometrically how Euler's method work.
View attachment 4063
$$y^{n+1}=y^n+hf(t^n,y^n)\\y^{n+1}=y^n+h \cdot 2 \cdot t^n$$
$$t^0=0, y^0 \ \ \ \ \ \ \ \ (t^0,y^0)$$We begin from $(t^0,y^0)=(0,0)$ and we draw the line that passes through $(t^0,y^0)$ and has slope $f(t^0,y^0)=0$.
We find the intersection point of this line with $t=t_1=h=0.2$.At the second step we begin from $(t^1,y^1)=(0.2,0)$ and we draw the line that passes from $(t^1,y^1)$ and has slope $f(t^1,y^1)=2t^1=2h=2 \cdot 0.2$.Could you explain further to me what we see from the graph? (Thinking)
I haven't really understood it... (Worried)
We take into consideration the following ODE: $\left\{\begin{matrix}
y'=2t &, 0 \leq t \leq 1 \\
y(0)=0 &
\end{matrix}\right.$
Its solution is $y(t)=t^2$.
The following graph shows geometrically how Euler's method work.
View attachment 4063
$$y^{n+1}=y^n+hf(t^n,y^n)\\y^{n+1}=y^n+h \cdot 2 \cdot t^n$$
$$t^0=0, y^0 \ \ \ \ \ \ \ \ (t^0,y^0)$$We begin from $(t^0,y^0)=(0,0)$ and we draw the line that passes through $(t^0,y^0)$ and has slope $f(t^0,y^0)=0$.
We find the intersection point of this line with $t=t_1=h=0.2$.At the second step we begin from $(t^1,y^1)=(0.2,0)$ and we draw the line that passes from $(t^1,y^1)$ and has slope $f(t^1,y^1)=2t^1=2h=2 \cdot 0.2$.Could you explain further to me what we see from the graph? (Thinking)
I haven't really understood it... (Worried)