Introduction to the dynamics of automatic regulating of electrical machines