The Hamiltonian in the question is
Define
Each is a first integral, the functions involve disjoint canonical coordinate pairs and hence satisfy , and their differentials are independent wherever every . Since , these integrals prove Liouville integrability of the isotropic harmonic oscillator.
For constants , the common level is
so the regular invariant set is
Hamilton's equations give , so every angle evolves as . If some , the corresponding circle collapses and the level is a lower-dimensional singular invariant torus.