Title: Calculus of variations