Notes
2026-10-30
So I have the Hamiltonian of the Hénon–Heiles potential
\[H(x,y,p_x,p_y)=\frac{(p_x^2+p_y^2)}{2m} + \frac{m\omega^2}{2}(x^2+y^2)+\alpha(x^2y-\frac{y^3}{3}).\]
We obtain the equations of motion by
\[\dot{q_i} =\frac{\partial H}{\partial p_i} \]
\[\dot{p_i} =-\frac{\partial H}{\partial q_i} \]
for canonical conjugate variables \((p_i,q_i)\) labeled by \(i\in\mathbb{N}\).
The resulting equation of motion in julia code:
Here the potentials are defined:
And here the trajectory gets solved: