1 Introduction

Though Einstein’s general theory of relativity has always proved to be very fruitful for uncovering so many hidden mysteries of Nature, yet the evidence of late-time acceleration of the Universe and the possible existence of dark matter has imposed a fundamental theoretical challenge to this theory [1,2,3,4,5,6,7]. As a result, several modified theories on gravitation have been proposed from time to time. Among all these theories, a few of them, namely f(R) gravity, f(T) gravity and \(f(R,\mathcal {T})\) gravity, have received more attention than any other. In all these theories instead of changing the source side of the Einstein field equations, the geometrical part has been changed by taking a generalized functional form of the argument to address galactic, extra-galactic, and cosmic dynamics. Cosmological models based upon modified gravity theories reveal that excellent agreement between theory and observation can be obtained [8,9,10,11].

In f(R) gravity theory the gravitational part in the standard Einstein–Hilbert action is replaced by an arbitrary generalized function of the Ricci scalar R whereas in f(T) gravity theory the same is replaced by an arbitrary analytic function of the torsion scalar T. The f(T) theory of gravity is more controllable than the f(R) theory of gravity because the field equations in the former turns out to be the differential equations of second order whereas in the latter the field equations in the form of differential equations are, in general, of fourth order, which is difficult to handle [12]. Many applications of f(T) gravity in cosmology, theoretical presentation as well as observational verification, can be found in Refs. [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]. On the other hand, many astrophysical applications of f(T) theory of gravity can be observed in Refs. [12, 29,30,31,32,33]. Following the result of Böhmer et al. [12] in our previous work [34] we successfully described the interior of a relativistic star along with the existence of a conformal Killing vector field within this f(T) gravity providing a set of exact solutions. In connection to f(R) gravity we observe that there are also several applications with various aspects on the theory available in the literature [35,36,37]. A special and notable application includes the late-time acceleration of the Universe, which has been explained using f(R) gravity by Carroll et al. [35]. For further reviews on f(R) gravity model one can check Refs. [38,39,40,41,42].

However, the purpose of the present paper is to consider another extension of general relativity, the \(f(R,\mathcal {T})\) modified theory of gravity [43] where the gravitational Lagrangian of the standard Einstein–Hilbert action is defined by an arbitrary function of the Ricci scalar R and the trace of the energy-momentum tensor \(\mathcal {T}\). It has been argued that such a dependence on \(\mathcal {T}\) may come from the presence of an imperfect fluid or quantum effects. Many cosmological applications based on \(f(R,\mathcal {T})\) gravity can be found in [44,45,46,47,48,49,50,51,52,53,54,55,56,57].

Though one can find several applications to astrophysical level based on this theory, yet among those it is worth to mention Refs. [58,59,60,61,62,63,64,65]. Sharif et al. [58] have discussed the stability of a collapsing spherical body of an isotropic fluid distribution considering the non-static spherically symmetric line element. On the other hand, a perturbation scheme has been used to find the collapse equation and the condition on the adiabatic index has been developed for Newtonian and post-Newtonian eras for addressing the instability problem by Noureen et al. [59]. Further, Noureen et al. [60] have developed the range of instability under the \(f(R,\mathcal {T})\) theory for an anisotropic background constrained by zero expansion. The evolution of a spherical star by applying a perturbation scheme on the \(f(R,\mathcal {T})\) field equations has been explored by Noureen et al. [61], while in the work [62] the dynamical analysis for gravitating sources along with axial symmetry has been discussed. Zubair et al. [63] investigated the possible formation of compact stars in \(f(R,\mathcal {T})\) theory of gravity using the analytic solution of the Krori and Barua metric to the spherically symmetric anisotropic star. The effects of \(f(R,\mathcal {T})\) gravity on gravitational lensing has been discussed by Ahmed et al. [64]. Moraes et al. [65] have investigated the spherical equilibrium configuration of polytropic and strange stars under \(f(R,\mathcal {T})\) theory of gravity.

