Text this: The calculus of variations