- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
Approximating $y'(t^n)$ at the relation $y'(t^n)=f(t^n,y(t^n))$ with the difference quotient $\left[\frac{y(t^{n+1})-y(t^n)}{h} \right]$ we get to the Euler method.
Approximating the same derivative with the quotient $\left[\frac{y(t^{n})-y(t^{n-1})}{h} \right]$ we get to the backward Euler method
$$y^{n+1}=y^n+hf(t^{n+1},y^{n+1}), n=0, \dots, N-1$$
where $y^0:=y_0$.
In order to find the formula for the forward Euler method, we use the limit $\lim_{h \to 0} \frac{y(x_0+h)-y(x_0)}{h}$ for $x_0=t^n, h=t^{n+1}-t^n$.
In order to find the formula for the backward Euler method, could we pick $h=t^{n-1}-t^n$ although it is negative?Or how do we get otherwise to the approximation:$$y'(t^n) \approx \frac{y(t^n)-y(t^{n-1})}{h}$$
?
Approximating $y'(t^n)$ at the relation $y'(t^n)=f(t^n,y(t^n))$ with the difference quotient $\left[\frac{y(t^{n+1})-y(t^n)}{h} \right]$ we get to the Euler method.
Approximating the same derivative with the quotient $\left[\frac{y(t^{n})-y(t^{n-1})}{h} \right]$ we get to the backward Euler method
$$y^{n+1}=y^n+hf(t^{n+1},y^{n+1}), n=0, \dots, N-1$$
where $y^0:=y_0$.
In order to find the formula for the forward Euler method, we use the limit $\lim_{h \to 0} \frac{y(x_0+h)-y(x_0)}{h}$ for $x_0=t^n, h=t^{n+1}-t^n$.
In order to find the formula for the backward Euler method, could we pick $h=t^{n-1}-t^n$ although it is negative?Or how do we get otherwise to the approximation:$$y'(t^n) \approx \frac{y(t^n)-y(t^{n-1})}{h}$$
?