The table is set up for Euler's method applied to \(y'=x^2+y\) with \(y(0)=-1\) and \(h=0.2\). Complete the missing \(y_n\) and slope entries. Round displayed entries to four decimal places as needed, but use unrounded values in later updates.
<table><thead><tr><th>Step</th><th>\(x_n\)</th><th>\(y_n\)</th><th>\(f(x_n,y_n)\)</th></tr></thead><tbody><tr><td>\(0\)</td><td>\(0\)</td><td>\(-1\)</td><td>?</td></tr><tr><td>\(1\)</td><td>\(0.2\)</td><td>?</td><td>?</td></tr><tr><td>\(2\)</td><td>\(0.4\)</td><td>?</td><td>?</td></tr><tr><td>\(3\)</td><td>\(0.6\)</td><td>?</td><td>?</td></tr><tr><td>\(4\)</td><td>\(0.8\)</td><td>?</td><td>—</td></tr></tbody></table>
Hints
- At each row evaluate \(x_n^2+y_n\), squaring the current \(x\)-value first.
- Use the update \(y_{n+1}=y_n+0.2f(x_n,y_n)\).
- Round only displayed entries; later rows must use the unrounded approximations.
Solution
1. Apply \(y_{n+1}=y_n+h f(x_n,y_n)\) row by row, retaining unrounded values for each subsequent update.
2. The completed displayed values are \(x_0=0, y_0=-1, f=-1\); \(x_1=0.2, y_1=-1.2, f=-1.16\); \(x_2=0.4, y_2=-1.432, f=-1.272\); \(x_3=0.6, y_3=-1.6864, f=-1.3264\); \(x_4=0.8, y_4\approx-1.9517\).
Answer
\(x_0=0, y_0=-1, f=-1\); \(x_1=0.2, y_1=-1.2, f=-1.16\); \(x_2=0.4, y_2=-1.432, f=-1.272\); \(x_3=0.6, y_3=-1.6864, f=-1.3264\); \(x_4=0.8, y_4\approx-1.9517\)