[math-fun] Calculus of variations ?