Αποστολή με SMS: Calculus of variations with applications