1 Introduction

Einstein’s general theory of relativity (GR) [4] represents a grand tool of gravitation to understand uniquely the febric of the space-time and therefore the behavioral pattern of the cosmic bodies as well as phenomena. The first successful field theoretical application of GR to black hole solution by Schwarzschild [5] and to the structure of the universe by Einstein himself [6] made pavement for a new avenue in the research fields of astrophysics and cosmology.

In the aspect of Cosmology, the cosmological constant \(\varLambda \) as introduced by Einstein in GR to match the Mach principle and to have a non-expanding static solution of the universe, becomes very significant. But thirteen years later the pioneering observations by Edwin Hubble [7] divulge that actually universe is expanding, which forced Einstein to abandon the concept of the cosmological constant as a ‘blunder’. Later, in 1998 scientists [8, 9] came up with some ground breaking scientific evidences by observing the high redshift Type Ia supernova led to the decision that expansion of the universe is actually accelerating in manner, which reinstated the idea of Einstein’s cosmological constant. Although the erstwhile cosmological constant was conjectured as a constant quantity but gradually it appears that \(\varLambda \) is actually a scalar variable. This changes with time and the obtained decreasing value of \(\varLambda \) (\(\le {10}^{-56}~{\hbox {cm}}^{-2}\)) [8, 9] as obtained from the observational evidences agree with the concept of its variable nature. Now, as \(\varLambda \) has been used in the field equations as a scalar variable, hence it should be a function of the spatial coordinate too. Importantly, likewise the framework of cosmology where variation of \(\varLambda \) with the time has shown a significant effect, many researchers [10,11,12,13,14,15] have successfully studied the effect of the variation of \(\varLambda \) in the realm of astrophysics with respect to the spatial coordinate.

As a consequence of gravitational collapse we get a panorama of stellar formations which include white dwarfs, neutron stars and black holes (in the observational level) and also quark stars (in the theoretical level). In the present work, we are interested to study the strange stars, which are made of strange quark matter (SQM). The possibility of the existence of the hypothetical ultra-dense strange stars was first conjectured by several researchers [16,17,18,19]. The SQM, which is made of the equal number of up (u), down (d) and strange (s) quarks, is assumed to be the true ground state for the confined hadrons [17, 18, 20, 21], as predicted by the strange quark matter hypothesis [22,23,24,25,26,27]. Though it is quite difficult to distinguish neutron stars from the strange stars in the basis of mass and radius but the strange stars, which are ultra-dense and massive stellar objects, have formed a different hypothetical branch for the compact stars. However, likewise the neutron stars and white dwarfs [28,29,30], strange stars do not exhibit continuum in the equilibrium configurations. Interestingly, the neutron star equation of state (EOS) failed to explain the compactness of the recently observed compact stellar objects like \(4U~1820-30\), \(SAX~J~1808.4-3658\), \(4U~1728-34\), \(Her~X-1\), \(RX~J185635-3754\) and \(PSR~0943+10\), etc., whereas SQM EOS [18, 19, 31,32,33,34] has satisfactorily explained the compactness of the stellar candidates.

The compact stars are basically considered as a spherically symmetric and isotropic ultra-dense stellar objects. However, isotropy may be a favoured feature but need not be a general characteristics of the stellar objects. Anisotropic factor (\(\varDelta =p_t-p_r\)) which deals with the inhomogeneity in pressures into two components - radial pressure and tangential pressure, is actually a function to consider the internal situation of the star compared to the idealized isotropic case. The concept of anisotropy was originally proposed by Ruderman [35] and later on by several other scientists [36,37,38]. As the reasons behind the pressure anisotropy different factors are thought to be responsible, such as very high density region in the core region, various condensate states (like pion condensates, meson condensates etc.), superfluid 3A, mixture of fluids of different types, rotational motion, presence of magnetic field, phase transition etc. The basic ideas involved in the anisotropy and their applications in the diverse fields are available in the recent literature [3, 39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57].

It is argued by Maurya [58] that the chances of having anisotropy is much higher in the compact stars because the interaction among the particles is highly relativistic and they become very random to maintain any uniform distribution throughout the region. This relativistic nature of particles in the compact stars could be one of the possible reasons for giving birth of significant anisotropy in the compact stars. It is therefore understood that the anisotropic force inside the stellar systems make the compact objects more compact than the isotropic condition which eventually makes the possible transition of a neutron star to strange star.

