Constrained dynamics, Dirac's theory Integrable and nonintegrable systems mathematics