Solution of the inverse problem of the calculus of variations | Synapse