From the d'Alembert-Lagrange principle, statements are obtained, from which, by analyzing invariant singularities with respect to one-parameter families of transformations, one can generalize the basic theorems of dynamics for the relative motion of a nonholonomic mechanical system. An example is considered.