Lagrangian, symmetry-preserving deformation, constants of motion, Ermakov