Using the technique of CKV one can search for the inheritance symmetry which provides a natural relationship between geometry and matter through the Einstein field equation. Several works performed by using this technique of conformal motion to the astrophysical field can be found in Refs. [34, 66,67,68,69,70,71,72,73]. Interior solutions admitting conformal motions also had been studied extensively by Herrera et al. [74,75,76,77]. An exact solution describing the interior of a charged quark star had been explored admitting a one-parameter group of conformal motions by Mak and Harko [78].

In the present work we shall seek the interior solutions of the Einstein field equations under the \(f(R,\mathcal {T})\) theory of gravity along with conformal Killing vectors. Therefore, our main aim in the present work is to construct a set of stellar solutions under \(f(R,\mathcal {T})\) theory of gravity by assuming the existence of conformal Killing vectors (CKVs). The outline of our investigation is as follows: in Sect. 2 we provide the basic mathematical formalism of \(f(R,\mathcal {T})\) theory whereas the CKVs have been formulated in Sect. 3. In Sect. 4 we provide the field equations under \(f(R,\mathcal {T})\) gravity along with their solutions using the technique of CKV, whereas in Sect. 5 the exterior Schwarzschild solution and matching conditions are provided. In Sect. 6 we discuss some physical features of the model such as energy conditions and the equilibrium condition by using the Tolman–Oppenheimer–Volkoff (TOV) equation, the stability issue, the mass–radius relation, compactness, and surface redshift. A comparative study for the physical validity of the model is performed in Sect. 7. Lastly, in Sect. 8 we make some concluding remarks.

2 Basic mathematical formalism of the \(f(R,\mathcal {T})\) Theory

The action of the \(f(R,\mathcal {T})\) theory [43] is taken as

$$\begin{aligned} S=\frac{1}{16\pi }\int \mathrm{d}^{4}xf(R,\mathcal {T})\sqrt{-g}+\int \mathrm{d}^{4}x\mathcal {L}_\mathrm{m}\sqrt{-g}, \end{aligned}$$
(1)

where \(f(R,\mathcal {T})\) is an arbitrary function of the Ricci scalar R and the trace of the energy-momentum tensor \(\mathcal {T}\) and \(\mathcal {L}_\mathrm{m}\) being the Lagrangian for matter. Also g is the determinant of the metric \(g_{\mu \nu }\). Here we assume the geometrical units \(G=c=1\).

If one varies the action (1) with respect to the metric \(g_{\mu \nu }\), one can get the following field equations of \(f(R,\mathcal {T})\) gravity:

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

where \(f_R (R,\mathcal {T})= \partial f(R,\mathcal {T})/\partial R\), \(f_\mathcal {T}(R,\mathcal {T})=\partial f(R,\mathcal {T})/\partial \mathcal {T}\), \(\mathop {}\!\mathbin \Box \equiv \partial _{\mu }(\sqrt{-g} g^{\mu \nu } \partial _{\nu })/\sqrt{-g}\), \(R_{\mu \nu }\) is the Ricci tensor, \(\nabla _\mu \) provides the covariant derivative with respect to the symmetric connection associated to \(g_{\mu \nu }\), \(\Theta _{\mu \nu }= g^{\alpha \beta }\delta T_{\alpha \beta }/\delta g^{\mu \nu }\) and the stress-energy tensor can be defined as \(T_{\mu \nu }=g_{\mu \nu }\mathcal {L}_m-2\partial \mathcal {L}_m/\partial g^{\mu \nu }\).

The covariant divergence of (2) reads [79]

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

Equation (3) at once shows that the energy-momentum tensor is not conserved for the \(f(R,\mathcal {T})\) theory of gravity unlike in the case of general relativity.

In this paper we assume the energy-momentum tensor to be that of a perfect fluid, i.e.

$$\begin{aligned} T_{\mu \nu }=(\rho +p)u_\mu u_\nu -pg_{\mu \nu }, \end{aligned}$$
(4)

with \(u^{\mu }u_{\mu } = 1\) and \(u^\mu \nabla _\nu u_\mu =0\). Also with these conditions we have \(\mathcal {L}_m=-p\) and \(\Theta _{\mu \nu }=-2T_{\mu \nu }-pg_{\mu \nu }\).

