1 Introduction

For over a century, classical general relativity (CGR) has rewarded us richly in the areas of astrophysics and cosmology. As we enter a golden age of observations, with higher precision and advanced technologies, there is a greater demand on CGR. Einstein’s formulation of gravitation has continued to bear out these observations, the most notable being the detection of gravitational waves [1] and the photographing of the shadow of a black hole [2]. Despite the many successes of CGR, several shortcomings have arisen in relativistic astrophysics, dust and gas reservoirs some of which include the end-states of continued gravitational collapse, high-redshift star-forming galaxies and equation of state of ultra-high densities. On the cosmological front, CGR has been burdened with the flatness problem, the horizon problem, the observed acceleration of the universe and the origin of the Big Bang.

In order to overcome these pathologies, there were various attempts to modify CGR. This gave rise to a spectrum of modified theories of gravity, including f(R), f(RT), Lovelock gravity, Einstein–Gauss–Bonnet (EGB) gravity, amongst others. Modifications to CGR not only attempted to plug the holes in Einstein’s formulation of gravity but have extended the space of exact and numerical solutions. For example, f(R) gravity was proposed by Starobinsky to account for the observed late-time acceleration of the Universe without requiring exotic matter such as dark energy or scalar fields [3]. The f(R) theory of gravitation requires the incorporation into the action of a polynomial in the Ricci scalar. The leading contender of the most natural generalisation of CGR in the strong-field domain within the f(R) framework is the so-called R-squared theory in which \(f(R) = R + aR^2\). A comparative study of neutron and strange stars oscillations in CGR and \(R^2\) gravity was carried out by Staykov et al. [4]. In this work they demonstrated that In this paper, we investigated neutron and strange stars oscillations in GR and \(R^2\) gravity. By employing the Cowling approximation over a wide spectrum of EoS’s with varying stiffnesses, they showed the observed maximum deviation between the f-mode frequencies in CGR models compared to their \(R^2\) counterparts is up to 10% is sensitive to the \(R^2\) parameter a. In a separate study, Staykov et al. [5] studied slowly rotating neutron and strange stars in \(R^2\) gravity by employing two different hadronic equations of state and a strange matter equation of state. Numerical solutions of the governing equations revealed that the \(R^2\) neutron star moment of inertia can be up to 30% larger than its CGR counterpart. This could serve as a possible signature for distinguishing CGR and f(R) theories via observations. The serious drawback of f(R) theory is the appearance of higher derivative terms which correspond to ghosts.

In this work we attempt to constrain the maximum mass of a quark star in f(RT) gravity by using data obtained from the GW 190814 event. Stellar modeling within the framework of f(RT) gravity has become a popular choice amongst relativists which was proposed by Harko et al. [6]. The action in this formalism is a function of the Ricci scalar R and the trace of the energy momentum tensor T and has been christened f(RT) gravity in the literature. While the the equations of motion are indeed second order, the main drawback is the violation of the conservation of energy. This seemingly violation of the law of energy conservation can be attributed to the geometry of spacetime, in particular the curvature of spacetime as compared to its Newtonian counterpart. In the recent past, there have been many inroads made in establishing compact objects in f(RT) gravity including the Mazur-Mottola gravastar model as a viable alternative to black holes [7], modeling of isothermal fluids [8], studying the stability of neutron stars by adopting a polytropic equation of state (EoS) [9], modeling charged stellar objects [10], to name a few.

It is well-known that the study of compact objects such as neutron stars, pulsars and quark stars in both CGR and modified theories of gravity have leap-frogged from mathematical excursion of the governing equations into mainstream observations of these astrophysical bodies. One observational event in particular has served as a bedrock for testing such models and is useful to compare possible signatures of modified gravity to their classical counterparts. The so-called gravitational wave events recorded by the LIGO-Virgo collaboration [11] has been drawn into the context of Einstein-dilaton-Gauss–Bonnet (EdGB) and dynamical Chern-Simons gravity. The signals detected by the binary black hole narrowed down the bounds on the EdGB coupling constant to \(\alpha ^{1/2}_{EdGB} \le 5.6 \) km [12]. On the cosmological front, the compatibility of Einstein–Gauss–Bonnet gravity with GW170817 event has led to a reformulation of EGB inflation [13]. The gravitational waves generated in the coalescing of two neutron stars and the observation that their arrival time coincided with gamma rays required that gravitational wave speed be \(c^2_T \approx 1\) in natural units. This in turn constrained the functional forms for the scalar Gauss–Bonnet coupling function \(\zeta (\phi )\) and the scalar potential \(V(\phi )\).

