Example of a trapezoidal rule predictor-corrector method
first calculate an initial guess value via Euler:
next improve the initial guess through iteration of the trapezoid rule:
...
until the guesses converge to within some error tolerance e:
Once convergence is reached, then use the final guess as the next step:
If the guesses don't converge within some number of steps, such as reduce h and repeat the step. To optimize this, if the steps converge too soon, such as 4 steps, then increase h. If I remember correctly, the iterative process converges quadratically.