1 Introduction

Through the developments of general relativity, black holes (BH) have been a subject of study, discussions and analysis. From being considered as simply mathematical constructions lacking of physical reality to be one of the central topics in recent researches, BH’s are undoubtedly one of the most known and intriguing objects in literature. Nowadays, BH’s are accepted as astrophysical objects and are considered as the preferable laboratory to test strong gravitational fields. Besides, recent observations of gravitational waves [1,2,3] and black hole shadows [4, 5] lead to the conclusion that BH indeed do exist.

Although the existence of BH’s seems undeniable, there are some aspects about this geometry which remains unclear. One of the main issues is the prediction of a space-time singularity which is often taken as an indicator that general relativity is incomplete and should be generalized to a quantum theory in order to overcome this feature [7]. In this direction, some efforts have been made to provide a classical solution to this problem. All of these solutions are known as BH mimickers and correspond to objects that, given their high compactness, the motion of test particles around them seems indistinguishable when compared with the physics around a BH (see [6], for a recent review). Some examples of BH mimickers found in literature encompasses regular BH [7,8,9], traversable wormholes [10,11,12,13] and ultracompact stars [14], among others, and in this work we shall focus our attention in the latter.

As it is well known, Buchdahl limit relies on the hypothesis of isotropy and entails that the maximum compactness of a self-gravitating, isotropic, spherically-symmetric object of mass M and radius R has an upper bound given by \(M/R = 4/9\) (for modifications of the Buchdahl’s limits induced by the presence of the cosmological constant see [15,16,17,18], for example ). In this regard, anisotropic self-gravitating fluids enter as possibility to surpass such a limit and to provide well posed anisotropic ultracompact stars (for recent works in this direction, see Refs. [14, 19], for example). An intriguing features of anisotropic ultracompact stars is that such models contain the Mazur and Mottola (MM) gravastar [20, 21] modeled as the Schwarzschild interior in the ultracompact limit as a special case [14, 19].

