Introduction to Calculus of Variations