Morphology-Dependent Resonances in Two Concentric Spheres with Variable Refractive Index in the Outer Layer: Analytic Solutions

: In many applications constant or piecewise constant refractive index proﬁles are used to study the scattering of plane electromagnetic waves by a spherical object. When the structured media has variable refractive indices, this is more of a challenge. In this paper, we investigate the morphology dependent resonances for the scattering of electromagnetic waves from two concentric spheres when the outer shell has a variable refractive index. The resonance analysis is applied to the general solutions of the radial Debye potential for both transverse magnetic and transverse electric modes. Finally, the analytic conditions to determine the resonance locations for this system are derived in the closed form of both modes. Our numerical results are provided with discussion.


Introduction
Scattering of radiation is a common process that happens in human and animal life. Almost everything we see comes to us indirectly by the scattering of light from objects around us. This leads to many interests in the classical topics of both acoustic and electromagnetic aspects for nanotechnology, transformation optics, fiber optics, metamaterials with negative refractive indices, optical and mechanical problems. These interesting topics are a consequence of the position of the resonance in the electromagnetic scattering in different supporting structures. These resonances are referred to as the morphology-dependent resonances (MDRs), where the electromagnetic energy is temporally trapped inside the particle for a certain period, oscillating back and forth many times before finally tunneling back through the classically forbidden region to the outside world again.
The positions of the resonances can be used to indicate the changes in many aspects of characteristic property such as density, energy, and temperature in the studied structures. The simulations have shown that there will be sharp peak or spike behaviors at the occurring locations of the MDRs as shown in many studies.
Researchers have studied the quasi-bound states, resonance tunnelling, and tunneling times generated by two types of twin symmetric potential barriers. The first is the twin rectangular barrier, and the other is the twin Gaussian-type barrier. They also evaluated the energy levels and widths for both cases. The behavior of the magnitude of wave functions of quasi-bound states as sharp peaks are compared with the regular bound states and the above-barrier state wave function [1].
The recent developments in MDR based sensors for aerospace applications have been reviewed. The concept of a sensor is based on the detection of small shifts of optical resonances, called the Whispering Gallery Mode (WGM). They investigated the MDR in the dielectric spheres. The resonance behaviors are also shown as sharp peaks [2]. Moreover, the conductance through pi-biased chaotic Josephson junctions is accumulated by many orders of magnitude in the short-wavelength regime. They found that mechanism behind this effect can be interpreted as macroscopic resonant tunneling [3].
The behaviors of transmission of the waves through the rectangular barrier when the attractive potential well is present on one or both sides have been studied. They also examined this study for a smoother barrier with a smooth adjacent Woods-Saxon Shape. This work is complementary to the resonant tunneling of objects through the two rectangular barriers. The result can be applied in the design of tunneling devices [4].
The different approach to study the relevant resonance topics is by using the method based on a direct calculation of the Jost matrix together with the Jost solutions of the Schrödinger equation to find a complete solution of one-dimensional Schrödinger equation for any complex energy and any arbitrary potential profile. The total widths of resonances are studied in the square well potential and the two-barrier potential. The resonance energies are demonstrated [5].
The work [6] investigated the group velocity of evanescent waves by using the simulations based on Maxwell equations for both TE and TM modes.
As described here, the MDRs are widely examined in many fields of study. The theory of tunneling is very useful to discuss in resonance phenomena [7].
The basic idea in studying the scattering of electromagnetic waves begins with Maxwell's equations. The process of solving the Maxwell equations in spherical coordinates and solutions has been described in the literature [8,9]. An exact theory of Maxwell's equation was derived and provided the solutions of Maxwell's equations for radially inhomogeneous media and the derivation of the scattering coefficients [10]. Then, B. S. Westcott followed a systematic search by [11] for useful refractive index profiles in spherically inhomogeneous isotropic media [12]. The wave functions are found using the method as that of [13]. He used the technique developed by [11] to derive the refractive index profiles where the wave functions can be expressed in terms of the standard transcendental functions such as hypergeometric, Whittaker or Bessel functions [13]. Several specific refractive index profiles were also studied by [14]. Some relationships of the refractive index profile, the wave number, and the angular momentum were studied by [11][12][13], who also published a summary of refractive index profiles along with TE and TM solutions corresponding to specific refractive index profiles for spherically layered media.
To determine the conditions to indicate the MDRs locations, only the radial parts of the scattering wave functions need to be used. However, only certain forms of radial parts have been used to derive the conditions to indicate the MDRs locations; most of the wave functions were expressed in terms of the standard transcendental function such as hypergeometric, Whittaker or Bessel functions [13]. The resonance for Mie scattering from a layered sphere was examined by [15,16], who also graphed the contribution of the resonant partial wave to the angle-averaged energy density. In 1993, Johnson developed the theory of morphology-dependent resonances (MDRs) for a spherical particle using the radial Debye potential in the form of Ricatti-Bessel functions and the analogy of quantum-mechanical shape resonances. The exact analytic formulas for predicting the resonances for both real and complex refractive index profiles have been provided [17]. This technique is so called the MDRs technique. He also extended the study of the exact theory of electromagnetic scattering to a heterogeneous multilayer sphere in infinite-layer limit [18,19]. This MDRs technique became very useful in various study.
Many authors graphed internal quantities for a transverse electric and magnetic modes using the MDRs technique for a homogeneous sphere as a function of radius. They considered mostly for the spherical-shaped particles with constant and piecewise-constant refractive index profiles. The cylindrical-shaped particles are also been studied.
The resonances for electric fields distribution in an infinite circular dielectric cylinder with constant refractive index 1.53 and angular momenta 1 to 5 are calculated. The results showed that the internally reflected circumferential waves are located near, but not on the surface [20].
The resonant frequencies and poles for the electromagnetic waves in a dielectric sphere with constant refractive index 1.4 with the size parameters ranging from 1 to 50 have also been studied. The real parts of the calculated poles were used to determine the location of the peaks in the resonance spectrum. The imaginary parts are related to the widths of these peaks [21].
The study of the internal and near-surface scattered field for a spherical particle at resonant conditions are considered. The resonances are examined for various refractive index profiles [22]. The reason that the radial parts for the case of constant and piecewiseconstant refractive index profiles have been considered more than the case of variable refractive index is that the radial Debye potential functions for both electric and magnetic fields became identical and simpler to solve comparing to the case of using variable refractive index.
Recently, the topic of morphology dependent resonances (MDRs) has been received much attention for exploring both fundamental research and technological applications. Many researchers have investigated MDR in layered droplets [12,16].
The study of MDRs in homogeneous sphere is now routine. The analysis of spherical particles with more complicated refractive index profiles can be extremely difficult and time consuming. They investigated that the concentration profile of water during sorption in ultraviscous and glassy aerosol particles contains a sharp front that propagates surface to the particle center over time. This result led to the MDR locations corresponding with the type of concentration profile closely matching those of a spherical core-shell structure [23].
The typical resonant TE mode for an incident linearly polarized plane wave in large layered spheres has been investigated by using the theory of Aden and Kerker. The resonance location can be shown as partial wave amplitudes [15].
Another way to study MDRs in a coated sphere is by calculating the volume-averaged source function obtained from Lorenz-Mie theory. The source functions for core and shell contributions can be computed and examined independently. The analytic expressions for the source functions are given [24].
To find the size and composition of core-shell particles using morphology-dependent resonances (MDRs), there are computationally intensive problems due to the large parameter space that needs to be searched during the fitting process. The issue of fitting speed can be solved by developing an algorithm that (i) reduces the multi-dimensional grid search to a one-dimensional search using a least squares method and (ii) implements a new method for calculating MDRs that is much faster than previous methods. They analyzed the best fits for core-shell MDRs across a large range of physically relevant scenarios using noise levels typical for conventional spectroscopic experiments [25].
More recent research studied the resonances of the electromagnetic plane wave in small charged particles. When electrons move freely along the surface of small charged particle, they contribute to scattering phenomena including resonances. These resonances result from excitation of an anti-symmetric surface plasmon at the layer interfaces. The resonance of the radial component of the inner and outer boundaries of the shell are represented as a sharp peak [26].
Other methods to study the behavior of a sharp Lorenz-Mie resonances for a spherical micrometer-sized droplet use the T-matrix [27].
The morphology dependent optical resonances shift (MDR) of a rotating spherical resonator have been analyzed. A shift in its MDR is caused by the centrifugal force acting on the spinning resonator. The MDR shifts of a spinning polydimethylsiloxane (PMDS) microsphere are examined as examples [28].
The researchers developed a new measurement system called 'pulsed 2D-2cLIF-EET' to study temperature fields inside micro-droplets. The MDR and stimulating dye emission are accounted for by using energy transfer [29].
The general solutions of the scattering functions for two concentric spheres when the outer shell has a variable refractive index are derived. The use of these solutions can be more challenging to analyze the analytic condition to find the resonance location by using the resonance theory [30].
Another recent article [31] studied the MDR of spheres with the discrete dipole approximation (DDA) technique. The DDA simulations can capture the narrow peaks or resonances in the extinction over the size parameters.
The MDRs topics have been studied widely in the objects with spherical in shape. The occurring of MDRs depends on the key conditions-the shape and refractive index of materials. Therefore, the change in the refractive index and radius of microsphere led to the change (shift) in the resonance (MDR) of the microsphere. Many applications of MDR have been shown in the same manner of interpretation [2,12,23,[27][28][29][30]32]. Lately, the MDR techniques are used to determine the size and composition of core-shell particles. The algorithm for calculating and fitting MDR speed has been developed by reducing the multi-dimensional grid search to one-dimensional search using a least squares method. In this study, the refractive indices are considered as constants, 1.35 and 1.53. The resonance condition for TE and TM modes in this research is known to be [21,25]. The coexistence of high porosity and MDR modes was explored to improve the photocatalytic activity in mesoporous TiO 2 spheres. The MDR modes can be calculated by using the theory of MDR, the coefficients of exponential-like increasing functions have to vanish [33]. The MDRs concept has also been applied to optical-biosensors used in indicating the locations for a high-density photon in micro-droplet [29,33]. The concept also has been used to investigate the size and composition of glassy aerosol microspheres. A core-shell model was used to simplify the analysis of MDR locations during water uptake by high-viscosity aerosol particles. The characteristic equations for the MDRs of such a core-shell particle in case of homogeneous sphere and two concentric spheres are presented by using the refractive indices 1.4 and 1.6 [23].
Moreover, The MDR analysis of a rotating spherical resonator has been analyzed by using optical quality factors. The MDR shifts of a spinning polydimethylsiloxane (PDMS) are found. The interpretation of MDRs was used to design the angular velocity sensor of resonators. The effect of angular velocity on the MDR shifts the spherical resonators that are used as sensing element [28]. The behavior of a sharp Lorenz-Mie resonances or MDR in a spherical micrometer-sized droplet have been studies again by using the superposition T-matrix method. Various values of the size parameters are presented using the constant refractive indices 1.31 and 1.55. Several effects of microscopic inclusions are discussed in a narrow MDR of a micrometer-sized spherical droplet [28]. There are some reviews of the applications of sensors for aerospace based on using the detection of small shifts of optical resonances, which referred to the MDRs. The shift in the resonances (WGM) can be caused by any perturbation to the shape, size or refractive index caused by surrounding environment changing. The MDRs of spheres have been elucidated of a number of theoretical studies. The phenomenon can be described by the analytical techniques using Maxwell's equations and the incident fields in the medium, and the methods and techniques of quantum mechanics, such as the potential well principle among others [2,10,11,17]. The manifestations of MDRs in the elements of the Stokes scattering matrix and their dependence on the refractive index by using the modern visualization techniques was studied. They have found that the scattering matrix can be changed in both magnitude and sign within MDRs using the complex refractive index of a real part of 1.4 and increasing imaginary part from zero to a very small value of 10 −5 . The potential of using MDRs for optical particle characterization can be significantly improved by measuring ratios of the scattering matrix elements [34].
Although the MDR technique has been widely studied and used to develop many technological applications [2,23,[27][28][29][31][32][33][34], the study of MDRs has been mostly done with the particles composed of a constant or piecewise constant refractive index. Both exact conditions and simulation results to find the resonance locations have been investigated. Many approximately spherically symmetric scatters in optical media in our real problems mostly have complex structures, non-constant refractive indices, and are generally not continuous functions [35]. To indicate the changes in some specific characteristic properties of such complicated structures, it is necessary to determine the exact formulas for predicting the locations of the resonances in various types of objects.
However, the lack of analytical research in this area corresponding with variable refractive index profiles is still a problem. The reason is due to the difficulty of deriving the exact wave scattering solutions, which are required to analyze the analytic solutions to obtain the conditions of resonances for the particles with variable refractive index profiles.
There are many studies in scattering topic dealing with variable refractive index profiles. Most of the wave solutions can be expressed in terms of complex forms of transcendental functions [13]. For example, wave scattering using the variable refractive index called the modified Luneburg lens determined the approximate lens size parameters of morphology-dependent resonances [9]. Using a change of variables method, the scalar radiation potential became the Whittaker function.
Based on the studied research, the exact scattering wave solutions are found in the form of Bessel functions for both TE and TM modes [30]. Moreover, the refractive index profile is of the variable type and can be led to the planoconvex lens, which has the refractive index profile Ar 2 , where A is a constant. The MDRs technique was adapted to use wave functions in the form of a Bessel function [17]. By using this technique, the exact formulas can be used to locate the positions of resonances using the variable refractive index as in [30].
Therefore, discovering the exact formulas defining the locations of resonances in the two-concentric sphere when the inner layer has constant refractive index, and the outer has a variable refractive index profile A(kr) m , using the MDRs technique will be investigated here. To do this we consider the wave scattering in the two-concentric sphere when the inner layer has a constant refractive index, and the outer has a variable refractive index profile by [30]. The variable refractive index profile is in the form of A(kr) m , where A and m are the constants, and k is the wave number. The exact radial solutions of the scattering wave solutions are found in the form of Bessel functions for both transverse electric (TE) and transverse magnetic (TM) modes, which is similar to the form that was used to find MDRs' locations by using the MDRs technique developed by [17]. Therefore, the variable refractive index in this work will be considered in the form of A(kr) m . This includes the planoconvex lens, the refractive index profile Ar 2 , where A is the constant. With the successful use of the MDRs technique in applying with the wave functions in the form of Bessel function by [17], this gives confidence that the exact formulas defining the MDRs locations using the variable refractive index by [30] can be derived. Since there is no research output yet for the conditions to find the MDRs location in this way, the resulting exact formulas are derived. Therefore, this work will carry out the following results. First, the exact formulas defining the locations of resonances in the two-concentric sphere when the inner layer has constant refractive index, and the outer has a variable refractive index profile A(kr) m , using the MDRs technique. More specifically, the resonance locations will be studied in both transverse electric (TE) and transvers magnetic (TM) modes. Second, the numerical results to find the exact values of the resonance locations by solving the conditions in the exact formulas for both TE and TM modes to confirm the existence of resonances.
The results will be presented to find the resonance locations of the two layers sphere when the inner layer has constant refractive index and the outer layer has variable refractive index of the form A(kr) m . These refractive index profiles can be used as the generalized form of specific refractive index profiles, such as the planoconvex lens. The numerical results will be provided by using the hyperparameter optimization techniques and some numerical methods to find the locations of the resonances using the proposed conditions. The existence of resonances is indicated. The generalized conditions to find the locations of resonances for the two layers sphere with this variable refractive index in the outer layer will be supplied along with the supporting numerical results. Hence, these results can be used to interpret the important characteristic property in objects that have the similar refractive index profile.
In summary, we investigate the scattering of an electromagnetic plane wave in radially symmetric heterogeneous media. The scattering object is composed of two concentric spheres; the inner layer has constant refractive index and the outer layer has a radiallydependent one. The theory of electromagnetic scattering and the general solutions for both modes (TM and TE) for this model is presented in Section 2. Section 3 describes the derivation of conditions determining the resonance locations for both modes. The work concludes with discussion in Section 4 and conclusions in Section 5.

Theory
Consider a two-layer sphere embedded in an infinite uniform medium as shown in Figure 1, regions 1, 2, and 3, respectively, as the radial coordinate increases away from zero. The radius of the inner layer is a, and the outer layer is b (which can be scaled to unity), the center is at origin of the coordinate system, and the refractive index profile in region 2 is considered as a function of the radial coordinate r, defined by n(r). Thus, in region 1, 0 ≤ r ≤ a, the refractive index is a constant (n 1 ). In region 2, a ≤ r ≤ b, the refractive index n 2 (r) is defined as n 3 A(kr) m where A and m are arbitrary constants. In region 3 (exterior to the sphere) r > b, and the refractive index, n 3 (r) can be any (complex) constant but here is taken to be one. The wave number is k = 2π/λ, where λ is the wavelength of the external incoming electromagnetic plane waves. We consider the case that the sphere is nonmagnetic. The complex time-dependence of the electric field is assumed to be harmonic. As the derivation of equations is developed, many of acronyms and variables are provided in Appendix A in Table A1 to provide readability without flipping back and forth between pages. Geometry for a concentric shell particle with variable refractive index. The refractive index of the core in Region 1 is n 1 , the refractive index of the shell in Region 2 is n 2 , and the refractive index of the outer shell in Region 3 is n 3 . The inner radius is a and outer radius is b.
It is known that the solutions of Maxwell's equations can be represented in terms of vector wave functions H describing the transverse magnetic field and a second function B for the transverse electric field [10,17]. and where r, θ, and φ are spherical coordinates, r is the radius vector, and Ψ and Φ are scalar functions that can be expressed in the following sets of solutions: where the P m l (cos θ) are associated Legendre polynomials. The functions M l and N l are the radial Debye potentials, which satisfy the differential equations where l is the angular momentum, the M l are associated with TM fields, and the N l functions are associated with TE fields. It is easy to see that if the refractive index n(r) is constant, Equations (5) and (6) are identical. To determine the resonance locations, we focus on the radial parts M l and N l [36,37].

The Wave Solutions for Transverse Magnetic Mode
For the transverse magnetic (TM) mode of this model, we employ the corresponding solutions where M 1,l (r), M 2,l (r), M 3,l (r) are the solutions in regions 1, 2, and 3, respectively, [30].
M 1,l (r) = n 1 a l j l (n 1 kr), for r < a, where a l , c l , A l , B l are constants, J ν and J −ν are Bessel functions of the first kind. The order ν is defined as [38,39] The parameters The spherical Bessel functions of the first kind, j l (kr) is defined as where J l+1/2 is a Bessel function of the first kind and half integral order, and h l (kr) is the spherical Hankel function, defined in terms of regular Hankel function as where H l+ 1 2 is the first Hankel function and j −l (X) is defined as

The Wave Solutions for Transverse Electric Mode
For the transverse electric (TE) mode, we suppose the solutions where N 1,l (r), N 2,l (r), N 3,l (r) are the solutions in regions 1, 2, and 3, respectively.
where b l , d l , C l , D l are constants, J ν and J −ν are Bessel functions of the first kind. The order µ is defined as [38,39] µ = 2l + 1 2(m + 1) .
The parameters , and The spherical Bessel functions of the first kind, j l (X), the Bessel function of the first kind and half integral order, J l+1/2 (X), the spherical Hankel function, h l (X), and the regular Hankel function, H l+ 1 2 (X) are defined as in Equations (10)-(12).

Resonance Analysis
As presented in [17], determining the locations of the resonance requires the coefficient of j l (kr) be zero, i.e., A l = 0 and 1 + c l = 0 for TM mode, and C l = 0 and 1 + d l = 0 for TE mode. Sections 3.1 and 3.2 show the formulas for all coefficients in both modes.

TM Mode
To determine the coefficients a l , c l , A l , and B l , we require that (16) all be continuous at the boundaries where the refractive index is discontinuous. The four boundary equations at the boundaries r = a and r = b are given by n 1 a l j l (n 1 ka) = Px where where a prime denotes differentiation with respect to the argument X.
We finally obtain all the coefficients: where x 0 = ka and y 0 = kb are the dimensionless size parameters. The other parameters are defined as l (n 3 y 0 ), .

TE Mode
To determine the coefficients b l , d l , C l , and D l , we require that (25) all be continuous at the boundaries where the refractive index is discontinuous. Note the absence of the n −2 term in the above conditions in this case [17]. The four boundary equations at the boundaries r = a and r = b are given by The expansions of these equations are presented in Equations (26)-(29), respectively. where , and when a dash denotes differentiation with respect to the argument X.
Finally we obtain all the coefficients: again where x 0 = ka and y 0 = kb are the size parameters. The other parameters are defined as

Discussion
To demonstrate the resonance behavior using the derived analytic condition obtained in the previous section, we consider the potential V l (r) defined as The corresponding values of n 1 and n 2 define the behavior of the potential. The characteristic of the potential whether it is attractive, repulsive or some combination of the those two depends on the refractive index values and the wave number. For certain values of the energy level k 2 , the phenomenon of resonance will happen. The wave particles will be temporally trapped inside the well or the sharp peak, oscillating back and forth many times before creating the classically forbidden region by tunneling to the outside world.
For various refractive index profiles, the shape of the potential function will be different. The case of constant refractive index can be considered for both increasing functions (n 1 < n 2 ) and decreasing functions (n 1 > n 2 ). The potential for the increasing refractive index profile will have one classically allowed region. On the other hand, there are two classically allowed regions of the potential or double wells for the decreasing refractive index profile.
In this work, we consider the case that the inner layer has a constant refractive index n 1 = 1.47, the outer layer has the variable refractive index n 2 = 2(kr) −2 , outside of the sphere has refractive index n 3 = 1, and the angular momentum l = 40. The shape of the potential function V 40 (r) is a single sharp peak as shown in Figure 2. The classically allowed region is the small area inside the sharp peak; outside the sharp peak is called the classical forbidden regions. The behavior of the resonance will occur in the classically allowed regions, then the wave function will continue decay monotonically in the forbidden or barrier regions. The wave function will finally vanish when r tends to infinity. The results presented here show the behaviors of the solutions M 40 (r) for n 1 = 1.47, n 2 = 2(kr) −2 , n 3 = 1, and l = 40 along with the potential function V 40 (r). By solving for the size parameters x 0 and y 0 from the derived analytic conditions A l = 0 and 1 + c l = 0 for TM mode (C l = 0 and 1 + d l = 0 for TE modes), the Gauss-Newton method is applied to search for these size parameters. There are many discrete values that satisfy these necessary conditions. However, we found that only finite values will make the wave function M 40 (r) stay in the rage of the classically allowed region. Therefore, to obtain the certain values of size parameters to provide resonance phenomena, the range to find these values is strictly determined. The numerical results shown here is obtained by using a-values in the range 0 to 1, and k-values in the range 0 to 10 as example.
The numerical results show that at the size parameters x 0 = 0.0674664 and y 0 = 2.441156, the solutions M 40 (r) for n 1 = 1.47, n 2 = 2(kr) −2 , n 3 = 1, and l = 40 are presented the TM resonance as shown in Figure 3. Only slightly change in the size parameters x 0 and y 0 will make the radial wave function lost the resonance behavior as shown in Figures 4 and 5. Table 1 demonstrates the comparison of the size parameters for the x-value and y-value in each case. Table 1. The size parameters x-value and y-value for the solutions M 40 (r) for n 1 = 1.47, n 2 = 2(kr) −2 , n 3 = 1, and l = 40 of TM mode.

Behavior of the Radial Wave Function
x 0 y 0 A typical resonance function is shown in Figure 3 (with the potential function V r (40) superimposed). The solution M 40 (r) for n 1 = 1.47, n 2 = 2(kr) −2 , n 3 = 1, and l = 40 has the TM resonance at x 0 = 0.0674664 and y 0 = 2.441156. For these values of the energy level, the particles will become temporally trapped inside the sharp peak, keep oscillating back and forth many times and finally tunneling back through the classical forbidden region to the outside particle. Note that this corresponds to an 'almost bound' state because of the very small transmissivity of the wave function into the exterior region 3. This is another way of looking at a resonance; the electromagnetic energy can be considered to be mostly trapped for a period of time until is gradually leaks out of the potential well formed by a combination of the refractive index and the so-called 'centrifugal potential' [17]. Clearly the TM wave function shown in Figure 3 is effectively trapped close to the surface of the inner sphere. In summary, we have derived the analytic conditions under which such 'virtual bound states' can occur for both polarizations (TM and TE) of the electromagnetic waves. radius solution -. , potential -    shows the case that the values of x 0 and y 0 are slightly below the resonance, where x 0 = 0.0574664 and y 0 = 2.041156. The behavior of the TM wave function suddenly vanishes before entering the allowed region of the sphere and continuing to the outside world without any sharp peaks. Figure 5 shows the case that the values of x 0 and y 0 are slightly above the resonance, where x 0 = 0.0874664 and y 0 = 2.541156. The behavior of the TM wave function has an exponential-like increasing manner in the tunneling region, then decays when r → ∞. This case is very similar to the case that the values of x 0 and y 0 are on resonance except that the exponential-like growth in the tunneling region has more higher amplitude than the resonance case and is both inside and outside of the well. The wave is not totally trapped inside the allowed region. radius solution -. , potential - Figure 5. Behavior of the TM wave function in the vicinity of resonance for the case that the size parameters x-value and y-value are slightly above resonance, x 0 = 0.0874664 and y 0 = 2.541156. The inner radius is a = 0.02763707 and the outer radius b = 1. Red line (-.) represents the wave solution M 40 (r); Blue line (-) represents the potential function V 40 (r).

Conclusions
We have presented the derivation of analytic conditions to find the locations of resonances for a two-layer sphere where the inner region has constant refractive index and the outer region has variable refractive index profile of A(kr) m , where A and m are arbitrary constants. Using the resonance analysis, the coefficients of the exponential-like increasing function j l (kr) in the radial wave functions for both TM and TE modes need to approach zero as r → ∞. This yields the necessary conditions to guarantee that the resonance occurs. The derived analytic conditions to determine the resonance locations have been investigated here as the parameters A l = 0 and 1 + c l = 0 for TM mode, and C l = 0 and 1 + d l = 0 for TE modes. Since we are dealing with the variable refractive index profile, it may not lead to a total bound state as in the case of constant refractive index profiles.
For future work, there are many useful variable refractive indices that can be applied by using this resonance analysis. Other analytic solutions [11][12][13] still await investigation. These provide many interesting cases for future study. However, the analysis may encounter obstacles when dealing with singular refractive index profiles. The unstructured mesh finite element method can still be applied, however, especially in the case that the analytic forms of conditions to find the resonance locations are not provided.

Conflicts of Interest:
The authors declare no conflict of interest.

Abbreviations
The following abbreviations are used in this manuscript:

MDR
Morphology-dependent resonance WGM Whispering gallery mode TE Transverse Electric TM Transverse Magnetic