It is convenient to denote cavity frequencies with a complex number \tilde\omega=\omega-i\gamma/2, where \omega=Re(\tilde\omega) is the
angular resonant frequency and \gamma=2Im(\tilde\omega) is the inverse of the mode lifetime. Cavity perturbation theory has been initially proposed by Bethe-Schwinger in optics , and Waldron in the radio frequency domain. These initial approaches rely on formulae that consider stored energy {{NumBlk|:|\frac{\tilde\omega - \tilde\omega_0}{\tilde\omega_0}\thickapprox -\frac{\iiint_{V}\Delta\epsilon |E_0|^2 dv}{\iiint_{V}(\mu_0 |H_0|^2+\epsilon |E_0|^2)dv}\,|}} where \tilde\omega and \tilde\omega_0 are the complex frequencies of the perturbed and unperturbed cavity modes, and H_0 and E_0 are the electromagnetic fields of the unperturbed mode (permeability change is not considered for simplicity). Expression () relies on stored energy considerations. The latter are intuitive since common sense dictates that the maximum change in resonant frequency occurs when the perturbation is placed at the intensity maximum of the cavity mode. However energy consideration in electromagnetism is only valid for Hermitian systems for which energy is conserved. For cavities, energy is conserved only in the limit of very small leakage (infinite Q's), so that Expression () is only valid in this limit. For instance, it is apparent that Expression () predicts a change of the Q factor (Im(\tilde\omega-\tilde\omega_0)) only if \Delta\epsilon is complex, i.e. only if the perturber is absorbent. Clearly this is not the case and it is well known that a dielectric perturbation may either increase or decrease the Q factor. The problems stems from the fact that a cavity is an open non-Hermitian system with leakage and absorption. The theory of non-Hermitian electromagnetic systems abandons energy, i.e. |E.E| products, and rather focuses on E.E products that are complex quantities, the imaginary part being related to the leakage. To emphasize the difference between the normal modes of Hermitian systems and the resonance modes of leaky systems, the resonance modes are often referred to as
quasinormal mode. In this framework, the frequency shift and the Q change are predicted by {{NumBlk|:|\frac{\tilde\omega - \tilde\omega_0}{\tilde\omega_0}\thickapprox -\frac{\iiint_{V}\Delta\epsilon E_0^2 dv}{\iiint_{V}(\epsilon E_0^2-\mu_0 H_0^2)dv}\,|}} The accuracy of the seminal equation has been verified in a variety of complicated geometries. For low-Q cavities, such as plasmonic nanoresonators that are used for sensing, equation has been shown to predict both the shift and the broadening of the resonance with a high accuracy, whereas equation is inaccurately predicting both. For high-Q photonic cavities, such as
photonic crystal cavities or microrings, experiments have evidenced that equation accurately predicts both the shift and the Q change, whereas equation accurately predicts the shift only. The following sections are written with |E.E| products; however, they should be understood with the E.E products of quasinormal mode theory. ==Material perturbation==