A Treatise on Analytical Dynamics