A form invariance of Raitzin's canonical equations of a nonholonomic mechanical system is studied. The Raitzin canonical equations of the system are established. The definition and criterion of the form invariance in the system under infinitesimal transformations of groups are given. The relation between the form invariance and the conserved quantity of the system is obtained and an example is also given to illustrate the application of the result.