A mechanism of occurrence of higher derivatives of the coordinates in
the symmetry transformation law in Noether's second theorem is elucida
ted. It is shown that the corresponding transformations in the Hamilto
nian formalism are canonical in an extended phase space.