# Hamiltonian math

by DiracPool
Tags: hamiltonian, math
 Mentor P: 11,771 What you've described looks like taking the derivative of G(p,q) with respect to t, using the chain rule: $$\frac{dG(p,q)}{dt} = \frac{\partial G}{\partial p} \frac{dp}{dt} + \frac{\partial G}{\partial q} \frac{dq}{dt}$$