Linear-time dynamics using Lagrange multipliers | Synapse