Invia SMS: The calculus of variations