11institutetext: Instituto de Astrofísica e Ciências do Espaço, Universidade do Porto, CAUP, Rua das Estrelas, PT4150-762 Porto, Portugal
11email: [email protected]
22institutetext: Université Côte d’Azur, Observatoire de la Côte d’Azur, CNRS, Laboratoire Lagrange, Bd de l’Observatoire, CS 34229, 06304 Nice cedex 4, France 33institutetext: Departamento de Física e Astronomia, Faculdade de Ciências, Universidade do Porto, Rua do Campo Alegre 687, PT4169-007 Porto, Portugal 44institutetext: Stellar Astrophysics Centre, Department of Physics and Astronomy, Aarhus University, Ny Munkegade 120, DK-8000 Aarhus C, Denmark

Buoyancy glitches in pulsating stars revisited

Margarida S. Cunha 1122    Yuri C. Damasceno 1133    Juliana Amaral 1133    Anselmo Falorca 1133    Jørgen Christensen-Dalsgaard 44    Pedro P. Avelino 112233
(Accepted XXX. Received YYY; in original form ZZZ)

Sharp structural variations induce specific signatures on stellar pulsations that can be studied to infer localised information on the stratification of the star. This information is key to improve our understanding of the physical processes that lead to the structural variations and how to model them. Here we revisit and extend the analysis of the signature of different types of buoyancy glitches in gravity-mode and mixed-mode pulsators presented in earlier works, including glitches with step-like, Gaussian-like, and Dirac-δ𝛿\deltaitalic_δ-like shapes. In particular, we provide analytical expressions for the perturbations to the periods and show that these can be reliably used in place of the expressions provided for the period spacings, with the advantage that the use of the new expressions does not require modes with consecutive radial orders to be observed. Based on a comparison with two limit cases and on simulated data, we further tested the accuracy of the expression for the Gaussian-like glitch signature whose derivation in an earlier work involved a significant approximation. We find that the least reliable glitch parameter inferred from fitting that expression is the amplitude, which can be up to a factor of two larger than the true amplitude, reaching this limit when the glitch is small. We further discuss the impact on the glitch signature of considering a glitch in the inner and outer half of the g-mode cavity, emphasising the break of symmetry that takes place in the case of mixed-mode pulsators.

Key Words.:
stars: interiors – stars: oscillations – stars: evolution – subdwarfs

1 Introduction

Space-born experiments, such as the Convection, Rotation and planetary Transits (CoRoT Baglin et al., 2006), Kepler (Borucki et al., 2010; Gilliland et al., 2010), and the Transiting Exoplanet Survey Satellite (TESS Ricker et al., 2015) have fuelled the field of stellar structure and evolution by providing exquisite data sets on stellar pulsations that are explored via asteroseismology (Aerts et al., 2010; Cunha et al., 2007; Cunha, 2018). One of the promising methods employed to infer details of the internal structure and dynamics of stars is based on the study of glitch signatures, that is, the signatures left on the frequencies or periods of the oscillations by regions of sharp structural variations. Here ‘sharp’ means that the characteristic scale of the structural variation is comparable to or smaller than the local wavelength of the waves to be studied (see Cunha, 2020, for a review).

The potential of studying signatures of acoustic glitches associated with the base of the convective envelope and the helium ionisation zone has been recognised since the early days of helioseismology (e.g. Hill & Rosenwald, 1986; Thompson, 1988; Gough & Thompson, 1988; Vorontsov, 1988; Gough, 1990). In this context, numerous theoretical and observational studies have been published focussing on the Sun (e.g. Basu et al., 1994; Monteiro et al., 1994; Roxburgh & Vorontsov, 1994; Christensen-Dalsgaard et al., 1995; Basu, 1997; Monteiro et al., 2000; Monteiro & Thompson, 2005; Houdek & Gough, 2007; Roxburgh, 2009; Christensen-Dalsgaard et al., 2011) and on other solar-like pulsators, including main-sequence (e.g. Roxburgh & Vorontsov, 2001; Ballot et al., 2004; Basu et al., 2004; Lebreton & Goupil, 2012; Mazumdar et al., 2014; Verma et al., 2014, 2017, 2019; Farnir et al., 2019; Deal et al., 2023) and red-giant stars (Miglio et al., 2010; Broomhall et al., 2014; Corsaro et al., 2015; Dréau et al., 2020; Saunders et al., 2023).

The potential of using acoustic modes to extract information on sharp structural variations located in stellar cores has also been discussed in the literature (e.g. Audard & Provost, 1994; Roxburgh & Vorontsov, 1999, 2001; Mazumdar et al., 2006; Cunha & Metcalfe, 2007; Cunha & Brandão, 2011; Lindsay et al., 2023), although the realisation of this potential proved more challenging, particularly for deep glitches such as those associated with small convective cores. A more promising approach to detect the seismic impact of these core structural variations is to look for glitch signatures in the periods or frequencies of gravity (g) or mixed modes, when these are available. The seismic signatures of such buoyancy glitches and the mode trap** they induce have also received the attention of numerous works, including works focussing on white dwarfs (e.g. Winget et al., 1981, 1991; Brassard et al., 1992; Benvenuto et al., 2002; Córsico et al., 2002), intermediate and massive main-sequence stars (e.g. Miglio et al., 2008; Degroote et al., 2010; Kurtz et al., 2014; Van Reeth et al., 2015; Mombarg et al., 2022), subdwarf O and B (sdO, sdB) stars (e.g. Charpinet et al., 2000, 2002; Rodríguez-López et al., 2010; Østensen et al., 2014; Baran et al., 2017; Ghasemi et al., 2017; Uzundag et al., 2017), and red-giant stars (e.g. Mosser et al., 2015; Cunha et al., 2015, 2019; Jiang et al., 2022; Vrard et al., 2022). Recently, the theoretical problem has been addressed in a more general angle by considering the eigenvalue condition built up from a series of resonant cavities (pinçon22).

Different methodologies can be considered for extracting information contained in glitch signatures. A common approach is to produce a set of stellar models by varying particular aspects of the stellar physics in an attempt to reproduce the glitch signature. An alternative approach of greater relevance to the present work is to develop an analytical description of the glitch signature that enables the extraction of the glitch properties (e.g. location and amplitude) directly from fitting the data, without having to recur to specific stellar models. This ‘model-independent’ approach was considered in the context of main-sequence g-mode pulsators by Miglio et al. (2008) under the assumption that the impact of the glitch on the pulsation periods can be treated as a small perturbation (i.e. using a variational approach), which is often not the case. When the glitch impact on the pulsation periods is not small, perturbations to the pulsation periods may be derived instead by matching the wave solutions on each side of the glitch. This approach was used by Cunha et al. (2015, 2019) to derive analytical expressions for the period spacings of g-mode and mixed-mode pulsators in the presence of buoyancy glitches with different shapes, namely, Dirac-δ𝛿\deltaitalic_δ-like, step-like, and Gaussian-like glitches. Following the same approach, Hatta (2023) has recently considered, in addition, the impact on the period spacings of g-mode pulsators of a buoyancy glitch with a ramp-like shape.

Period spacings can only be computed when modes of consecutive radial order are observed. However, often not all radial orders in a sequence are detected (e.g. Østensen et al., 2014), while enough information is still available to estimate the asymptotic period spacing. In these cases, one would expect that fitting the observed periods directly would be a good alternative, regardless of them being consecutive or not. This also has the advantage of avoiding approximations introduced in the analytical analysis presented in earlier works when relating the perturbation in the periods to the perturbations in the period spacings (cf. equation 34 in Christensen-Dalsgaard (2012)). With this in mind, in the present work we revisit the step-like and Gaussian-like cases to provide explicit analytical expressions for the period perturbations that can be used when not all modes in a sequence of radial orders are observed, but an estimate of the asymptotic period spacing is still available.

Matching the wave solutions on each side of the glitch is relatively straightforward when the glitch can be assumed to be infinitely thin, for example when it is adequately modelled by a Dirac-δ𝛿\deltaitalic_δ function or a step function. However, the derivation becomes less accurate when the glitch has a non-negligible width. Matching across the glitch in this case requires an analytical representation of the eigenfunction inside the glitch, which, in turn, cannot be derived asymptotically because the scale of variation of the background there becomes comparable to the scale of the wave. Therefore, in the present work, we also explain how we performed additional tests to the expression provided earlier for the Gaussian-like glitch (Cunha et al., 2019) to quantify the impact of the assumptions that underlined its derivation.

We start by providing a general analytical expression for the period perturbations of pure g modes in Section 2. We then consider the case of a step-like glitch (Section 3), testing the perturbation to the periods against model data and verifying that the perturbation to the periods in the limit of a small amplitude glitch is identical to that derived with recourse to the variational principle, as expected. Next, we address the case of the Gaussian-like glitch, discussing the limits of the proposed periods’ perturbation when the glitch approaches the Dirac δ𝛿\deltaitalic_δ case and the case of a small glitch, and setting the accuracy limits of the expression based on artificial data produced to this effect. In Section 5 we discuss other cases, including the case of a buoyancy glitch described by a ramp function and the case of buoyancy glitches in stars exhibiting mixed modes. Finally, in Section 6 we draw the main conclusions from our work.

2 Perturbation to the periods

Internal gravity waves propagate in regions that are convectively stable with a phase speed that depends directly on the buoyancy frequency N𝑁Nitalic_N. Asymptotically, at low degree (l𝑙litalic_l) and high radial orders (n𝑛nitalic_n) the periods of gravity eigenmodes (hereafter g modes) are expected to be equally spaced with a period spacing given by (Tassoul, 1980)

ΔPas=2π2ωg,Δsubscript𝑃as2superscript𝜋2subscript𝜔g\Delta P_{\rm as}=\frac{2\pi^{2}}{\omega_{\rm g}},roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT = divide start_ARG 2 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG , (1)

where, ωgsubscript𝜔g\omega_{\rm g}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT is the buoyancy extent of the g-mode cavity given by

ωg=r1r2LNrdr,subscript𝜔gsuperscriptsubscriptsubscript𝑟1subscript𝑟2𝐿𝑁𝑟differential-d𝑟\omega_{\rm g}=\int_{r_{1}}^{r_{2}}\frac{LN}{r}{\rm d}r,italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L italic_N end_ARG start_ARG italic_r end_ARG roman_d italic_r , (2)

L=l(l+1)𝐿𝑙𝑙1L=\sqrt{l(l+1)}italic_L = square-root start_ARG italic_l ( italic_l + 1 ) end_ARG, r𝑟ritalic_r is the distance from the stellar centre, and r1subscript𝑟1r_{1}italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and r2subscript𝑟2r_{2}italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT are the inner and outer turning points, respectively, of the g mode propagation cavity.

When a glitch is located inside the g-mode cavity, the phase of the wave is perturbed, which in turn perturbs the eigenvalue condition and shifts the periods from the constant spacing predicted asymptotically. Under the Cowling approximation and using the variable Ψ=(r3/gρf~)1/2δpΨsuperscriptsuperscript𝑟3𝑔𝜌~𝑓12𝛿𝑝\Psi=\leavevmode\nobreak\ (r^{3}/g\rho\tilde{f})^{1/2}\delta proman_Ψ = ( italic_r start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT / italic_g italic_ρ over~ start_ARG italic_f end_ARG ) start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT italic_δ italic_p, where δp𝛿𝑝\delta pitalic_δ italic_p is the Lagrangian pressure perturbation, ρ𝜌\rhoitalic_ρ is the density, g𝑔gitalic_g is the gravitational acceleration, and f~~𝑓\tilde{f}over~ start_ARG italic_f end_ARG is a function of frequency and of the equilibrium structure [the f-mode discriminant defined by equation 35 of Gough (2007)], the wave equation resulting from the linear, adiabatic pulsation equations, for the case of a spherically symmetric equilibrium can be written in the standard form as

Ψ′′+K2Ψ=0.superscriptΨ′′superscript𝐾2Ψ0\displaystyle{\Psi^{\prime\prime}}+K^{2}\Psi=0.roman_Ψ start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT + italic_K start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_Ψ = 0 . (3)

Here a prime represents a differentiation with respect to r𝑟ritalic_r and, given our interest in pure g modes, we shall approximate the radial wavenumber K𝐾Kitalic_K by

K2L2r2(1N2ω2),superscript𝐾2superscript𝐿2superscript𝑟21superscript𝑁2superscript𝜔2K^{2}\approx-\frac{L^{2}}{r^{2}}\left(1-\frac{N^{2}}{\omega^{2}}\right),italic_K start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ≈ - divide start_ARG italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_r start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ( 1 - divide start_ARG italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_ω start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ) , (4)

with ω𝜔\omegaitalic_ω being the angular frequency of the mode.

Starting from equation (3) and following the asymptotic analysis by Gough (1993), Cunha et al. (2019) showed that the perturbed eigenvalue condition in the presence of a buoyancy glitch takes the form,

sin(r1r2Kdr+π2+Φ)=0,superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2Φ0\sin\left(\int_{r_{1}}^{r_{2}}K{\rm d}r+\frac{\pi}{2}+\Phi\right)=0,roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG + roman_Φ ) = 0 , (5)

where ΦΦ\Phiroman_Φ is the frequency-dependent phase perturbation induced by the glitch.

From equation (5), it follows that,

r1r2K(ω)dr=π(n12)Φ(ω),superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾𝜔differential-d𝑟𝜋𝑛12Φ𝜔\int_{r_{1}}^{r_{2}}K(\omega){\rm d}r=\pi\left(n-\frac{1}{2}\right)-\Phi(% \omega),∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K ( italic_ω ) roman_d italic_r = italic_π ( italic_n - divide start_ARG 1 end_ARG start_ARG 2 end_ARG ) - roman_Φ ( italic_ω ) , (6)

where n𝑛nitalic_n is an integer.

To derive the perturbation to the oscillation periods, with regards to a reference model with a buoyancy frequency N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, we start by noticing that in the reference model the eigenvalue condition implies that,

r1r2K0(ω0)dr=π(n12),superscriptsubscriptsubscript𝑟1subscript𝑟2subscript𝐾0subscript𝜔0differential-d𝑟𝜋𝑛12\int_{r_{1}}^{r_{2}}K_{0}(\omega_{0}){\rm d}r=\pi\left(n-\frac{1}{2}\right),∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) roman_d italic_r = italic_π ( italic_n - divide start_ARG 1 end_ARG start_ARG 2 end_ARG ) , (7)

where ω0subscript𝜔0\omega_{0}italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is the unperturbed eigenfrequency, and thus,

r1r2K(ω)dr=r1r2K0(ω0)drΦ(ω).superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾𝜔differential-d𝑟superscriptsubscriptsubscript𝑟1subscript𝑟2subscript𝐾0subscript𝜔0differential-d𝑟Φ𝜔\int_{r_{1}}^{r_{2}}K(\omega){\rm d}r=\int_{r_{1}}^{r_{2}}K_{0}(\omega_{0}){% \rm d}r-\Phi\left(\omega\right).∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K ( italic_ω ) roman_d italic_r = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) roman_d italic_r - roman_Φ ( italic_ω ) . (8)

