Building on the early work of Pierre Louis Maupertuis, Leonhard Euler, and Joseph Louis Lagrange defining versions of principle of least action, William Rowan Hamilton and in tandem Carl Gustav Jacobi developed a variational form for classical mechanics known as the Hamilton–Jacobi equation.