1 Introduction

The first exact interior solution of the Einstein’s equations which describe a self-gravitating perfect fluid with constant density embedded in a static and spherically symmetric vacuum was obtained by Karl Schwarzschild [1] and for a long time isotropic solutions have been broadly considered as suitable interior models of compact objects (see, for example, [2] and references therein). However, very few of these solutions can be considered as physically relevant because they violate some of the elementary conditions that a realistic solution has to satisfy (for a list of physical conditions of interior solutions see, for example, [3]). Even more, in the cases where acceptable solutions can be found, the perfect fluid model can not be used to deal with situation where it is assumed local anisotropy of pressure, that seems to be very reasonable for describing the matter distribution under a variety of circumstances [4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20].

In this sense, we may wonder if given an acceptable perfect fluid interior solution, in the sense of [3], one can be able to extend it to anisotropic domains holding its physical acceptability to some extent. Fortunately, this question has an affirmative answer. Indeed, the so-called Minimal Geometric Deformation (MGD) method [21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69] have been extensively used to obtain new black hole solutions and to extend interior isotropic models, given the number of ingredients which convert it in a versatile and powerful tool to solve the Einstein’s equations. To be more specific, the method has been used to obtain anisotropic like-Tolman IV solutions [34, 38], anisotropic Tolman VII solutions [66] and black holes in \(3+1\) and \(2+1\) dimensional space–times [41, 52, 55]. Moreover, in the context of modified theories of gravitation, the method has been used to obtain solutions in \(f({\mathcal {G}})\) gravity [45], Lovelock [63], f(RT) [61], Rastall [69] and more recently black holes and interior solutions in the context of braneworld [68].

Recently, a perfect fluid interior solution has been reported in Ref. [70] and has been used to model the neutron star PSR J0348+0432. It is our main goal here extend this solution by MGD to model not only the compact object PSR J0348+0432 but the Binary Pulsar SAX J1808.4-3658 and X-ray Binaries Her X-1 and Cen X-3 ones. Additionally, we want to explore the physical acceptability of the anisotropic solution obtained by MGD.

This work is organized as follows. In the next section we review the main aspects related to the MGD-decoupling method. Section 3 is devoted to introduce the new static and spherically symmetric solution and the anisotropic solution obtained by MGD is studied in Sect. 4. In the last section, we present our final comments and conclusions.

2 Einstein equations and MGD-decoupling

This section is devoted to review the main aspects of MGD. To this end, we shall follow closely the original paper on this topic in the context of gravitational decoupling in General Relativity reported in [34].

As starting point, let us consider the Einstein field equations

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}R g_{\mu \nu }=-\kappa ^{2}T_{\mu \nu }^{(tot)}, \end{aligned}$$
(1)

and assume that the total energy–momentum tensor, \(T_{\mu \nu }^{(tot)}\), can be decomposed as

$$\begin{aligned} T_{\mu \nu }^{(tot)}=T_{\mu \nu }^{(m)}+\alpha \theta _{\mu \nu }, \end{aligned}$$
(2)

where \(T^{(m)}_{\mu \nu }\) is the matter energy momentum for a perfect fluid and \(\theta _{\mu \nu }\) an anisotropic source interacting with \(T^{(m)}_{\mu \nu }\). Note that, since the Einstein tensor is divergence free, the total energy momentum tensor \(T_{\mu \nu }^{(tot)}\) satisfies

$$\begin{aligned} \nabla _{\mu }T^{(tot)\mu \nu }=0. \end{aligned}$$
(3)

In what follows, we shall consider spherically symmetric space–times with line element parametrized as

$$\begin{aligned} ds^{2}=e^{\nu }dt^{2}-e^{\lambda }dr^{2}-r^{2}d\varOmega ^{2}, \end{aligned}$$
(4)

where \(\nu \) and \(\lambda \) are functions of the radial coordinate r only. Now, considering Eq. (4) as a solution of the Einstein equations, we obtain

