Invia SMS: The variational principles of mechanics