SMS dit: Calculus of variations with applications