Hamilton-Jacobi equations of motion