Title: The calculus of variations