Does the velocity Verlet handle variable time steps? I found controversial statements about it.
In the paper Skeel, R. D., "Variable Step Size Destabilizes the Stömer/Leapfrog/Verlet Method", BIT Numerical Mathematics, Vol. 33, 1993, p. 172–175. the author proves that the Verlet methods, including the leapfrog (velocity) Verlet
$ x_{i + 1} = x_i + v_i \Delta t + \frac{1}{2} a_i \Delta t^2 $
$ v_{i + 1} = v_i + \frac{1}{2} (a_i + a_{i + 1}) \Delta t$
with variable time steps have stability issues.
The Wikipedia article of the Leapfrog method and this stackoverflow answer presents the alternative formulation
$v_{i + 1/2} = v_i + \frac{1}{2} a_i \Delta t$
$x_{i + 1} = x_i + v_{i + 1/2} \Delta t$
$v_{i + 1} = v_{i + 1/2} + \frac{1}{2} a_{i + 1} \Delta t$
of velocity Verlet for variable time steps.
Well, this is weird. The two formulas are mathematically equivalent, the second one is only rearranged for an explicit half-step velocity term $v_{i + 1/2}$ - if we substitute this term back, then we get back the original velocity Verlet formula.
Why would the first formula fail while the second one remains correct with variable time steps?