- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
I am looking at the following exercise.We suppose that the explicit Euler method is applied at the differential equation of second order
$\left\{\begin{matrix}
x''(t)+(\lambda+1)x'(t)+ \lambda x(t)=0\\
x(0)=1\\
x'(0)= \lambda-2
\end{matrix}\right.$
$$|\lambda|>>1$$
What step $h$ do we have to pick so that we ensure absolute stability?We set $y_1=x$ , $y_2=x'$ and so we have:$$\binom{y_1}{y_2}'=\begin{pmatrix}
0 & 1\\
- \lambda & -(\lambda+1)
\end{pmatrix} \binom{y_1}{y_2} \ \ \text{ with } \binom{y_1(0)}{y_2(0)}= \binom{1}{\lambda-2}$$Applying Euler method we get
$$\binom{y_1^{n+1}}{y_2^{n+1}}= \begin{pmatrix}
1 & h\\
- \lambda h & 1-(\lambda+1)h
\end{pmatrix} \binom{y_1^n}{y_2^n}$$
which is equivalent to
$$\binom{y_1^n}{y_2^n}=
\begin{pmatrix}
2(1-h)^n-(1-h \lambda)^n \\
-2(1-h)^n+ \lambda (1-h \lambda)^n
\end{pmatrix}$$So does it have to hold that $|1-h \lambda|<1 \Rightarrow -1<1-h \lambda <1 \Rightarrow -2<-h \lambda \text{ and } -h \lambda<0 \Rightarrow h \lambda<2 \text{ and } -h \lambda<0$ ?In my notes, it is just said that in order Euler to be absolute stable we should have $h \lambda \in [-2,0) \Rightarrow h< - \frac{2}{\lambda}$.
But is this enough? (Thinking)Also, I found an other interval for $h \lambda$. So have I done something wrong?
I am looking at the following exercise.We suppose that the explicit Euler method is applied at the differential equation of second order
$\left\{\begin{matrix}
x''(t)+(\lambda+1)x'(t)+ \lambda x(t)=0\\
x(0)=1\\
x'(0)= \lambda-2
\end{matrix}\right.$
$$|\lambda|>>1$$
What step $h$ do we have to pick so that we ensure absolute stability?We set $y_1=x$ , $y_2=x'$ and so we have:$$\binom{y_1}{y_2}'=\begin{pmatrix}
0 & 1\\
- \lambda & -(\lambda+1)
\end{pmatrix} \binom{y_1}{y_2} \ \ \text{ with } \binom{y_1(0)}{y_2(0)}= \binom{1}{\lambda-2}$$Applying Euler method we get
$$\binom{y_1^{n+1}}{y_2^{n+1}}= \begin{pmatrix}
1 & h\\
- \lambda h & 1-(\lambda+1)h
\end{pmatrix} \binom{y_1^n}{y_2^n}$$
which is equivalent to
$$\binom{y_1^n}{y_2^n}=
\begin{pmatrix}
2(1-h)^n-(1-h \lambda)^n \\
-2(1-h)^n+ \lambda (1-h \lambda)^n
\end{pmatrix}$$So does it have to hold that $|1-h \lambda|<1 \Rightarrow -1<1-h \lambda <1 \Rightarrow -2<-h \lambda \text{ and } -h \lambda<0 \Rightarrow h \lambda<2 \text{ and } -h \lambda<0$ ?In my notes, it is just said that in order Euler to be absolute stable we should have $h \lambda \in [-2,0) \Rightarrow h< - \frac{2}{\lambda}$.
But is this enough? (Thinking)Also, I found an other interval for $h \lambda$. So have I done something wrong?