The discovery of a compact object with a mass greater than \(\sim 2 M_{\odot }\) via the GW 190814 binary coalescence has prompted researchers to mine extended theories of gravity to account for stellar characteristics such as mass–radius relations of such a body. It has been shown that in the presence of rotation, the masses of neutron stars can exceed \(\sim 2.6 M_{\odot }\) for particular EoS’s and still be compatible with observations from the GW 190814 event [14].

The paper is organized as follows: in Sect. 2 we briefly reviewed the field equations for f(RT) gravity. For spherically symmetric solutions of these equations, the modified Tolman–Oppenheimer–Volkoff (TOV) equations are derived in Sect. 3. In Sect. 4, we present the EoS for CFL phase which is the true ground state of hadronic matter at asymptotically large densities. The interior solution is being matched with the exterior Schwarzschild vacuum solution with appropriate boundary conditions. In Sect. 5, we solve the modified TOV equations numerically and determine the mass–radius relations for QSs for two different sets of parameters. We also investigate the stability of QSs in the same section. We draw final conclusions from our results in in Sect. 6. Here we adopt the signature \((+, -, -, -)\), and utilise geometric units by setting the gravitational constant G and the speed of light c to unity, that is \(G= c = 1\).

2 Field equations and set up

Following Harko et al. [6], the action of the f(RT) modified gravity in 4D spacetime is given by

$$\begin{aligned} S=\int d^{4}x \sqrt{-g} \left[ \frac{1}{16\pi } f(R,T)+\mathcal {L}_m\right] , \end{aligned}$$
(1)

where f(RT) is an arbitrary function of the Ricci scalar R and of the trace of the stress–energy tensor T, respectively. From the matter Lagrangian density \(\mathcal {L}_m\), we defined the energy-momentum tensor of the matter as

$$\begin{aligned} T_{\mu \nu }= -\frac{2}{\sqrt{-g}}\frac{\delta \left( \sqrt{-g}\mathcal {L}_m\right) }{\delta g^{\mu \nu }} =g_{\mu \nu }\mathcal {L}_m-2\frac{\partial \mathcal {L}_m }{\partial g^{\mu \nu }}. \end{aligned}$$
(2)

There is an implicit assumption that \(\mathcal {L}_m\) depends only on the metric components \(g_{\mu \nu }\) and not on its derivatives. Now, varying the action (1) with respect to the metric tensor, the field equations are obtained as

$$\begin{aligned}&f_R (R,T) R_{\mu \nu } - \frac{1}{2} f(R,T) g_{\mu \nu } + (g_{\mu \nu }\Box - \nabla _{\mu } \nabla _{\nu })\nonumber \\&\quad \times f_R (R,T)= 8\pi T_{\mu \nu } - f_{T(R,T)} T_{\mu \nu } - f_{T(R,T)}\Theta _{\mu \nu } , \end{aligned}$$
(3)

where \(f_R (R,T)= \partial f(R,T)/\partial R\), \(f_T (R,T)=\partial f(R,T)/\partial T\), \(\Box \equiv \partial _{\mu }(\sqrt{-g} g^{\mu \nu } \partial _{\nu })/\sqrt{-g}\), \(R_{\mu \nu }\) is the Ricci tensor, \(\nabla _\mu \) denotes the covariant derivative with respect to the metric \(g_{\mu \nu }\) and \(\Theta _{\mu \nu }= g^{\alpha \beta }\delta T_{\alpha \beta }/\delta g^{\mu \nu }\). The covariant derivative of the field Eq. (3) gives

$$\begin{aligned}&\nabla ^{\mu }T_{\mu \nu }=. \frac{f_T(R,T)}{8\pi -f_T(R,T)}\left[ (T_{\mu \nu }+\Theta _{\mu \nu })\nabla ^{\mu }\right. \nonumber \\&\left. \quad \times \ln f_T(R,T)\nabla ^{\mu }\Theta _{\mu \nu }-(1/2)g_{\mu \nu }\nabla ^{\mu }T\right] \end{aligned}$$
(4)

which is significant in discussing energy properties of the model.

Assuming that the matter content is a perfect fluid, the stress tensor is given by

