Title: A modern calculus of variation