Based on the similarity of electric trajectory, the spontaneous emission spectra of surface-current wiggler and line-current wiggler free-electron lasers are obtained by using comparative method. Then the relations between the spontaneous emission and stimulated emission are derived using the single-particle theory. Based on this relations the small-signal gains of the surface-current wiggler and line-cu...