These performance changes are assumed to be caused by either introduction of a small foreign object into the cavity, or a small deformation of its boundary. Various mathematical methods can be used to study the characteristics of cavities, which are important in the field of microwave systems, and more generally in the field of electro magnetism.