Adaptive Methods for ODEs

Computational Math
Differential Equations
Runge-Kutta Methods
Adaptive Step Size
Initial Value Problems
Author

Apurva Nakade

Published

July 13, 2026

The chart below shows each accepted step’s increment \(\Delta y_i = y_{i+1}^{(5)} - y_i\) across its time interval \([t_i, t_{i+1}]\), with a semi-transparent overlay of the derivative \(y'(t) = f(t, y(t))\) evaluated along the solution. The two live on different scales — \(\Delta y_i \approx h_i\, y'(t_i)\), and \(h_i\) is usually well below 1 — so the derivative curve is rescaled to the increments’ own amplitude before overlaying; only its shape, not its absolute value, should be compared against \(\Delta y_i\) (hover it for the true value).

RKF45 (Runge–Kutta–Fehlberg) adapts the step size \(h\) at every step, instead of the fixed \(h=b/n\) used in Explicit Methods. From six slope evaluations it builds two embedded estimates of \(y_{i+1}\) (fourth- and fifth-order); if they disagree by more than a target tolerance \(\varepsilon\), the step is rejected and retried with a smaller \(h\), otherwise \(h\) grows for the next step.