A worked solution to Problem 2 of §40, Hamilton's equations, in Chapter 7, The Canonical Equations, of L. D. Landau and E. M. Lifshitz, Mechanics, 3rd ed. (1976). Solution by Pierre-Olivier Bolduc.
Open the solution (PDF) Download 1 page, 139 kB · pages 124–124 of the full manual