Evaluating numerical algorithm
The second-order Runge-Kutta method solves by sampling the slope twice per step. Heun's version: , with at the start and at the predicted end.
Solve , with by Heun's method, and find .
The exact solution is , so : RK2 is off by about 0.0008.
The calculator below opens on this problem. Switch to the midpoint version to compare.