Characteristics of an unstable cavity filled with inhomogeneous media were studied by analyzing the frequency spectrum using an approximate method for thin samples. Frequency spectrum analysis and numerical calculations were made for some media with inhomogeneous distribution to a certain degree, us