Four springs: white ring = exact solution
energy / initial energy

Game Physics Integrators: Energy Drift of Four Time-Stepping Methods at Frame Rate (2D)

Four identical springs are stepped with four different integrators at a chosen frame rate: explicit Euler, semi-implicit (symplectic) Euler, velocity Verlet and fourth-order Runge-Kutta, next to the exact solution. Change the spring frequency, the frame rate and the damping and watch explicit Euler gain energy and blow up while the symplectic methods stay bounded. Growth factors, conserved shadow energy and convergence orders are checked numerically.

Made with 🟠 Blender