Title: calculus of variations