Applications of the Calculus of Variations in Mechanics