Take a variation with . Differentiating the functional at zero and using integration by parts gives
The boundary term vanishes. Since the remaining integral must vanish for every smooth endpoint-zero variation, the fundamental lemma of the calculus of variations gives the Euler-Lagrange equation .
For the mechanical problem put . The Lagrangian is independent of , a cyclic coordinate, so its conjugate momentum is conserved. Therefore is constant, including the factor of two between and the canonical momentum for this normalization of .
For the radial coordinate, and . Its Euler-Lagrange equation is
For a circular orbit , the radial velocity and acceleration vanish. Using and leaves , hence
This is the circular orbit condition for a radial kinetic Lagrangian applied to the coefficients here.