$$\begin{aligned} T_{\mu \nu }=(\rho +P)u_\mu u_\nu -P g_{\mu \nu }, \end{aligned}$$
(5)

where \(u^{\mu }\) is the 4-velocity which satisfies the condition \(u^{\mu }u_{\mu } = 1\). With this \(\rho \) and P are the matter energy-density and the isotropic pressure of the fluid, respectively. For the perfect fluid we can fix the matter Lagrangian as \(\mathcal {L}_m = -P\) (see [6] for details), which gives

$$\begin{aligned} \Theta _{\mu \nu }=-2T_{\mu \nu }- P g_{\mu \nu }. \end{aligned}$$
(6)

To proceed further, we assume the simplest linear functional form of f(RT) model i.e., an ansatz \(f(R,T)= R+ 2\lambda T\) [6]. Such assumption has been considered in many cosmological findings, see Refs. [15,16,17] for more. With this assumption, the field Eq. (3) turns out to be

$$\begin{aligned} G_{\mu \nu }=8\pi T_{\mu \nu }+\lambda Tg_{\mu \nu }+2\lambda (T_{\mu \nu }+ Pg_{\mu \nu }), \end{aligned}$$
(7)

where \(G_{\mu \nu }\) is the Einstein tensor and \(\lambda \) is an arbitrary constant. Moreover, the Einstein gravity is recovered when \(\lambda =0\). Since, Eq. (4) leads to the form

$$\begin{aligned} (8\pi +2\lambda )\nabla ^{\mu }T_{\mu \nu }=-2\lambda \left[ \nabla ^{\mu }(pg_{\mu \nu })+\frac{1}{2}g_{\mu \nu }\nabla ^{\mu }T\right] . \end{aligned}$$
(8)

Since the f(RT) gravity is a curvature-matter coupling theory and leads to a non-conservation of the energy-momentum tensor. The role of curvature-matter coupling as an exchange of energy and momentum between both, and leads to the appearance of an extra acceleration [18].

3 Structural equation of star

For the spacetime metric we consider here static and spherically symmetric line element (\(ds^2 = g_{\nu \mu } dx^\nu dx^\mu \), where \(\nu , \mu =0,1,2,3)\),

$$\begin{aligned} ds^2= e^{\Phi (r)}dt^2 - e^{\Lambda (r)}dr^2 - r^2(d\theta ^2+\sin ^2\theta d\phi ^2), \end{aligned}$$
(9)

where \(\Phi (r)\) and \(\Lambda (r)\) are arbitrary functions of the radial coordinate, r. Considering the energy-momentum tensor of the perfect fluid (5) and using the Eqs. (9) and (7), the (tt) and (rr) components for f(RT) gravity reads [19]:

