Physics & Spacearticle2026-11-20

The first variational formula and the Ostrogradsky formalism

Open access0 citations

Abstract

We present a derivation at a level suitable for undergraduates of the Ostrogradsky formalism for Lagrangians in classical mechanics that depend upon an arbitrary number of time derivatives of the configuration. From the boundary term in the first variation of the Lagrangian, we derive the Ostrogradsky formulas that define the Hamiltonian formulation of mechanical systems. Worked examples, exercises, and applications to the literature are also provided. An accompanying computer program that implements the formalism is discussed in the supplementary material, and code for computing Hamiltonians via the Ostrogradsky formalism is provided in the supplementary material and in a GitHub repository.

// Source

View paper (DOI)Open access versionOpenAlexAmerican Journal of PhysicsPublished 2026-11-20

Authors: Drew Watson, Matthew Pontius, Charles G Torre

Institutions: Utah State University