Periodic orbits of Hamiltonian systems Hamiltonian and Lagrangian systems mathematics