Mathematical Model of Dynamic Systems