Under the above background, our motivation in the present paper is to study a spherically symmetric anisotropic stellar model and the effects of the cosmological constant, which is assumed to vary with the spatial coordinate, on the stellar system. The outline of this study is as follows: We provide the basic stellar equations to describe the assumed spherically symmetric anisotropic system and the Einstein field equations for the anisotropic stellar source in Sect. 2. In Sect. 3 we have explained the necessity of the choice of appropriate EOS for SQM, whereas the solutions of the Einstein field equations and the expression for the different physical parameters has been featured in Sect. 4. In Sect. 5 we have discussed junction conditions to derive the unknown constants. Several tests, viz., energy conditions, stability (via conservation equation, Herrera condition, and adiabatic index), compactification factor and redshift, have been conducted to study the physical validity of the stellar model in Sect. 6. The last Sect. 7 is devoted as a platform for providing some salient features and concluding remarks along with a brief discussion.

2 Basic stellar equations

To describe the spacetime of a compact stellar objects, we consider the spherically symmetric line element as

$$\begin{aligned} ds^{2}=e^{\nu (r)}dt^{2}-e^{\lambda (r)}dr^{2}-r^{2}\left( d\theta ^{2}+\sin ^{2}\theta d\phi ^{2} \right) . \end{aligned}$$
(1)

Literature survey [59] shows that some interesting static spherically-symmetric perfect fluid solutions in canonical coordinates for the above metric were proposed by Tolman [1], Patwardhan and Vaidya [60] and Mehra [61] where \(\lambda (r)=\ln (1+ar^2+br^4)\), and by Kuchowicz [2] and Leibovitz [62] where \(\nu (r)=Br^2+2\ln C\) with a, b, B and C as positive constants. The metric, therefore, with the mentioned metric potentials will be referred later on simply as the Tolman–Kuchowicz (TK) metric.

The Einstein field equations for the present anisotropic stellar system is given as

$$\begin{aligned} G^i_j=R^i_j-\frac{1}{2}{g^i_j}R=-8\pi \left[ T^{i(m)}_j+T^{i(vac)}_j\right] , \end{aligned}$$
(2)

where \(T^{i(m)}_j\) and \(T^{i(vac)}_j\) are the energy momentum tensor component for the anisotropic matter distribution and vacuum, respectively. The energy–momentum tensor components \(T^{i(m)}_j\) and \(T^{i(vac)}_j\) can be expressed in the following standard form:

$$\begin{aligned} T^{i(m)}_j= & {} (\rho +p_t)u^i u_j-p_t g^i_j+(p_t-p_r)v^i v_j, \end{aligned}$$
(3)
$$\begin{aligned} T^{i(vac)}_j= & {} \frac{1}{8\pi } g^i_j \varLambda (r), \end{aligned}$$
(4)

where \(p_r\), \(p_t\) and \(\rho \) represent the radial pressure, tangential pressure and matter-energy density, respectively. Here, \(u^i\) is the 4-velocity and \(v^i\) is the radial 4-vector of the fluid element.

We define the mass function of the present spherically symmetric stellar system as follows

$$\begin{aligned} m \left( r \right) =4\,\pi \,\int _{0}^{r}\!\rho \left( r \right) {r}^{2}{dr}. \end{aligned}$$
(5)

We have considered the erstwhile Einsteinian cosmological constant as radially dependent, i.e. \(\varLambda _r = \varLambda (r)\) and hence the Einstein field equations for the metric (1) with energy–momentum tensor \(T_{ij}\) are obtained as

