Comprehensive theory of differential kinematics and dynamics towards extensive motion optimization framework. (December 2018)