Αποστολή με SMS: Variational principles in dynamics and quantum theory