Tekstiviesti: Calculus of variations with applications