Advanced Engineering Analysis the Calculus of Variations and Functional Analysis with Applications in Mechanics