A nonlinear mathematical model of the system of drilling rig, consisting of the rig, the control cabin, the working platform and platforms with engines has been developed. The mathematical model of the rig with six degrees of freedom is represented by a system of nonlinear ordinary differential equations. The methodology for calculation the basic characteristics of oscillation using the method of polynomial transformations was developed. The formulas for the calculation by the method of polynomial transformations were obtained.