$$\begin{aligned} \kappa ^{2} \tilde{\rho }= & {} \frac{1}{r^{2}}+e^{-\lambda }\left( \frac{\lambda '}{r}-\frac{1}{r^{2}}\right) \end{aligned}$$
(5)
$$\begin{aligned} \kappa ^{2} \tilde{p}_{r}= & {} -\frac{1}{r^{2}}+e^{-\lambda }\left( \frac{\nu '}{r}+\frac{1}{r^{2}}\right) \end{aligned}$$
(6)
$$\begin{aligned} \kappa ^{2} \tilde{p}_{\perp }= & {} \frac{e^{-\lambda }}{4}\left( \nu '^{2}-\nu '\lambda '+2\nu '' +2\frac{\nu '-\lambda '}{r}\right) , \end{aligned}$$
(7)

where the primes denote derivation respect to the radial coordinate and we have defined

$$\begin{aligned} \tilde{\rho }= & {} \rho +\alpha \theta ^{0}_{0} \end{aligned}$$
(8)
$$\begin{aligned} \tilde{p}_{r}= & {} p-\alpha \theta ^{1}_{1} \end{aligned}$$
(9)
$$\begin{aligned} \tilde{p}_{\perp }= & {} p-\alpha \theta ^{2}_{2}. \end{aligned}$$
(10)

Note that, at this point, the decomposition (2) seems as a simple separation of the constituents of the matter sector. What is more, given the non-linearity of Einstein’s equations, such a decomposition does not lead to a decoupling of two set of equations, one for each source involved. However, contrary to the broadly belief, the decoupling is possible in the context of MGD. The method consists in to introduce a geometric deformation in the the metric functions given by

$$\begin{aligned} \nu= & {} \xi +\alpha g \end{aligned}$$
(11)
$$\begin{aligned} e^{-\lambda }= & {} \mu +\alpha f, \end{aligned}$$
(12)

where \(\{g,f\}\) are the so-called decoupling functions and \(\alpha \) is a free parameter that “controls” the deformation. It is worth mentioning that although a general treatment considering deformation in both components of the metric is possible (see Ref. [54]), in this work we shall concentrate in the particular case \(g=0\) and \(f\ne 0\). Doing so, we obtain two sets of differential equations: one describing an isotropic system sourced by the conserved energy-momentum tensor of a perfect fluid \(T^{(m)}_{\mu \nu }\) and the other set corresponding to quasi–Einstein field equations sourced by \(\theta _{\mu \nu }\). More precisely, we obtain

$$\begin{aligned} \kappa ^2 \rho= & {} \frac{1-r \mu '-\mu }{r^{2}} \end{aligned}$$
(13)
$$\begin{aligned} \kappa ^2 p= & {} \frac{r \mu \nu '+\mu -1}{r^{2}} \end{aligned}$$
(14)
$$\begin{aligned} \kappa ^2 p= & {} \frac{\mu ' \left( r \nu '+2\right) +\mu \left( 2 r \nu '' +r \nu '^2+2 \nu '\right) }{4 r}, \end{aligned}$$
(15)

with

$$\begin{aligned} \nabla _{\mu }T^{(m)\mu \nu }=p' -\frac{\nu '}{2}(\rho +p)=0, \end{aligned}$$
(16)

for the perfect fluid and

$$\begin{aligned} \kappa ^2 \theta ^{0}_{0}= & {} -\frac{r f'+f}{r^{2}} \end{aligned}$$
(17)
$$\begin{aligned} \kappa ^2 \theta ^{1}_{1}= & {} -\frac{r f \nu '+f}{r^{2}} \end{aligned}$$
(18)
$$\begin{aligned} \kappa ^2\theta ^{2}_{2}= & {} -\frac{f' \left( r \nu '+2\right) +f \left( 2 r \nu ''+r \nu '^2+2 \nu '\right) }{4 r}, \end{aligned}$$
(19)

for the source \(\theta _{\mu \nu }\) that, whenever \(\theta ^{1}_{1}\ne \theta ^{2}_{2}\), induce local anisotropy in the system. It is worth noticing that the conservation equation \(\nabla _{\mu }\theta ^{\mu }_{\nu }=0\) leads to

$$\begin{aligned} \left( \theta ^{1}_{1} \right) '-\frac{\nu '}{2} \left( \theta ^{0}_{0}-\theta ^{1}_{1} \right) -\frac{2}{r} \left( \theta ^{2}_{2}-\theta ^{1}_{1} \right) =0. \end{aligned}$$
(20)

which is a linear combination of Eqs. (17), (18) and (19). In this sense, there is no exchange of energy-momentum tensor between the perfect fluid and the anisotropic source and henceforth interaction is purely gravitational.

As explained in previous sections, the MGD has been successfully used to extend isotropic solutions to anisotropic domains. More precisely, given a metric functions \(\{\nu ,\mu \}\) sourced by a perfect fluid \(\{\rho ,p\}\) that solve Eqs. (13), (14) and (15), the deformation function f can be found from Eqs. (17), (18) and (19) after choosing suitable conditions on the anisotropic source \(\theta _{\mu \nu }\). It is worth mentioning that the case we are dealing with demands for an exterior Schwarzschild solution. In this case, the matching condition leads to the extra information required to completely solve the system.

Defining \(\mu (r)=1+\frac{m(r)}{r}\) in (12) the interior solution parametrized with (4) reads

$$\begin{aligned} ds^{2}=e^{\nu }dt^{2}-\left( 1-\frac{2m(r)}{r}+\alpha f\right) ^{-1}dr^{2}-r^{2}d\varOmega ^{2}.\nonumber \\ \end{aligned}$$
(21)

Now, outside of the distribution the space–time is that of Schwarzschild, given by

$$\begin{aligned} ds^{2}=\left( 1-\frac{2M}{r}\right) dt^{2}-\left( 1-\frac{2M}{r}\right) dr^{2}-r^{2}d\varOmega ^{2}.\nonumber \\ \end{aligned}$$
(22)

In order to match smoothly the two metrics above on the boundary surface \(\varSigma \), we must require the continuity of the first and the second fundamental form across that surface. Then it follows

$$\begin{aligned}&e^{\nu _{\varSigma }}=1-\frac{2 M}{r_{\varSigma }} \end{aligned}$$
(23)
$$\begin{aligned}&e^{\lambda _{\varSigma }}=1-\frac{2 M}{r_{\varSigma }} \end{aligned}$$
(24)
$$\begin{aligned}&\tilde{p}_{r_{\varSigma }}=0. \end{aligned}$$
(25)

Note that, the condition on the radial pressure leads to

$$\begin{aligned} p(r_{\varSigma })-\alpha \theta ^{1}_{1}(r_{\varSigma })=0. \end{aligned}$$
(26)

Regardingly, if the original perfect fluid match smoothly with the Schwarzschild solution, i.e, \(p(r_{\varSigma })=0\), Eq. (26) can be satisfied by demanding \(\theta ^{1}_{1}\sim p\). Of course, the simpler way to satisfy the requirement on the radial pressure is assuming the so–called mimic constraint [34] for the pressure, namely

$$\begin{aligned} \theta ^{1}_{1}= p, \end{aligned}$$
(27)

in the interior of the star. At this point a couple of comments are in order. First, it is remarkable that assuming the mimic constraint the continuity of the second fundamental is straightforward. Second, the mimic constrain leads to an simple algebraic equation to solve for the decoupling function f after replacing (27) in (18). In this sense, the only remaining step to construct an anisotropic interior solution following MGD is to choose a suitable perfect fluid as a seed to solve the system (17), (18) and (19) via the mimic constrain to finally obtain the interior solution with local anisotropies described by \(\{\nu ,\lambda ,\tilde{\rho },\tilde{p}_{r},\tilde{p}_{\perp }\}\).

Table 1 Compactness parameter for some compact stars

3 Perfect fluid neutron star

In this section we briefly review some aspects about the isotropic spherically symmetric solution reported in Ref. [70].

The line element of the interior of the star reads

$$\begin{aligned} ds^{2}=y^{2}(r)dt^{2}-\frac{dr^{2}}{B(r)}-r^{2} \left( d\theta ^{2}+sin\theta ^{2}d\phi ^{2} \right) , \end{aligned}$$
(28)

where

$$\begin{aligned} y(r)&=\frac{C \left( 5+4a r^{2} \right) }{\left( 1+a r^{2} \right) ^{1/2}} \end{aligned}$$
(29)
$$\begin{aligned} B(r)&=\frac{ \left( 5+11 a r^{2}+6a^{2}r^{4}-4ar^{2}S(r) \right) \left( 1+a r^{2} \right) }{5+12 ar^{2}+8a^{2}r^{4}}, \end{aligned}$$
(30)

with

$$\begin{aligned} S(r)=\frac{\left( 1+ar^{2} \right) ^{2} \left( A+ arctanh \left( \frac{1+2 a r^{2}}{\left( 5+12 ar^{2}+8a^{2}r^{4} \right) ^{1/2}} \right) \right) }{\left( 5+12 ar^{2}+8a^{2}r^{4} \right) ^{1/2}}. \end{aligned}$$
(31)

where C, a and A are constants. The metric (28) is a solution of the Einstein Field equation \(R_{\mu \nu }-\frac{1}{2}g_{\mu \nu }R=-\kappa ^{2}T^{(m)}_{\mu \nu }\) where the isotropic source reads

$$\begin{aligned} \kappa ^{2}\rho= & {} -\frac{a\left( 60+256ar^{2}+486a^{2}r^{4}+42a^{3}r^{6}+144a^{4}r^{8} \right) }{(5+12ar^{2}+8a^{2}r^{4})^{2}}\nonumber \\&+\frac{12a\left( 5+15ar^{2}+16a^{2}r^{4}+8a^{3}r^{6} \right) S(r)}{(5+12ar^{2}+8a^{2}r^{4})^{2}} \end{aligned}$$
(32)
$$\begin{aligned} \kappa ^{2}p= & {} \frac{a \left( 50+167ar^{2}+190a^{2}r^{4}+72a^{3}r^{6} \right) }{(5+12ar^{2}+8a^{2}r^{4})(5+4ar^{2})}\nonumber \\&-\frac{4a \left( 5+15ar^{2}+12a^{2}r^{4} \right) S(r)}{(5+12ar^{2}+8a^{2}r^{4})(5+4ar^{2})}. \end{aligned}$$
(33)

A it is shown in [70], there is a convenient parametrization which allows to rewrite the solution as a function of dimensionless quantities given by

$$\begin{aligned} r\rightarrow & {} x R \end{aligned}$$
(34)
$$\begin{aligned} aR^{2}\rightarrow & {} \omega , \end{aligned}$$
(35)

where R is the radius of the star. Furthermore, the normalized radius, \(x\in (0,1)\), and the parameter \(\omega \) are dimensionless quantities. It is worth noticing that, on one hand, the parametrization allows to write the quantities \(\kappa ^{2}R^{2}\rho \) and \(\kappa ^{2}R^{2}p\) as functions of x and \(\omega \) only. On the other hand, the matching conditions lead to (see [70] for details)

$$\begin{aligned} A= & {} \frac{(50+16\omega +197 \omega ^{2}+72\omega ^{3})\sqrt{5+12\omega +8\omega ^{2}}}{4(5+15\omega +12\omega ^{2})(1+\omega )^{2}}\nonumber \\&-arctanh\left( \frac{1+2\omega }{\sqrt{5+12\omega +8\omega ^{2}}}\right) , \end{aligned}$$
(36)

from where we obtain a relationship between \(\omega \) and the compactness u given by

$$\begin{aligned} u=\frac{\omega (3+4\omega )}{5+15\omega +12\omega ^{2}}. \end{aligned}$$
(37)

Note that, Eq. (37) allows to set the the free parameter \(\omega \) once the compactness u is fixed. For example, in Ref. [70] the authors fixed the compactness parameter using data associated to PSR J0348+0432.

4 Anisotropic neutron star by MGD

In what follows, we shall obtain the anisotropic solution implementing the mimic constraint studied in the previous section. More precisely, from Eq. (27), we obtain

$$\begin{aligned} f= & {} -\frac{x^2 \omega \left( x^2 \omega +1\right) \left( x^2 \omega \left( 2 x^2 \omega \left( 36 x^2 \omega +95\right) +167\right) +50\right) }{\left( 4 x^2 \omega \left( 2 x^2 \omega +3\right) +5\right) \left( 3 x^2 \omega \left( 4 x^2 \omega +5\right) +5\right) }\nonumber \\&+\frac{4 x^2 \omega \left( x^2 \omega +1\right) \left( 3 x^2 \omega \left( 4 x^2 \omega +5\right) +5\right) S(x;\omega )}{\left( 4 x^2 \omega \left( 2 x^2 \omega +3\right) +5\right) \left( 3 x^2 \omega \left( 4 x^2 \omega +5\right) +5\right) }, \end{aligned}$$
(38)

where we have used the parametrization introduced in the previous section.

Note that, for fixed \((u,\omega )\) the decoupling function, f, is a function of x only. However, it is worth noticing that after implementing MGD the metric function \(\lambda \) given by Eq. (12) and the matter sector of the total solution, namely, \(\tilde{\rho }\), \(\tilde{p}_{r}\) and \(\tilde{p}_{\perp }\) which are obtained from Eqs. (12), (17), (18) and (19) respectively, will depend on the free parameter \(\alpha \).

The next step in the program consist in to calculate \(\{\lambda ,\tilde{\rho },\tilde{p}_{r},\tilde{p}_{\perp }\}\). However, as can be checked by the reader, the resulting functions are too long that their explicit form is not illuminating at all. In this sense, we shall dedicate the rest of the manuscript in to illustrate their properties by graphical analysis. Furthermore, we shall fix the compactness parameter taking values from Table 1 (see [59] and references therein).

5 Conditions for physical viability of interior solutions

The study of acceptability conditions of interior solutions is important because, as it is well known, the goal is not only to solve Einstein’s equations but to demonstrate that they are suitable to describe a physical system. In this section we explore some of these conditions.

5.1 Matter sector

A physically acceptable interior solution should have positive densities and pressures. Moreover, the density and pressures have to reach a maximum at the center and decrease monotonously toward the surface with \(\tilde{p}_{r}\ge \tilde{p}_{\perp }\). The profiles of \(\tilde{\rho }\), \(\tilde{p}_{r}\) and \(\tilde{p}_{\perp }\) are shown in in Figs. 1, 2, 3 respectively

Fig. 1
figure 1

Effective density \(\tilde{\rho }\) for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

Fig. 2
figure 2

Effective radial pressure \(\tilde{p}_{r}\). For a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

Fig. 3
figure 3

Effective tangential pressure \(\tilde{p}_{t}\). For a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

Note that all the profiles satisfy the first requirement about positivity and monotonously decreasing for all the values of \(\alpha \). Interestingly, as \(\alpha \) increases, the density at the center becomes greater in contrast to the behaviour on the surface. On the contrary, the radial and the traverse pressure decrease when \(\alpha \) grows.

For a physically realistic solution is it also required that the radial and the traverse pressure be the same at the center but \(\tilde{p}_{\perp }>\tilde{p}_{r}\) as we approach to the surface of the compact object. This behaviour is illustrated in Fig. 4 where we have plotted the anisotropy \(\varDelta =\tilde{p_{\perp }}-\tilde{p}_{r}\)

Fig. 4
figure 4

Anisotropic factor , for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

5.2 Energy conditions

Energy conditions are important in the analysis of interior solutions. Accordingly, the dominant energy condition (DEC), which implies that the speed of energy flow of matter is less than the speed of light for any observer, should be satisfied by the solution. In order to the DEC be fulfilled, the matter content must satisfy

$$\begin{aligned} \tilde{\rho }-\tilde{p_{r}}\ge & {} 0 \end{aligned}$$
(39)
$$\begin{aligned} \tilde{\rho }-\tilde{p_{\perp }}\ge & {} 0. \end{aligned}$$
(40)

As illustrated in Fig. 5, the DEC is satisfied by all the models for all the values of \(\alpha \) under consideration.

Fig. 5
figure 5

Dominant energy condition for the radial components, for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

It is also desirable that the model satisfies also the strong energy condition (SEC), namely

$$\begin{aligned} \rho +\sum \limits _{i}p_{i}\ge 0, \end{aligned}$$
(41)

As can be seen in Fig. 6, this requirement is satisfied in the cases under study.

Fig. 6
figure 6

Strong energy condition, for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

5.3 Causality

The causality condition ensures that either the radial and tangential sound velocities, \(v_{r}=d\tilde{p}_{r}/d\tilde{\rho }\) and \(v_{t}=d\tilde{p}_{\perp }/d\tilde{\rho }\) respectively, are less than the speed of light. In Figs. 7 and 8 it is shown that both quantities satisfy the requirement.

Fig. 7
figure 7

Radial sound velocity, \(v_{r}^{2}\),for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

Fig. 8
figure 8

Traverse sound velocity, \(v^{2}_{t}\), a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line) (d)

5.4 Adiabatic index

As it is well know, the adiabatic index,

$$\begin{aligned} \gamma =\frac{\tilde{\rho }+\tilde{p}_{r}}{\tilde{p}_{r}}\frac{d\tilde{p}_{r}}{d\tilde{\rho }}, \end{aligned}$$
(42)

allows to connect the relativistic structure of a spherical static object and the equation of state of the interior fluid and serves as a criterion of stability [71]. More precisely, it is said that an interior configuration is stable whenever \(\gamma \ge 4/3\). Figure 9 depicts the adiabatic index for different values of \(\alpha \). Note that as \(\alpha \) increases the system tends to be unstable. Particularly for \(u=0.2035\) and \(u=0.229365\) the condition \(\gamma \ge 4/3\) is violated for \(\alpha =0.2\) and \(\alpha =0.3\). In this sense, the most stables solutions, are those with smallest compactness parameters which, in our case, correspond to \(u=0.13\) and \(u=0.15478\).

Fig. 9
figure 9

Adiabatic index, \(\gamma \), a) \(u=0.13\), b) \(u=0.15478\), c) \(u=0.2035\), d) \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

