The integrals of mechanics