As proposed by Harko et al. [43], we have taken the functional form of \(f(R,\mathcal {T})\) as \(f(R,\mathcal {T})=R+2\chi \mathcal {T}\), where \(\chi \) is a constant. We note that this form has been extensively used to obtain many cosmological solutions in \(f(R,\mathcal {T})\) gravity [11, 44,45,46, 54,55,56]. After substituting the above form of \(f(R,\mathcal {T})\) in (2), one can get [44, 45]

$$\begin{aligned} G_{\mu \nu }=8\pi T_{\mu \nu }+\chi \mathcal {T} g_{\mu \nu }+2\chi (T_{\mu \nu }+pg_{\mu \nu }), \end{aligned}$$
(5)

where \(G_{\mu \nu }\) is the Einstein tensor.

One can easily get back to the general relativistic result just by setting \(\chi =0\) in Eq. (5). Moreover, for \(f(R,\mathcal {T})=R+2\chi \mathcal {T}\), Eq. (3) reads

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

Again substituting \(\chi =0\) in Eq. (6) one can easily verify that the energy-momentum tensor is conserved as in the case of general relativity.

3 The conformal Killing vector (CKV)

To search a natural relationship between geometry and matter through Einstein’s general relativity one can use symmetries. Symmetries that arise either from a geometrical viewpoint or physical relevant quantities are known as collineations. The greatest advantageous collineations is the conformal Killing vectors (CKV). Those vectors also provide a deeper insight into the spacetime geometry. From a mathematical viewpoint, conformal motions or conformal Killing vectors (CKV) are motions along which the metric tensor of a spacetime remains invariant up to a scale factor. Moreover, the advantage of using the CKV is that it facilitates the generation of exact solutions to the field equations. Also using the technique of CKV one can easily reduce the highly nonlinear partial differential equations of Einstein’s gravity to ordinary differential equations.

The CKV is defined as

$$\begin{aligned} L_{\xi } g_{ij} = \xi _{i;j}+ \xi _{j;i} = \psi g_{ij}, \end{aligned}$$
(7)

where L is the Lie derivative operator, which describes the interior gravitational field of a stellar configuration with respect to the vector field \(\xi \) and \(\psi \) is the conformal factor. One can note that the vector \(\xi \) generates the conformal symmetry and the metric g is conformally mapped onto itself along \(\xi \). However, Böhmer et al. [80, 81] argued that neither \(\xi \) nor \(\psi \) need to be static even though a static metric is considered. We also note that (i) if \(\psi =0\) then Eq. (7) gives the Killing vector, (ii) if \(\psi =\) constant it gives a homothetic vector, and (iii) if \(\psi =\psi (\mathbf x ,t)\) then it yields conformal vectors. Moreover, for \(\psi =0\) the underlying spacetime becomes asymptotically flat which further implies that the Weyl tensor will also vanish. All these properties reflect that CKV has an intrinsic property providing deeper insight of the underlying spacetime geometry.

Under the above background, let us therefore consider that our static spherically symmetric spacetime admits an one-parameter group of conformal motion. In this case the metric can be opted as

$$\begin{aligned} \mathrm{d}s^2=-e^{\nu (r)}\mathrm{d}t^2+e^{\lambda (r)}\mathrm{d}r^2+r^2(\mathrm{d}\theta ^2+\sin ^2\theta \mathrm{d}\phi ^2), \end{aligned}$$
(8)

which is conformally mapped onto itself along \(\xi \). Here \(\nu \) and \(\lambda \) are metric potentials and functions of the radial coordinate r only.

Here Eq. (7) implies that

$$\begin{aligned} L_\xi g_{ik} =\xi _{i;k}+ \xi _{k;i} = \psi g_{ik}, \end{aligned}$$
(9)

with \(\xi _i = g_{ik}\xi ^k\).

From Eqs. (8) and (9), one can find the following expressions [75,76,77,78]:

$$\begin{aligned} \xi ^1 \nu ^\prime= & {} \psi ,\\ \xi ^4= & {} \mathrm{constant},\\ \xi ^1= & {} \frac{\psi r}{2}, \\ \xi ^1 \lambda ^\prime + 2 \xi ^1 _{,1}= & {} \psi , \end{aligned}$$

