Analytical mechanics