Except near the turning points, KLN/rω𝐾𝐿𝑁𝑟𝜔K\approx LN/r\omegaitalic_K ≈ italic_L italic_N / italic_r italic_ω and K0LN0/rω0subscript𝐾0𝐿subscript𝑁0𝑟subscript𝜔0K_{0}\approx LN_{0}/r\omega_{0}italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≈ italic_L italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT / italic_r italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. Therefore one can write r1r2K(ω)dr=(r1r2LN/rωdr+α\int_{r_{1}}^{r_{2}}K(\omega){\rm d}r=(\int_{r_{1}}^{r_{2}}LN/r\omega{\rm d}r+\alpha∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K ( italic_ω ) roman_d italic_r = ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_L italic_N / italic_r italic_ω roman_d italic_r + italic_α) and r1r2K0(ω0)dr=(r1r2LN0/rω0dr+α\int_{r_{1}}^{r_{2}}K_{0}(\omega_{0}){\rm d}r=(\int_{r_{1}}^{r_{2}}LN_{0}/r% \omega_{0}{\rm d}r+\alpha∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) roman_d italic_r = ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_L italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT / italic_r italic_ω start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT roman_d italic_r + italic_α) where α=δ+δ~𝛼𝛿~𝛿\alpha=\delta+\tilde{\delta}italic_α = italic_δ + over~ start_ARG italic_δ end_ARG is a phase that incorporates the effect of the approximation of the radial wavenumber near both turning points (δ𝛿\deltaitalic_δ and δ~~𝛿\tilde{\delta}over~ start_ARG italic_δ end_ARG being the contributions from the outer and inner turning points, respectively). Notice that we have taken the turning points and α𝛼\alphaitalic_α to be the same in the perturbed and unperturbed models. This is justified by the fact that the buoyancy frequency is unperturbed near the turning points (or else, the perturbation would not be a glitch, because there the wavenumber tends to zero and the glitch condition would not be satisfied). Thus, the turning points and α𝛼\alphaitalic_α in the perturbed and unperturbed cases may differ only due to the change in the eigenfrequency, which in all cases considered is small (in relative terms), even when the local perturbations to N𝑁Nitalic_N inside the g-mode cavity are not.

Written in terms of the periods P=2π/ω𝑃2𝜋𝜔P=2\pi/\omegaitalic_P = 2 italic_π / italic_ω, it then follows from equation (8) that the perturbation to the periods with regards to the reference model is,

P=P0P0(r1r2δNdrr)(r1r2Ndrr)1(r1r2LN2πdrr)1Φ,𝑃subscript𝑃0subscript𝑃0superscriptsubscriptsubscript𝑟1subscript𝑟2𝛿𝑁d𝑟𝑟superscriptsuperscriptsubscriptsubscript𝑟1subscript𝑟2𝑁d𝑟𝑟1superscriptsuperscriptsubscriptsubscript𝑟1subscript𝑟2𝐿𝑁2𝜋d𝑟𝑟1ΦP=P_{0}-P_{0}\left(\int_{r_{1}}^{r_{2}}\delta N\frac{{\rm d}r}{r}\right)\left(% \int_{r_{1}}^{r_{2}}N\frac{{\rm d}r}{r}\right)^{-1}-\left(\int_{r_{1}}^{r_{2}}% \frac{LN}{2\pi}\frac{{\rm d}r}{r}\right)^{-1}\Phi,italic_P = italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_δ italic_N divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_N divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT - ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L italic_N end_ARG start_ARG 2 italic_π end_ARG divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_Φ , (9)

where we introduced the perturbation to the buoyancy frequency with respect to a reference model, defined by δN=NN0𝛿𝑁𝑁subscript𝑁0\delta N=N-N_{0}italic_δ italic_N = italic_N - italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. Notice that this perturbation depends on the choice of reference model, which can take different forms. An example of such a reference model is given in Appendix A for the case of a step-like glitch.

From equation (9) one can identify two contributions to the perturbed period δP=PP0𝛿𝑃𝑃subscript𝑃0\delta P=P-P_{0}italic_δ italic_P = italic_P - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT: a smooth contribution expressed by the second term on the right hand side (rhs) of the equation, related to the change in the total integral of the buoyancy frequency within the g-mode cavity, and the contribution from the glitch-induced phase ΦΦ\Phiroman_Φ.

Equation (9) can also be written in terms of the asymptotic period spacing, ΔPasΔsubscript𝑃as\Delta P_{{\rm as}}roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT, namely,

P=P0P0ΔPasπ(r1r2LδN2πdrr)ΔPasπΦPsΔPasπΦ,𝑃subscript𝑃0subscript𝑃0Δsubscript𝑃as𝜋superscriptsubscriptsubscript𝑟1subscript𝑟2𝐿𝛿𝑁2𝜋d𝑟𝑟Δsubscript𝑃as𝜋Φsubscript𝑃sΔsubscript𝑃as𝜋ΦP=P_{0}-P_{0}\frac{\Delta P_{\rm as}}{\pi}\left(\int_{r_{1}}^{r_{2}}\frac{L% \delta N}{2\pi}\frac{{\rm d}r}{r}\right)-\frac{\Delta P_{\rm as}}{\pi}\Phi% \equiv P_{\rm s}-\frac{\Delta P_{\rm as}}{\pi}\Phi,italic_P = italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L italic_δ italic_N end_ARG start_ARG 2 italic_π end_ARG divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) - divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG roman_Φ ≡ italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT - divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG roman_Φ , (10)

where we have introduced Pssubscript𝑃sP_{\rm s}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT (on the rightmost side of the expression) representing the unperturbed periods (i.e.  without the glitch effect) of a hypothetical model in which the integral of N/r𝑁𝑟N/ritalic_N / italic_r within the g-mode cavity is the same as in the glitch model. Asymptotically, we can write Ps=Ps,min+kΔPassubscript𝑃ssubscript𝑃smin𝑘Δsubscript𝑃asP_{\rm s}=P_{\rm s,min}+k\Delta P_{\rm as}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT = italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT + italic_k roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT, for a series of natural numbers k𝑘kitalic_k, where Ps,minsubscript𝑃sminP_{\rm s,min}italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT is the first of a series of equally spaced unperturbed periods. Rewriting equation (10), we then have,

P=Ps,min+ΔPas(kΦπ).𝑃subscript𝑃sminΔsubscript𝑃as𝑘Φ𝜋P=P_{\rm s,min}+\Delta P_{\rm as}\left(k-\frac{\Phi}{\pi}\right).italic_P = italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT + roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT ( italic_k - divide start_ARG roman_Φ end_ARG start_ARG italic_π end_ARG ) . (11)

Therefore, Φ/πΦ𝜋\Phi/\piroman_Φ / italic_π is directly related to the deviation of the periods from the exact asymptotic spacing and its impact is seen as a modulation in a period échelle diagram.

As the reference model is not a priori univocally defined, we shall consider the period perturbations with respect to Pssubscript𝑃sP_{\rm s}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT (δPs=PPs𝛿subscript𝑃s𝑃subscript𝑃s\delta P_{\rm s}=P-P_{\rm s}italic_δ italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT = italic_P - italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT), rather than the δP𝛿𝑃\delta Pitalic_δ italic_P defined above, unless otherwise stated. It is worth noting that when the asymptotic period spacing is the same in the glitch model and in the chosen reference model, Pssubscript𝑃sP_{\rm s}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT and P0subscript𝑃0P_{0}italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT are also the same.

Finally, as the asymptotic period spacing depends on the mode degree, to fit modes of different degree simultaneously it is useful to rewrite the expression above in terms of the l𝑙litalic_l-independent reduced period spacing ΔΠ=LΔPasΔΠ𝐿Δsubscript𝑃as\Delta\Pi=L\Delta P_{\rm as}roman_Δ roman_Π = italic_L roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT. Defining the reduced period Π=LPΠ𝐿𝑃\Pi=LProman_Π = italic_L italic_P one then finds that

Π=Π0Π0ΔΠasπ(r1r2δN2πdrr)ΔΠasπΦΠsΔΠasπΦ,ΠsubscriptΠ0subscriptΠ0ΔsubscriptΠas𝜋superscriptsubscriptsubscript𝑟1subscript𝑟2𝛿𝑁2𝜋d𝑟𝑟ΔsubscriptΠas𝜋ΦsubscriptΠsΔsubscriptΠas𝜋Φ\Pi=\Pi_{0}-\Pi_{0}\frac{\Delta\Pi_{\rm as}}{\pi}\left(\int_{r_{1}}^{r_{2}}% \frac{\delta N}{2\pi}\frac{{\rm d}r}{r}\right)-\frac{\Delta\Pi_{\rm as}}{\pi}% \Phi\equiv\Pi_{\rm s}-\frac{\Delta\Pi_{\rm as}}{\pi}\Phi,roman_Π = roman_Π start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT - roman_Π start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT divide start_ARG roman_Δ roman_Π start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_δ italic_N end_ARG start_ARG 2 italic_π end_ARG divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) - divide start_ARG roman_Δ roman_Π start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG roman_Φ ≡ roman_Π start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT - divide start_ARG roman_Δ roman_Π start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG roman_Φ , (12)

with Πs=LPssubscriptΠs𝐿subscript𝑃s\Pi_{\rm s}=LP_{\rm s}roman_Π start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT = italic_L italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT.

In what follows we shall consider the explicit form taken by the glitch phase, ΦΦ\Phiroman_Φ, for different representations of the glitch. To that end, we define the buoyancy radius

ω~gr=r1rLNrdrsuperscriptsubscript~𝜔g𝑟superscriptsubscriptsubscript𝑟1𝑟𝐿𝑁𝑟differential-d𝑟\tilde{\omega}_{\rm g}^{r}=\int_{r_{1}}^{r}\frac{LN}{r}{\rm d}rover~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT divide start_ARG italic_L italic_N end_ARG start_ARG italic_r end_ARG roman_d italic_r (13)

and the buoyancy depth

ωgr=rr2LNrdr,superscriptsubscript𝜔g𝑟superscriptsubscript𝑟subscript𝑟2𝐿𝑁𝑟differential-d𝑟\omega_{\rm g}^{r}=\int_{r}^{{r}_{2}}\frac{LN}{r}{\rm d}r,italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT = ∫ start_POSTSUBSCRIPT italic_r end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L italic_N end_ARG start_ARG italic_r end_ARG roman_d italic_r , (14)

and note that both these quantities are defined in terms of the buoyancy frequency N𝑁Nitalic_N in the star or model under consideration and not in terms of the buoyancy frequency N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT of the reference model. This is of particular relevance in the case of finite-width glitches, such as a glitch represented by a Gaussian function. The location of glitches in the inner half of the g-mode cavity (i.e. for which ω~gr/ωg<0.5superscriptsubscript~𝜔g𝑟subscript𝜔g0.5\tilde{\omega}_{\rm g}^{r}/\omega_{\rm g}<0.5over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT / italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT < 0.5) shall be expressed in terms of the buoyancy radius while the location of glitches in the outer half of the g-mode cavity shall be expressed in terms of the buoyancy depth.

3 Step-like glitch

Cunha et al. (2019) considered the case of a decreasing step-like glitch in the inner half of the g-mode cavity, defined by

