This paper analyses the gain change of free-electron laser caused by the radiation frequency shift as the relativistie factor y gradunally decreases while the relativistic electrons propagate in the wiggler. Using a wiggler whose spatial periodic changes" along the propagation direction to keep the radiation frequency constant, we can increase the laser gain. The possible change law of spatial periodic is given.