Mathematical Methods of Analytical Mechanics