Recently, in Ref. [19] the MM gravastar has been extended to anisotropic domains by the well known gravitational decoupling (GD) [22] by the minimal geometric deformation approach (MGD) (for implementation in \(3+1\) and \(2+1\) dimensional spacetimes see [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]. The resulting model corresponds to an ultracompact anisotropic star surrounded by a MGD-modified vacuum which fulfil the main requirements to describe a stable model: it is regular at the origin and its density is positive and decrease monotonically from the center outwards [19]. For these reasons, our main goal here is twofold: to obtain an alternative MGD-like gravastar model and to provide another MGD-modified vacuum as the exterior geometry of the compact configuration.

A key point in the implementation of MGD is to provide an auxiliary condition to obtain the so-called decoupling function. Some examples are the so called mimic constraint for the pressure and the density, regularity condition of the anisotropy function, barotropic equation of state, among others. However, in this work we use the recently introduced complexity factor for self-gravitating fluids [61]. In particular, we propose a polynomial complexity factor which contains the gravastar model reported in [19] as a special case.

This work is organized as follow. In the next section we review the main aspects on GD. In Sect. 3 we introduce the concept of complexity factor. Section 4 is devoted to revisit the ultracompact Schwarzschild star and in Sect. 5 we obtain the new anisotropic ultracompoact star by MGD. Finally, some comments and conclusions are in the last section.

2 Gravitational decoupling

In this section we review some aspects of GD by MGD (for more details, see [22]). Let us start with the Einstein field equations (EFE)

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

where

$$\begin{aligned} T_{\mu \nu } = T^{(s)}_{\mu \nu } + \alpha \theta _{\mu \nu }. \end{aligned}$$
(2)

In the above equation \(\kappa =8\pi \),Footnote 1\(T^{(s)}_{\mu \nu }\) represents the matter content of a known solution of Einstein’s field equations, namely the seed sector, and \(\theta _{\mu \nu }\) describes an extra source that is coupled by means of the parameter \(\alpha \). Such a coupling is introduced in order to control the effect of \(\theta _{\mu \nu }\) on \(T^{(s)}_{\mu \nu }\). Since the Einstein tensor satisfies the Bianchi identities, the total energy–momentum tensor satisfies

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

It is important to point out that, whenever \(\nabla _\mu T^{\mu \nu (s)} = 0\), the following condition necessarily must be satisfied

$$\begin{aligned} \nabla _\mu \theta ^{\mu \nu } = 0, \end{aligned}$$
(4)

and as a consequence, there is no exchange of energy-momentum tensor between the seed solution and the extra source \(\theta ^{\mu \nu }\) (the interaction is purely gravitational).

From now on, let us consider a static, spherically symmetric space-time sourced by

$$\begin{aligned} T^{\mu (s)}_{\nu }= & {} \text {diag}\left( \rho ^{(s)},-p_{r}^{(s)},-p^{(s)}_{\perp },-p^{(s)}_{\perp }\right) \end{aligned}$$
(5)
$$\begin{aligned} \theta ^{\mu }_{\nu }= & {} \text {diag}(\theta _{0}^{0},\theta _{1}^{1},\theta _{2}^{2},\theta _{2}^{2}) \end{aligned}$$
(6)

and a line element given by

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

Replacing (5), (6) and (7) in (1) and (2), the EFE read

$$\begin{aligned} \kappa \rho= & {} \frac{1}{r^2} + e^{-\uplambda }\left( \frac{\uplambda '}{r} - \frac{1}{r^2}\right) , \end{aligned}$$
(8)
$$\begin{aligned} \kappa p_{r}= & {} -\frac{1}{r^2} + e^{-\uplambda }\left( \frac{\nu '}{r} + \frac{1}{r^2}\right) , \end{aligned}$$
(9)
$$\begin{aligned} \kappa p_{\perp }= & {} \frac{1}{4}e^{-\uplambda }\left( 2\nu '' + {\nu '}^2 - \uplambda '\nu ' + 2\frac{\nu '-\uplambda '}{r} \right) \end{aligned}$$
(10)

where we have defined

$$\begin{aligned} \rho= & {} \rho ^{(s)} + \alpha \theta _{0}^{0} , \end{aligned}$$
(11)
$$\begin{aligned} p_{r}= & {} p_r^{(s)}-\alpha \theta _{1}^{1} , \end{aligned}$$
(12)
$$\begin{aligned} p_{\perp }= & {} p_{\perp }^{(s)} -\alpha \theta _{2}^{2} . \end{aligned}$$
(13)

Note that given the non-linearity of Einstein’s equations the decomposition (2) does not lead to two set of equations, one for each source involved. Nevertheless, contrary to the broadly belief, such a decoupling is possible in the context of MGD as we shall demonstrate in what follows.

Let us introduce a geometric deformation in the metric functions given by

$$\begin{aligned} \nu\longrightarrow & {} \xi + \alpha g, \end{aligned}$$
(14)
$$\begin{aligned} e^{-\uplambda }\longrightarrow & {} e^{-\mu } + \alpha f, \end{aligned}$$
(15)

where \(\{f,g\}\) are the so-called decoupling functions and \(\alpha \) is the same free parameter that “controls” the influence of \(\theta _{\mu \nu }\) on \(T_{\mu \nu }^{(s)}\). In this work we shall concentrate in the particular case \(g = 0\) and \(f \ne 0\). Now, replacing (14) and (15) in the system (810), we are able to split the complete set of differential equations into two subsets: one describing a seed sector sourced by the conserved energy–momentum tensor, \(T_{\mu \nu }^{(s)}\)

$$\begin{aligned} \kappa \rho ^{(s)}= & {} \frac{1}{r^2} + e^{-\mu }\!\left( \frac{\mu '}{r} - \frac{1}{r^2}\right) , \end{aligned}$$
(16)
$$\begin{aligned} \kappa p_r^{(s)}= & {} -\frac{1}{r^2} + e^{-\mu }\!\left( \frac{\nu '}{r} + \frac{1}{r^2}\right) , \end{aligned}$$
(17)
$$\begin{aligned} \kappa p_{\perp }^{(s)}= & {} \frac{1}{4}e^{-\mu } \left( 2\nu '' + {\nu '}^2 - \mu ' \nu ' + 2\frac{\nu '-\mu '}{r} \right) , \end{aligned}$$
(18)

and the other set corresponding to quasi-Einstein field equations sourced by \(\theta _{\mu \nu }\)

$$\begin{aligned} \kappa \theta ^0_0= & {} - \frac{f}{r^2} -\frac{f'}{r}, \end{aligned}$$
(19)
$$\begin{aligned} \kappa \theta ^1_1= & {} -f \left( \frac{\nu '}{r} + \frac{1}{r^2}\right) , \end{aligned}$$
(20)
$$\begin{aligned} \kappa \theta ^2_2= & {} -\frac{f}{4} \left( 2\nu '' + {\nu '}^2 + 2\frac{\nu '}{r}\right) -\frac{f'}{4} \left( \nu ' + \frac{2}{r} \right) . \end{aligned}$$
(21)

As we have seen, the components of \(\theta _{\mu \nu }\) satisfy the conservation equation \(\nabla _\mu \theta ^{\mu }_{\nu }=0\), namely

$$\begin{aligned} \theta '^1_{1} - \frac{\nu '}{2} (\theta ^0_0 - \theta ^1_1) - \frac{2}{r}(\theta ^2_2 - \theta ^1_1)=0. \end{aligned}$$
(22)

Hitherto, we have discussed the general aspects of GD by MGD without any specification of the system under study. However, if the system under consideration is the interior of some stellar configuration, the solution obtained will be valid only up to certain radius R which define the surface of the star. In this regard, the matching between the interior solution with some exterior geometry for \(r>R\) is mandatory and in most of the cases, it is sufficient to take the Schwarzschild vacuum solution as the exterior metric. However, as it was demonstrated in [19], a suitable MGD-gravastar solution is possible whenever the exterior geometry is also a MGD-modified vacuum, namely

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

with g(r) is the decoupling function for the exterior solution. A list of MGD-modified vacuum solutions can be found in Ref. [29]. Now, in order to match smoothly the interior metric with the outside one above on the boundary surface \(\Sigma \), we require

$$\begin{aligned} e^{\nu }\Big |_{\Sigma ^{-}}= & {} \left( 1 - \frac{2M}{r}\right) \Bigg |_{\Sigma ^{+}}, \end{aligned}$$
(24)
$$\begin{aligned} e^{\uplambda }\Big |_{\Sigma ^{-}}= & {} \left( 1 - \frac{2M}{r}+\alpha g(r)\right) ^{-1}\Bigg |_{\Sigma ^{+}}, \end{aligned}$$
(25)
$$\begin{aligned} p_r(r) \Big |_{\Sigma ^{-}}= & {} p_r(r) \Big |_{\Sigma ^{+}}, \end{aligned}$$
(26)

which corresponds to the continuity of the first and second fundamental form across that surface.

To conclude this section, we would like to emphasize the importance of GD by MGD as a useful tool to find solutions of EFE. As it is well known, in static and spherically symmetric spacetimes sourced by anisotropic fluids, EFE reduce to three equations given by (8), (9) and (10) and five unknowns, namely \(\{\nu ,\uplambda ,\rho ,p_{r},p_{\perp }\}\). In this sense, two auxiliary conditions must be provided: metric conditions, equations of state, etc. However, given that in the context of MGD a seed solution should be given, the number of degrees of freedom reduces to four and, as a consequence, only one extra condition is required. In general, this condition is implemented in the decoupling sector given by Eqs. (19), (20) and (21) as some equation of state which leads to a differential equation for the decoupling function f. In this work, we take an alternative route to find the decoupling function; namely, the complexity factor that we shall introduce in the next section.

3 Complexity of compact sources

Recently, a new definition for complexity for self-gravitating fluid distributions has been introduced in Ref. [61]. This definition is based on the intuitive idea that the least complex gravitational system should be characterized by a homogeneous energy density distribution and isotropic pressure. Now, as demonstrated in [61], there is a scalar associated to the orthogonal splitting of the Riemann tensor [62] in spherically symmetric space-times which capture the essence of what we mean by complexity, namely

$$\begin{aligned} Y_{TF} = 8\pi \Pi - \frac{4\pi }{r^3}\int ^{r}_{0} {\tilde{r}}^3 \rho ' d{\tilde{r}}, \end{aligned}$$
(27)

with \(\Pi \equiv p_{r}-p_{\perp }\). Also, it can be shown that (27) allows to write the Tolman mass as,

$$\begin{aligned} m_{T} = (m_{T})_{\Sigma }\left( \frac{r}{r_{\Sigma }}\right) ^3 + r^3\int ^{r_{\Sigma }}_{r} \frac{e^{( \nu + \uplambda )/2}}{{{\tilde{r}}}} Y_{TF} d{\tilde{r}}, \end{aligned}$$
(28)

which can be considered as a solid argument to define the complexity factor by means of this scalar given that this function, encompasses all the modifications produced by the energy density inhomogeneity and the anisotropy of the pressure on the active gravitational mass.

Note that the vanishing complexity condition (\(Y_{TF}=0\)) can be satisfied not only in the simplest case of isotropic and homogeneous system but in all the cases where

$$\begin{aligned} \Pi =\frac{1}{2r^{3}}\int \limits _{0}^{r}{\tilde{r}}^{3}\rho ' d{\tilde{r}}. \end{aligned}$$
(29)

In this respect, the vanishing complexity condition leads to a non-local equation of state that can be used as a complementary condition to close the system of EFE (for a recent implementation, see [41], for example). Similarly, we can provide a particular values of \(Y_{TF}\) and use this information to find a family of solutions with the same complexity factor. An example of how this can be achieved can be found in [41]. In this work, we shall propose a suitable value for the complexity factor to find a new solution for an ultracompact star.

4 Ultracompact Schwarzschild star

In this section we briefly review the Schwarschild interior in the ultracompact regime. As it is well known, the metric for this configuration reads

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

where

$$\begin{aligned} e^{\nu }= & {} \frac{1}{4}\left( 3\sqrt{1-H^{2}R^{2}}-\sqrt{1-H^{2}r^{2}}\right) ^{2} \end{aligned}$$
(31)
$$\begin{aligned} e^{-\uplambda }= & {} 1-H^{2}r^{2}, \end{aligned}$$
(32)

with M the mass, R the radius of the star and

$$\begin{aligned} H^{2}=\frac{2M}{R^{3}}. \end{aligned}$$
(33)

The Schwarzschild interior is sourced by a perfect fluid with uniform density \(\rho =\rho _{0}\) and a pressure given by

$$\begin{aligned} p=\rho _{0}\left( \frac{1-H^{2}r^{2}-\sqrt{1-H^{2}R^{2}}}{3\sqrt{1-H^{2}R^{2}}-\sqrt{1-H^{2}r^{2}}}\right) . \end{aligned}$$
(34)

At this point a couple of comments are in order. First, the Buchdahl limit set an upper bound of the compactness parameter, M/R, which entails a condition on the radius of the star, namely

$$\begin{aligned} R>\frac{9}{4}M>2M. \end{aligned}$$
(35)

The Buchdahl limit ensure that the pressure is finite and positive everywhere inside the star, as required for stable configurations. Second, note that the pressure (34) is regular except at some radius \(R_{0}\) given by

$$\begin{aligned} R_{0}=3M\sqrt{1-\frac{8}{9}\frac{R}{M}}<R. \end{aligned}$$
(36)

Now, as noted by Mazur and Mottola, in the ultracompact limit, namely, when both R and \(R_{0}\) approach to the Schwarzschild radius 2M, the interior solution corresponds to a patch of the de Sitter solution. More precisely, the solution reads,

$$\begin{aligned} e^{\nu }= & {} \frac{1}{4}(1-H^{2}r^{2}) \end{aligned}$$
(37)
$$\begin{aligned} e^{-\uplambda }= & {} 1-H^{2}r^{2} \end{aligned}$$
(38)
$$\begin{aligned} p= & {} -\rho =\text {constant}, \end{aligned}$$
(39)

for \(r<2M\). It can be shown that the above solution join with the Schwarzschild vacuum in a way that the Israel second junction condition is violated. This implies that the presence of a \(\delta \)-distribution of stresses is necessary to give a correct interpretation of the Schwarzschild star beyond the Buchdahl limit. However, as we shall demonstrate in what follows, the ultracompact solutions obtained by MGD does not require the existence of such a distribution of matter given that the metric functions join smoothly through the surface \(\Sigma \).

5 Ultracompact star by gravitational decoupling

The MM gravastar given by (37), (38) and (39) was recently extended by MGD in [19]. In this case, the metric reads

$$\begin{aligned} e^{\nu }= & {} \frac{1}{4}(1-H^{2}r^{2}) \end{aligned}$$
(40)
$$\begin{aligned} e^{-\uplambda }= & {} 1-H^{2}r^{2}+\alpha f(r), \end{aligned}$$
(41)

with

$$\begin{aligned} f(r)=(1-H^{2}r^{2})H^{n}r^{n}, \end{aligned}$$
(42)

and \(\alpha \ge -1\) to ensure that \(g^{rr}\) is positive definite as \(r\rightarrow 2M\). As demonstrated in [19], the above solution is ill-matched with the Schwarzschild vacuum because it requires \(\alpha =-3/2<-1\) which violates the previous requirement for \(\alpha \) to ensure the correct behaviour of \(g^{rr}\). To overcome this difficulty, the proposed exterior solution was the modified vacuum

$$\begin{aligned} e^{\nu }= & {} =1-\frac{2M}{r} \end{aligned}$$
(43)
$$\begin{aligned} e^{-\uplambda }= & {} \left( 1-\frac{2M}{r}\right) \left( 1+\frac{\ell }{2r-3M}\right) , \end{aligned}$$
(44)

with \(\ell \) a constant with units of a length. The reader is referred to Ref. [29] where the MGD-modified vacuum (43) and (44) was obtained and discussed in detail. It is worth mentioning that the decoupling function (42) leads to stable interior solutions only for \(n=2\).

In order to provide an alternative MGD-gravastar solution, in this work we use the complexity factor previously introduced in Sect. 3, as an auxiliary condition to close the system and find the decoupling function f. It can checked that, imposing the broadly used vanishing complexity condition, it does not lead to well behaved interiors so in this work we shall provide another value for the complexity and we shall use the solution given by (40), (41) and (42) as a guide.

A straightforward computation reveals that for \(n=2\), the MGD gravastar model of Ref. [19] has a complexity given by

$$\begin{aligned} Y_{TF}=\alpha H^{4}r^{2}. \end{aligned}$$
(45)

Based on the above result, in this work we propose a polynomial complexity, namely

$$\begin{aligned} Y_{TF}=\sum ^{N}_{i=0}a_{i}r^{i}, \end{aligned}$$
(46)

which contains (45) as a particular case. Indeed, (45) is recovered for \(N=2\), \(a_{0}=a_{1}=0\) and \(a_{2}=\alpha H^{4}\). Now, replacing (40) and (41) in (46) we obtain

$$\begin{aligned} \frac{\alpha H^2 r \left( H^2 r \left( 2 f-r f'\right) +f'\right) }{2 \left( H^2 r^2-1\right) ^2}=\sum ^{N}_{i=0}a_{i}r^{i}, \end{aligned}$$
(47)

which depending on the values of N, provides a differential equation for the decoupling function.

It can be shown that if either \(a_{0}\) or \(a_{1}\) are not vanishing factors, the solution of (47) leads to divergent interior solutions so these possibilities must be discarded and, as a consequence, (47) now reads

$$\begin{aligned} \frac{\alpha H^2 r \left( H^2 r \left( 2 f-r f'\right) +f'\right) }{2 \left( H^2 r^2-1\right) ^2}=\sum ^{N}_{i\ge 2}a_{i}r^{i}, \end{aligned}$$
(48)

which can be easily integrated to obtain

$$\begin{aligned} f=-\frac{2}{\alpha H^{2}}(1-H^{2}r^{2})\sum _{i\ge 2}^{N}\frac{a_{i}r^{i}}{i} \end{aligned}$$
(49)

For example, for \(N=3\) we obtain

$$\begin{aligned} f=\frac{2}{\alpha H^2} \left( 1-H^2 r^2\right) \left( \frac{a_{2} r^2}{2}+\frac{a_{3} r^3}{3}\right) , \end{aligned}$$
(50)

from where

$$\begin{aligned} e^{\nu }= & {} \frac{1}{4}\left( 1-H^{2}r^{2}\right) \end{aligned}$$
(51)
$$\begin{aligned} e^{-\uplambda }= & {} \left( 1-H^{2}r^{2}\right) \left( 1-\frac{2}{H^{2}} \left( \frac{a_{2}}{2}r^{2}+\frac{a_{3}}{3}r^{3}\right) \right) \end{aligned}$$
(52)
$$\begin{aligned} \rho= & {} -\frac{9 a_{2}+8 a_{3} r}{24 \pi H^2}+\frac{15 a_{2} r^2+12 a_{3} r^3}{24 \pi }+\frac{3 H^2}{8 \pi } \end{aligned}$$
(53)
$$\begin{aligned} p_{r}= & {} \frac{3 a_{2}+2 a_{3} r}{24 \pi H^2}-\frac{9 a_{2} r^2+6 a_{3} r^3}{24 \pi }-\frac{3 H^2}{8 \pi } \end{aligned}$$
(54)
$$\begin{aligned} p_{\perp }= & {} \frac{a_{2}+a_{3} r}{8 \pi H^2}-\frac{5 a_{2} r^2+4 a_{3} r^3}{8 \pi }-\frac{3 H^2}{8 \pi }. \end{aligned}$$
(55)

It is worth mentioning that in Eq. (50) we have discarded the term with the integration constant because it leads to divergence in the interior of the configuration.

To proceed with the analysis, we need to provide an exterior geometry and we shall explore two different MGD-modified vacuum.

5.1 Exterior 1

Let us consider

$$\begin{aligned} e^{\nu }= & {} 1-\frac{2M}{r} \end{aligned}$$
(56)
$$\begin{aligned} e^{-\uplambda }= & {} \left( 1-\frac{2M}{r}\right) \left( 1+\frac{\ell }{2 r-3 M}\right) \end{aligned}$$
(57)
$$\begin{aligned} \rho= & {} -\frac{\ell M}{8 \pi r^2 (3 M-2 r)^2} \end{aligned}$$
(58)
$$\begin{aligned} p_{r}= & {} -\frac{\ell }{24 \pi M r^2-16 \pi r^3} \end{aligned}$$
(59)
$$\begin{aligned} p_{\perp }= & {} \frac{\ell (M-r)}{8 \pi r^2 (3 M-2 r)^2} \end{aligned}$$
(60)

The continuity of the radial pressure requires

$$\begin{aligned} a_{2}=-\frac{128 a_{3} M^6+3 l+9 M}{96 M^5}, \end{aligned}$$
(61)

while the continuity of the first fundamental form is automatically fulfilled.

In Fig. 1 we show how the radial metric \(e^{-\uplambda }\) as a function of r for the specific values in the legend.

Fig. 1
figure 1

\(e^{-\uplambda }\) for \(M=1\) \(a_{3}=0.01\) and \(l=-1\)

Note that, as in Ref. [19], the metric function \(e^{-\uplambda }\) is smoothly continuous though the stellar surface. In Fig. 2 we show the matter sector for the specific values in the legend where we note that not only the radial pressure but the density are continuous though the surface \(\Sigma \) in accordance with the results previously reported in [19]. In addition, note that the cusp-like matching of the tangential defines the surface of the star.

Fig. 2
figure 2

\(\rho \) (black line), \(p_{r}\) (blue dashed line) and \(p_{\perp }\) (red dotted line) for \(M=1\) \(a_{3}=0.01\) and \(l=-1\)

5.2 Exterior 2

In this case we consider the MGD-deformed vacuum (see Ref. [29] for details)

$$\begin{aligned} e^{\nu }= & {} 1-\frac{2M}{r} \end{aligned}$$
(62)
$$\begin{aligned} e^{-\uplambda }= & {} \left( 1-\frac{2M}{r}\right) \left( 1+\frac{\beta }{(r+M)^{2(a-1)}}\right) \end{aligned}$$
(63)
$$\begin{aligned} \rho= & {} \frac{\beta (M+r)^{1-2 a} ((3-4 a) M+(2 a-3) r)}{8 \pi r^2} \end{aligned}$$
(64)
$$\begin{aligned} p_{r}= & {} \frac{\beta (M+r)^{2-2 a}}{8 \pi r^2} \end{aligned}$$
(65)
$$\begin{aligned} p_{\perp }= & {} \beta \frac{(a-1) (M-r) (M+r)^{1-2 a}}{8 \pi r^2}, \end{aligned}$$
(66)

where \(a>1\) to ensure asymptotic flatness and \(\beta \) is the decoupling parameter of the exterior geometry. The continuity of the radial pressure leads to

$$\begin{aligned} a_{2}= & {} -\frac{1}{32} 3^{-2 a-1} M^{-2 a-4}\nonumber \\&\quad (128\ 3^{2 a} a_{3} M^{2 a+5}+3^{2 a+2} M^{2 a}+27 \beta M^2), \end{aligned}$$
(67)

and, as in the previous case the continuity of the first fundamental form is satisfied by construction.

In Fig. 3 we show how the radial metric \(e^{-\uplambda }\) as a function of r for the specific values in the legend. Again, it is noticeable the smooth behaviour of the metric function.

Fig. 3
figure 3

\(e^{-\uplambda }\) for \(M=1\) \(a_{3}=0.01\), \(\beta =-9\) and \(a=2\)

In Fig. 4 we show the matter sector as a function of r for the specific values in the legend and again, we note the continuity in both the radial pressure and the density. However, in contrast to the previous case, the tangential pressure is discontinuous at the surface.

Fig. 4
figure 4

\(\rho \) (black line), \(p_{r}\) (blue dashed line) and \(p_{\perp }\) (red dotted line) for \(M=1\) \(a_{3}=0.01\), \(\beta =-9\) and \(a=2\)

6 Conclusions

In this work we constructed a new ultracompact aniso-tropic star solution in the framework of the Gravitational Decoupling by the Minimal Geometric Deformation approach. As the auxiliary condition to close the system of differential equations we used the complexity factor of self-gravitating fluids. Inspired by the results found in [19], we proposed a polynomial complexity and obtained that the interior solution obtain can be well-matched to two different modified vacuum. The solution obtained here, contains the reported in Ref. [19] as an special case. Ore findings here indicate that the solution fulfill the requirements of a stable configuration, namely, (i) the solution is regular at the origin, (ii) the mass and the radius are well defined, (iii) the density is positive everywhere and decreases monotonically to the surface and (iv) the radial pressure is non-uniform and monotonic as expected.

Although we only analysed the case \(N=3\) here, it can be easily shown that higher orders can also provide suitable gravastar models for particular values of the free parameters involved. However, it should be interesting to consider higher orders in the polynomial complexity matched to different modified vacuum to explore to what extend the model leads to well behaved solutions.