Title: Analytical mechanics of gears