5.5 Convection stability

A star is stable against convection when a fluid element displaced downward floats back to its initial position. As can be demonstrated (see Ref. [19]), this occurs whenever

$$\begin{aligned} \tilde{\rho }''\le 0. \end{aligned}$$
(43)

In Fig. 10 it is shown that all the models under consideration are unstable after undergoing convective motion even in the isotropic case which corresponds to \(\alpha =0\).

Fig. 10
figure 10

Second derivative of the density, \(\tilde{\rho }\) for a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

5.6 Stability against gravitational cracking

The appearance of non-vanishing total radial force with different signs in different regions of the fluid is called gravitational cracking when this radial force is directed inward in the inner part of the sphere for all values of the radial coordinate r between the center and some value beyond which the force reverses its direction [72]. In Ref. [73] it is stated that a simple requirement to avoid gravitational cracking is

$$\begin{aligned} -1\le \frac{d\tilde{p}_{\perp }}{d\tilde{\rho }}- \frac{d\tilde{p}_{r}}{d\tilde{\rho }}\le 0. \end{aligned}$$
(44)

In Fig. 11 we show that for \(u=0.13\) and \(u=0.15478\) the anisotropic solution is stable against cracking for all the values of \(\alpha \) considered. In contrast, for \(u=0.2035\) and \(u=0.229365\) the condition (44) is clearly not satisfied and the system is unstable against gravitational cracking.

