SMS versenden: The calculus of variations