$$\begin{aligned} e^ {-\Lambda } \left( \frac{\Lambda '}{r}-\frac{1}{r^2}\right) +\frac{1}{r^2}= & {} \left( 8\pi +3\lambda \right) \rho -\lambda P, \end{aligned}$$
(10)
$$\begin{aligned} e^ {-\Lambda } \left( \frac{\Phi '}{r}+ \frac{1}{r^2}\right) -\frac{1}{r^2}= & {} \left( 8\pi +3\lambda \right) P -\lambda \rho , \end{aligned}$$
(11)

and the hydrostatic equilibrium equation for f(RT) gravity reads [19]

$$\begin{aligned} P'+\left( \rho +P\right) \frac{\Phi '}{2}=\frac{\lambda }{8\pi +2\lambda }\left( P'-\rho '\right) , \end{aligned}$$
(12)

where prime denotes the derivative with respect to r. Here, we write down the Eqs. (10) and (12) in a more conventional form by introducing the transformation \(e^{-2\Lambda } =1-\frac{2 m(r)}{ r}\) such that m(r) is identified with the active gravitational mass of the star and consequently generates the forms

$$\begin{aligned} m'(r)= & {} 4\pi r^2\rho +\frac{\lambda (3\rho -p)r^2}{2}, \end{aligned}$$
(13)
$$\begin{aligned} P'(r)= & {} -\frac{(\rho + P) \left[ 4\pi pr+\frac{m}{r^2}-\frac{\lambda (\rho -3P)r}{2}\right] }{\left( 1-\frac{2m}{r}\right) \left[ 1-\frac{\lambda }{8\pi +2\lambda }\left( 1-\frac{d\rho }{dP}\right) \right] }, \end{aligned}$$
(14)

which will be useful for our numerical computation. These equations are nothing else than ordinary TOV equations when \(\lambda =0\). Further, by choosing an EoS, we compute mass–radius relation for different sets of parameters. Here, we consider QSs formed by quark matter in the color-flavor-locked (CFL) phase of color superconductivity.

4 Equations of state for quark matter and boundary conditions

4.1 Color flavor locked quark matter

Quantum chromodynamics (QCD) is the theory of quarks and gluons that describes the strong interactions and predict that quark matter at sufficiently high baryon density and low temperature becomes a color superconductor (CSC) [20,21,22]. Such a state depends sensitively on the number of quark flavors and their masses [23, 24]. Among some major developments on quark pairings in the past decade it is believed that at asymptotically high densities, QCD favors a maximally symmetric phase of superconducting quark matter called the CFL phase [25]. In nature, such conditions may be realized in the cores of cold compact stars, see Ref. [26].

In this situation, it is useful to consider an EoS of a strange star described by a CFL model satisfying several observational constraints from various known pulsars, and mass–radius estimates derived from different data sources. It is generally agreed that the CFL phase is the real ground state of QCD at asymptotically large densities, and even if the quark masses are unequal [27, 28]. The EoS for the CFL phase is charge neutral which can be obtained in the framework of the MIT bag model. The thermodynamic potential for electric and color charge neutral CFL quark matter to order \(\Delta ^2\) is given by [29]

$$\begin{aligned} \Omega _{CFL}= & {} -{3\Delta ^2 \mu ^2 \over \pi ^2}+{6 \over \pi ^2} \int _0^{\gamma _F} p^2 (p-\mu )~dp \nonumber \\&+{3 \over \pi ^2} \int _0^{\gamma _F} p^2 \left( \sqrt{p^2+m_s^2}-\mu \right) ~dp+B, \end{aligned}$$
(15)

where B is the MIT bag constant with \(\Delta \) denotes the color superconducting gap and \(\mu \) is the quark chemical potential. The first term is the contribution of the CFL condensate to \(\Omega _{CFL}\), while the next two terms coming from the fictitious non-paired state proportional to the volume of the Fermi sphere in which all quarks have a common Fermi momentum \(\gamma _F\), with \(\gamma _F\) chosen to minimize the thermodynamic potential of the fictional unpaired quark matter [30].

Since, the term \(\gamma _F\) is given by

$$\begin{aligned} \gamma _F = \left[ \left( 2\mu - \sqrt{\mu ^2+{m_s^2-m_u^2 \over 3}}\right) ^2 -m_u^2 \right] ^{1/2}, \end{aligned}$$
(16)

where \(\mu =(\mu _s+\mu _u+\mu _d)/3\) is the average quark chemical potential, and \(m_s\) and \(m_u\) are strange and up quark masses, respectively. For massless up and down quarks we have

$$\begin{aligned} \gamma _F= & {} 2\mu - \sqrt{\mu ^2+{m_s^2 \over 3}} \sim \mu -{m_s^2 \over 6\mu }. \end{aligned}$$
(17)

Studying the pairing ansatz in the CFL phase [31]

$$\begin{aligned} n_u=n_r, \quad n_d = n_g, \quad \text {and} \quad n_s = n_b \end{aligned}$$
(18)

where \(n_u\), \(n_d\), \(n_s\) and \(n_r\), \(n_g\), \(n_b\) are flavor and color number densities respectively. These quantities can be obtained for an isotropic system from the thermodynamic potential through the relations

$$\begin{aligned} P= - \Omega _{CFL} \quad \text {and} \quad n_u = n_d = n_s = {\gamma _F^3+2\Delta ^2 \mu \over \pi ^2}, \end{aligned}$$
(19)

and the energy density \(\epsilon \) can be easily derived at zero which reads [32]

$$\begin{aligned} \epsilon = 3 \mu n_B-P, \end{aligned}$$
(20)

where \(n_B\) is the baryon number density. Interestingly, when \(m_s \rightarrow 0\) the particle densities become equal, and we recover the well known form of MIT bag model \(\epsilon = 3P+4B\). The extra term dependent on \(\Delta ^2\) in Eq. (15); picks up an additional term from CFL contribution as \(\epsilon = 3 P+ 4B-6\Delta ^2 \mu ^2 / \pi ^2\). Interestingly, this situation turns out to be more complicated when \(m_s \ne 0\), because the equation of state must be calculated numerically. To order \(\Delta ^2\) and \(m_s^2\) the pressure and energy density can be written as [32]

$$\begin{aligned} P= & {} {3\mu ^4 \over 4\pi ^2}+ {9\beta \mu ^2 \over 2\pi ^2}-B,\end{aligned}$$
(21)
$$\begin{aligned} \epsilon= & {} {9\mu ^4 \over 4\pi ^2}+ {9\beta \mu ^2 \over 2\pi ^2}+B, \end{aligned}$$
(22)

where

$$\begin{aligned} \beta = -\frac{m_s^2}{6}+ \frac{2\Delta ^2}{3}. \end{aligned}$$
(23)

With the use of above expression the energy density \(\epsilon \) of the quark matter in the CFL phase can be obtained as

$$\begin{aligned} \epsilon = 3P+ 4B -{9\beta \over \pi ^2} \left\{ \left[ {4\pi ^2 (B+P) \over 3}+9\beta ^2 \right] ^{1/2}-3\beta \right\} . \end{aligned}$$
(24)

We see from Eq. (24) that there are three free parameters in the EoS \(m_s\), \(\Delta \) and B, respectively. The values of all the free parameters are considered in this paper fall inside the stability windows, see [33].

4.2 Boundary conditions

Solving the TOV equations (13) and (14) for a compact star, we perform numerical integration and maintain the regularity inside the fluid sphere with appropriate boundary conditions:

$$\begin{aligned} m(0)=0,\quad \rho (0)=\rho _{c},\quad P(0)=P_{c}. \end{aligned}$$
(25)

where \(r = R\) is identified as the surface of the star with \(P_c\) is the central pressure and \(\rho _c\) is the central energy density, respectively. At this point the interior solution is matched at the boundary \(r = R\) to the asymptotically flat vacuum exterior Schwarzschild solution which are connected by \(e^{\Phi (R)}=e^{-\Lambda (R)}= 1-2M/R\), where \(M = m(r=R)\) representing the total mass of the QS.

Fig. 1
figure 1

Mass–radius \((M-R\)) relation and compactness \(M-M/R\) for QSs have been plotted in the \(f(R,T)= R+ 2\lambda T\) gravity compared with GR considering the CFL EoS. For plotting the figures we have chosen \(B = 57\) MeV/fm\(^3\), \(\lambda = 1.0\), \(m_s = 100\) MeV and different values of \(\lambda = \{0.0, 1.5, 3.0, 4.5, 6.0, 7.5\}\), respectively. The horizontal bars correspond to the constraints imposed by the secondary component of the GW 190814 event (yellow) [35] and PSR J0751+1807 (orange) [36]. Each color represents a different \(M-R\) relation with parameters mentioned in Table 1

Fig. 2
figure 2

Mass–radius \((M-R\)) relation and compactness \(M-M/R\) of QSs have been plotted for \(\lambda = 4.5\) MeV, \(m_s = 50\) MeV, \(\Delta = 120\) MeV and different values of \(B = \{57, 65, 70, 92\}\) MeV/fm\(^3\). The horizontal bars correspond to the constraints imposed by the GW 190814 event (yellow) [35] and PSR J0751+1807 (orange) [36]. Each color represents a different \(M-R\) relation with parameters mentioned in Table 2

5 Numerical results

Considering the EoS (see Sect. 4), we numerically solve the TOV equations (13) and (14) for a given set of central energy densities. To get an idea of how quark stars might be, we take the values of model parameters on a reasonable range and obtain the so-called mass–radius \((M-R)\) and mass-central energy density \((M-\rho _c)\) relationships for the given EoS. The mass of the star is measured in units of solar masses \(M_{\odot }\), the radius of the stars in \( \mathrm{Km}\), while both the pressure and energy density profiles are measured in \(\text {MeV/fm}^3\). Through this process, we discuss two sets of solutions characterizing the model (i) variation of coupling parameter \(\delta \) and (ii) variation of bag constant \(B = (57-92)\) MeV/fm\(^3\) [34] to see the effect of modified gravity on \((M-R)\) relations. The other parameters \(m_s\) and \(\Delta \) remain fixed and measured in units of \(\text { MeV}\).

Table 1 Properties of quark stars in f(RT) gravity for different values of \(\lambda \). Estimated values of maximum masses and their corresponding radii have been tabulated for specific central mass density \(\rho _c\). The compactness M/R is measured as a dimensionless quantity. Fitting parameters for CFL EoS can reveal some features of the influence of f(RT) gravity on the QSs configurations, whereas \(\lambda =0\) leading to the GR solution

5.1 Mass–radius relation

We have studied the dependence of the maximum mass of QSs on the value of \(\lambda \), as shown in Fig. 1. Each curves have been plotted for \(B = 70\) MeV/fm\(^3\), \(m_s = 50\) MeV and \(\Delta = 120\) MeV and different values of coupling constant \(\lambda = \{0.0, 1.5, 3.0, 4.5, 6.0, 7.5\}\). From the upper panel, it can be found that the maximum masses of QSs are around \(2.42-2.57 M_{\odot }\) and the corresponding radii are \(10.53-11.68\) km. Moreover, the largest \(M_{\text {max}}\) values can explain the existence of the secondary component of the GW 190814 event, which has mass \(2.50-2.67\) \(M_{\odot }\) [35]. We find that for CFL EoS supporting \(M_{\text {max}} > 2.5\) with radii in the range \(10.53-11.39\) for the considered parameter sets (see Table 1), which is consistent with GW 190814 data. In this case the maximum mass for GR (\(\lambda = 0\)) can’t exceed 2.5 \(M_{\odot }\) limit but can explain the existence of PSR J0751+1807 with \(2.1 \pm 0.2 M_{\odot }\) (orange) [36], see Fig. 1. These results show that the influence of \(\lambda \) on the maximum mass, the minimum radius and the maximum compactness is achieved, see Fig. 1 and Table 1 for more details. The compactness of the star, M/R, at the maximum mass/minimum radius is shown in the lower panel of Fig. 1.

In Fig. 2, we follow the same procedure presented in Fig. 1 to obtain the mass–radius (\(M-R\)) relations and the compactness of QSs within the framework of the f(RT) gravity model. The choice of the parameters are \(\lambda = 4.5\) MeV, \(m_s = 50\) MeV, \(\Delta = 120\) MeV and different values of bag constant in the region \( 57\le B \le 92\) MeV/fm\(^3\). By varying B it is evident that the maximum mass and radius increase their values up to 2.86 \(M_{\odot }\) with radius \(R= 12.43\) Km. Moreover, the maximum masses calculated for \(B= {65, 70}\) MeV/fm\(^3\) sets are about 2.65-2.54 \(M_{\odot }\) with \(11.09-11.57\) Km, which are in accord with the observed mass of the secondary compact object in GW 190814 (Yellow), see Table 2. In addition to the constraints from PSR J0751+1807 (orange), it is evident from the Fig. 2 that the model is satisfied for \(B = 92\) MeV/fm\(^3\) i.e., highest value of bag constant. It should be noted that corresponding to the most interacting quark matter leads to a less compact QS modeled here, see Table 2.

Table 2 Properties of quark stars in f(RT) gravity for different values of bag constant B. All parameters for calculations are chosen according to the discussion given in Fig. 2

5.2 The stability criterion and the adiabatic indices

We now consider the onset of instability is the \(M(\rho _c)\) method, where the stellar mass M against the central energy density \(\epsilon _c\) is varied for different values of coupling constant \(\lambda \) and bag constant B. Following the definition of static stability criterion [37, 38], we can write

$$\begin{aligned}&\frac{d M}{d \rho _c} < 0 \rightarrow \text {unstable configuration} \end{aligned}$$
(26)
$$\begin{aligned}&\frac{d M}{d \rho _c} > 0 \rightarrow \text {stable configuration}, \end{aligned}$$
(27)

to be satisfied by all stellar configurations. Note that this is a necessary condition but not sufficient where \((M_{\text {max}}, R_{M_{\text {max}}})\) is a boundary separating the stable configuration region from the unstable one indicated by the inequalities (26), (27), respectively. The Fig. 3 indicates the mass versus central density curve which grows with the increasing values of mass in agreement with the \(M-R\) profiles given in Figs. 1 and 2, respectively. It is seen from the figure that the stability of QSs is guaranteed in the region where \(dM/d\rho _c >0\) and the circle on each \( M-\rho _c\) curve describing the maximum-mass stellar configuration.

Fig. 3
figure 3

\(M-\rho _c\) relationship is presented for the selected EoS together with the same set of parameters in Figs. 1 and 2, respectively

On the other hand, we study the adiabatic index (\(\gamma \)) which is related with the stability of stars. Following Chandrasekhar [39, 40] in his two seminal works, the dynamical stability of the star has been analyzed based on the variational method. The adiabatic index, which appears in the stability formula, reads

$$\begin{aligned} \gamma \equiv \left( 1+\frac{\rho }{P}\right) \left( \frac{dP}{d\rho }\right) _S, \end{aligned}$$
(28)

where \(dP/ d\rho \) is the speed of sound. The subscript S in (28) indicates at constant specific entropy. In general, Eq. (28) is a dimensionless quantity which measuring the stiffness of the EoS for a spherical relativistic fluid.

For relativistic polytropes the value of \(\gamma \) should be \(\gamma > \gamma _{cr} = 4/3\) depending on the ratio \(\rho /P\) at the centre of the star, where \(\gamma _{cr}\) is the critical adiabatic index [41]. For the selected EoS, we see from Fig. 4 that \(\gamma >4/3 \sim 1.33\) for the given sets of parameters. This means that the solution branch we consider in this work is stable against the radial adiabatic infinitesimal perturbations.

Fig. 4
figure 4

The plot for adiabatic index, \(\gamma \), for an interacting quark EoS with the same set of parameters in Figs. 1 and 2, respectively

6 Concluding remarks

In this work we have analyzed QSs that consists of quark matter in the color-flavor-locked (CFL) phase of color superconductivity. It is generally argued that CFL is likely to be the ground state of matter, at sufficiently high densities and low temperatures. In spite of this we have shown the effects of quark matter on the QS mass–radius relation by using a modified TOV equation derived from the f(RT) gravity theory. If we consider the limit \(\lambda \rightarrow 0\), one can recover the standard hydrostatic equilibrium theory coming from GR.

The key point of the method is to explore the compatibility of QSs in the CFL phase with a set of observational constraints obtained from astronomical data, specially focusing on the recent discovery of a compact binary merger, GW 190814, containing a compact object with mass 2.50–2.67 \(M_{\odot }\). Aiming this we vary two sets of parameters (a) matter-geometry coupling constant \(\lambda \) and (b) the bag constant B, separately. It turns out that by increasing the positive value of \(\lambda \), the maximum masses of QSs increases but the radii decrease. Thus, the compactness of a star is increasing with these decreasing radii, see Fig. 1. However, the case of bag constant B is completely different, where one can see that the existence of \(> 2.5\) \(M_{\odot }\) is confirmed for less interacting quarks i.e., the lower value of B (see Table 2). In this scenario, we find that our predicted models have maximum masses above 2.5 \(M_{\odot }\), i.e., in agreement with the observational constraints obtained from GW 190814 data and PSR J0751+1807. In this scenario, we find that our predicted models have maximum masses above 2.5 \(M_{\odot }\), i.e., in agreement with the observational constraints obtained from GW 190814 data and PSR J0751+1807. Interestingly, our results support the General Relativity claim that NSs cannot have gravitational masses larger than 3 \(M_{\odot }\). This argument is consistent with the results obtained in [42], where authors have shown that maximum NS masses are likely to be in the lower limits of the range of 2.5 \(M_{\odot }\)–3\(M_{\odot }\) in the context of \(R^2\) gravity.

Then, we move on the stability related issues on QSs through static stability criterion and the adiabatic index \(\gamma \) which indicate the onset of instability. In particular, we infer the condition \(\frac{\partial M(\rho _c)}{\partial \rho _c}\) \(\lessgtr 0\) by graphical representation (see Fig. 2) where we identify the turning point from stability to instability.

Finally, we move on the stability related issues of QSs through static stability criterion and the adiabatic index \(\gamma \), which indicate the onset of instability. In particular, we infer the condition \(\frac{\partial M(\rho _c)}{\partial \rho _c}\) \(\lessgtr 0\) by graphical representation (see Fig. 4) where we identify the turning point from stability to instability. Finally, addressing the critical values of the adiabatic index, \(\gamma _{cr}\), our results show that the obtained value of \(\gamma > \gamma _{cr}\), which means a stable QS may exist in modified f(RT) gravity theory.