Evaluating numerical algorithm
The gold standard of ODE solvers, Runge-Kutta 4th Order (RK4) samples 4 trial slopes across each step interval to achieve 4th-order accuracy—matching Taylor series precision without computing high-order analytical derivatives!
Solve the initial value problem:
Find the value of using single RK4 step !
Compute each RK4 stage starting from :
Combine the 4 slopes into the RK4 update equation:
With a single step of size , RK4 computes 1.11034, matching the exact analytical solution to 6 decimal places!