We would like to use the second-order Runge-Kutta method to compute an approximation yn+1 of the solution at time step tn+1, given yn, tn, and h. The formula for the approximation is:
yn+1 = yn + h/2 * (f(tn, yn) + f(tn+1, yn + h * f(tn, yn)))
where h = tn+1 - tn. By looking at the test problem y(t) = Ay(t), A < 0, 0 < t < 1, y(0) = 1, we can show that the above Runge-Kutta method is absolutely stable under the condition:
h^2 * A^2 + h * A + 1 < 1.
ii. For which A should the method be stable here?
iii. How would you define h to ensure stability?