Analytic Mechanics