Lagrange was one of the founders of variational principles and formulated Newtonian mechanics in terms of a variational principle using an entity generally known as the Lagrangian. Lagrange gave an account of his work on classical mechanics in the definitive Analytical Mechanics (1788). He also made important contributions to astronomy and several branches of mathematics, including work that paved the way to group theory.