SMS dit: The variational principles of mechanics