where 1 and 4 stand for the spatial and temporal coordinates r and t, respectively.

From the above set of equations one can get

$$\begin{aligned} e^\nu= & {} C_2^2 r^2, \end{aligned}$$
(10)
$$\begin{aligned} e^\lambda= & {} \left[ \frac{C_3}{\psi }\right] ^2, \end{aligned}$$
(11)
$$\begin{aligned} \xi ^i= & {} C_1 \delta _4^i + \left[ \frac{\psi r}{2}\right] \delta _1^i, \end{aligned}$$
(12)

where \(C_1\), \(C_2\), and \(C_3\) all are integration constants.

4 The field equations and their solutions in \(f(R,\mathcal {T})\) gravity

For the spherically symmetric metric (8) one can find the non-zero components of the Einstein tensors as

$$\begin{aligned} G_0^{0}= & {} \frac{e^{-\lambda }}{r^{2}}(-1+e^{\lambda }+\lambda ' r), \end{aligned}$$
(13)
$$\begin{aligned} G_1^{1}= & {} \frac{e^{-\lambda }}{r^{2}}(-1+e^{\lambda }-\nu ' r), \end{aligned}$$
(14)
$$\begin{aligned} G_2^{2}= & {} G_3^{3}=\frac{e^{-\lambda }}{4r}[2(\lambda '-\nu ')- (2\nu ''+\nu '^{2}-\nu '\lambda ')r], \end{aligned}$$
(15)

where primes stand for derivations with respect to the radial coordinate r.

Substituting Eqs. (4), (13), and (14) in Eq. (5) one can get

$$\begin{aligned} -1+e^{\lambda }+\lambda 'r= & {} \Pi (r)[8\pi \rho +\chi (3\rho -p)]. \end{aligned}$$
(16)
$$\begin{aligned} -1+e^{\lambda }-\nu 'r= & {} \Pi (r)[-8\pi p+\chi (\rho -3p)], \end{aligned}$$
(17)

with \(\Pi (r)\equiv r^{2}/e^{-\lambda }\).

Now using Eqs. (10), (11), (16), and (17) one can obtain

$$\begin{aligned}&-\frac{2\psi \psi '}{rC_3^2}-\frac{\psi ^2}{r^2C_3^2}+\frac{1}{r^2} =[8\pi \rho +\chi (3\rho -p)]. \end{aligned}$$
(18)
$$\begin{aligned}&-\frac{3\psi ^2}{r^2C_3^2}+\frac{1}{r^2}=[-8\pi p+\chi (\rho -3p)]. \end{aligned}$$
(19)

To solve Eqs. (18) and (19) let us assume the equation of state of fluid distribution consisting of normal matter as

$$\begin{aligned} p = \omega \rho , \end{aligned}$$
(20)

where \(\omega \) is the equation of state parameter, with \(0<\omega <1\).

Inserting Eq. (20) in Eqs. (18) and (19) we, respectively, get

$$\begin{aligned} \rho = -\frac{1}{\varepsilon C_3^2r}\left[ 2\psi \psi '+\frac{1}{r} (\psi ^2-C_3^2)\right] \end{aligned}$$
(21)

and

$$\begin{aligned} \rho =-\frac{1}{\alpha r^2}\left[ \frac{3\psi ^2}{C_3^2}- 1 \right] , \end{aligned}$$
(22)

where \(\varepsilon \) and \(\alpha \) are given by \(\varepsilon =\left[ 8\pi +\chi (3-\omega )\right] ,~\alpha =\left[ -8\pi \omega +\chi (1-3\omega ) \right] \), respectively.

Now equating the above two expressions of the density \(\rho \) we have found the following differential equation in \(\psi \):

$$\begin{aligned} -\left( \frac{2}{C_3^2}\right) r\psi \psi '-\left( \frac{\beta }{C_3^2} \right) \psi ^2+\sigma =0. \end{aligned}$$
(23)

Solving Eq. (23) one can obtain the following solution set:

$$\begin{aligned} \psi ^2=\left[ kC_3^2r^{-\beta }+ \frac{C_3^2\sigma }{\beta }\right] , \end{aligned}$$
(24)
$$\begin{aligned} \rho =\left[ -3kr^{-\beta }-\frac{3\sigma }{\beta }+1\right] \times \left( \frac{r^{-2}}{\alpha }\right) , \end{aligned}$$
(25)
$$\begin{aligned} p=\omega \left[ -3kr^{-\beta }-\frac{3\sigma }{\beta }+1\right] \times \left( \frac{r^{-2}}{\alpha }\right) , \end{aligned}$$
(26)

where \(\beta \) and \(\sigma \) are given by \(\beta =\left[ \frac{8\pi \omega +8\chi +24\pi }{\omega (8\pi +3\chi )-\chi }\right] ,~ \sigma =\left[ \frac{\omega (8\pi +2\chi )+2\chi +8\pi }{\omega (8\pi +3\chi ) -\chi }\right] \), respectively, and k is an integration constant.

5 The exterior Schwarzschild solution and matching conditions

The well-known static exterior Schwarzschild solution is given by

$$\begin{aligned} \mathrm{d}s^2= & {} -\left( 1-\frac{2M}{r}\right) \mathrm{d}t^2+\left( 1-\frac{2M}{r}\right) ^{-1} \mathrm{d}r^2\nonumber \\&+r^2\left( \mathrm{d}\theta ^2+sin^2\theta \mathrm{d}\phi ^2\right) . \end{aligned}$$
(27)

For the continuity of the metric namely \(g_{tt}\) and \(g_{rr}\) across the boundary i.e. \(r=a\) we have the following equations:

$$\begin{aligned}&C_2^2=\frac{1}{a^2}\left( 1-\frac{2M}{a}\right) , \end{aligned}$$
(28)
$$\begin{aligned}&\left( ka^{-\beta }+\frac{\sigma }{\beta }\right) = \left( 1-\frac{2M}{a}\right) . \end{aligned}$$
(29)

Also at the boundary (i.e. \(r=a\)) the pressure \( p=0\). Hence we have

$$\begin{aligned} \left( -3ka^{-\beta }-\frac{3\sigma }{\beta }+1\right) =0. \end{aligned}$$
(30)

The constant \(C_2\) can be determined from Eq. (28). But Eqs. (29) and (30) are not independent equations. Thus, we have only one independent equation with two unknowns, namely the integration constant k and \(\chi \). So, in principle, these equations are redundant to solve for k and \(\chi \).

6 Physical features of the model under \(f(R,\mathcal {T})\) gravity

6.1 Energy conditions

To check whether all the energy conditions are satisfied or not for our model under \(f(R,\mathcal {T})\) gravity we should consider the following inequalities:

$$\begin{aligned}&\mathrm{(i)}~\mathrm{NEC:} \,\rho +p_\mathrm{r}\ge 0,~\rho +p_\mathrm{t}\ge 0, \\&\mathrm{(ii)}~\mathrm{WEC:}\, \rho +p_\mathrm{r}\ge 0,~\rho \ge 0,~\rho +p_\mathrm{t}\ge 0, \\&\mathrm{(iii)}~\mathrm{SEC:}\, \rho +p_\mathrm{r}\ge 0,~\rho +p_\mathrm{r}+2p_\mathrm{t}\ge 0. \end{aligned}$$

Here for our model of an isotropic fluid distribution (i.e. \(p_\mathrm{r} = p_\mathrm{t} = p\)) we see from Fig. 2 that all the solutions are physically valid. However, the behavior of density and pressure is shown in Fig. 1.

Fig. 1
figure 1

Variations of density \(\rho \) (km\(^{-2}\)) and pressure p (km\(^{-2}\)) are shown with respect to the radial coordinate r (km)

Fig. 2
figure 2

Variations of \(\rho \) (km\(^{-2}\)), \(\rho + p\) (km\(^{-2}\)), and \(\rho +3p\) (km\(^{-2}\)) are shown with respect to the radial coordinate r (km)

6.2 TOV equation

From the equation for the non-conservation of the energy-momentum tensor in \(f(R,\mathcal {T})\) theory (6) one can obtain the generalized Tolman–Oppenheimer–Volkoff (TOV) equation [65] for an isotropic fluid distribution (i.e. \(p_\mathrm{r} = p_\mathrm{t} = p\)) as

$$\begin{aligned} -\frac{\nu '}{2}(\rho +p)-\frac{\mathrm{d}p}{\mathrm{d}r}+\frac{\chi }{8\pi +2\chi } (p'-\rho ')=0. \end{aligned}$$
(31)

If one puts \(\chi =0\) then one can get the usual form of TOV equation in the case of general relativity. The above TOV equation describes the equilibrium of the stellar configuration under the joint action of three forces, viz. the gravitational force (\(F_\mathrm{g}\)), the hydrostatic force (\(F_\mathrm{h}\)), and the additional force (\(F_\varkappa \)) due to the modification of the gravitational Lagrangian of the standard Einstein–Hilbert action. So for equilibrium condition one can eventually write it in the following form:

$$\begin{aligned} F_\mathrm{g}+F_\mathrm{h}+F_\varkappa =0, \end{aligned}$$
(32)

where

$$\begin{aligned} F_\mathrm{g}= & {} -\frac{\nu '}{2}(\rho +p), \\ F_\mathrm{h}= & {} -\frac{\mathrm{d}p}{\mathrm{d}r}, \\ F_\varkappa= & {} \frac{\chi }{8\pi +2\chi }(p'-\rho '). \end{aligned}$$

In the present conformally symmetric model of an isotropic fluid distribution with the EOS \( p = \omega \rho \) the TOV equation (31) can be written as

$$\begin{aligned} -\frac{\nu '}{2}(\rho +p)-\frac{\mathrm{d}p}{\mathrm{d}r}+\frac{\chi }{8\pi +2\chi } (\omega -1)\rho '=0. \end{aligned}$$
(33)

From Fig. 3 we notice that the static equilibrium has been attained under the mutual action of the three forces \(F_\mathrm{g}\), \(F_\mathrm{h}\) and \(F_\varkappa \). Also it is observed from the figure that \(F_\mathrm{g}\) and \(F_\varkappa \) are essentially of the same nature—quantitatively as well as qualitatively.

Fig. 3
figure 3

The three different forces, viz. the gravitational force \((F_\mathrm{g})\), the hydrostatic force \((F_\mathrm{h})\), and the additional force \((F_\varkappa )\) are plotted against r (km)

6.3 Stability

6.3.1 Sound speed

According to Herrera [82] for a physically acceptable model the square of the sound speed, i.e. \( v_\mathrm{s}^{2}=\frac{\mathrm{d}p}{\mathrm{d}\rho }\), within the matter distribution should be in the limit [0,1]. In our model of an isotropic matter distribution we see that \(v_\mathrm{s}^{2}=\frac{\mathrm{d}p}{\mathrm{d}\rho }=\omega =1/3~<1\). Hence our model maintains stability.

6.3.2 Adiabatic index

The dynamical stability of the stellar model against an infinitesimal radial adiabatic perturbation, which was introduced by Chandrasekhar [83], has also been tested in our model. This stability condition was developed and used on the astrophysical level by several authors [84,85,86].

The adiabatic index is defined by

$$\begin{aligned} \gamma =\left( \frac{\rho +p}{p}\right) \left( \frac{\mathrm{d}p}{\mathrm{d}\rho }\right) . \end{aligned}$$
(34)

For a stable configuration \(\gamma \) should be \({>}\frac{4}{3}\) within the isotropic stellar system. However, we have analytically calculated the value of the adiabatic index as \(\gamma =\frac{4}{3}\) which is the critical value of \(\frac{4}{3}\) [83, 87, 88].

6.4 Mass–radius relation

The mass function within the radius r is given by

$$\begin{aligned} M(r)=\int _0^{r}4\pi r'^{2}\rho \mathrm{d}r'=\frac{4\pi }{\alpha }\left[ - \frac{3kr^{(-\beta +1)}}{(-\beta +1)} -\frac{3\sigma r}{\beta }+r\right] . \end{aligned}$$
(35)

The profile of the mass function has been depicted in Fig. 4, which clearly shows that, for \(r\rightarrow 0\), \(M(r)\rightarrow 0\), implying the regularity of the mass function at the center.

Fig. 4
figure 4

Profile of the mass function M(r) (km) is shown with respect to the radial coordinate r (km)

According to Buchdahl [89], in the case of a static spherically symmetric perfect fluid distribution the mass to radius ratio \((\frac{2M}{r})\) should be \({\le }\frac{8}{9}\). Also Mak et al. [90] derived a more simplified expression for the same ratio. In our present model, one can check that Buchdahl’s condition is satisfied (see Fig. 4).

Fig. 5
figure 5

Compactness u(r) is plotted with respect to the radial coordinate r (km)

6.5 Compactness and redshift

The compactness of the star u(r) is defined by

$$\begin{aligned} u(r)=\frac{M(r)}{r}=\frac{4\pi }{\alpha }\left[ -\frac{3kr^{-\beta }}{(-\beta +1)} -\frac{3\sigma }{\beta }+1\right] . \end{aligned}$$
(36)

The profile of the compactness of the star is depicted in Fig. 5.

Fig. 6
figure 6

Surface redshift (\(Z_\mathrm{s}\)) is plotted with respect to the radial coordinate r (km)

The redshift function \(Z_\mathrm{s}\) is defined by

$$\begin{aligned} Z_\mathrm{s}=(1-2u)^{-\frac{1}{2}} - 1 =\left[ 1-\frac{8\pi }{\alpha }\left( - \frac{3kr^{-\beta }}{(-\beta +1)}-\frac{3\sigma }{\beta }+1\right) \right] ^{-\frac{1}{2}} - 1.\nonumber \\ \end{aligned}$$
(37)

The profile of the redshift function of the star is depicted in Fig. 6.

7 A comparative study for physical validity of the model

Based on the model under investigation let us carry out a comparative study between the data of the model parameters with that of the compact star candidates. This will provide the status of the presented model as to whether it is valid for observed data set within the allowed constraint. As we do not get the radius of the star theoretically by putting \(p =0\) at some radius, therefore, all plots are drawn up to a highest calibrating point of radius 13 km along the r-axis, which is sufficient to get information as regards the nature of the compact star.

We have prepared Table 1 where the symbols are used as follows: D = observed radius, \(M_{\mathrm{obs}}\) = observed mass and \(M_{\mathrm{pre}}\) = predicted mass. Here in the calculation of \(M_{\mathrm{pre}}\) we have exploited the observed radius D, the predicted radius being unable to be determined in the present model as mentioned in the previous paragraph. It is to note that we have drawn all figures assuming \(\chi =4\) only except the Fig. 4 for all \(\chi \).

Table 1 Comparative study of the physical parameters for compact star and presented model for \(\omega =1/3\) and different values of \(\chi \) and k

Note that from the proposed model for \(\chi =1\)–10 (excluding 5 and 6, which do not provide physically interesting results) we have found the masses of the compact stars which, in general, are closely equal to the observed values of most of the stars. However, for some values of \(\chi \) the model data seems not to provide very significant results for some of the compact stars. It is also interesting to note that in Fig. 4 we have the curve for \(\chi = 3\) and the straight line parallel to the r-axis for \(Cen~X-3\) total mass. So, the intersection of the two gives the radius as a representative one. However, the other curves for other values of \(\chi \) have no relation with the straight line parallel to the r-axis. We also observe from Table 1 that for different \(\chi \) all the predicted values of Buchdahl’s ratios fall within the range of observed values of the Buchdahl ratios (\(2M/R \le 8/9 \sim 0.88\)). On the other hand, the observed and predicted values of the redshift are also very promising as is evident from Table 1 for all the low mass compact stars under investigations.

8 Discussions and conclusions

As discussed in the introductory section, it is argued by Böhmer et al. [12] that the f(T) theory of gravity with torsion scalar is more controllable than the f(R) theory of gravity with Ricci scalar because the field equations in the former turn out to be the differential equations of second order, whereas in the latter the field equations are in the form of differential equations of fourth order and thus are difficult to handle. On the other hand, the present work on \(f(R,\mathcal {T})\) [43] is based on another extension of general relativity, which is associated to Ricci scalar R and the trace of the energy-momentum tensor \(\mathcal {T}\).

At this juncture one may be curious to perform a comparison between the results of our previous work [34] on f(T) gravity and the present work with \(f(R,\mathcal {T})\) gravity. However, we are at present very interested to present the model behavior of compact stars under the \(f(R,\mathcal {T})\) theory of gravity assuming the existence of CKV. In connection to the features and hence validity of the model we have explored several physical aspects based on our findings and all these have been reflected to be very interesting advocacy in favor of physically acceptance of the model. Let us now summarize some of these important results as follows:

(i) Density and pressure In the present investigation the pressure p and the density \(\rho \) blow up as \(r \rightarrow 0\) (Fig. 1). This clearly indicates that the core of the star is highly compact and our model is valid for the region outside of the core. We are unable to estimate the surface density as we do not find any cut on the r-axis (i.e. the radius of the star) in the profile of the pressure.

(ii) Energy conditions In our study we have found through graphical representation that all the energy conditions, namely NEC, WEC, SEC are satisfied within the prescribed isotropic fluid distribution consisting normal matter (Fig. 2).

(iii) TOV equation The plot for the generalized TOV equation reveals that static equilibrium has been attained by three different forces viz. the gravitational force (\(F_\mathrm{g}\)), the hydrostatic force (\(F_\mathrm{h}\)), and the additional force (\(F_\varkappa \)) (Fig. 3).

(iv) Stability of the model Following Herrera [82] it has been observed that the squares of the sound speed remains within the limit [0,1] admitting the condition of causality and hence our model is potentially stable.

We have also studied dynamical stability of the stellar model against the infinitesimal radial adiabatic perturbation where the adiabatic index \(\gamma \) has been calculated analytically as \(\frac{4}{3}\), which is the critical value for stable configuration [83, 87, 88].

(v) Buchdahl condition The mass function within the radius r has been plotted in Fig. 4, which shows that, for \(r\rightarrow 0\), \(M(r)\rightarrow 0\), implying the regularity of the mass function at the center.

According to Buchdahl [89], in the case of a static spherically symmetric perfect fluid distribution the mass to radius ratio \((\frac{2M}{r})\) should be \(\le \frac{8}{9}\). In the present model, we note that Buchdahl’s condition is satisfied.

(vi) Compactness and redshift The profile of the compactness of the star has been drawn in Fig. 5 whereas the redshift function \(Z_\mathrm{s}\) of the star has been depicted in Fig. 6. The features as revealed from these figures are physically reasonable.

As one of the major concluding remarks we would like to highlight one special observation that in the present model the profile of the density and the pressure (Fig. 1) reveals that both the density and the pressure suffer from a central singularity. Therefore we are unable to make any exact comment on the core of the star, though Figs. 1 and 5 also indicate a high compactness of the core. On the other hand, according to the profile of the mass function (Fig. 4) it maintains the regularity at the center.

Another interesting point can be observed from the assumed data for \(\omega =1/3\), which represents an equation of state (EOS) for radiation. However, in the present investigation we have tried to explore other values of the EOS parameter \(\omega \) but those do not work well. This seems to indicate that our model suits better for radiating compact stars. In favor of this unique result one can go through some supporting literature [94, 96,97,98,99,100]. But this also immediately raises the problem of the energy conservation in the model. As is well known, in the \(f(R,\mathcal {T})\) gravity theory the energy-momentum tensor is not conserved [see Eq. (3)]. This means we may have two probable alternatives: (i) either we must fully investigate and present the energy “conservation” equations for the present model and discuss their possible interpretation as describing radiation emission from the star, (ii) otherwise by maintaining the problem of conservation we have to give up the claim for radiating compact stars in our study assuming that the case for \(\omega =1/3\) is just a coincidence out of other several choices of \(\omega \). These intriguing issues may be taken into consideration in a future project.