(12 points) Suppose that we use Euler's method to approximate the solution to the differential equation
y(0.3) = 5.
Let f(x,y) = 2/y. We let t0 = 0.3 and y0 = 5, and pick a step size h = 0.2. Euler's method gives us the following algorithm:
1. Compute k1 = h * f(t0, y0)
2. Compute y1 = y0 + k1
Complete the following table. Your answers should be accurate to at least seven decimal places.
| n | tn | yn |
|---|----|----|
| 0 | 0.3| 5 |
| 1 | 0.5| |
| 2 | 0.7| |
| 3 | 0.9| |
| 4 | 1.1| |
| 5 | 1.3| |
The exact solution can also be found using separation of variables. It is y = 2ln(x) + 1.3. Thus, the actual value of the function at the point t = 1.3 is y = 2ln(1.3) + 1.3.