N={Ninforr<rNoutforr>r,𝑁casessubscript𝑁infor𝑟superscript𝑟subscript𝑁outfor𝑟superscript𝑟N=\left\{\begin{array}[]{lll}N_{\rm in}&{\rm for}&r<r^{\star}\\ N_{\rm out}&{\rm for}&r>r^{\star}\\ \end{array}\right.,italic_N = { start_ARRAY start_ROW start_CELL italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT end_CELL start_CELL roman_for end_CELL start_CELL italic_r < italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_CELL end_ROW start_ROW start_CELL italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT end_CELL start_CELL roman_for end_CELL start_CELL italic_r > italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_CELL end_ROW end_ARRAY , (15)

with Nin>Noutsubscript𝑁insubscript𝑁outN_{\rm in}>N_{\rm out}italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT > italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT, thus with N𝑁Nitalic_N varying by the positive amount ΔN=Nin|rrNout|rr+Δ𝑁evaluated-atsubscript𝑁in𝑟subscriptsuperscript𝑟evaluated-atsubscript𝑁out𝑟subscriptsuperscript𝑟\Delta N=\left.N_{\rm in}\right|_{r\rightarrow r^{\star}_{-}}-\left.N_{\rm out% }\right|_{r\rightarrow r^{\star}_{+}}roman_Δ italic_N = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT | start_POSTSUBSCRIPT italic_r → italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT | start_POSTSUBSCRIPT italic_r → italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT + end_POSTSUBSCRIPT end_POSTSUBSCRIPT at r=r𝑟superscript𝑟r=r^{\star}italic_r = italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT (not to be confused with the perturbation with respect to the reference model, δN𝛿𝑁\delta Nitalic_δ italic_N). According to the authors (and kee** their notation), the glitch-induced phase for this case is given by,

Φst=arccot[2Astsin(2β~2)cotβ~2],subscriptΦstarccotdelimited-[]2subscript𝐴st2subscript~𝛽2subscript~𝛽2\Phi_{\rm st}={\rm arccot}\left[-\frac{2}{A_{\rm st}\sin\left(2\tilde{\beta}_{% 2}\right)}-\cot\tilde{\beta}_{2}\right],roman_Φ start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = roman_arccot [ - divide start_ARG 2 end_ARG start_ARG italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_sin ( 2 over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) end_ARG - roman_cot over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ] , (16)

where the subscript “st” is used to indicate a step-like glitch. Here, β~2=r1rKdr+π/4ω~g2πP+π/4+δ~subscript~𝛽2superscriptsubscriptsubscript𝑟1superscript𝑟𝐾differential-d𝑟𝜋4superscriptsubscript~𝜔g2𝜋𝑃𝜋4~𝛿\tilde{\beta}_{2}=\int_{r_{1}}^{r^{\star}}K{\rm d}r+\pi/4\approx\frac{\tilde{% \omega}_{\rm g}^{\star}}{2\pi}P+\pi/4+\tilde{\delta}over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + italic_π / 4 ≈ divide start_ARG over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_π end_ARG italic_P + italic_π / 4 + over~ start_ARG italic_δ end_ARG, and the superscript indicates that the corresponding quantity is evaluated at r=r𝑟superscript𝑟r=r^{\star}italic_r = italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT. The glitch is thus characterised by the relative step amplitude Ast=[Nin/Nout]r1subscript𝐴stsubscriptdelimited-[]subscript𝑁insubscript𝑁outsuperscript𝑟1A_{\rm st}=[N_{\rm in}/N_{\rm out}]_{r^{\star}}-1italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = [ italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT - 1, and the buoyancy radius ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT at the glitch location, with the expression including an additional fudge parameter δ~~𝛿\tilde{\delta}over~ start_ARG italic_δ end_ARG accounting for the approximation of the integral made near the inner turning point. While Cunha et al. (2019) considered a model with a decreasing step-like glitch, the authors did not make any assumption about the sign of ΔNΔ𝑁\Delta Nroman_Δ italic_N when deriving equation (16). Therefore, this equation is also valid for an increasing step-like glitch for which ΔN<0Δ𝑁0\Delta N<0roman_Δ italic_N < 0.

It should be noted that the expression for ΦstsubscriptΦst\Phi_{\rm st}roman_Φ start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT is degenerate with respect to the transformation AstA^stsubscript𝐴stsubscript^𝐴stA_{\rm st}\rightarrow\hat{A}_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT → over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT and δ~δ~π/2~𝛿~𝛿𝜋2\tilde{\delta}\rightarrow\tilde{\delta}-\pi/2over~ start_ARG italic_δ end_ARG → over~ start_ARG italic_δ end_ARG - italic_π / 2, where A^st=[Nout/Nin]r1subscript^𝐴stsubscriptdelimited-[]subscript𝑁outsubscript𝑁insuperscript𝑟1\hat{A}_{\rm st}=[N_{\rm out}/N_{\rm in}]_{r^{\star}}-1over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = [ italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT - 1. Given that Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT and A^stsubscript^𝐴st\hat{A}_{\rm st}over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT have opposite signs and are not identical in absolute value, care must be exerted in the interpretation of the retrieved amplitude. In the case of a decreasing step-like glitch with a fixed jump in N𝑁Nitalic_N at the discontinuity, the positive amplitude retrieved from the fitting will be larger than the absolute value of the negative solution. This is because the former should be interpreted as Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT and the latter should be interpreted as A^stsubscript^𝐴st\hat{A}_{\rm st}over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT (the actual jump being the same, but expressed differently). The situation is reversed for an increasing step-like glitch. This difficulty can be avoided by setting a prior to the amplitude when fitting the data. By imposing that the amplitude must be positive the retrieved value is always interpreted as Ast±=[N+/N]r1superscriptsubscript𝐴stplus-or-minussubscriptdelimited-[]subscript𝑁subscript𝑁superscript𝑟1A_{\rm st}^{\pm}=[N_{\rm+}/N_{\rm-}]_{r^{\star}}-1italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ± end_POSTSUPERSCRIPT = [ italic_N start_POSTSUBSCRIPT + end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT - end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT - 1, where the subscripts +++ and -- indicate the largest and the smallest of the two values of N𝑁Nitalic_N at the discontinuity.

Finally, while the expression above was derived for a glitch located in the inner half of the g-mode cavity, by symmetry of the mathematical problem considered, it is clear that the case of a decreasing step-like glitch in the inner cavity corresponds to the case of an increasing step-like glitch in the outer cavity, and the case of an increasing step-like glitch in the inner cavity corresponds to the case of a decreasing step-like glitch in the outer cavity. Thus, to infer the properties of a glitch in the outer g-mode cavity one can also use expression (16), making the correspondence β~2β2subscript~𝛽2subscript𝛽2\tilde{\beta}_{2}\rightarrow\beta_{2}over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT → italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, where β2=rr2Kdr+π/4ωg2πP+π/4+δsubscript𝛽2superscriptsubscriptsuperscript𝑟subscript𝑟2𝐾differential-d𝑟𝜋4superscriptsubscript𝜔g2𝜋𝑃𝜋4𝛿\beta_{2}=\int_{r^{\star}}^{r_{2}}K{\rm d}r+\pi/4\approx\frac{\omega_{\rm g}^{% \star}}{2\pi}P+\pi/4+\deltaitalic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + italic_π / 4 ≈ divide start_ARG italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_π end_ARG italic_P + italic_π / 4 + italic_δ. Notice, however, that the phases δ~~𝛿\tilde{\delta}over~ start_ARG italic_δ end_ARG and δ𝛿\deltaitalic_δ depend on the details of K𝐾Kitalic_K near the inner and outer turning points, respectively, and are not necessarily the same. Hence, despite the symmetry of the expression, the signatures of glitches located at equal values of ωgsuperscriptsubscript𝜔g\omega_{\rm g}^{\star}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT and ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT may differ.

3.1 Test on model data

Massive stars have convective cores that retreat as they evolve in the main sequence. The retreating core leaves behind a gradient in the hydrogen abundance that changes abruptly at the radius where the mixing region was once at its maximum. This abrupt change in the gradient of hydrogen abundance leads to a step-like discontinuity in the buoyancy frequency that is located inside the g-mode cavity, hence ideal to test our formulation (see, e.g. figure 1, left panels, of Cunha et al., 2019, for the chemical and buoyancy profiles in a massive star). To test the expression for the periods in the presence of a step-like glitch we, thus, fit equation (10) expressed in terms of the unperturbed periods Pssubscript𝑃sP_{\rm s}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT, to the periods computed for a model of a main-sequence, 6 M star. In order to compare with the results obtained by Cunha et al. (2019), we use the model and adiabatic pulsation periods computed in their work using the Aarhus STellar Evolution Code (ASTEC, Christensen-Dalsgaard, 2008b) and the Aarhus adiabatic oscillation package (ADIPLS, Christensen-Dalsgaard, 2008a), respectively.

The model data were fitted through a Markov Chain Monte Carlo method (MCMC) using the emcee python package, where the likelihood was assumed to be Gaussian, as stated in expression (17), where σ𝜎\sigmaitalic_σ represents the jitter parameter.

=(12πσ2)Nexp[12iN(PiPADIPLS,iσ)2].superscript12𝜋superscript𝜎2𝑁12superscriptsubscript𝑖𝑁superscriptsubscript𝑃𝑖subscript𝑃ADIPLS𝑖𝜎2\mathcal{L}=\left(\frac{1}{\sqrt{2\pi\sigma^{2}}}\right)^{N}\exp\left[-\frac{1% }{2}\sum_{i}^{N}\left(\frac{P_{i}-P_{{\rm\small ADIPLS},i}}{\sigma}\right)^{2}% \right].caligraphic_L = ( divide start_ARG 1 end_ARG start_ARG square-root start_ARG 2 italic_π italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG end_ARG ) start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT roman_exp [ - divide start_ARG 1 end_ARG start_ARG 2 end_ARG ∑ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT ( divide start_ARG italic_P start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT - italic_P start_POSTSUBSCRIPT roman_ADIPLS , italic_i end_POSTSUBSCRIPT end_ARG start_ARG italic_σ end_ARG ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ] . (17)

As in previous works, we do not perturb the pulsation periods prior to performing the fit. Instead, we use the model periods as given and take σ𝜎\sigmaitalic_σ as a free parameter. Hence, the adequacy of the fit is reflected in the ratio of the inferred value of σ𝜎\sigmaitalic_σ, to a characteristic value of the periods.

Prior to the MCMC, the likelihood was maximised using a Nelder-Mead minimiser method on log()-\log(\mathcal{L})- roman_log ( caligraphic_L ). The resulting parameter space position was used to set the MCMC walkers’ initial position, adding to each a small (around 0.01% of each parameter’s value) random dislocation, allowing a better exploration of the parameter space near this region.

The construction of the fitted periods through equation (10) involves the resolution of a transcendental equation in the periods. This was achieved using the bisection method, iteratively for each period, with a margin of 108superscript10810^{-8}10 start_POSTSUPERSCRIPT - 8 end_POSTSUPERSCRIPT. The codomain of the arc-cotangent in equation (16) must be carefully selected in order to avoid discontinuities. For step function glitches the argument passes from ++\infty+ ∞ to -\infty- ∞, so the codomain was chosen to be [π/2,π/2]𝜋2𝜋2[-\pi/2,\pi/2][ - italic_π / 2 , italic_π / 2 ]. With the discontinuities avoided all together, the determination of each period comes from finding the root of a monotonous function, which is doable by setting the search region as [Pi1,Pi1+2ΔPas]subscript𝑃𝑖1subscript𝑃𝑖12Δsubscript𝑃𝑎𝑠[P_{i-1},P_{i-1}+2\Delta P_{as}][ italic_P start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT , italic_P start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT + 2 roman_Δ italic_P start_POSTSUBSCRIPT italic_a italic_s end_POSTSUBSCRIPT ]. The free parameters determined from the fit are Ps,minsubscript𝑃sminP_{\rm s,min}italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT, corresponding to the first of the periods Pssubscript𝑃sP_{\rm s}italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT, the asymptotic period spacing ΔPasΔsubscript𝑃as\Delta P_{\rm as}roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT, the jitter σ𝜎\sigmaitalic_σ and the glitch parameters, namely, the amplitude Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT, position ω~gsuperscriptsubscript~𝜔𝑔\tilde{\omega}_{g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT and phase δ~~𝛿\tilde{\delta}over~ start_ARG italic_δ end_ARG.

We generated Markov Chains with 50 walkers and 9000 iterations, with a burn-in of 1000 iterations. From these we extracted the maximum probability parameters as well as the probability distribution median parameters and their respective 68% confidence interval. The priors on the parameters were uniform within the intervals provided in Table 4 and the respective marginalised distributions for the parameters are shown in Fig. 7.

Figure 1, left panel, shows the periods of the ASTEC main-sequence model in the form of an échelle diagram, where the model periods (red symbols) are plotted against the residuals defined as follows:

res=(PPs,min)modΔPas;resmodulo𝑃subscript𝑃sminΔsubscript𝑃as\displaystyle{\rm res}=\left(P-P_{\rm s,min}\right)\mod\Delta P_{\rm as};roman_res = ( italic_P - italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT ) roman_mod roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT ;
ifres>ΔPas/2thenres=resΔPas.ifresΔsubscript𝑃as2thenresresΔsubscript𝑃as\displaystyle{\rm if}\hskip 8.5359pt{\rm res}>\Delta P_{\rm as}/2\hskip 8.5359% pt{\rm then}\hskip 8.5359pt{\rm res}={\rm res}-\Delta P_{\rm as}.roman_if roman_res > roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT / 2 roman_then roman_res = roman_res - roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT . (18)

The period perturbations δPs=ΔPasπΦst𝛿subscript𝑃sΔsubscript𝑃as𝜋subscriptΦst\delta P_{\rm s}=-\frac{\Delta P_{\rm as}}{\pi}\Phi_{\rm st}italic_δ italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT = - divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG roman_Φ start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT derived from fitting equation (10) to the model periods, with the glitch phase defined by (16), are also shown (black line). The parameters inferred from the fit are given in Table 1. Comparison with the results found by Cunha et al. (2019) from fitting the periods spacings shows agreement within 1-σ𝜎\sigmaitalic_σ on the inferred glitch amplitude, glitch position, and period spacings. The phases also show a reasonable agreement (similar-to\sim 1.5-σ𝜎\sigmaitalic_σ).

Table 1: Parameters derived from the fit of the analytical expression for the step-like glitch [equations (10) and (16)] to the periods derived from ADIPLS for the main-sequence model. The values shown correspond to the median of the distributions and the 68%percent6868\%68 % confidence intervals. For comparison, the values of the glitch parameters and asymptotic period spacing inferred by fitting the period spacings, as well as the glitch parameters estimated directly from the ASTEC buoyancy frequency profile are also shown.
Ps,minsubscript𝑃sminP_{\rm s,min}italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT ΔPasΔsubscript𝑃as\Delta P_{\rm as}roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT (s) Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) δ~~𝛿\tilde{\delta}over~ start_ARG italic_δ end_ARG reference
Periods’ fit 50315174+176subscriptsuperscript5031517617450315^{+176}_{-174}50315 start_POSTSUPERSCRIPT + 176 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 174 end_POSTSUBSCRIPT 848512+12subscriptsuperscript848512128485^{+12}_{-12}8485 start_POSTSUPERSCRIPT + 12 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 12 end_POSTSUBSCRIPT 4.710.72+0.90subscriptsuperscript4.710.900.724.71^{+0.90}_{-0.72}4.71 start_POSTSUPERSCRIPT + 0.90 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.72 end_POSTSUBSCRIPT 348.02.8+2.8subscriptsuperscript348.02.82.8348.0^{+2.8}_{-2.8}348.0 start_POSTSUPERSCRIPT + 2.8 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 2.8 end_POSTSUBSCRIPT 0.7130.073+0.076subscriptsuperscript0.7130.0760.0730.713^{+0.076}_{-0.073}0.713 start_POSTSUPERSCRIPT + 0.076 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.073 end_POSTSUBSCRIPT this work
Period Spacings’ fit 847250+50subscriptsuperscript847250508472^{+50}_{-50}8472 start_POSTSUPERSCRIPT + 50 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 50 end_POSTSUBSCRIPT 4.740.39+0.44subscriptsuperscript4.740.440.394.74^{+0.44}_{-0.39}4.74 start_POSTSUPERSCRIPT + 0.44 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.39 end_POSTSUBSCRIPT 351.610.72+0.73subscriptsuperscript351.610.730.72351.61^{+0.73}_{-0.72}351.61 start_POSTSUPERSCRIPT + 0.73 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.72 end_POSTSUBSCRIPT 0.6020.019+0.019subscriptsuperscript0.6020.0190.0190.602^{+0.019}_{-0.019}0.602 start_POSTSUPERSCRIPT + 0.019 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.019 end_POSTSUBSCRIPT Cunha et al. (2019)
Estimated 5.35.35.35.3 349 Cunha et al. (2019)
Refer to caption
Figure 1: Period échelle diagrams representing the pulsations in the ASTEC models (red asteriscs) and the respective best fits derived from equation (10) (black lines). Left panel: main-sequence model and glitch phase given in equation (16). Right panel: RGB model and glitch phase given in equation (22). The vertical dashed-dotted black line marks res=0.

3.2 Limit of small glitch

In the case of a step-like glitch with amplitude much smaller than 1, the expression for the periods becomes,

P=P0P0ΔPasπ(r1r2LδN2πdrr)+ΔPas2πAstsin(2β~2),𝑃subscript𝑃0subscript𝑃0Δsubscript𝑃as𝜋superscriptsubscriptsubscript𝑟1subscript𝑟2𝐿𝛿𝑁2𝜋d𝑟𝑟Δsubscript𝑃as2𝜋subscript𝐴st2subscript~𝛽2P=P_{0}-P_{0}\frac{\Delta P_{\rm as}}{\pi}\left(\int_{r_{1}}^{r_{2}}\frac{L% \delta N}{2\pi}\frac{{\rm d}r}{r}\right)+\frac{\Delta P_{\rm as}}{2\pi}A_{\rm st% }\sin\left(2\tilde{\beta}_{2}\right),italic_P = italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L italic_δ italic_N end_ARG start_ARG 2 italic_π end_ARG divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG ) + divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_π end_ARG italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_sin ( 2 over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) , (19)

In this small glitch limit Ast=[Nin/Nout]r1([Nout/Nin]r1)[ΔN/N0]rsubscript𝐴stsubscriptdelimited-[]subscript𝑁insubscript𝑁outsuperscript𝑟1subscriptdelimited-[]subscript𝑁outsubscript𝑁insuperscript𝑟1subscriptdelimited-[]Δ𝑁subscript𝑁0superscript𝑟A_{\rm st}=[N_{\rm in}/N_{\rm out}]_{r^{\star}}-1\approx-\left(\left[N_{\rm out% }/N_{\rm in}\right]_{r^{\star}}-1\right)\approx\left[\Delta N/N_{0}\right]_{r^% {\star}}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = [ italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT - 1 ≈ - ( [ italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT - 1 ) ≈ [ roman_Δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT.

Under these conditions, the expression for the period perturbation can also be derived by making use of the variational principle (e.g. Gough, 1993). The derivation is presented in Appendix A111This limit was also considered in Miglio et al. (2008). However, the authors were only concerned with the periodic component of the perturbation and the phase of the periodic component they present differs from the one derived here by π/2𝜋2\pi/2italic_π / 2., where our choice of reference model was made such that the smooth contribution to the period perturbation (second term on the rhs of equation (19)) varies with (δN/N)2superscript𝛿𝑁𝑁2(\delta N/N)^{2}( italic_δ italic_N / italic_N ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT, becoming negligible for small enough perturbations. Comparison of equations (43) and (19), confirms that the two derivations provide the same result in this limit, as expected.

4 Gaussian-like glitch

In the case of the Gaussian-like glitch, Cunha et al. (2019) modelled the glitch in N𝑁Nitalic_N, taking

ΔNN0AG2πΔgexp((ωgrωg)22Δg2).Δ𝑁subscript𝑁0subscript𝐴G2𝜋subscriptΔgsuperscriptsuperscriptsubscript𝜔g𝑟superscriptsubscript𝜔g22superscriptsubscriptΔg2\frac{\Delta N}{N_{0}}\approx\frac{A_{\rm G}}{\sqrt{2\pi}\Delta_{\rm g}}\exp{% \left(-\frac{(\omega_{\rm g}^{r}-\omega_{\rm g}^{\star})^{2}}{2\Delta_{\rm g}^% {2}}\right)}.divide start_ARG roman_Δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ≈ divide start_ARG italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG roman_exp ( - divide start_ARG ( italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ) . (20)

Given the inherent difficulty in modelling the eigenfunction through the perturbation (cf. discussion in Section 1), it is important to recall that the analysis was performed under the rough assumption that inside the glitch the eigenfunction has the form

ΨK01/2sin(Kdr+π4),proportional-toΨsuperscriptsubscript𝐾012𝐾differential-d𝑟𝜋4\Psi\propto K_{0}^{-1/2}\sin\left(\int K{\rm d}r+\frac{\pi}{4}\right),roman_Ψ ∝ italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT roman_sin ( ∫ italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) , (21)

and that an ad hoc adjustment was made to the exponential function defining the decay of the glitch signature, so as to recover the decay found when using the variational principle to treat the small glitch limit. The glitch-induced phase proposed by the authors under the above conditions is given by

ΦG=arccot[1AGfωΔgsin2β2cotβ2],subscriptΦGarccotdelimited-[]1subscript𝐴Gsuperscriptsubscript𝑓𝜔subscriptΔgsuperscript2subscript𝛽2subscript𝛽2\Phi_{\rm G}={\rm arccot}\left[\frac{1}{A_{\rm G}{\it f}_{\omega}^{\Delta_{\rm g% }}\sin^{2}\beta_{2}}-\cot\beta_{2}\right],roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT = roman_arccot [ divide start_ARG 1 end_ARG start_ARG italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_ARG - roman_cot italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ] , (22)

where, fωΔg=ω1exp(2Δg2ω2)superscriptsubscript𝑓𝜔subscriptΔgsuperscript𝜔12superscriptsubscriptΔ𝑔2superscript𝜔2f_{\omega}^{\Delta_{\rm g}}=\omega^{-1}{\exp}(-2\Delta_{g}^{2}\omega^{-2})italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT = italic_ω start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_exp ( - 2 roman_Δ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_ω start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT ).

4.1 Tests on model data

To test the expression for the periods in the presence of a Gaussian-like glitch and compare with the fits to the period spacings performed by Cunha et al. (2019), we follow again their example and fit equation (10) to the pure g-mode periods computed by the authors for a 1 M red giant branch (RGB) model. The model was computed with the evolution code ASTEC (Christensen-Dalsgaard, 2008b) and the pure g-mode pulsations were computed by artificially disregarding the p-mode cavity with the ASTER code (see Cunha et al., 2015, 2019, for details). Here, the glitch (illustrated in their figure 1, right panel) results from the strong chemical gradient that is built at the first dredged-up and that crosses the g-mode cavity during the luminosity bump.

The same procedure as the one described in section 3.1 was used. For a Gaussian-like glitch there is an additional free parameter, as we must fit as well the width ΔgsubscriptΔg\Delta_{\rm g}roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT. The argument of the arc-cotangent for Gaussian glitches crosses 0, instead of jum** from ++\infty+ ∞ to -\infty- ∞. Thus the codomain was chosen to be [0,π𝜋\piitalic_π] to avoid a discontinuity in this region.

The stellar model used to test the Gaussian-like glitch signature has a denser period spectra than the main-sequence model used to test the step-like glitch signature. As a consequence, the data set to be fitted was larger in the Gaussian-like glitch case and not as many iterations were needed. We ran the MCMC for 4000 iterations with a burn-in of 1000, since the distributions took longer to converge to their stationary state. As before, 50 walkers were used to explore the parameter space. The priors on the parameters were uniform within the intervals provided in Table 4 and the respective marginalised distributions for the parameters are shown in Fig. 8.

The right panel of figure 1 shows the pure g-mode periods of the ASTEC RGB model in the form of and échelle diagram, where the model periods (red symbols) are plotted against the residuals computed as in Section 3.1. The period perturbations derived from the fit of equations (10) and (22) to the model periods are also shown (black line). Unlike in the case of the step-like glitch, here the perturbation is generally negative (in the case of the fit it is always negative and in the case of the model data it takes small positive values with a maximum of 3×105similar-toabsent3superscript105\sim 3\times 10^{-5}∼ 3 × 10 start_POSTSUPERSCRIPT - 5 end_POSTSUPERSCRIPT h only at very few points). The reason is that ΦGsubscriptΦG\Phi_{\rm G}roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT includes a smooth, frequency-dependent component [more easily identified in the expression for the small glitch limit given in equation (28)] that contributes negatively to the period perturbation δPs𝛿subscript𝑃s\delta P_{\rm s}italic_δ italic_P start_POSTSUBSCRIPT roman_s end_POSTSUBSCRIPT.

The parameters inferred from the fit are given in Table 2. Comparison with the results found by Cunha et al. (2019) from fitting the period spacings shows agreement within 1-σ𝜎\sigmaitalic_σ on the inferred glitch amplitude, glitch width, and period spacings. The phases and glitch positions also show a reasonable agreement (similar-to\sim 2-σ𝜎\sigmaitalic_σ). Nevertheless, in this case a large difference is seen when comparing the glitch properties inferred from the fittings of the analytical expression and from the model buoyancy frequency (with the amplitude from the fit being more than 1.5 times larger than that derived from the buoyancy frequency). This discrepancy, also found by Cunha et al. (2019) when fitting the period spacings, will be discussed further in subsection 4.4.

Table 2: Parameters derived from the fit of the analytical expression for the Gaussian-like glitch [equations (10) and (22)] to the period spacing derived from ASTER for the RGB model. The values shown correspond to the median of the distributions and the 68%percent6868\%68 % confidence intervals. For comparison, the values of the glitch parameters and asymptotic period spacing inferred by fitting the period spacings, as well as the glitch parameters estimated directly from the ASTEC buoyancy frequency profile, are also shown.
Ps,minsubscript𝑃sminP_{\rm s,min}italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT ΔPasΔsubscript𝑃as\Delta P_{\rm as}roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT (s) AGsubscript𝐴GA_{\rm G}italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) ωgsuperscriptsubscript𝜔g\omega_{\rm g}^{\star}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) ΔgsubscriptΔg\Delta_{\rm g}roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) δ𝛿\deltaitalic_δ reference
Periods’ fit 14967.1830.074+0.076subscriptsuperscript14967.1830.0760.07414967.183^{+0.076}_{-0.074}14967.183 start_POSTSUPERSCRIPT + 0.076 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.074 end_POSTSUBSCRIPT 67.534430.00035+0.00034subscriptsuperscript67.534430.000340.0003567.53443^{+0.00034}_{-0.00035}67.53443 start_POSTSUPERSCRIPT + 0.00034 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.00035 end_POSTSUBSCRIPT 589.14.3+4.4subscriptsuperscript589.14.44.3589.1^{+4.4}_{-4.3}589.1 start_POSTSUPERSCRIPT + 4.4 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 4.3 end_POSTSUBSCRIPT 1730.61.6+1.6subscriptsuperscript1730.61.61.61730.6^{+1.6}_{-1.6}1730.6 start_POSTSUPERSCRIPT + 1.6 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 1.6 end_POSTSUBSCRIPT 157.310.55+0.55subscriptsuperscript157.310.550.55157.31^{+0.55}_{-0.55}157.31 start_POSTSUPERSCRIPT + 0.55 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.55 end_POSTSUBSCRIPT 0.79360.0069+0.0069subscriptsuperscript0.79360.00690.0069-0.7936^{+0.0069}_{-0.0069}- 0.7936 start_POSTSUPERSCRIPT + 0.0069 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.0069 end_POSTSUBSCRIPT This work
Period spacings’ fit 67.5340.005+0.005subscriptsuperscript67.5340.0050.00567.534^{+0.005}_{-0.005}67.534 start_POSTSUPERSCRIPT + 0.005 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.005 end_POSTSUBSCRIPT 60725+27subscriptsuperscript6072725607^{+27}_{-25}607 start_POSTSUPERSCRIPT + 27 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 25 end_POSTSUBSCRIPT 1747.37.7+7.6subscriptsuperscript1747.37.67.71747.3^{+7.6}_{-7.7}1747.3 start_POSTSUPERSCRIPT + 7.6 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 7.7 end_POSTSUBSCRIPT 158.53.4+3.4subscriptsuperscript158.53.43.4158.5^{+3.4}_{-3.4}158.5 start_POSTSUPERSCRIPT + 3.4 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 3.4 end_POSTSUBSCRIPT 0.8720.034+0.034subscriptsuperscript0.8720.0340.034-0.872^{+0.034}_{-0.034}- 0.872 start_POSTSUPERSCRIPT + 0.034 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT - 0.034 end_POSTSUBSCRIPT Cunha et al. (2019)
Estimated 380380380380 1632163216321632 156156156156 Cunha et al. (2019)

4.2 Dirac δ𝛿\deltaitalic_δ limit

To verify that the phase for the Gaussian-like glitch reproduces the expected form in the limit of a Dirac δ𝛿\deltaitalic_δ, we consider equation (22) in that limit and compare with the phase derived by Cunha et al. (2015). Recalling that

limΔg0+12πΔgexp((ωgrωg)22Δg2)=δ(ωgrωg),subscriptsubscriptΔ𝑔superscript012𝜋subscriptΔgsuperscriptsuperscriptsubscript𝜔g𝑟superscriptsubscript𝜔g22superscriptsubscriptΔg2𝛿superscriptsubscript𝜔g𝑟superscriptsubscript𝜔g\lim_{\Delta_{g}\to 0^{+}}\frac{1}{\sqrt{2\pi}\Delta_{\rm g}}\exp{\left(-\frac% {(\omega_{\rm g}^{r}-\omega_{\rm g}^{\star})^{2}}{2\Delta_{\rm g}^{2}}\right)}% =\delta(\omega_{\rm g}^{r}-\omega_{\rm g}^{\star}),roman_lim start_POSTSUBSCRIPT roman_Δ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT → 0 start_POSTSUPERSCRIPT + end_POSTSUPERSCRIPT end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG roman_exp ( - divide start_ARG ( italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ) = italic_δ ( italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) , (23)

we find that the glitch-induced phase tends to

ΦG,lim=arccot[1AGω1sin2β2cotβ2],subscriptΦGlimarccotdelimited-[]1subscript𝐴Gsuperscript𝜔1superscript2subscript𝛽2subscript𝛽2\Phi_{\rm G,lim}={\rm arccot}\left[\frac{1}{A_{\rm G}\omega^{-1}\sin^{2}\beta_% {2}}-\cot\beta_{2}\right],roman_Φ start_POSTSUBSCRIPT roman_G , roman_lim end_POSTSUBSCRIPT = roman_arccot [ divide start_ARG 1 end_ARG start_ARG italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT italic_ω start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_ARG - roman_cot italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ] , (24)

in the limit when the glitch tends to a Dirac δ𝛿\deltaitalic_δ in the variable ωgrsuperscriptsubscript𝜔g𝑟\omega_{\rm g}^{r}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT.

In Cunha et al. (2015), the authors defined the glitch in N2(r)superscript𝑁2𝑟N^{2}(r)italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( italic_r ) as,

ΔN2N02Aδ(rr).Δsuperscript𝑁2superscriptsubscript𝑁02𝐴𝛿𝑟superscript𝑟\frac{\Delta N^{2}}{N_{0}^{2}}\approx A\delta(r-r^{\star}).divide start_ARG roman_Δ italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ≈ italic_A italic_δ ( italic_r - italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) . (25)

By integrating the wave equation (3) once across the glitch, the authors found the discontinuity in the radial derivative of the eigenfunction to be given by (see their equation 11)

[ΨoutΨin]r=limΔr0rΔrr+ΔrΔK2Ψdr=subscriptdelimited-[]superscriptsubscriptΨoutsuperscriptsubscriptΨinsuperscript𝑟subscriptΔ𝑟0superscriptsubscriptsuperscript𝑟Δ𝑟superscript𝑟Δ𝑟Δsuperscript𝐾2Ψdifferential-d𝑟absent\displaystyle\left[\Psi_{\rm out}^{\prime}-\Psi_{\rm in}^{\prime}\right]_{r^{% \star}}=-\lim_{\Delta r\to 0}\int_{r^{\star}-\Delta r}^{r^{\star}+\Delta r}% \Delta K^{2}\Psi{\rm d}r=[ roman_Ψ start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - roman_Ψ start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT = - roman_lim start_POSTSUBSCRIPT roman_Δ italic_r → 0 end_POSTSUBSCRIPT ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT - roman_Δ italic_r end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT + roman_Δ italic_r end_POSTSUPERSCRIPT roman_Δ italic_K start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_Ψ roman_d italic_r =
limΔr0rΔrr+ΔrK02Aδ(rr)Ψdr.subscriptΔ𝑟0superscriptsubscriptsuperscript𝑟Δ𝑟superscript𝑟Δ𝑟superscriptsubscript𝐾02𝐴𝛿𝑟superscript𝑟Ψdifferential-d𝑟\displaystyle-\lim_{\Delta r\to 0}\int_{r^{\star}-\Delta r}^{r^{\star}+\Delta r% }K_{0}^{2}A\delta\left(r-r^{\star}\right)\Psi{\rm d}r.- roman_lim start_POSTSUBSCRIPT roman_Δ italic_r → 0 end_POSTSUBSCRIPT ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT - roman_Δ italic_r end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT + roman_Δ italic_r end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_A italic_δ ( italic_r - italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) roman_Ψ roman_d italic_r . (26)

Considering the same discontinuity in the case of the Gaussian-like glitch (Cunha et al., 2019, see their Appendix A1) and taking the Dirac δ𝛿\deltaitalic_δ limit, one has, in terms of the variable ωgrsuperscriptsubscript𝜔𝑔𝑟\omega_{g}^{r}italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT,

[ΨoutΨin]r=limΔωgr0ωgΔωgrωg+Δωgrω1ΔKΨdωgr=subscriptdelimited-[]superscriptsubscriptΨoutsuperscriptsubscriptΨinsuperscript𝑟subscriptΔsuperscriptsubscript𝜔𝑔𝑟0superscriptsubscriptsuperscriptsubscript𝜔𝑔Δsuperscriptsubscript𝜔𝑔𝑟superscriptsubscript𝜔𝑔Δsuperscriptsubscript𝜔𝑔𝑟superscript𝜔1Δ𝐾Ψdifferential-dsuperscriptsubscript𝜔𝑔𝑟absent\displaystyle\left[\Psi_{\rm out}^{\prime}-\Psi_{\rm in}^{\prime}\right]_{r^{% \star}}=-\lim_{\Delta\omega_{g}^{r}\to 0}\int_{\omega_{g}^{\star}-\Delta\omega% _{g}^{r}}^{\omega_{g}^{\star}+\Delta\omega_{g}^{r}}{\omega}^{-1}\Delta K\Psi{{% \rm d}\omega_{g}^{r}}=[ roman_Ψ start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - roman_Ψ start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT = - roman_lim start_POSTSUBSCRIPT roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT → 0 end_POSTSUBSCRIPT ∫ start_POSTSUBSCRIPT italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT - roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT + roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_ω start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_Δ italic_K roman_Ψ roman_d italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT =
limΔωgr0ωgΔωgrωg+Δωgrω1K0AGδ(ωgrωgr)Ψdωgr,subscriptΔsuperscriptsubscript𝜔𝑔𝑟0superscriptsubscriptsuperscriptsubscript𝜔𝑔Δsuperscriptsubscript𝜔𝑔𝑟superscriptsubscript𝜔𝑔Δsuperscriptsubscript𝜔𝑔𝑟superscript𝜔1subscript𝐾0subscript𝐴𝐺𝛿superscriptsubscript𝜔𝑔𝑟superscriptsubscript𝜔𝑔superscript𝑟Ψdifferential-dsuperscriptsubscript𝜔𝑔𝑟\displaystyle-\lim_{\Delta\omega_{g}^{r}\to 0}\int_{\omega_{g}^{\star}-\Delta% \omega_{g}^{r}}^{\omega_{g}^{\star}+\Delta\omega_{g}^{r}}{\omega}^{-1}K_{0}A_{% G}\delta(\omega_{g}^{r}-\omega_{g}^{r^{\star}})\Psi{\rm d}\omega_{g}^{r},- roman_lim start_POSTSUBSCRIPT roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT → 0 end_POSTSUBSCRIPT ∫ start_POSTSUBSCRIPT italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT - roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT + roman_Δ italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_ω start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT italic_δ ( italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT ) roman_Ψ roman_d italic_ω start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT , (27)

where we have used (23) to convert from the Gaussian perturbation to the corresponding Dirac δ𝛿\deltaitalic_δ limit. We thus find AG=(LN0/r)Asubscript𝐴𝐺𝐿superscriptsubscript𝑁0superscript𝑟𝐴A_{G}=(LN_{0}^{\star}/r^{\star})Aitalic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT = ( italic_L italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT / italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) italic_A in the Dirac δ𝛿\deltaitalic_δ limit. Substituting in equation (24), we confirm that the Gaussian glitch-induced phase is the same as that derived by Cunha et al. (2015) (cf. their equation 16) in the Dirac δ𝛿\deltaitalic_δ limit.

4.3 Limit of small glitch

When ΔN/N01much-less-thanΔ𝑁subscript𝑁01\Delta N/N_{0}\ll 1roman_Δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≪ 1 everywhere, AG/ω1much-less-thansubscript𝐴𝐺𝜔1A_{G}/\omega\ll 1italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT / italic_ω ≪ 1 (since Δg<ω\Delta_{g}<\sim\omegaroman_Δ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT < ∼ italic_ω for a glitch to exist). In that case,

ΦGarctan[AGfωΔgsin2β2]12AGfωΔg[1cos(2β2)],similar-tosubscriptΦGsubscript𝐴Gsuperscriptsubscript𝑓𝜔subscriptΔgsuperscript2subscript𝛽2similar-to12subscript𝐴Gsuperscriptsubscript𝑓𝜔subscriptΔgdelimited-[]12subscript𝛽2\Phi_{\rm G}\sim\arctan\left[{A_{\rm G}{\it f}_{\omega}^{\Delta_{\rm g}}\sin^{% 2}\beta_{2}}\right]\sim\frac{1}{2}A_{\rm G}{\it f}_{\omega}^{\Delta_{\rm g}}% \left[1-\cos\left(2\beta_{2}\right)\right],roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT ∼ roman_arctan [ italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ] ∼ divide start_ARG 1 end_ARG start_ARG 2 end_ARG italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT [ 1 - roman_cos ( 2 italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) ] , (28)

Defining the reference model as that with an otherwise equal buoyancy frequency, without the Gaussian perturbation, we have that δN/N0=ΔN/N0𝛿𝑁subscript𝑁0Δ𝑁subscript𝑁0\delta N/N_{0}=\Delta N/N_{0}italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = roman_Δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. Accordingly, the period perturbations are derived from equation (10) to be,

P=P0P0ΔPas2π2AGΔPas2πAGfωΔg[1cos(2β2)].𝑃subscript𝑃0subscript𝑃0Δsubscript𝑃as2superscript𝜋2subscript𝐴𝐺Δsubscript𝑃as2𝜋subscript𝐴𝐺superscriptsubscript𝑓𝜔subscriptΔ𝑔delimited-[]12subscript𝛽2P=P_{0}-P_{0}\frac{\Delta P_{\rm as}}{2\pi^{2}}{A_{G}}-\frac{\Delta P_{\rm as}% }{2\pi}{A_{G}}{\it f}_{\omega}^{\Delta_{g}}\left[1-\cos\left(2\beta_{2}\right)% \right].italic_P = italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT - divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_π end_ARG italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT [ 1 - roman_cos ( 2 italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) ] . (29)

Under this limit of a small perturbation to the buoyancy frequency, the perturbation to the periods induced by a Gaussian-like glitch can be derived with recourse to the variational principle. The derivation is presented in Appendix A with the period perturbations given by equation (45). Comparison with equation (29) shows that the sinusoidal part of the glitch-induced period perturbation is a factor of two smaller in the case derived by matching the eigenfunctions through the approach followed by Cunha et al. (2019). Moreover, the smooth component resulting from this derivation has also an additional term compared to the variational approach, which is generally not negligible. In practice, the difference in the smooth component will have no impact when inferring the glitch properties by fitting the periods or period spacings (at most, it will introduce small differences in the inferred unperturbed periods that are of no physical interest since they refer to a hypothetical unperturbed model). However, the factor of two in the sinusoidal component will be translated into a factor of two in the inferred amplitude of the glitch, which will be two times larger when fitting the expression derived through the approach followed by Cunha et al. (2019), compared with fitting with the expression derived from the variational principle. Changing ΦGsubscriptΦG\Phi_{\rm G}roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT such that the perturbation to the periods satisfies that derived through the variational principle in the limit of a small glitch is not an option because we verified that the expression for ΦGsubscriptΦG\Phi_{\rm G}roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT satisfies the correct limit when the glitch approaches a Dirac δ𝛿\deltaitalic_δ and the inherent difficulty of fitting the eigenfunctions at the perturbation disappears (Section 4.2). Instead, in Section 4.4 we explore the accuracy of the analytical expression for ΦGsubscriptΦG\Phi_{\rm G}roman_Φ start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT in intermediate cases, simulating glitches of different amplitudes and widths, and estimating the error incurred on the inferred glitch parameters.

4.4 Tests to the accuracy of the Gaussian-like glitch inferences

The results from Section 4.3 illustrate well the anticipated difficulty in deriving an expression for the glitch-induced signature that is valid across the parameter space that one would like to explore, in the case of a Gaussian-like glitch. It is thus important to test the accuracy of the proposed expression on control data before using it to fit real data. To that end, we simulated a series of Gaussian-like glitches, starting from the buoyancy frequency of our 1M red giant model. Specifically, we started by building a glitchless reference model by either removing or smoothing the features in N𝑁Nitalic_N that produce visible period spacing variations on scales smaller than the frequency range analysed (i.e. [25,67]μ𝜇\leavevmode\nobreak\ \muitalic_μHz). Two features were identified: (1) the glitch in N𝑁Nitalic_N associated to the steep chemical gradient left by the first dredge-up, which was removed by fitting a second order polynomial across the glitch region; (2) a series of significant short-scale variations in the second derivative of N𝑁Nitalic_N (of numerical origin) taking place in the H-burning shell, which were suppressed by applying a boxcar average to N𝑁Nitalic_N (with a width of similar-to\sim1/50 of the shell) in the region of the H-burning shell. The buoyancy frequency of the original ASTEC model (dashed black line) around the glitch is compared with that of the glitchless reference (black dotted line) in Fig. 2.

Refer to caption
Figure 2: Buoyancy frequency for the original ASTEC model (dashed black line), the glitchless reference model (dotted black line), and model 5, built by adding to the glitchless reference model a glitch with properties similar to that of the original ASTEC model.
Refer to captionRefer to captionRefer to caption
Figure 3: Buoyancy frequency for the glitch-simulated models near the glitch position. In all panels, the continuous red line shows the case of model 5, corresponding to a glitch with properties similar to the original ASTEC model. Additionally, the black lines are as follows. Top panel: Models 1 (dotted line) and 2 (dashed line). Middle panel: Models 3 (dotted line) and 4 (dashed line). Bottom panel: Model 6.
Refer to captionRefer to captionRefer to caption
Figure 4: Period spacings from ASTER for the simulated Gaussian-like glitches listed in Table 3 (black line and plus symbols) and respective best analytical-model fits (dashed red line). The residuals (ASTER – best fit) are also shown for each case. Top: models 1 and 2. Middle: models 3, 4 and 5. Bottom: model 6. The fits in red included a linear smooth component. The dashed blue line in the bottom panel shows the fit without the inclusion of a smooth component. For all other models the fits with and without the inclusion of the smooth component would be indistinguishable in these figures.

Next we artificially added one Gaussian glitch at a time to the glitchless reference model, to generate a set of six models, each with a single glitch. The parameters of the added glitches were first defined based on the buoyancy depth of the reference model. As N𝑁Nitalic_N is modified by the addition of the glitch, we then recomputed the buoyancy depth based on the new N𝑁Nitalic_N and fitted a Gaussian function to the glitch to extract the true glitch parameters that are to be compared with the values inferred from fitting the analytical expression. The parameters of the six artificial glitches were chosen to explore different regimes, namely: (1) three glitches with similar widths and different amplitudes were simulated to investigate the impact of increasing amplitude; (2) two glitches with similar amplitude and different small widths were simulated to verify the impact of approaching the Dirac δ𝛿\deltaitalic_δ limit; (3) one glitch with a small amplitude was also simulated to test the results when approaching the small glitch limit. This series of glitches is illustrated in Fig. 3 and the respective properties are provided in Table 3. We note that one of these (model 5) has properties similar to those of the original ASTEC model and is shown in red in Fig. 2 and all panels of Fig. 3, for comparison.

Table 3: Properties of the simulated glitches used in Section 4.4.
Model ID AGsubscript𝐴GA_{\rm G}italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) ωgsuperscriptsubscript𝜔g\omega_{\rm g}^{\star}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT (106superscript10610^{-6}10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT rad/s) ΔgsubscriptΔg\Delta_{\rm g}roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT Comment
1 502.2 1570.1 15.5 Dirac-like
2 493.9 1603.7 43.6
3 1920.7 1752.7 154.8 Largest amplitude
4 837.6 1700.4 154.8
5 355.9 1658.1 147.1 Similar to original
6 43.0 1565.0 46.9 Small

The pure g-mode periods of the simulated glitch models were computed with the code ASTER and the respective period spacings were fitted with the analytical expression proposed by Cunha et al. (2019) (their equation 15) following the procedure described in that paper. In the case of the smallest glitch (model 6) the fit required adding a smooth component to the analytical expression describing the period spacings, which we modelled as a linear function, Sm=a0+a1ωsubscript𝑆msubscript𝑎0subscript𝑎1𝜔S_{\rm m}=a_{0}+a_{1}\omegaitalic_S start_POSTSUBSCRIPT roman_m end_POSTSUBSCRIPT = italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_a start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT italic_ω, where a0subscript𝑎0a_{0}italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT and a1subscript𝑎1a_{1}italic_a start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT are constants. We thus added the smooth component to the fit of the period spacings of all simulated glitch models for consistency, although no significant impact was found in any of the other cases.

The best fits to the period spacings for all six simulated glitch models are shown in Fig. 4, with the residuals shown in the bottom part of each panel. Comparison of the model period spacings (in black) with the best fits (in red) shows that the analytical expression proposed by Cunha et al. (2019) (their equation 15) for the Gaussian-like glitch signature reproduces well the period spacings computed with ASTER in all cases (with all deviations smaller than 0.3%percent\%%). Inspection of the blue curve in the bottom panel also shows that for the smallest glitch (Model ID 6 in Table 3) a smooth component needs to be added to the analytical expression in order to achieve a good fit. With the addition of the smooth component, the fit is indeed improved significantly, as seen by the model shown in red in the same panel.

In the top panel of Fig. 4 we can also see how the signature of the glitch changes as the glitch becomes narrow. The two glitch models shown correspond to the buoyancy frequency profiles in black seen in the top panel of Fig. 3. As we approach the Dirac δ𝛿\deltaitalic_δ limit we have seen that the glitch signature becomes independent of the glitch width [cf. equation (24)]. This is reflected in the results seen in the top panel of Fig. 4, as the glitch signatures for the two cases are almost indistinguishable (there are two black and two red lines plotted in this panel). Notice that the residuals between the model data (in black) and the fits (in red) for the two cases, also shown in the bottom part of the top panel, are also hardly distinguishable.

Likewise, we fitted the ASTER periods for the six simulated models with equation (10), using the glitch phase defined by equation (22), adding a second order smooth component to mimic the impact of the first order smooth component added to the analytical expression for the period spacings. Figure 5 shows the ratios between the inferred and true glitch properties both for the case of the fit to the period spacings and for case of the fit to the periods.

Inspection of the inferred glitch parameters show that these are not accurate, in the sense that the error bars associated with the inferences are small compared to the distance to the true values of the glitch properties. Thus, while the proposed analytical expressions for the signature on the periods and period spacings of the Gaussian-like glitch reproduce well the model data, they produce systematic errors in the inferred glitch properties. This was to be expected given the difficulties associated with the derivation of the analytical expression in this case (cf. Section 4). Nevertheless, the tests with artificial glitch models performed here allow us to understand the extent of the systematic errors so that these can be considered in applications to real data. According to the results, the parameter that is most affected, namely the amplitude of the glitch, can still be recovered within a factor of two for all cases tested. In fact, we verify that the maximum error of a factor of two occurs for the smallest amplitude glitch, as already anticipated through the inspection of that limit in Section 4.3. On the other hand, we see that the inferred amplitude becomes closer to the true value when the glitch becomes narrower, as expected from the Dirac δ𝛿\deltaitalic_δ limit discussed in Section 4.2. Regarding the glitch width, the largest errors occur for the narrower glitch (model ID 1 in Table 3), where the glitch-induced signature becomes less sensitive on this parameter. For this case we notice also a significant difference in the width inferences made by fitting the periods and the period spacings, and an increase in the error bars, compared to those obtained for the other glitch models. Finally, we see that the position of the glitch is determined within 10%percent\%% of the true value in all cases considered.

Refer to caption
Figure 5: Ratios between the inferred and true glitch parameters. Buoyancy radius (left), glitch width (middle), glitch amplitude (right). A comparison is shown of the values inferred from the fits to the period spacings (black) and to the periods (red). Note that the symbols have been displaced horizontally for a better visualisation. The horizontal dashed-dotted black line represents a ratio equal to 1.

5 Mixed modes

For completeness, in this section we discuss the expression for the frequency perturbations resulting from the impact of buoyancy glitches on mixed modes. The perturbation to the mixed-mode period spacings induced by a buoyancy glitch was first considered for the case of a glitch represented by a Dirac-δ𝛿\deltaitalic_δ function (Cunha et al., 2015) and later for a Gaussian-like glitch (Cunha et al., 2019). Following on these works, Vrard et al. (2022) provided an expression for the frequency perturbation of dipole modes, namely,

ν=νa,n+Δνπarctan{qtan[π(1νΔPasϵg)+Φ]},𝜈subscript𝜈a𝑛Δ𝜈𝜋𝑞𝜋1𝜈Δsubscript𝑃assubscriptitalic-ϵgΦ\nu=\nu_{{\rm a},n}+\frac{\Delta\nu}{\pi}\arctan\left\{q\tan\left[\pi\left(% \frac{1}{\nu\Delta P_{{\rm as}}}-\epsilon_{\rm g}\right)+\Phi\right]\right\},italic_ν = italic_ν start_POSTSUBSCRIPT roman_a , italic_n end_POSTSUBSCRIPT + divide start_ARG roman_Δ italic_ν end_ARG start_ARG italic_π end_ARG roman_arctan { italic_q roman_tan [ italic_π ( divide start_ARG 1 end_ARG start_ARG italic_ν roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG - italic_ϵ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT ) + roman_Φ ] } , (30)

where νa,nsubscript𝜈a𝑛\nu_{{\rm a},n}italic_ν start_POSTSUBSCRIPT roman_a , italic_n end_POSTSUBSCRIPT represents the frequency of the pure acoustic dipole mode of (pressure) radial order n𝑛nitalic_n that would exist in the absent of mode coupling, ΔνΔ𝜈\Delta\nuroman_Δ italic_ν is the large frequency separation, q𝑞qitalic_q is the coupling factor and ϵgsubscriptitalic-ϵg\epsilon_{\rm g}italic_ϵ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT is the gravity phase offset. This expression assumes that the integral of N/r𝑁𝑟N/ritalic_N / italic_r within the g-mode cavity is the same in the glitch and glitchless (reference) models. The impact of the glitch is incorporated in glitch phase ΦΦ\Phiroman_Φ, as before.

Explicit forms for ΦΦ\Phiroman_Φ were derived by Cunha et al. (2015) and Cunha et al. (2019) for the Dirac-δ𝛿\deltaitalic_δ and Gaussian-like glitch, respectively. In both cases the authors assumed that the glitch was located in the outer half of the g-mode cavity. However, from the point of view of the solutions within the g-mode cavity, we can think of this case as being similar to the one of pure g modes, with the exception that the boundary conditions applied beyond the two turning points are no longer the same, as a result of the coupling outwardly from the cavity. In other words, the presence of the p-mode cavity outwards from the g-mode cavity breaks the symmetry of the problem with respect to the solution inside the g-mode cavity. It is thus worth considering how the glitch phase is modified when considering a glitch in the inner half of the g-mode cavity. That analysis is presented in Appendix C.

In all cases the functional form of ΦΦ\Phiroman_Φ for mixed modes is found to be unchanged with respect to that derived in the analysis for the pure g modes, that is, it is given by equations (16), (22), and (24), for the step-like, Gaussian-like, and Dirac-δ𝛿\deltaitalic_δ glitch, respectively. However, while the definition of β~2subscript~𝛽2\tilde{\beta}_{2}over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, used in the case of a glitch in the inner half of the g-mode cavity, remains the same as in the pure g-mode case, the definition of β2subscript𝛽2\beta_{2}italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT used in the case of a glitch in the outer half of the g-mode cavity differs from that derived in the pure g-mode case, as found in the previous works (Cunha et al., 2015, 2019). In particular, when employing any of the expressions for the phase ΦΦ\Phiroman_Φ for mixed modes with a glitch in the outer half of the g-mode cavity, one must make the substitution β2β2,φωg2πP+π/4+δ+φsubscript𝛽2subscript𝛽2𝜑superscriptsubscript𝜔g2𝜋𝑃𝜋4𝛿𝜑\beta_{2}\rightarrow\beta_{2,\varphi}\approx\frac{\omega_{\rm g}^{\star}}{2\pi% }P+\pi/4+\delta+\varphiitalic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT → italic_β start_POSTSUBSCRIPT 2 , italic_φ end_POSTSUBSCRIPT ≈ divide start_ARG italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_π end_ARG italic_P + italic_π / 4 + italic_δ + italic_φ, where φ𝜑\varphiitalic_φ is the coupling phase defined by

φarctan[qtan[π(ννa,n)/Δν]].𝜑𝑞𝜋𝜈subscript𝜈a𝑛Δ𝜈\varphi\approx{\arctan}\left[\frac{q}{\tan\left[\pi\left(\nu-\nu_{{\rm a},n}% \right)/\Delta\nu\right]}\right].italic_φ ≈ roman_arctan [ divide start_ARG italic_q end_ARG start_ARG roman_tan [ italic_π ( italic_ν - italic_ν start_POSTSUBSCRIPT roman_a , italic_n end_POSTSUBSCRIPT ) / roman_Δ italic_ν ] end_ARG ] . (31)

As a result of the inclusion (exclusion) of φ𝜑\varphiitalic_φ in the arguments of the sinusoidal functions entering the definition of ΦΦ\Phiroman_Φ in the case of glitches in the outer (inner) half of the g-mode cavity, different glitch signatures on the frequencies of mixed modes are expected depending on which case is considered. A thorough discussion on this symmetry breaking will be presented in a separate work.

Finally, we emphasise also the non-additive nature of the effects of the glitch and coupling on the frequencies, as already discussed in Cunha et al. (2019) (their section 2). This requires that the two effects are considered simultaneously, by fitting with expression (30). While streching of the periods can be performed (Mosser et al., 2015; Ong & Gehan, 2023), caution must be exerted on the interpretation of the results from that streching, particularly if the frequencies are observed only near the frequency of maximum coupling.

Fits of expression (30) to Kepler data on a sample of helium core-burning stars with a glitch located in the inner half of the g-mode cavity have recently been presented by Vrard et al. (2022), enabling the first characterisation of core glitches in these stars.

6 Conclusions

In this work we provided and tested on model data analytical expressions for the perturbations induced by a glitch located in the g-mode cavity of a star on pure g-mode periods and mixed-mode frequencies. This complements the work published previously on the period-spacings perturbations (Cunha et al., 2015, 2019) and will be particularly useful when fitting data for which the observed periods are not sequential in radial order (where the computation of the period spacings is not accessible for all radial orders, but an estimate of the asymptotic period spacing is still available).

Using model data, we have also tested the accuracy of the analytical expression proposed for the seismic signature of Gaussian-like glitches, where drastic approximations had to be made in the derivation due to the finite width of the glitch. We found that the analytical expression for the periods and period-spacings perturbations becomes insensitive to the glitch width when the glitch approached the Dirac-δ𝛿\deltaitalic_δ limit. In that case, the recovery of the glitch width becomes less accurate. Nevertheless, for all cases studied here, we found that the parameter that is most affect, namely the glitch amplitude, can still be recovered from the fitting within a factor of two.

Finally, comparing the glitch-induced phases for step-like and Gaussian-like glitches, we see that glitch signatures have different dependencies on period (see Fig. 1), according to their shapes. This introduces an additional uncertainty in the interpretation of the glitch amplitude (and width), particularly when the range of observed periods does not cover a significant number of cycles of the glitch signature. Therefore, we are forced to conclude that the glitch position is generally the most robust of the inferred glitch parameters, similar to what is found in studies of acoustic glitches (e.g. Mazumdar et al., 2014).

Acknowledgements.
The authors would like to thank the anonymous referee for the interesting discussion and suggestions made during the refereeing process. This work has been supported by Fundação para a Ciência e Tecnologia FCT-MCTES, Portugal, through national funds by these grants UIDB/04434/2020 (DOI: 10.54499/UIDB/04434/2020), UIDP/04434/2020.FCT (DOI: 10.54499/UIDP/04434/2020) and 2022.03993.PTDC (DOI:10.54499/2022.03993.PTDC). MC is funded by FCT-MCTES by the contract with reference CEECIND/02619/2017.

References

  • Aerts et al. (2010) Aerts, C., Christensen-Dalsgaard, J., & Kurtz, D. W. 2010, Asteroseismology
  • Audard & Provost (1994) Audard, N. & Provost, J. 1994, A&A, 282, 73
  • Baglin et al. (2006) Baglin, A., Auvergne, M., Barge, P., et al. 2006, in ESA Special Publication, Vol. 1306, The CoRoT Mission Pre-Launch Status - Stellar Seismology and Planet Finding, ed. M. Fridlund, A. Baglin, J. Lochard, & L. Conroy, 33
  • Ballot et al. (2004) Ballot, J., Turck-Chièze, S., & García, R. A. 2004, A&A, 423, 1051
  • Baran et al. (2017) Baran, A. S., Reed, M. D., Østensen, R. H., Telting, J. H., & Jeffery, C. S. 2017, A&A, 597, A95
  • Basu (1997) Basu, S. 1997, MNRAS, 288, 572
  • Basu et al. (1994) Basu, S., Antia, H. M., & Narasimha, D. 1994, MNRAS, 267, 209
  • Basu et al. (2004) Basu, S., Mazumdar, A., Antia, H. M., & Demarque, P. 2004, MNRAS, 350, 277
  • Benvenuto et al. (2002) Benvenuto, O. G., Córsico, A. H., Althaus, L. G., & Serenelli, A. M. 2002, MNRAS, 335, 480
  • Borucki et al. (2010) Borucki, W. J., Koch, D., Basri, G., et al. 2010, Science, 327, 977
  • Brassard et al. (1992) Brassard, P., Fontaine, G., Wesemael, F., & Hansen, C. J. 1992, ApJS, 80, 369
  • Broomhall et al. (2014) Broomhall, A.-M., Miglio, A., Montalbán, J., et al. 2014, MNRAS, 440, 1828
  • Charpinet et al. (2000) Charpinet, S., Fontaine, G., Brassard, P., & Dorman, B. 2000, ApJS, 131, 223
  • Charpinet et al. (2002) Charpinet, S., Fontaine, G., Brassard, P., & Dorman, B. 2002, ApJS, 139, 487
  • Christensen-Dalsgaard (2008a) Christensen-Dalsgaard, J. 2008a, Ap&SS, 316, 113
  • Christensen-Dalsgaard (2008b) Christensen-Dalsgaard, J. 2008b, Ap&SS, 316, 13
  • Christensen-Dalsgaard (2012) Christensen-Dalsgaard, J. 2012, in Astronomical Society of the Pacific Conference Series, Vol. 462, Progress in Solar/Stellar Physics with Helio- and Asteroseismology, ed. H. Shibahashi, M. Takata, & A. E. Lynas-Gray, 503
  • Christensen-Dalsgaard et al. (2011) Christensen-Dalsgaard, J., Monteiro, M. J. P. F. G., Rempel, M., & Thompson, M. J. 2011, MNRAS, 414, 1158
  • Christensen-Dalsgaard et al. (1995) Christensen-Dalsgaard, J., Monteiro, M. J. P. F. G., & Thompson, M. J. 1995, MNRAS, 276, 283
  • Corsaro et al. (2015) Corsaro, E., De Ridder, J., & García, R. A. 2015, A&A, 578, A76
  • Córsico et al. (2002) Córsico, A. H., Althaus, L. G., Benvenuto, O. G., & Serenelli, A. M. 2002, A&A, 387, 531
  • Cunha (2018) Cunha, M. S. 2018, in Astrophysics and Space Science Proceedings, Vol. 49, Asteroseismology and Exoplanets: Listening to the Stars and Searching for New Worlds, ed. T. L. Campante, N. C. Santos, & M. J. P. F. G. Monteiro, 27
  • Cunha (2020) Cunha, M. S. 2020, in Astrophysics and Space Science Proceedings, Vol. 57, Dynamics of the Sun and Stars; Honoring the Life and Work of Michael J. Thompson, ed. M. J. P. F. G. Monteiro, R. A. García, J. Christensen-Dalsgaard, & S. W. McIntosh, 185–196
  • Cunha et al. (2007) Cunha, M. S., Aerts, C., Christensen-Dalsgaard, J., et al. 2007, Astronomy and Astrophysics Review, 14, 217
  • Cunha et al. (2019) Cunha, M. S., Avelino, P. P., Christensen-Dalsgaard, J., et al. 2019, MNRAS, 490, 909
  • Cunha & Brandão (2011) Cunha, M. S. & Brandão, I. M. 2011, A&A, 529, A10
  • Cunha & Metcalfe (2007) Cunha, M. S. & Metcalfe, T. S. 2007, ApJ, 666, 413
  • Cunha et al. (2015) Cunha, M. S., Stello, D., Avelino, P. P., Christensen-Dalsgaard, J., & Townsend, R. H. D. 2015, ApJ, 805, 127
  • Deal et al. (2023) Deal, M., Goupil, M. J., Cunha, M. S., et al. 2023, A&A, 673, A49
  • Degroote et al. (2010) Degroote, P., Aerts, C., Baglin, A., et al. 2010, Nature, 464, 259
  • Dréau et al. (2020) Dréau, G., Cunha, M. S., Vrard, M., & Avelino, P. P. 2020, MNRAS, 497, 1008
  • Farnir et al. (2019) Farnir, M., Dupret, M. A., Salmon, S. J. A. J., Noels, A., & Buldgen, G. 2019, A&A, 622, A98
  • Ghasemi et al. (2017) Ghasemi, H., Moravveji, E., Aerts, C., Safari, H., & Vučković, M. 2017, MNRAS, 465, 1518
  • Gilliland et al. (2010) Gilliland, R. L., Brown, T. M., Christensen-Dalsgaard, J., et al. 2010, PASP, 122, 131
  • Gough (1990) Gough, D. O. 1990, in Lecture Notes in Physics, Berlin Springer Verlag, Vol. 367, Progress of Seismology of the Sun and Stars, ed. Y. Osaki & H. Shibahashi, 283
  • Gough (1993) Gough, D. O. 1993, in Astrophysical Fluid Dynamics - Les Houches 1987, ed. J.-P. Zahn & J. Zinn-Justin, 399–560
  • Gough (2007) Gough, D. O. 2007, Astronomische Nachrichten, 328, 273
  • Gough & Thompson (1988) Gough, D. O. & Thompson, M. J. 1988, in IAU Symposium, Vol. 123, Advances in Helio- and Asteroseismology, ed. J. Christensen-Dalsgaard & S. Frandsen, 155
  • Hatta (2023) Hatta, Y. 2023, ApJ, 950, 165
  • Hill & Rosenwald (1986) Hill, H. A. & Rosenwald, R. D. 1986, Ap&SS, 126, 335
  • Houdek & Gough (2007) Houdek, G. & Gough, D. O. 2007, MNRAS, 375, 861
  • Jiang et al. (2022) Jiang, C., Cunha, M., Christensen-Dalsgaard, J., Zhang, Q. S., & Gizon, L. 2022, MNRAS, 515, 3853
  • Kurtz et al. (2014) Kurtz, D. W., Saio, H., Takata, M., et al. 2014, MNRAS, 444, 102
  • Lebreton & Goupil (2012) Lebreton, Y. & Goupil, M. J. 2012, A&A, 544, L13
  • Lindsay et al. (2023) Lindsay, C. J., Ong, J. M. J., & Basu, S. 2023, ApJ, 950, 19
  • Mazumdar et al. (2006) Mazumdar, A., Basu, S., Collier, B. L., & Demarque, P. 2006, MNRAS, 372, 949
  • Mazumdar et al. (2014) Mazumdar, A., Monteiro, M. J. P. F. G., Ballot, J., et al. 2014, ApJ, 782, 18
  • Miglio et al. (2010) Miglio, A., Montalbán, J., Carrier, F., et al. 2010, A&A, 520, L6
  • Miglio et al. (2008) Miglio, A., Montalbán, J., Noels, A., & Eggenberger, P. 2008, MNRAS, 386, 1487
  • Mombarg et al. (2022) Mombarg, J. S. G., Dotter, A., Rieutord, M., et al. 2022, ApJ, 925, 154
  • Monteiro et al. (1994) Monteiro, M. J. P. F. G., Christensen-Dalsgaard, J., & Thompson, M. J. 1994, A&A, 283, 247
  • Monteiro et al. (2000) Monteiro, M. J. P. F. G., Christensen-Dalsgaard, J., & Thompson, M. J. 2000, MNRAS, 316, 165
  • Monteiro & Thompson (2005) Monteiro, M. J. P. F. G. & Thompson, M. J. 2005, MNRAS, 361, 1187
  • Mosser et al. (2015) Mosser, B., Vrard, M., Belkacem, K., Deheuvels, S., & Goupil, M. J. 2015, A&A, 584, A50
  • Ong & Gehan (2023) Ong, J. M. J. & Gehan, C. 2023, ApJ, 946, 92
  • Østensen et al. (2014) Østensen, R. H., Telting, J. H., Reed, M. D., et al. 2014, A&A, 569, A15
  • Ricker et al. (2015) Ricker, G. R., Winn, J. N., Vanderspek, R., et al. 2015, Journal of Astronomical Telescopes, Instruments, and Systems, 1, 014003
  • Rodríguez-López et al. (2010) Rodríguez-López, C., Moya, A., Garrido, R., et al. 2010, MNRAS, 403, 1983
  • Roxburgh (2009) Roxburgh, I. W. 2009, A&A, 493, 185
  • Roxburgh & Vorontsov (1994) Roxburgh, I. W. & Vorontsov, S. V. 1994, MNRAS, 268, 880
  • Roxburgh & Vorontsov (1999) Roxburgh, I. W. & Vorontsov, S. V. 1999, in Astronomical Society of the Pacific Conference Series, Vol. 173, Stellar Structure: Theory and Test of Connective Energy Transport, ed. A. Gimenez, E. F. Guinan, & B. Montesinos, 257–+
  • Roxburgh & Vorontsov (2001) Roxburgh, I. W. & Vorontsov, S. V. 2001, MNRAS, 322, 85
  • Saunders et al. (2023) Saunders, D. P., Ong, J. M. J., & Basu, S. 2023, ApJ, 947, 22
  • Takata (2016) Takata, M. 2016, PASJ, 68, 109
  • Tassoul (1980) Tassoul, M. 1980, ApJS, 43, 469
  • Thompson (1988) Thompson, M. J. 1988, in ESA Special Publication, Vol. 286, Seismology of the Sun and Sun-Like Stars, ed. E. J. Rolfe, 321–324
  • Unno et al. (1989) Unno, W., Osaki, Y., Ando, H., Saio, H., & Shibahashi, H. 1989, Nonradial oscillations of stars
  • Uzundag et al. (2017) Uzundag, M., Baran, A. S., Østensen, R. H., et al. 2017, MNRAS, 472, 700
  • Van Reeth et al. (2015) Van Reeth, T., Tkachenko, A., Aerts, C., et al. 2015, ApJS, 218, 27
  • Verma et al. (2014) Verma, K., Faria, J. P., Antia, H. M., et al. 2014, ApJ, 790, 138
  • Verma et al. (2017) Verma, K., Raodeo, K., Antia, H. M., et al. 2017, ApJ, 837, 47
  • Verma et al. (2019) Verma, K., Raodeo, K., Basu, S., et al. 2019, MNRAS, 483, 4678
  • Vorontsov (1988) Vorontsov, S. V. 1988, in IAU Symposium, Vol. 123, Advances in Helio- and Asteroseismology, ed. J. Christensen-Dalsgaard & S. Frandsen, 151
  • Vrard et al. (2022) Vrard, M., Cunha, M. S., Bossini, D., et al. 2022, Nature Communications, 13, 7553
  • Winget et al. (1991) Winget, D. E., Nather, R. E., Clemens, J. C., et al. 1991, ApJ, 378, 326
  • Winget et al. (1981) Winget, D. E., van Horn, H. M., & Hansen, C. J. 1981, ApJ, 245, L33

Appendix A Variational principle

Our starting point is the wave equation A1 of Appendix A of Cunha et al. (2019) written in terms of the variable Ψ=(r3/gρf~)1/2δpΨsuperscriptsuperscript𝑟3𝑔𝜌~𝑓12𝛿𝑝\Psi=\leavevmode\nobreak\ (r^{3}/g\rho\tilde{f})^{1/2}\delta proman_Ψ = ( italic_r start_POSTSUPERSCRIPT 3 end_POSTSUPERSCRIPT / italic_g italic_ρ over~ start_ARG italic_f end_ARG ) start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT italic_δ italic_p (cf. section 2). The equation resulting from the linear, adiabatic pulsation equations for the case of a spherically symmetric equilibrium under the Cowling approximation, is then

Ψ′′+K2Ψ=0,superscriptΨ′′superscript𝐾2Ψ0\displaystyle{\Psi^{\prime\prime}}+K^{2}\Psi=0,roman_Ψ start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT + italic_K start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_Ψ = 0 , (32)

where a prime represents a differentiation with respect to r𝑟ritalic_r and we shall approximate the radial wavenumber K𝐾Kitalic_K as in equation (4), given our interest in pure g modes.

Multiplying equation (32) by the complex conjugate ΨsuperscriptΨ\Psi^{\dagger}roman_Ψ start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT, integrating once by parts between the turning points r1subscript𝑟1r_{1}italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and r2subscript𝑟2r_{2}italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT and rearranging, we find the following integral equation for the periods:

P2=r1r2(Ψ)2dr+r1r2L2r2Ψ2dr[ΨΨ]r1r2r1r2L2N24π2r2Ψ2drFI.superscript𝑃2superscriptsubscriptsubscript𝑟1subscript𝑟2superscriptsuperscriptΨ2differential-d𝑟superscriptsubscriptsubscript𝑟1subscript𝑟2superscript𝐿2superscript𝑟2superscriptΨ2differential-d𝑟superscriptsubscriptdelimited-[]superscriptΨsuperscriptΨsubscript𝑟1subscript𝑟2superscriptsubscriptsubscript𝑟1subscript𝑟2superscript𝐿2superscript𝑁24superscript𝜋2superscript𝑟2superscriptΨ2differential-d𝑟𝐹𝐼P^{2}=\frac{\int_{r_{1}}^{r_{2}}(\Psi^{\prime})^{2}{\rm d}r+\int_{r_{1}}^{r_{2% }}\frac{L^{2}}{r^{2}}\Psi^{2}{\rm d}r-\left[\Psi^{\prime}\Psi^{\dagger}\right]% _{r_{1}}^{r_{2}}}{\int_{r_{1}}^{r_{2}}\frac{L^{2}N^{2}}{4\pi^{2}r^{2}}\Psi^{2}% {\rm d}r}\equiv\frac{F}{I}.italic_P start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = divide start_ARG ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ( roman_Ψ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_d italic_r + ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG italic_r start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG roman_Ψ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_d italic_r - [ roman_Ψ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT roman_Ψ start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT ] start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT end_ARG start_ARG ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 4 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG roman_Ψ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_d italic_r end_ARG ≡ divide start_ARG italic_F end_ARG start_ARG italic_I end_ARG . (33)

Next we consider a small localised perturbation to a reference model characterised by N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, such that no change is induced to the turning points. Small perturbations to the periods induced by the change to the reference model are given by

δP2δFP2δII0.𝛿superscript𝑃2𝛿𝐹superscript𝑃2𝛿𝐼subscript𝐼0\delta P^{2}\approx\frac{\delta F-P^{2}\delta I}{I_{0}}.italic_δ italic_P start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ≈ divide start_ARG italic_δ italic_F - italic_P start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_δ italic_I end_ARG start_ARG italic_I start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG . (34)

To first order, the perturbation of the eigenfunctions do not contribute to the perturbation of the periods. Thus δF=0𝛿𝐹0\delta F=0italic_δ italic_F = 0 and we find

δPP2δII0=P2r1r2L2δN24π2r2Ψ02drr1r2L2N024π2r2Ψ02dr,𝛿𝑃𝑃2𝛿𝐼subscript𝐼0𝑃2superscriptsubscriptsubscript𝑟1subscript𝑟2superscript𝐿2𝛿superscript𝑁24superscript𝜋2superscript𝑟2superscriptsubscriptΨ02differential-d𝑟superscriptsubscriptsubscript𝑟1subscript𝑟2superscript𝐿2superscriptsubscript𝑁024superscript𝜋2superscript𝑟2superscriptsubscriptΨ02differential-d𝑟\delta P\approx-\frac{P}{2}\frac{\delta I}{I_{0}}=-\frac{P}{2}\frac{\int_{r_{1% }}^{r_{2}}\frac{L^{2}\delta N^{2}}{4\pi^{2}r^{2}}{\Psi_{0}^{2}{\rm d}r}}{\int_% {r_{1}}^{r_{2}}\frac{L^{2}N_{0}^{2}}{4\pi^{2}r^{2}}{\Psi_{0}^{2}{\rm d}r}},italic_δ italic_P ≈ - divide start_ARG italic_P end_ARG start_ARG 2 end_ARG divide start_ARG italic_δ italic_I end_ARG start_ARG italic_I start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG = - divide start_ARG italic_P end_ARG start_ARG 2 end_ARG divide start_ARG ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_δ italic_N start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 4 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG roman_Ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_d italic_r end_ARG start_ARG ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 4 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG roman_Ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT roman_d italic_r end_ARG , (35)

where Ψ0subscriptΨ0\Psi_{0}roman_Ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is the solution in the reference model and is asymptotically given by Gough (1993),

Ψ0Ψ~0K01/2sin(r1rK0dr+π4),similar-tosubscriptΨ0subscript~Ψ0superscriptsubscript𝐾012superscriptsubscriptsubscript𝑟1𝑟subscript𝐾0differential-d𝑟𝜋4\Psi_{0}\sim\tilde{\Psi}_{0}K_{0}^{-1/2}\sin\left(\int_{r_{1}}^{r}K_{0}{\rm d}% r+\frac{\pi}{4}\right),roman_Ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ∼ over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) , (36)

and Ψ~0subscript~Ψ0\tilde{\Psi}_{0}over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is a constant. The integral in the denominator of equation (35) can be readily calculated. Taking K0LN0/rωsubscript𝐾0𝐿subscript𝑁0𝑟𝜔K_{0}\approx LN_{0}/r\omegaitalic_K start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≈ italic_L italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT / italic_r italic_ω in the amplitude of the eigenfuntion Ψ0subscriptΨ0\Psi_{0}roman_Ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, we find

I0ω4π2Ψ~020ω~g,0sin2(ω~g,0rω+π4+δ~)dω~g,0rω8π2Ψ~02ωg,0.subscript𝐼0𝜔4superscript𝜋2superscriptsubscript~Ψ02superscriptsubscript0subscript~𝜔g0superscript2superscriptsubscript~𝜔g0𝑟𝜔𝜋4~𝛿differential-dsuperscriptsubscript~𝜔g0𝑟𝜔8superscript𝜋2superscriptsubscript~Ψ02subscript𝜔g0I_{0}\approx\frac{\omega}{4\pi^{2}}\tilde{\Psi}_{0}^{2}\int_{0}^{\tilde{\omega% }_{\rm g,0}}\sin^{2}\left(\frac{\tilde{\omega}_{\rm g,0}^{r}}{\omega}+\frac{% \pi}{4}+\tilde{\delta}\right){\rm d}\tilde{\omega}_{\rm g,0}^{r}\approx\frac{% \omega}{8\pi^{2}}\tilde{\Psi}_{0}^{2}\omega_{\rm g,0}.italic_I start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ≈ divide start_ARG italic_ω end_ARG start_ARG 4 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∫ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( divide start_ARG over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_ARG start_ARG italic_ω end_ARG + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + over~ start_ARG italic_δ end_ARG ) roman_d over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ≈ divide start_ARG italic_ω end_ARG start_ARG 8 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT . (37)

A.1 Small step-like glitch

To proceed with the calculation of δP𝛿𝑃\delta Pitalic_δ italic_P we need first to define the reference model and the glitch shape. Here we consider the case of a decreasing step-like glitch in the inner half of the g-mode cavity and define the reference model such that to first order in δN/N0𝛿𝑁subscript𝑁0\delta N/N_{0}italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT there is no smooth contribution to the period perturbations. Specifically, we define a linearly varying N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT around the glitch given by

N0=Nin+ΔNΔωg(ω~gaω~gr),subscript𝑁0subscript𝑁inΔ𝑁Δsubscript𝜔gsuperscriptsubscript~𝜔gasuperscriptsubscript~𝜔grN_{0}=N_{\rm in}+\frac{\Delta N}{\Delta\omega_{\rm g}}\left(\tilde{\omega}_{% \rm g}^{\rm a}-\tilde{\omega}_{\rm g}^{\rm r}\right),italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT + divide start_ARG roman_Δ italic_N end_ARG start_ARG roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG ( over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_a end_POSTSUPERSCRIPT - over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_r end_POSTSUPERSCRIPT ) , (38)

where Δωg=ω~gbω~gaΔsubscript𝜔gsuperscriptsubscript~𝜔gbsuperscriptsubscript~𝜔ga\Delta\omega_{\rm g}=\tilde{\omega}_{\rm g}^{\rm b}-\tilde{\omega}_{\rm g}^{% \rm a}roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT = over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_b end_POSTSUPERSCRIPT - over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_a end_POSTSUPERSCRIPT and ΔN=NinNoutΔ𝑁subscript𝑁insubscript𝑁out\Delta N=N_{\rm in}-N_{\rm out}roman_Δ italic_N = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT - italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT. Here, ω~gasuperscriptsubscript~𝜔ga\tilde{\omega}_{\rm g}^{\rm a}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_a end_POSTSUPERSCRIPT and ω~gbsuperscriptsubscript~𝜔gb\tilde{\omega}_{\rm g}^{\rm b}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_b end_POSTSUPERSCRIPT are equidistant from ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT and we assume the transition of N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT to Ninsubscript𝑁inN_{\rm in}italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT and Noutsubscript𝑁outN_{\rm out}italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT on each side of ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT occurs on a scale much greater than the local characteristic scale of the wave, ensuring that Δωgωmuch-greater-thanΔsubscript𝜔g𝜔\Delta\omega_{\rm g}\gg\omegaroman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT ≫ italic_ω. Also, any variations of N𝑁Nitalic_N within the interval ΔωgΔsubscript𝜔g\Delta\omega_{\rm g}roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT in addition to the jump at ω~gsuperscriptsubscript~𝜔g\tilde{\omega}_{\rm g}^{\star}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT are ignored, by comparison with the variation at the glitch. A schematic view of N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is shown in Fig. 6.

Refer to caption
Figure 6: Schematic view of the buoyancy frequency in the reference model around the glitch (N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, in red) in comparison to that in the model with the glitch (N𝑁Nitalic_N, in black). Quantities are shown in arbitrary units.

While this is clearly a simplified reference model, in particular because its first derivative is discontinuous at the points ω~gasuperscriptsubscript~𝜔ga\tilde{\omega}_{\rm g}^{\rm a}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_a end_POSTSUPERSCRIPT and ω~gbsuperscriptsubscript~𝜔gb\tilde{\omega}_{\rm g}^{\rm b}over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_b end_POSTSUPERSCRIPT where it merges into N𝑁Nitalic_N, it suffices our purpose, as the dominant feature in the perturbation δN𝛿𝑁\delta Nitalic_δ italic_N defined from this reference model is still the glitch in N𝑁Nitalic_N. It is clear from symmetry, that in this case

0ω~gδNdω~g,0r=r1r2LN0δNdrr=0.superscriptsubscript0subscript~𝜔g𝛿𝑁differential-dsuperscriptsubscript~𝜔g0𝑟superscriptsubscriptsubscript𝑟1subscript𝑟2𝐿subscript𝑁0𝛿𝑁d𝑟𝑟0\int_{0}^{\tilde{\omega}_{\rm g}}\delta N{\rm d}\tilde{\omega}_{\rm g,0}^{r}=% \int_{r_{1}}^{r_{2}}LN_{0}\delta N\frac{{\rm d}r}{r}=0.∫ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_δ italic_N roman_d over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_L italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_δ italic_N divide start_ARG roman_d italic_r end_ARG start_ARG italic_r end_ARG = 0 . (39)

Noting that N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT varies by a maximum of 𝒪(ΔN)𝒪Δ𝑁\mathcal{O}\left(\Delta N\right)caligraphic_O ( roman_Δ italic_N ) about N0superscriptsubscript𝑁0N_{0}^{\star}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT within the interval where δN𝛿𝑁\delta Nitalic_δ italic_N differs from zero, we find that the smooth component in equation (19) scales with (δN/N)2superscript𝛿𝑁𝑁2(\delta N/N)^{2}( italic_δ italic_N / italic_N ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT, as per our choice of the reference model.

With the reference model defined as above one then finds

δNN0ΔNN0[(ω~grω~gr)+ω~gaω~grΔωg],𝛿𝑁subscript𝑁0Δsuperscript𝑁superscriptsubscript𝑁0delimited-[]superscriptsubscript~𝜔g𝑟superscriptsubscript~𝜔gsuperscript𝑟superscriptsubscript~𝜔g𝑎superscriptsubscript~𝜔g𝑟Δsubscript𝜔g\frac{\delta N}{N_{0}}\approx-\frac{\Delta N^{\star}}{N_{0}^{\star}}\left[% \mathcal{H}\left(\tilde{\omega}_{\rm g}^{r}-\tilde{\omega}_{\rm g}^{r^{\star}}% \right)+\frac{\tilde{\omega}_{\rm g}^{a}-\tilde{\omega}_{\rm g}^{r}}{\Delta% \omega_{\rm g}}\right],divide start_ARG italic_δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ≈ - divide start_ARG roman_Δ italic_N start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_ARG [ caligraphic_H ( over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT ) + divide start_ARG over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_a end_POSTSUPERSCRIPT - over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_ARG start_ARG roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG ] , (40)

in the region where δN𝛿𝑁\delta Nitalic_δ italic_N is non-zero, where \mathcal{H}caligraphic_H is the Heaviside function.

Finally, with δN𝛿𝑁\delta Nitalic_δ italic_N in hand, we can calculate the integral on the numerator of equation (35) and the respective δP𝛿𝑃\delta Pitalic_δ italic_P. Specifically,

δI=ω2π2Ψ~02ω~g,0aω~g,0bδNN0sin2(ω~g,0rω+π4+δ~)dω~g,0r.𝛿𝐼𝜔2superscript𝜋2superscriptsubscript~Ψ02superscriptsubscriptsuperscriptsubscript~𝜔g0asuperscriptsubscript~𝜔g0b𝛿𝑁subscript𝑁0superscript2superscriptsubscript~𝜔g0𝑟𝜔𝜋4~𝛿differential-dsuperscriptsubscript~𝜔g0𝑟\delta I=\frac{\omega}{2\pi^{2}}\tilde{\Psi}_{0}^{2}\int_{\tilde{\omega}_{\rm g% ,0}^{\rm a}}^{\tilde{\omega}_{\rm g,0}^{\rm b}}\frac{\delta N}{N_{0}}\sin^{2}% \left(\frac{\tilde{\omega}_{\rm g,0}^{r}}{\omega}+\frac{\pi}{4}+\tilde{\delta}% \right){\rm d}\tilde{\omega}_{\rm g,0}^{r}.italic_δ italic_I = divide start_ARG italic_ω end_ARG start_ARG 2 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∫ start_POSTSUBSCRIPT over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_a end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_b end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT divide start_ARG italic_δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( divide start_ARG over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT end_ARG start_ARG italic_ω end_ARG + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + over~ start_ARG italic_δ end_ARG ) roman_d over~ start_ARG italic_ω end_ARG start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT . (41)

Integrating once by parts and noting that d/dωgr=d/dωg,0r(1+𝒪(δN/N0))ddsuperscriptsubscript𝜔g𝑟ddsuperscriptsubscript𝜔g0𝑟1𝒪𝛿𝑁subscript𝑁0{\rm d}/{\rm d}\omega_{\rm g}^{r}={\rm d}/{\rm d}\omega_{\rm g,0}^{r}(1+% \mathcal{O}(\delta N/N_{0}))roman_d / roman_d italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT = roman_d / roman_d italic_ω start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ( 1 + caligraphic_O ( italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) ) and Δωg=Δωg,0(1+𝒪(δN/N0))Δsubscript𝜔gΔsubscript𝜔g01𝒪𝛿𝑁subscript𝑁0\Delta\omega_{\rm g}=\Delta\omega_{\rm g,0}(1+\mathcal{O}(\delta N/N_{0}))roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT = roman_Δ italic_ω start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT ( 1 + caligraphic_O ( italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) ), we find

δIω28π2Ψ~02[ΔNN0]r[1ωΔωgsin(Δωgω)]sin(2β~2).𝛿𝐼superscript𝜔28superscript𝜋2superscriptsubscript~Ψ02subscriptdelimited-[]Δ𝑁subscript𝑁0superscript𝑟delimited-[]1𝜔Δsubscript𝜔gΔsubscript𝜔g𝜔2subscript~𝛽2\delta I\approx-\frac{\omega^{2}}{8\pi^{2}}\tilde{\Psi}_{0}^{2}\left[\frac{% \Delta N}{N_{0}}\right]_{r^{\star}}\left[1-\frac{\omega}{\Delta\omega_{\rm g}}% \sin\left(\frac{\Delta\omega_{\rm g}}{\omega}\right)\right]\sin\left(2\tilde{% \beta}_{2}\right).italic_δ italic_I ≈ - divide start_ARG italic_ω start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 8 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT [ divide start_ARG roman_Δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT [ 1 - divide start_ARG italic_ω end_ARG start_ARG roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG roman_sin ( divide start_ARG roman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG start_ARG italic_ω end_ARG ) ] roman_sin ( 2 over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) . (42)

Recalling that Δωgωmuch-greater-thanΔsubscript𝜔g𝜔\Delta\omega_{\rm g}\gg\omegaroman_Δ italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT ≫ italic_ω and that ωg=2π2/ΔPassubscript𝜔g2superscript𝜋2Δsubscript𝑃as\omega_{\rm g}=2\pi^{2}/\Delta P_{\rm{as}}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT = 2 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT / roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT, we then find, to first order in δN/N0𝛿𝑁subscript𝑁0\delta N/N_{0}italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, that

δPΔPas2π[ΔNN0]rsin(2β~2),𝛿𝑃Δsubscript𝑃as2𝜋subscriptdelimited-[]Δ𝑁subscript𝑁0superscript𝑟2subscript~𝛽2\delta P\approx\frac{\Delta P_{\rm as}}{2\pi}\left[\frac{\Delta N}{N_{0}}% \right]_{r^{\star}}\sin\left(2\tilde{\beta}_{2}\right),italic_δ italic_P ≈ divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_π end_ARG [ divide start_ARG roman_Δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ] start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT roman_sin ( 2 over~ start_ARG italic_β end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) , (43)

which is equivalent to equation (19) for the case of a zero smooth contribution, as expected.

A.2 Small Gaussian-like glitch

In the case of a Gaussian-like glitch, the reference model is defined by the buoyancy frequency in the absence of the Gaussian perturbation. Thus, the perturbation relative to that reference is simply

δNN0=ΔNN0AG2πΔgexp((ωgrωg)22Δg2).𝛿𝑁subscript𝑁0Δ𝑁subscript𝑁0subscript𝐴G2𝜋subscriptΔgsuperscriptsuperscriptsubscript𝜔g𝑟superscriptsubscript𝜔g22superscriptsubscriptΔg2\frac{\delta N}{N_{0}}=\frac{\Delta N}{N_{0}}\approx\frac{A_{\rm G}}{\sqrt{2% \pi}\Delta_{\rm g}}\exp{\left(-\frac{(\omega_{\rm g}^{r}-\omega_{\rm g}^{\star% })^{2}}{2\Delta_{\rm g}^{2}}\right)}.divide start_ARG italic_δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG = divide start_ARG roman_Δ italic_N end_ARG start_ARG italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ≈ divide start_ARG italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT end_ARG start_ARG square-root start_ARG 2 italic_π end_ARG roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT end_ARG roman_exp ( - divide start_ARG ( italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT - italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ) . (44)

Substituting in equation (41) and combining with equation (37), one finds, from equation( 35),

δPP0ΔPas2π2AG+ΔPasπAGfωΔgcos(2β2),𝛿𝑃subscript𝑃0Δsubscript𝑃as2superscript𝜋2subscript𝐴𝐺Δsubscript𝑃as𝜋subscript𝐴𝐺superscriptsubscript𝑓𝜔subscriptΔ𝑔2subscript𝛽2\delta P\approx-P_{0}\frac{\Delta P_{\rm as}}{2\pi^{2}}A_{G}+\frac{\Delta P_{% \rm as}}{\pi}A_{G}{\it f}_{\omega}^{\Delta_{g}}\cos\left(2\beta_{2}\right),italic_δ italic_P ≈ - italic_P start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_π start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT + divide start_ARG roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT end_ARG start_ARG italic_π end_ARG italic_A start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT italic_f start_POSTSUBSCRIPT italic_ω end_POSTSUBSCRIPT start_POSTSUPERSCRIPT roman_Δ start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT end_POSTSUPERSCRIPT roman_cos ( 2 italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) , (45)

where we neglected the difference between ωg,0subscript𝜔g0\omega_{\rm g,0}italic_ω start_POSTSUBSCRIPT roman_g , 0 end_POSTSUBSCRIPT and ωgsubscript𝜔g\omega_{\rm g}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT in the definition of β2subscript𝛽2\beta_{2}italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, as this difference is 𝒪(δN/N0)similar-toabsent𝒪𝛿𝑁subscript𝑁0\sim\mathcal{O}(\delta N/N_{0})∼ caligraphic_O ( italic_δ italic_N / italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ).

Appendix B Marginalised distributions

Here we provide the priors (Table 4) and marginalised distributions for the fits of equation (10) to the model data, considering the step-like glitch (Fig. 7) and Gaussian-like glitch (Fig. 8).

Table 4: Lower and upper limits of the uniform prior distributions applied in the fit of equation (10) to model data, for the cases of a step-like glitch (equation (16)) and Gaussian-like glitch (equation (22)).
Parameter Step-like Gaussian-like
Ps,minsubscript𝑃sminP_{\rm s,min}italic_P start_POSTSUBSCRIPT roman_s , roman_min end_POSTSUBSCRIPT (s) 49000 14900
56000 15000
ΔPasΔsubscript𝑃as\Delta P_{\rm as}roman_Δ italic_P start_POSTSUBSCRIPT roman_as end_POSTSUBSCRIPT (s) 7000 65
10000 69
Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT or AGsubscript𝐴GA_{\rm G}italic_A start_POSTSUBSCRIPT roman_G end_POSTSUBSCRIPT (10-6 rad/s) 1 300
15 800
ωgsuperscriptsubscript𝜔g\omega_{\rm g}^{\star}italic_ω start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT (10-6 rad/s) 300 1500
400 2000
ΔgsubscriptΔg\Delta_{\rm g}roman_Δ start_POSTSUBSCRIPT roman_g end_POSTSUBSCRIPT (10-6 rad/s) 100
200
δ𝛿\deltaitalic_δ -π𝜋\piitalic_π/2 -π𝜋\piitalic_π/2
π𝜋\piitalic_π/2 π𝜋\piitalic_π/2
jiterσjiter𝜎\rm{jiter}\equiv\sigmaroman_jiter ≡ italic_σ (s) 0 0
infinfimum\infroman_inf infinfimum\infroman_inf
Refer to caption
Figure 7: Marginalised distributions for the parameters considered in the fit to model data of the expression for the step-like glitch (equation (10) with ΦΦ\Phiroman_Φ defined by equation (16)).
Refer to caption
Figure 8: Marginalised distributions for the parameters considered in the fit to model data of the expression for the Gaussian-like glitch (equation (10) with ΦΦ\Phiroman_Φ defined by equation (22)).

Appendix C Glitch phase ΦΦ\Phiroman_Φ for mixed modes

Here we discuss how the glitch phase ΦΦ\Phiroman_Φ is modified when considering mixed modes instead of pure gravity modes. To establish the eigenvalue condition in the presence of a glitch, Cunha et al. (2015) and Cunha et al. (2019) started from equation (32), considering the asymptotic solutions on either side of the glitch. When studying the impact on pure g modes (i.e. in the absence of mode coupling), well inside the g-mode cavity, the solutions inwards and outwards from the glitch location are, respectively,

ΨinΨ~inKin1/2sin(r1rKindr+π4),similar-tosubscriptΨinsubscript~Ψinsuperscriptsubscript𝐾in12superscriptsubscriptsubscript𝑟1𝑟subscript𝐾indifferential-d𝑟𝜋4\Psi_{\rm in}\sim\tilde{\Psi}_{\rm in}K_{\rm in}^{-1/2}\sin\left(\int_{r_{1}}^% {r}K_{\rm in}{\rm d}r+\frac{\pi}{4}\right),roman_Ψ start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT ∼ over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) , (46)

and

ΨoutΨ~outKout1/2sin(rr2Koutdr+π4),similar-tosubscriptΨoutsubscript~Ψoutsuperscriptsubscript𝐾out12superscriptsubscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4\Psi_{\rm out}\sim\tilde{\Psi}_{\rm out}K_{\rm out}^{-1/2}\sin\left(\int_{r}^{% r_{2}}K_{\rm out}{\rm d}r+\frac{\pi}{4}\right),roman_Ψ start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT ∼ over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) , (47)

where Ψ~insubscript~Ψin\tilde{\Psi}_{\rm in}over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT and Ψ~outsubscript~Ψout\tilde{\Psi}_{\rm out}over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT are constants and Kinsubscript𝐾inK_{\rm in}italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT and Koutsubscript𝐾outK_{\rm out}italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT refer again to K𝐾Kitalic_K computed inwards and outwards from the glitch location, respectively.

In the case of mixed modes, the solution outwards from the glitch position is modified due to mode coupling. That can be accounted for by introducing a coupling phase φ𝜑\varphiitalic_φ in equation (47) that accounts for the impact of the coupling. In that case (Cunha et al. 2019),

ΨoutΨ~outKout1/2sin(rr2Koutdr+π4+φ),similar-tosubscriptΨoutsubscript~Ψoutsuperscriptsubscript𝐾out12superscriptsubscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4𝜑\Psi_{\rm out}\sim\tilde{\Psi}_{\rm out}K_{\rm out}^{-1/2}\sin\left(\int_{r}^{% r_{2}}K_{\rm out}{\rm d}r+\frac{\pi}{4}+\varphi\right),roman_Ψ start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT ∼ over~ start_ARG roman_Ψ end_ARG start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ ) , (48)

where the frequency dependent coupling phase is given by

φ=atan[qtan[(ωωa,n)/ωp]],𝜑atandelimited-[]𝑞𝜔subscript𝜔a𝑛subscript𝜔p\varphi={\rm atan}\left[\frac{q}{\tan\left[\left(\omega-\omega_{{\rm a},n}% \right)/\omega_{\rm p}\right]}\right],italic_φ = roman_atan [ divide start_ARG italic_q end_ARG start_ARG roman_tan [ ( italic_ω - italic_ω start_POSTSUBSCRIPT roman_a , italic_n end_POSTSUBSCRIPT ) / italic_ω start_POSTSUBSCRIPT roman_p end_POSTSUBSCRIPT ] end_ARG ] , (49)

with

ωp=(r3r4c1dr)12Δν.subscript𝜔psuperscriptsuperscriptsubscriptsubscript𝑟3subscript𝑟4superscript𝑐1differential-d𝑟12Δ𝜈\omega_{\rm p}=\left(\int_{r_{3}}^{r_{4}}c^{-1}{\rm d}r\right)^{-1}\approx 2% \Delta\nu.italic_ω start_POSTSUBSCRIPT roman_p end_POSTSUBSCRIPT = ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_c start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_d italic_r ) start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ≈ 2 roman_Δ italic_ν . (50)

Here, r3subscript𝑟3r_{3}italic_r start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT and r4subscript𝑟4r_{4}italic_r start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT are the turning points of the p-mode cavity and q𝑞qitalic_q is the coupling coefficient (Unno et al. 1989; Takata 2016). Also, ωa,nsubscript𝜔a𝑛\omega_{{\rm a},n}italic_ω start_POSTSUBSCRIPT roman_a , italic_n end_POSTSUBSCRIPT is the angular frequency of what would be the pure acoustic mode of (pressure) radial order n𝑛nitalic_n, in the absence of mode coupling. Based on the asymptotic solutions and the conditions obeyed by them across the glitch, the authors derived eigenvalue conditions appropriate for each case under study.

To proceed, we consider the case of a decreasing step-like buoyancy glitch as an example. It is straightforward to show that the conclusions remain the same for other shapes of the buoyancy glitch, by performing a similar analysis.

The eigenvalue condition derived by Cunha et al. (2019) for a decreasing step-like buoyancy glitch drop** by Ast=Nin/Nout1subscript𝐴stsubscript𝑁insubscript𝑁out1A_{\rm st}=N_{\rm in}/N_{\rm out}-1italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT - 1 at rsuperscript𝑟r^{\star}italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPTin the absence of coupling is

sin(r1r2Kdr+π2)=superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2absent\displaystyle\sin\left(\int_{r_{1}}^{r_{2}}K{\rm d}r+\frac{\pi}{2}\right)=roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG ) =
Astsin(rr2Koutdr+π4)cos(r1rKindr+π4).subscript𝐴stsuperscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟𝜋4\displaystyle-A_{\rm st}\sin\left(\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+% \frac{\pi}{4}\right)\cos\left(\int_{r_{1}}^{r^{\star}}K_{\rm in}{\rm d}r+\frac% {\pi}{4}\right).- italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) roman_cos ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) . (51)

Following the same analysis, but replacing equation (47) by equation (48), it follows that the eigenvalue condition becomes

sin(r1r2Kdr+π2+φ)=superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2𝜑absent\displaystyle\sin\left(\int_{r_{1}}^{r_{2}}K{\rm d}r+\frac{\pi}{2}+\varphi% \right)=roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG + italic_φ ) =
Astsin(rr2Koutdr+π4+φ)cos(r1rKindr+π4).subscript𝐴stsuperscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4𝜑superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟𝜋4\displaystyle-A_{\rm st}\sin\left(\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+% \frac{\pi}{4}+\varphi\right)\cos\left(\int_{r_{1}}^{r^{\star}}K_{\rm in}{\rm d% }r+\frac{\pi}{4}\right).- italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ ) roman_cos ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) . (52)

We now consider separately the cases of a glitch in the inner half and the outer half of the g-mode cavity. For a glitch in the inner half of the g-mode cavity one has

rr2Koutdr+π4+φ=r1r2Kdr+π2+φr1rKindrπ4,superscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4𝜑superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2𝜑superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟𝜋4\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+\frac{\pi}{4}+\varphi=\int_{r_{1}}% ^{r_{2}}K{\rm d}r+\frac{\pi}{2}+\varphi-\int_{r_{1}}^{r^{\star}}K_{\rm in}{\rm d% }r-\frac{\pi}{4},∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG + italic_φ - ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r - divide start_ARG italic_π end_ARG start_ARG 4 end_ARG , (53)

and substituting in Eq. (52) one finds

sin(r1r2Kdr+π2+Φ+φ)=0,superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2Φ𝜑0\displaystyle\sin\left(\int_{r_{1}}^{r_{2}}K{\rm d}r+\frac{\pi}{2}+\Phi+% \varphi\right)=0,roman_sin ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG + roman_Φ + italic_φ ) = 0 , (54)

where ΦΦ\Phiroman_Φ, and a new quantity, B𝐵Bitalic_B, are defined by the following system of equations,

{BcosΦ=1+Astcos2(r1rKindr+π4),BsinΦ=12Astcos(2r1rKindr).cases𝐵Φ1subscript𝐴stsuperscript2superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟𝜋4missing-subexpressionmissing-subexpressionmissing-subexpression𝐵Φ12subscript𝐴st2superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟\left\{\begin{array}[]{lll}B\cos\Phi&=&1+A_{\rm st}\cos^{2}\left(\int_{r_{1}}^% {r^{\star}}K_{\rm in}{\rm d}r+\frac{\pi}{4}\right),\\ \\ B\sin\Phi&=&-\frac{1}{2}A_{\leavevmode\nobreak\ \rm st}\cos\left(2\int_{r_{1}}% ^{r^{\star}}K_{\rm in}{\rm d}r\right).\end{array}\right.{ start_ARRAY start_ROW start_CELL italic_B roman_cos roman_Φ end_CELL start_CELL = end_CELL start_CELL 1 + italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_cos start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG ) , end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_B roman_sin roman_Φ end_CELL start_CELL = end_CELL start_CELL - divide start_ARG 1 end_ARG start_ARG 2 end_ARG italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_cos ( 2 ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r ) . end_CELL end_ROW end_ARRAY (55)

By comparing with equation (16), we thus conclude that in the case of a glitch located in the inner half of the g-mode cavity, the glitch phase ΦΦ\Phiroman_Φ entering the perturbation to the mixed-mode frequencies is the same as that derived for the pure g modes.

For a glitch in the outer half of the g-mode cavity one has instead

r1rKindr+π4=r1r2Kdr+π2+φrr2Koutdrπ4φ.superscriptsubscriptsubscript𝑟1superscript𝑟subscript𝐾indifferential-d𝑟𝜋4superscriptsubscriptsubscript𝑟1subscript𝑟2𝐾differential-d𝑟𝜋2𝜑superscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4𝜑\int_{r_{1}}^{r^{\star}}K_{\rm in}{\rm d}r+\frac{\pi}{4}=\int_{r_{1}}^{r_{2}}K% {\rm d}r+\frac{\pi}{2}+\varphi-\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r-% \frac{\pi}{4}-\varphi.∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG = ∫ start_POSTSUBSCRIPT italic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 2 end_ARG + italic_φ - ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r - divide start_ARG italic_π end_ARG start_ARG 4 end_ARG - italic_φ . (56)

Substituting in equation (52), we find again equation (54), but with the glitch phase now defined by the system of equations

{BcosΦ=1+Astsin2(rr2Koutdr+π4+φ),BsinΦ=12Astcos(2rr2Koutdr+2φ).cases𝐵Φ1subscript𝐴stsuperscript2superscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟𝜋4𝜑missing-subexpressionmissing-subexpressionmissing-subexpression𝐵Φ12subscript𝐴st2superscriptsubscriptsuperscript𝑟subscript𝑟2subscript𝐾outdifferential-d𝑟2𝜑\left\{\begin{array}[]{lll}B\cos\Phi&=&1+A_{\rm st}\sin^{2}\left(\int_{r^{% \star}}^{r_{2}}K_{\rm out}{\rm d}r+\frac{\pi}{4}+\varphi\right),\\ \\ B\sin\Phi&=&\frac{1}{2}A_{\leavevmode\nobreak\ \rm st}\cos\left(2\int_{r^{% \star}}^{r_{2}}K_{\rm out}{\rm d}r+2\varphi\right).\end{array}\right.{ start_ARRAY start_ROW start_CELL italic_B roman_cos roman_Φ end_CELL start_CELL = end_CELL start_CELL 1 + italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_sin start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ ) , end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_B roman_sin roman_Φ end_CELL start_CELL = end_CELL start_CELL divide start_ARG 1 end_ARG start_ARG 2 end_ARG italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_cos ( 2 ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + 2 italic_φ ) . end_CELL end_ROW end_ARRAY (57)

In this case the glitch phase can be written as,

Φ=arccot[2Astcos(2rr2Koutdr+2φ)\displaystyle\Phi={\rm arccot}\left[\frac{2}{A_{\rm st}\cos{\left(2\int_{r^{% \star}}^{r_{2}}K_{\rm out}{\rm d}r+2\varphi\right)}}\right.roman_Φ = roman_arccot [ divide start_ARG 2 end_ARG start_ARG italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_cos ( 2 ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + 2 italic_φ ) end_ARG
+tan(rr2Koutdr+π4+φ)].\displaystyle+\left.\tan\left(\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+% \frac{\pi}{4}+\varphi\right)\right].+ roman_tan ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ ) ] . (58)

To see how the glitch phase is modified for the mixed modes in this case, one can compare equation (58) to equation (16). Recalling that ΔN=NinNouΔ𝑁subscript𝑁insubscript𝑁ou\Delta N=N_{\rm in}-N_{\rm ou}roman_Δ italic_N = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT - italic_N start_POSTSUBSCRIPT roman_ou end_POSTSUBSCRIPT, we rewrite Ast=Nin/Nou1=ΔN/(NinΔN)subscript𝐴stsubscript𝑁insubscript𝑁ou1Δ𝑁subscript𝑁inΔ𝑁A_{\rm st}=N_{\rm in}/N_{\rm ou}-1=\Delta N/(N_{\rm in}-\Delta N)italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT = italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT / italic_N start_POSTSUBSCRIPT roman_ou end_POSTSUBSCRIPT - 1 = roman_Δ italic_N / ( italic_N start_POSTSUBSCRIPT roman_in end_POSTSUBSCRIPT - roman_Δ italic_N ). Using Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT expressed in terms of ΔNΔ𝑁\Delta Nroman_Δ italic_N in equation (58) and noting that tan(θ)+cot(θ)=1/(sin(θ)cos(θ))𝜃𝜃1𝜃𝜃\tan(\theta)+\cot(\theta)=1/(\sin(\theta)\cos(\theta))roman_tan ( italic_θ ) + roman_cot ( italic_θ ) = 1 / ( roman_sin ( italic_θ ) roman_cos ( italic_θ ) ) for any θ𝜃\thetaitalic_θ, equation (58) can be rewritten as

Φ=arccot[2A^stcos(2rr2Koutdr+2φ)\displaystyle\Phi={\rm arccot}\left[-\frac{2}{\hat{A}_{\rm st}\cos{\left(2\int% _{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+2\varphi\right)}}\right.roman_Φ = roman_arccot [ - divide start_ARG 2 end_ARG start_ARG over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT roman_cos ( 2 ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + 2 italic_φ ) end_ARG
cot(rr2Koutdr+π4+φ)].\displaystyle-\left.\cot\left(\int_{r^{\star}}^{r_{2}}K_{\rm out}{\rm d}r+% \frac{\pi}{4}+\varphi\right)\right].- roman_cot ( ∫ start_POSTSUBSCRIPT italic_r start_POSTSUPERSCRIPT ⋆ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT italic_K start_POSTSUBSCRIPT roman_out end_POSTSUBSCRIPT roman_d italic_r + divide start_ARG italic_π end_ARG start_ARG 4 end_ARG + italic_φ ) ] . (59)

Equation (59) has the same functional form as equation (16), and we note that the appearance of A^stsubscript^𝐴st\hat{A}_{\rm st}over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT instead of Astsubscript𝐴stA_{\rm st}italic_A start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT was anticipated given that by symmetry a decreasing step-like glitch in the outer cavity should imprint the same signature on pure g modes as an increasing step-like glitch in the inner g-mode cavity, with an associated positive amplitude defined by A^stsubscript^𝐴st\hat{A}_{\rm st}over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT roman_st end_POSTSUBSCRIPT. Nevertheless, there is a second important difference that we can identify when comparing the two results. In the case of the mixed modes and a glitch located in the outer half of the g-mode cavity, the arguments of the sinusoidal functions change, incorporating, in addition, the coupling phase, φ𝜑\varphiitalic_φ. This means that the coupling between the two cavities will impact the glitch phase when the glitch is located in the outer half of the cavity. To recover the same expression for ΦΦ\Phiroman_Φ as in the pure g-mode case, one must now include the coupling phase φ𝜑\varphiitalic_φ in the definition of β2subscript𝛽2\beta_{2}italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT.