If is measured in the rotating frame, its inertial velocity is . The masses producing the gravitational field are stationary in this frame, so their potential energy is a time-independent function . Thus kinetic minus potential energy gives the stated Lagrangian
Put . Then
Substitution in the Euler-Lagrange equation yields
The extra terms are the Coriolis acceleration, Euler acceleration, and centrifugal acceleration of a rotating reference frame.
The canonical momentum and Hamiltonian are
Accordingly, Hamilton's equations are
If a frame rotates with angular velocity relative to an inertial frame, the derivatives of any vector satisfy
Applying this formula twice to a position gives the Coriolis acceleration, Euler acceleration, and centrifugal acceleration terms.