π Example 295. Eulerβs Method for a System.
Use Eulerβs method to take two steps for the system above.
Solution.
Step 1: At \(t = 0\text{,}\) we have \(x_0 = 1\text{,}\) \(y_0 = 0\text{.}\) The derivatives are \(x' = 1 + 0 = 1\text{,}\) \(y' = -1 + 0 = -1\text{.}\)
Update:
\begin{equation*}
x_1 = 1 + 0.1(1) = 1.1, \qquad y_1 = 0 + 0.1(-1) = -0.1.
\end{equation*}
Step 2: At \(t = 0.1\text{,}\) we have \(x_1 = 1.1\text{,}\) \(y_1 = -0.1\text{.}\) Now \(x' = 1.1 + (-0.1) = 1.0\text{,}\) \(y' = -1.1 + (-0.1) = -1.2\text{.}\)
Update again:
\begin{equation*}
x_2 = 1.1 + 0.1(1.0) = 1.2, \qquad y_2 = -0.1 + 0.1(-1.2) = -0.22.
\end{equation*}
We now have approximate values after two steps:
\begin{equation*}
(x(0.2), y(0.2)) \approx (1.2, -0.22).
\end{equation*}