Hamilton's canonical equation and its solution