$$\begin{aligned}&\frac{1}{r^2}-e^{-\lambda }\left[ \frac{1}{r^2}-\frac{\lambda '}{r}\right] =8\pi \rho +\varLambda _r, \end{aligned}$$
(6)
$$\begin{aligned}&-\,\frac{1}{r^2}+e^{-\lambda }\left[ \frac{1}{r^2}+\frac{\nu '}{r}\right] = 8\pi p_r-\varLambda _r, \end{aligned}$$
(7)
$$\begin{aligned}&\frac{e^{-\lambda }}{2}\left[ \nu ''+\frac{\nu '^2-\lambda ' \nu '}{2}+\frac{(\nu '-\lambda ')}{r}\right] = 8\pi p_t-\varLambda _r,\nonumber \\ \end{aligned}$$
(8)

where \(`\prime \)’ denotes the differentiation with respect to the radial coordinate r. In above field equations we have considered geometrized units \(G = c = 1\).

Now, the equation of continuity, \(T^i_{j;i}=0\) of the present anisotropic system reads

$$\begin{aligned} \frac{1}{2}\,\nu '\,(\rho +p_r)+\frac{d}{dr}\left( p_r-\frac{\varLambda _r}{8\pi }\right) +\frac{2}{r}(p_r-p_t)=0. \end{aligned}$$
(9)

3 Equation of state

Now to describe the interior structure of the stellar system we assume the radial pressure is directly related to the energy density by a relation, known as the equation of state (EOS). Once we define EOS, immediately the Einstein field equations (6)–(8) can easily be tackled. In the present investigation, we have assumed the MIT bag EOS to describe anisotropic SQM, made of up, down and strange quark only [23]. Many researchers have successfully used the MIT bag EOS in their recent studies [63,64,65,66,67,68,69,70] for SQM. The MIT bag EOS is given as follows

$$\begin{aligned} p_r=\alpha \left( \rho - 4{\mathcal {B}}\right) , \end{aligned}$$

where \(\alpha \) is a constant and it has value 1 / 3 for the massless strange quarks whereas it is equal to 0.28 for the massive strange quarks having mass 250 MeV [71]. Here \({\mathcal {B}}\) represents the bag constant. It is worth mentioning that to include all the corrections due to the energy and pressure functions of SQM, in the simplified and linear MIT bag model EOS an ad hoc bag function has been introduced. In the present study, the mathematical analysis has been carried out by considering \(\alpha =0.28\) and \(B=60~\hbox {MeV}/\hbox {fm}^3\).

4 Solution of the Einstein field equations

By using the metric (1) and Eqs. (6)–(8) and (3), we can write the expressions for radial pressure \(p_r\), tangential pressure \(p_t\) and energy density \(\rho \) in the following form as

$$\begin{aligned}&\rho =\frac{2 [a +2 b r^2 + B(1 + ar^2 + br^4)]+\beta (1 + ar^2 + br^4)^2}{ 8\pi (1+\alpha )(1 + ar^2 + br^4)^2}, \end{aligned}$$
(10)
$$\begin{aligned}&p_r=\frac{2\alpha [a +2 b r^2 + B(1 + ar^2 + br^4)]-\beta (1 + ar^2 + br^4)^2}{ 8\pi (1+\alpha )(1 + ar^2 + br^4)^2}, \end{aligned}$$
(11)
$$\begin{aligned}&p_t=\left\{ \frac{[2 B + a^2 r^2 + b r^2 (3 + b r^4) +a (2 + B r^2 + 2 b r^4 + B^2 r^4) + B^2r^2 (1 + b r^4)]}{8\pi (1 + ar^2 + br^4)^2}\right. \nonumber \\&\quad \left. -\, \frac{2 [a + 2 b r^2+ B(1 + a r^2 + b r^4)] + \beta (1 + a r^2 + b r^4)^2}{8\pi (1+\alpha )(1 + ar^2 + br^4)^2}\right\} , \end{aligned}$$
(12)
$$\begin{aligned}&\varLambda _r=\left[ \frac{(1+\alpha )[a^2 r^2 +b r^2 (5 + b r^4) + a (3 + 2 b r^4)]-2 B(1+ a r^2 + b r^4)}{(1 + \alpha )(1 + a r^2 + b r^4)^2} -\frac{2(a+ 2 b r^2)+\beta (1 + a r^2 + b r^4)^2}{(1+\alpha )(1 + a r^2 + b r^4)^2}\right] .\nonumber \\ \end{aligned}$$
(13)

where \(\beta =32\,{\mathcal {B}}\pi \,\alpha \). We have shown behaviour of the density function in Fig. 1. Again, the variation of the pressures viz., \(p_r\) and \(p_t\) against the radial coordinate have been featured in Fig. 2. From Figs. 1 and 2 we find \(\rho \), \(p_r\) and \(p_t\) decrease monotonically from the maximum value at the centre to the minimum value at the surface and confirm regularity of the achieved solutions. We have presented variation of the varying cosmological constant against the radial coordinate in Fig. 3

Hence, the anisotropic stress \(\varDelta (r)=p_t-p_r\) for the present system is as follows

$$\begin{aligned} \varDelta =\frac{r^2 [a^2 + B^2 + b^2 r^4 + a (-B + 2 b r^2 + B^2 r^2) - b (1 + 2 B r^2 - B^2 r^4)]}{8\pi (1 + a r^2 + b r^4)^2}.\nonumber \\ \end{aligned}$$
(14)

We have shown the variation of the anisotropic stress \(\varDelta \) with respect to the fractional radial coordinate r / R in Fig. 4.

Fig. 1
figure 1

Behavior of density as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) is shown. Here and in what follows \(B=60~\hbox {MeV}/\hbox {fm}^3\)

Fig. 2
figure 2

Behavior of the radial pressure \(p_r\) (left panel) and the tangential pressure \(p_t\) (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

5 Junction conditions

The first fundamental form of the boundary surface involved in the metric (1) should be the same whether obtained from the interior or exterior space-time and this guarantees that for some coordinate system the metric components \(g_{ij}\) will be continuous across the surface. Therefore, we consider that the exterior system is equivalent to the metric

$$\begin{aligned} ds^2= & {} \left( 1-\frac{2M}{r}-\frac{\varLambda r^2}{3}\right) dt^2- \left( 1-\frac{2M}{r}-\frac{\varLambda r^2}{3}\right) ^{-1} dr^2 \nonumber \\&-\,r^2 (d \theta ^2 +\sin ^2 \theta d \phi ^2), \end{aligned}$$
(15)

which is the modified Schwarzschild metric with the cosmological constant and hence turns into the usual Schwarzschild metric for vanishing \(\varLambda \).

Fig. 3
figure 3

Behavior of the cosmological constant \(\varLambda (r)\) as a function of the fractional radial distance for the compact star \(LMC~X-4\) is shown

Fig. 4
figure 4

Behavior of the anisotropic stress \(\varDelta \) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) is shown

Fig. 5
figure 5

Behavior of the metric potentials viz., \({\mathrm{e}}^{{\nu }}\) (left panel) and \({\mathrm{e}}^{\lambda }\) (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

Table 1 Numerical values of physical parameters for the different star candidates for \(\varLambda =0.005\) and \({\mathcal {B}}=60\,\hbox {MeV}/\hbox {fm}^3\)

The continuity of the metric functions, involved in the interior and the exterior metrics, at the outer boundary of the fluid sphere (\(r=R\)), as well as the requirement of matching condition for the radial pressure, i.e. \(p_r = 0\) at the surface, immediately provides the constants a, b, B and C in the following forms

$$\begin{aligned} B= & {} {\frac{2\varLambda {R}^{3}-6M}{2{R}^{2} \left( \varLambda _{{1}}{R}^{3}+6M-3R \right) }}, \end{aligned}$$
(16)
$$\begin{aligned} C= & {} \mathrm{e}^{\dfrac{\left( \varLambda {R}^{3}+6M-3R \right) \ln \left( 1-{\frac{2M}{R}}-\frac{1}{3}\varLambda {R}^{2}\right) -\varLambda {R}^{3}+3M}{2\varLambda {R}^{3}+12M-6R}}, \end{aligned}$$
(17)
$$\begin{aligned} a= & {} \frac{-\,4{R}^{6}\alpha \varLambda ^{2}+ \left( 6 \alpha \varLambda -9\beta \right) {R}^{4}-48 M{R}^{3}\alpha \varLambda +90 MR\alpha -144 {M}^{2}\alpha }{2{R}^{2}\alpha \left( \varLambda {R}^{3}+6 M-3 R \right) ^{2}}, \end{aligned}$$
(18)
$$\begin{aligned} b= & {} \frac{\left( 2{R}^{6}{\varLambda }^{2}+24 M{R}^{3} \varLambda +72{M}^{2}-54M{R} \right) \alpha +9\beta {R}^{4}}{2\alpha {R}^{4} \left( \varLambda {R}^{3}+6 M-3R \right) ^{2}}. \end{aligned}$$
(19)

In the later part of the article it can be observed that tuning of these constants are very important to determine different physical properties of compact stars. The variations of the metric potentials viz., \({\mathrm{e}}^\nu \) and \({\mathrm{e}}^{\lambda }\) based on the obtained values of the constants, against the radial coordinate is shown in Fig. 5.

Now, many scientists [72, 73] have shown that anisotropy is minimum at the surface, on the other hand, many others [15, 47, 74] have also shown that anisotropy is maximum at the surface. To resolve the confusion that what should be the real feature of the anisotropic stress at the surface Deb et al. [3] have maximized anisotropy at the surface without pre-assuming it as maximum or minimum at \(r=R\) and conclusively showed that for a stable and spherically symmetric anisotropic stellar system the anisotropic stress must be maximum at the surface as an inherent property of the compact stars. In the present study, following Deb et al. [3] we have predicted different physical parameters for the strange star candidates, including the exact values of radius by considering the observed values of mass of the strange star candidates for \({\mathcal {B}}=60~\hbox {MeV}/\hbox {fm}^3\) (see Table. 1).

6 The physical properties of the stellar model

In this section we will discuss physical validity of the achieved solutions based on the few physical tests viz., energy conditions, equilibrium of forces, Herrera cracking concept, etc.

6.1 Energy conditions

The energy conditions, viz., Null Energy Condition (NEC), Weak Energy Condition (WEC) and Strong Energy Condition (SEC) will be valid only when the following inequalities hold simultaneously for our system given as

$$\begin{aligned}&NEC:\rho +p_r\ge 0,~\rho +p_t\ge 0, \end{aligned}$$
(20)
$$\begin{aligned}&WEC: \rho +p_r\ge 0,~\rho \ge 0,~\rho +p_t\ge 0, \end{aligned}$$
(21)
$$\begin{aligned}&SEC: \rho +p_r\ge 0,~\rho +p_r+2\,p_t\ge 0, \end{aligned}$$
(22)
$$\begin{aligned}&DEC: {{\rho }}\ge 0,~{{\rho }}-{{p_r}}\ge 0,~{{\rho }}-{{p_t}}\ge 0. \end{aligned}$$
(23)
Fig. 6
figure 6

Behavior of the energy conditions for \(\varLambda =0.004\) (left panel), \(\varLambda =0.005\) (middle panel) and \(\varLambda =0.006\) (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

The energy conditions are plotted in Fig. 6 which features that as our system is consistent with all the inequalities simultaneously, it confirms that the achieved solution is physically viable.

6.2 Stability of the stellar model

6.2.1 TOV equation

The Tolaman–Oppenhiemer–Volkoff (TOV) ([1, 81]) equation for the anisotropic matter with variable cosmological constant (\(\varLambda _r\)) in radial direction are given as

$$\begin{aligned} \frac{1}{2}\,\nu ' (\rho +p_r)+\frac{d}{dr}\left( p_r-\frac{\varLambda _r}{8\pi }\right) +\frac{2}{r}(p_r-p_t)=0. \end{aligned}$$
(24)

It is Obviously that the above generalized TOV equation describes the equilibrium condition for the strange star subject to the gravitational (\(F_g\)) and hydrostatic (\(F_h\)) plus another anisotropic force (\(F_a\)) due to the anisotropic nature of the stellar object. Now, the above equation can be written via different forces as

$$\begin{aligned} F_g+F_h+F_a=0, \end{aligned}$$
(25)

with

$$\begin{aligned} F_g= & {} -\,\frac{1}{2}\,\nu '\,(\rho +p_r)\nonumber \\= & {} -\, \frac{2Br[a + 2 b r^2 + B (1 + a r^2 + b r^4)]}{8\pi (1 + a r^2 + b r^4)^2}, \end{aligned}$$
(26)
$$\begin{aligned} F_h= & {} -\,\frac{d}{dr}\left( p_r-\frac{\varLambda _r}{8\pi }\right) \nonumber \\= & {} \frac{2r[-a^2 + 2 a (B - b r^2) + b (1 + 4 B r^2 - b r^4)]}{8\pi (1 + a r^2 + b r^4)^2}, \end{aligned}$$
(27)
$$\begin{aligned} F_a= & {} \frac{2}{r}(p_t-p_r)\nonumber \\= & {} \frac{2r [a^2 + B^2 + b^2 r^4 + a (-B + 2 b r^2 + B^2 r^2) - b (1 + 2 B r^2 - B^2 r^4)]}{8\pi (1 + a r^2 + b r^4)^2}.\nonumber \\ \end{aligned}$$
(28)

Figure 7 shows the counterbalancing pattern of different forces to attain equilibrium of the spherical configuration. Figure 7 also features that in each cases the repulsive anisotropic force \(F_a\) acts along the outward direction to counter balance the combined effect of the attractive forces viz., gravitational force \(F_g\) and the hydrodynamic force \(F_h\), which act along the inward direct.

Fig. 7
figure 7

Behavior of different forces for \(\varLambda =0.004\) (left panel), \(\varLambda =0.005\) (middle panel) and \(\varLambda =0.006\) (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

6.2.2 Herrera condition

To verify stability of our anisotropic model we have plotted the radial (\(v_{r}^2\)) and transverse (\(v_{t}^2\)) sound speeds in Fig. 7. It is observed that the inequalities \(0\le v_{r}^2 \le 1\) and \(0\le v_{t}^2 \le 1\) are satisfied everywhere within the stellar system and obeys the causality condition. Now the radial and transverse sound speeds are given by

$$\begin{aligned} v_{r}^2= & {} \frac{dp_r}{d\rho }=\alpha , \end{aligned}$$
(29)
$$\begin{aligned} v_{t}^2= & {} \frac{dp_t}{d\rho } =\frac{-B^2 (1 + \alpha ) + (1 + \alpha ) a^3 r^2 +(1 + \alpha ) b^3 r^8 +V_{t1}(r) +V_{t2} (r)+V_{t3} (r)}{2[a^2 (2 + B r^2) + a (B + 6 b r^2 + 3 b B r^4) -2 b (1 - 3 b r^4) + 2 b B r^2 (1 + b r^4)]}, \end{aligned}$$
(30)

where

$$\begin{aligned} V_{t1}(r)= & {} b [1 - 3 \alpha + 4 B r^2 (1+2\alpha )]\\&+b^2 r^4 [6(\alpha -1)- 4 B r^2 + B^2 r^4 (1+\alpha )],\\ V_{t2}(r)= & {} -\, a^2 [1 -3 \alpha + B r^2 (1- \alpha )\\&- 3 b r^4 (1+\alpha )]+a [B^2r^2 (1 +\alpha ) (b r^4-1)],\\ V_{t3}(r)= & {} a\,[ B (1 + 3 \alpha ) - 3 b B r^4 (1- \alpha )] \\&- a b r^2 [5 - 7 \alpha - 3 b r^4 (1+\alpha )]. \end{aligned}$$
Fig. 8
figure 8

Behavior of the square of the tangential sound speed \(v_{t}^2\) (left panel) and difference of the square of the sound speeds \(\mid v_{t}^2 - v_{r}^2 \mid \) (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

On the other hand, following the cracking concept [82, 83] we checked stability of the local anisotropic configuration by finding out the potentially stable region where the radial speed of sound is greater than the transverse speed of sound, i.e. \(v^2_{t}-v^2_{r}\le 1\). From Fig. 8 one can note that \(0\le v_{r}^2 \le 1\) and \(0\le v_{t}^2 \le 1\) so that \(\mid v_{t}^2 - v_{r}^2 \mid \le 1 \). Thus the present compact stellar model provides a stable configuration of the spherical system by satisfying both the causality condition and the Herrera cracking concept.

6.2.3 Adiabatic index

To check the dynamical stability of the stellar system against an infinitesimal radial adiabatic perturbation we follow the pioneering work by Chandrasekhar [84] where he predicted that for relativistic stellar system to be stable the adiabatic index \(\varGamma \) should be greater than 4 / 3. Note that later on many researchers [85,86,87,88] have successfully tested the prediction by Chandrasekhar for both the isotropic and anisotropic stellar objects. The adiabatic index is defined as

$$\begin{aligned} {\varGamma }=\left( \frac{{p_{r}}+{{\rho }}}{{p_{r}}}\right) \frac{d{p_{r}}}{d{{\rho }}}. \end{aligned}$$
Fig. 9
figure 9

Behavior of the adiabatic index \(\varGamma \) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) is shown

In Fig. 9 we have successfully shown the behaviour of the adiabatic index \(\varGamma \) which features that in the present case \(\varGamma \) is well above the critical limit 4 / 3 and confirms stability of the system against an infinitesimal radial adiabatic perturbation.

6.3 Compactification factor and surface redshift

The mass function of the present spherical stellar system is given as

$$\begin{aligned} m\left( r\right)= & {} 4\pi {\int ^r_0{\rho r^2dr}} \nonumber \\= & {} 8\,b \left[ -\sqrt{\delta _{{1}}}\sqrt{2} \left( \chi _{{1}}-\chi _{{2} } \right) {\mathrm{arctanh}} \left( {\frac{\sqrt{b}r\sqrt{2}}{\sqrt{\delta _{{2}}}}}\right) \right. \nonumber \\&\quad +\,\sqrt{\delta _{{2}}} \big \lbrace \left( \chi _{{1}}+ \chi _{{2}} \right) \nonumber \\&\sqrt{2}\arctan \left( {\frac{\sqrt{b}r\sqrt{2}}{\sqrt{\delta _{{1}}}}} \right) \nonumber \\&\quad \left. +\frac{1}{3}b\,r\sqrt{{a}^{2}-4\,b}\sqrt{\delta _{{1}}} \left( b\beta \,{r}^{6}+a\beta \,{r}^{4}+\beta \,{r}^{2}-3 \right) \big \rbrace \right] \nonumber \\&\quad \Bigg / \left[ {\delta _{{1}}}^{\frac{3}{2}}{\delta _{{2}}}^{\frac{3}{2}} \sqrt{{a}^{2}-4\,b} \left( 2\,b{r}^{2}+\delta _{{1}} \right) \left( -2\,b{r}^{2}+\delta _{{2}} \right) \left( \alpha +1 \right) \right] ,\nonumber \\ \end{aligned}$$
(31)

where

\(\delta _{{1}}=\sqrt{{a}^{2}-4\,b}+a\)\(\delta _{{2}}=\sqrt{{a}^{2}-4\,b}-a\)\(\chi _{{1}}= \left\{ {r}^{4}{b}^{\frac{3}{2}}+\sqrt{b} \left( a{r}^{2}+1 \right) \right\} B\sqrt{{a}^{2}-4\,b}\)\(\chi _{{2}}= ( Ba{r}^{4}-a{r}^{2}-1 ) {b}^{\frac{3}{2}}-{r}^{4}{b}^{\frac{5}{2}}+Ba\sqrt{b} \left( a{r}^{2}+1 \right) \).

Fig. 10
figure 10

Behavior of the compactification factor (left panel), whereas behavior of the redshift (right panel) as a function of the fractional radial distance for the strange star candidate \(LMC~X-4\) are shown

In terms of the mass function, let us now define the compactification factor as follows

$$\begin{aligned} u=\frac{m\left( r\right) }{r}. \end{aligned}$$
(32)

Hence the surface redshift is given by

$$\begin{aligned} Z_s={\mathrm{e}}^{-\frac{\nu \left( R\right) }{2}}-1=\left[ 1-2u\left( R\right) \right] ^{-\frac{1}{2}} - 1. \end{aligned}$$
(33)

We have plotted variation of the compactification factor and redshift function in the left and right panel of Fig. 10.

7 Discussion and Conclusion

In the present study, we have considered an anisotropic fluid sphere in the framework of Einstein’s general theory of relativity. The spherical spacetime is assumed to be of the Tolman–Kochowicz type and solutions of the Einstein field equations are found by using this metric. One can observe that all the parameters involved in the solutions set are viable within the specified physical conditions. Further, following the work of Stergioulas [71] we have analysed the present system based on the phenomenological MIT bag model EOS which is suitable for the massive strange quarks. To derive the unknown constants and radius of the strange star candidates in the present study we have used the observed values of the mass of the strange stars candidates as presented in Table 1 and also assumed parametric values of \({\mathcal {B}}\) and \(\varLambda \) given as \({\mathcal {B}}=50, 60\) and \(70~\hbox {MeV}/\hbox {fm}^3\), and \(\varLambda =0.004, 0.005\) and 0.006. For further analysis of the achieved solutions, we have considered \(LMC~X-4\) as the representative of the strange star candidates.

Table 2 Numerical values of physical parameters for \(LMC~X-4\) for the different values of \(\varLambda \) and \({\mathcal {B}}=60\, \hbox {MeV}/\hbox {fm}^3\)
Table 3 Numerical values of physical parameters for \(LMC~X-4\) for the different values of \({\mathcal {B}}\) and \(\varLambda =0.005\)

However, we would like to highlight some of the salient features of the present models which are as follows:

1. Density and pressure: We have shown the profile of density in Fig. 1, which features that for \({\mathcal {B}}=60~\hbox {MeV}/\hbox {fm}^3\) and the chosen values of \(\varLambda \), the nuclear density inside the compact stellar model is much higher than the normal nuclear density \({\rho }_{normal}=2.3\times {10}^{14}~\hbox {g}/\hbox {cm}^3\). Hence, it confirms that the stellar system corresponds to the ultra-dense strange stars [35, 89, 90]. In Fig. 2 we have shown the variation of \(p_r\) and \(p_t\) in the left and right panel, respectively. On the other hand, we have shown variation of the anisotropic stress in Fig. 4, which indicates that the anisotropy for our system is minimum at the centre and maximum at the surface as predicted by Deb et al. [3]. Interestingly, Fig. 4 also features that as the values of \(\varLambda \) increase anisotropic stress of the systems increase consequently. We have presented the variation of the cosmological constant which is a scalar variable dependent on the spatial coordinate in Fig. 3. The variations of the metric potentials, i.e., \(e^{\nu }\) and \(e^{\lambda }\) are depicted in the left and right panel of Fig. 5, respectively. Further, Figs. 1,2 and 5 confirm that our system is free from all sorts of singularities viz., physical as well as geometrical singularities.

2. Energy conditions: We find that for both the chosen cases the energy conditions, viz., NEC, WEC, SEC and DEC are consistent with our system. We have shown variation of the energy conditions with respect to the radial coordinate in Fig. 6, which confirms physical acceptability of the obtained solutions.

3. Equilibrium of forces: In Fig. 7 we observe that for all the chosen values of \(\varLambda \) the equilibrium of the forces is achieved. In every cases the anisotropic force \(F_a\) which acts along the outward direction (repulsive nature) counterbalances the combined effect of the gravitational force \(F_g\) and the hydrodynamic force \(F_h\) which act along the inward direction (attractive nature).

4. Stability: To discuss stability of the system we have examined both the causality condition and the Herrera cracking condition. Fig. 8 exhibits that for all the cases the inequalities \(0\le v_{r}^2 \le 1\), \(0\le v_{t}^2 \le 1\) and \(\mid v_{t}^2 - v_{r}^2 \mid \le 1 \) are valid simultaneously and hence confirms stability of the stellar system in terms of the sound velocity of the system. Again, Fig. 9 reveals that for our system the adiabatic index \(\varGamma \) is less than the critical limit 4 / 3 which confirms that our system is completely stable against the infinitesimal radial adiabatic perturbation.

5. Compactification factor and redshift: We have featured variation of the compactification factor and redshift function in the left and right panel in Fig. 10, respectively. For the chosen values of \({\mathcal {B}}\) and \(\varLambda \) we have derived the factor 2M / R and surface redshift \(Z_s\) for different strange star candidates and presented their values in Table 1. We find from these Tables 2 and 3 that the values of 2M / R and \(Z_s\) increase gradually with the increasing values of \(\varLambda \) and \({\mathcal {B}}\). For all the cases as \(2M/R<8/9\), so our system is consistent with the Buchdahl condition [75]. Present investigation reveals that the surface redshift of the different stellar candidates are within the range \(0.58-0.41\) and such high redshift values indicate that the stellar candidates under study are actually strange stars [91]. The obtained values of \(Z_s\) due to different strange star candidates are well within the provided limits given as \(0<Z_s \le 1\) [46, 47, 92,93,94] and \(Z_s \le 2\) [75, 95, 96] which provides physical consistency of the proposed stellar system.

6. Comparative discussion: With the motivation to analysis the effects of the variable cosmological constant \(\varLambda (r)\) and bag constant \({\mathcal {B}}\) on the anisotropic stellar system, we have presented Tables 2 and 3. For the fixed chosen value of \({\mathcal {B}}\) as \(\mathcal {B}=60~\hbox {MeV}/\hbox {fm}^3\) we find from Table 2 that as the values of \(\varLambda \) increases the different physical parameters viz., \(\rho _c\), \(p_c\), 2M / R and \(Z_s\) increase gradually, whereas the radii of the stellar candidates decrease consequently. This observation leads to the conclusion that as \(\varLambda \) increases the stellar systems become smaller in size turning the strange star candidates into a more compact stellar object. The same effects can be observed for the increasing values of \({\mathcal {B}}\) as presented in Table 3. Hence, with the increasing values of \(\varLambda \) and \({\mathcal {B}}\) the systems become gradually diminutive along with the rising values of density and surface redshift, which are the perfect situations to describe the strange star candidates.

The pioneering detection of gravitational waves (GW170817) [97] from the coalescence of a neutron star binary system, has given a realistic opportunity to study the properties of the matter inside the stars in such extreme condition which cannot be recreated in the terrestrial laboratories. In their recent study, Abbott et al. [98] have presented the radii of the two neutron stars. The authors have shown that based on only the LIGO and Virgo data the two neutron star radii are \(R_1=10.8^{+2.0}_{-1.7}\) km and \(R_2=10.7^{+2.1}_{-1.5}\) km for the heavier and lighter stars, respectively at the \(90\%\) confidence level. However, for the neutron stars having masses more than \(1.97~M_{\odot }\) which includes the electromagnetic observations Abbott et al. [98] predicted that radii of the two neutron stars are exactly the same, i.e. \(R_1=11.9^{+1.4}_{-1.4}\) km and \(R_2=11.9^{+1.4}_{-1.4}\) km at the \(90\%\) confidence level. They also predicted that at twice the nuclear saturation density the pressure should be \(3.5^{+2.7}_{-1.7}\times {10}^{34}\, \hbox {dyne}/\hbox {cm}^2 \). In the present study, our model reveals that for a hypothetical strange quark star having mass \(2.2~M_{\odot }\) (say) the radius would be 9.981 km and central pressure would be \(4.836 \times {10}^{35}\, \hbox {dyne}/\hbox {cm}^2\), where the value of B is chosen as \(60~\hbox {MeV}/\hbox {fm}^3\). It is to note that our model predicts the stars having more dense and smaller in size compared to the neutron stars, however, this situation can easily be well accommodated within the range of data as predicted by Abbott et al. [98].

For the last few years, the scalar-tensor theories of gravity become popular as an extended theory of General Relativity (GR) to address several puzzles, such as the dark energy problem in the realm of Cosmology and the dark matter problem in the realm of astrophysics. In this line, f(R) gravity theory has appeared as one of the promising alternative theories to address those unsolved issues which are studied in detail in the following literature [99,100,101,102,103,104,105,106,107,108]. Now, our present study deals with the cosmological constant \(\varLambda \) which is assumed to be a scalar variable dependent on the spatial coordinate r. Interestingly, we find that the violation of standard GR predictions has much in common with the results achieved by Resco et al. [108] in their work where they have explored the main features and also studied the existence of neutron stars in the framework of f(R) paradigmatic models. Hence, the achieved results from our model have actually encouraged the extended gravity theories as a competent and alternative route to the cosmological constant or dark energy. However, following Dombriz and Dobado [99] we are looking forward to further detailed study on strange stars based on the assumed Tolman–Kuchowicz metric in the framework of extended gravity theory without considering the cosmological constant.

In this context, it is important to mention that though in the present study under the framework of GR we have used the standard asymptotic (or stellar) mass definition as in Eq. (5) [\(m \left( r \right) =4\pi \int _{0}^{r}\!\rho \left( r \right) {r}^{2}{dr}\)] but for modified f(R) gravity theory this standard definition of mass should be avoided. Astashenok et al. [109] in their study have shown that in the case of modified f(R) gravity theory as at the surface of the stars the scalar curvature R does not vanish hence it invites not only the existence of exterior non-Schwarzschild solutions for realistic equations of state but also a new definition for the gravitational mass of the stellar system. As a result, the exterior spacetime region (gravitational sphere) of the stars also contribute to the total gravitational mass which can be perceived by a distant observer.

As a final comment, in this article employing the Tolman–Kuchowicz ([1, 2]) metric and using parametric values of \(\varLambda (r)\) and \({\mathcal {B}}\) we have successfully presented singularity free and completely stable stellar system which is suitable to describe the strange star candidates exhibiting anisotropic nature.