Fig. 11
figure 11

\(\frac{d\tilde{p}_{\perp }}{d\rho }-\frac{d\tilde{p}_{r}}{d\rho }\) for \(\alpha =-0.1\), \(\tilde{\rho }\) a \(u=0.13\), b \(u=0.15478\), c \(u=0.2035\), d \(u=0.229365\). \(\alpha =0\) (black solid line), \(\alpha =0.04\), (green dashed line), \(\alpha =0.1\) (red dashed line), \(\alpha =0.2\) (yellow dashed line), \(\alpha =0.3\) (blue dashed line)

6 Final remarks

In this work we have implemented the Minimal Geometric Deformation decoupling method to extend an isotropic model of Neutron Stars to anisotropic domains. More precisely, we studied the model used in [70] to describes the PSR J0348+0432 compact object but, additionally, we have considered the models SAX J1808.4-3658, Her X-1 and Cen X-3, also. Furthermore, we have studied the physical acceptability of all the models for different values of the MGD-parameter, \(\alpha \), starting from the isotropic case (\(\alpha =0\)) and exploring how their behaviour are modified when the anisotropy is induced (\(\alpha \ne 0\)). In particular we studied the profiles of density and pressures, energy condition, causality, and the stability of the solution studying the adiabatic index, the convection and cracking conditions. We found that, for all the values of compactness parameters considered, the density and the pressures satisfy the basic requirements of an interior solution, namely, they reach their maximum value at the center and are monotonously decreasing toward the surface of the star. Additionally, the solution satisfies the dominant and the strong energy conditions and their sound velocities (radial and tangential) are less than the speed of light as expected. We found that, for compactness parameters corresponding to SAX J1808.4-3658 and Her X-1 compact objects, the solution is stable according to the adiabatic index criteria for all the values of the decoupling parameter \(\alpha \) considered. However, for Cen X-3 and PRS J0348+0432 the adiabatic index is less than 4 / 3 for the highest values of \(\alpha \) considered and as a consequence, the configuration is unstable in this situations. This situation is similar to the obtained in the study of gravitational cracking, more precisely, the configuration is stable for the most compact object considered and unstable for the other two models. Interestingly, in this case, the instability appears for any value of \(\alpha \) we considered. Regarding the convection stability, we found that the solution is unstable for all the models under study for any value of \(\alpha \) including the isotropic case which corresponds to \(\alpha =0\). In conclusion, we have obtained that according to the adiabatic index and gravitational cracking criterion, the most stable anisotropic models are those with the smallest compactness parameters, namely SAX J1808.4-3658 and Her X-1.