Title: Calculus of variations with applications