1 Introduction

The gravitational decoupling (GD) was introduced in Ref. [1] as a systematic approach to study static and spherically symmetric self-gravitating systems governed by the Einstein field equationsFootnote 1

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}\,R\, g_{\mu \nu } = k^2\,\tilde{T}_{\mu \nu } , \end{aligned}$$
(1)

and containing (at least) two sources which only interact gravitationally. In its extended version, both time and radial components of the metric are affected and these sources could exchange energy–momentum to provide the decoupling of Einstein’s equations [2]. The total energy–momentum tensor can thus be expressed as

$$\begin{aligned} \tilde{T}_{\mu \nu } = T_{\mu \nu } + \alpha \,\theta _{\mu \nu } , \end{aligned}$$
(2)

where the constant \(\alpha \) is here introduced for tracking the effects of \(\theta _{\mu \nu }\) with respect to \(T_{\mu \nu }\). As we will review briefly in the next Section, the key fact is that Eq. (1) can be split (continuously in \(\alpha \)) into two sets of equations, one given by the Einstein field equations for the first source \(T_{\mu \nu }\) (obtained in the limit \(\alpha =0\)) and a set of “quasi”-Einstein equations (proportional to \(\alpha \)) which describes the changes introduced by adding the second source \(\theta _{\mu \nu }\) (fully recovered for \(\alpha =1\)). The way this split is implemented is by deforming the metric functions which solve the first set, the deformation being then determined by the second set provided \(\theta _{\mu \nu }\) is also given.

In fact, the GD is a generalization of the minimal geometric deformation which was developed in Refs. [3, 4] in the context of the Randall-Sundrum brane-world [5, 6], where the geometric deformation is induced by the existence of extra spatial dimensions and \(\alpha \) is naturally proportional to the inverse of the brane tension [7,8,9,10,11,12,13,14,15,16,17,18,19] (for some resent applications see also [20,21,22,23]). The main applications of this approach so far [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] were to build new solutions of Eq. (1) with \(\alpha =1\) starting from known solutions generated by \(T_{\mu \nu }\) alone (that is, with \(\alpha =0\)). In order to complete this construction, one needs to make assumptions about the second source, for instance by fixing the equation of state for the tensor \(\theta _{\mu \nu }\) (for the application of the GD beyond general relativity, see for instance Refs. [49, 50]).

In this paper we are instead interested in the different purpose of showing that the GD can be used to directly control specific physical properties of a self-gravitating system. For the sake of simplicity, we shall employ the minimal geometric deformation (MGD) in which only the radial component of the metric is modified and there is no direct exchange of energy between the two energy–momentum tensors in Eq. (2). We shall then require that the complete system (for \(\alpha =1\)) enjoys specific properties, equal or different from those of the case \(\alpha =0\). In particular, we shall first require that the anisotropic pressure for \(\alpha =0\) becomes isotropic for \(\alpha =1\) in Sect. 3 and impose conditions on the complexity factor which was recently introduced in Ref. [51] in Sect. 4. It is important to remark that the MGD does not involve any perturbative expansion and all results will be exact for all values of \(\alpha \). Finally we summarise our conclusions in Sect. 5.

2 Gravitational decoupling of Einstein’s equations

We briefly review how the (M)GD works by starting from the standard Einstein field equations (1) with two sources (2),

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}\,R\, g_{\mu \nu } = k^2 ({T}_{\mu \nu }+\alpha \,\theta _{\mu \nu } ) , \end{aligned}$$
(3)

where the parameter \(\alpha \) will be set to 0 (respectively 1) when we want to discard (fully include) the second source \(\theta _{\mu \nu }\). Since the Einstein tensor in Eq. (3) satisfies the Bianchi identity, the total source in Eq. (2) must be conserved, that is

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

For static spherically symmetric systems, the metric components \(g_{\mu \nu }\) in Schwarzschild-like coordinates read

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

where \(\nu =\nu (r)\) and \(\lambda =\lambda (r)\) are functions of the areal radius r only and \(d\Omega \) denotes the usual solid angle measure. The metric (5) must satisfy the Einstein equations (3) which, in terms of the two sources in (2), explicitly read

$$\begin{aligned} k^2 ( T_0^{\ 0}+\alpha \,\theta _0^{\ 0} )= & {} \frac{1}{r^2} [ 1- {e^{-\lambda }} (1-r\,\lambda ' ) ] \end{aligned}$$
(6)
$$\begin{aligned} k^2 (T_1^{\ 1}+\alpha \,\theta _1^{\ 1} )= & {} \frac{1}{r^2} [ 1- e^{-\lambda } (1+r\,\nu ' ) ]\end{aligned}$$
(7)
$$\begin{aligned} k^2 (T_2^{\ 2}+\alpha \,\theta _2^{\ 2} )= & {} \frac{e^{-\lambda }}{4} ( \lambda '\nu ' -2\,\nu ''-\nu '^2 ) \nonumber \\&- \frac{e^{-\lambda }}{2\,r} ( \nu '-\lambda ' ) , \end{aligned}$$
(8)

where \(f'\equiv \partial _r f\) and \(\tilde{T}_3^{{\ 3}}=\tilde{T}_2^{\ 2}\) due to the spherical symmetry. The conservation equation (4) is a linear combination of Eqs. (6)–(8) and reads

$$\begin{aligned} 0= & {} (\tilde{T}_1^{\ 1} )' - \frac{\nu '}{2} (\tilde{T}_0^{\ 0}-\tilde{T}_1^{\ 1} ) - \frac{2}{r} (\tilde{T}_2^{\ 2}-\tilde{T}_1^{\ 1} )\nonumber \\= & {} ({T}_1^{\ 1} )' - \frac{\nu '}{2} ({T}_0^{\ 0}-{T}_1^{\ 1} ) - \frac{2}{r} ({T}_2^{\ 2}-{T}_1^{\ 1} ) \nonumber \\&+\,\alpha \left[ ({\theta }_1^{\ 1} )' - \frac{\nu '}{2} ({\theta }_0^{\ 0}-{\theta }_1^{\ 1} ) - \frac{2}{r} ({\theta }_2^{\ 2}-{\theta }_1^{\ 1} ) \right] . \end{aligned}$$
(9)

We can clearly identify in Eqs. (6)–(8) an effective density

$$\begin{aligned} \tilde{\rho } = T_0^{\ 0} +\alpha \,\theta _0^{\ 0} \equiv \rho +\rho _\theta , \end{aligned}$$
(10)

an effective radial pressure

$$\begin{aligned} \tilde{p}_{r} = -T_1^{\ 1}-\alpha \,\theta _1^{\ 1} \equiv p_r + p_{\theta r} , \end{aligned}$$
(11)

and an effective tangential pressure

$$\begin{aligned} \tilde{p}_{t} = -T_2^{\ 2}-\alpha \,\theta _2^{\ 2} \equiv p_t + p_{\theta t} . \end{aligned}$$
(12)

These definitions clearly lead to the total anisotropy

$$\begin{aligned} \tilde{\Pi } \equiv \tilde{p}_{t}-\tilde{p}_{r} \equiv \Pi +\Pi _\theta , \end{aligned}$$
(13)

where

$$\begin{aligned} \Pi = p_t-p_r \end{aligned}$$
(14)

measures the anisotropy generated by the first source like \(\Pi _\theta \) does for the second one.

We will now implement the GD by considering a solution to Eqs. (6)–(9) with \(\alpha =0\), which we formally write as

$$\begin{aligned} ds^{2} = e^{\xi (r)}\,dt^{2} -e^{\mu (r)}\,dr^{2} - r^{2}\,d\Omega ^2 , \end{aligned}$$
(15)

where

$$\begin{aligned} e^{-\mu (r)} \equiv 1-\frac{k^2}{r}\int _0^r x^2\,T_0^{\, 0}(x)\, dx = 1-\frac{2\,m(r)}{r} \end{aligned}$$
(16)

is the standard general relativistic expression containing the Misner–Sharp mass function \(m=m(r)\). The general effects of the second source \(\theta _{\mu \nu }\) can then be encoded in the geometric deformation undergone by the geometric functions \(\xi \rightarrow \nu \,=\,\xi +\alpha \,g\) and

$$\begin{aligned} e^{-\mu } \rightarrow e^{-\lambda }=e^{-\mu }+\alpha \,f . \end{aligned}$$
(17)

From now on we just consider the simplest case of the MGD with a minimal deformation \(g(r) = 0\), hence only the radial metric component will be modified and \(\nu =\xi \). With the decomposition (17), the Einstein equations (6)–(8) split into two coupled sets: (i) the standard Einstein field equations for the energy–momentum tensor \(T_{\mu \nu }\) and metric (15),

$$\begin{aligned} \rho= & {} \frac{1}{k^2\,r^2} [ 1- e^{-\mu } (1-r\,\mu ' ) ]\end{aligned}$$
(18)
$$\begin{aligned} p_r= & {} -\frac{1}{k^2\,r^2} [ 1 - e^{-\mu } ( 1+r\,\xi ' ) ]\end{aligned}$$
(19)
$$\begin{aligned} p_t= & {} -\frac{e^{-\mu }}{4\,k^2} \left( \mu '\xi '-2\,\xi ''-\xi '^2 -2\,\frac{\xi '-\mu '}{r}\right) , \end{aligned}$$
(20)

with the conservation equation

$$\begin{aligned} p_r' + \frac{\xi '}{2} (\rho +p_r ) = \frac{2\,\Pi }{r} ; \end{aligned}$$
(21)

and (ii) the quasi-Einstein field equations for the second source \(\theta _{\mu \nu }\),

$$\begin{aligned} \rho _\theta= & {} -\frac{\alpha \,f}{k^2\,r^2} \left( 1 +\frac{r\,f'}{f} \right) \end{aligned}$$
(22)
$$\begin{aligned} p_{\theta r}= & {} \frac{\alpha \,f}{k^2\,r^2} (1+r\,\xi ' )\end{aligned}$$
(23)
$$\begin{aligned} p_{\theta t}= & {} \frac{\alpha \,f}{4\,k^2} \left[ 2\,\xi ''+\xi '^2+2\frac{\xi '}{r} + \frac{f'}{f} \left( \xi '+\frac{2}{r}\right) \right] , \end{aligned}$$
(24)

whose conservation equation likewise reads

$$\begin{aligned} p_{\theta r}' + \frac{\xi '}{2} (\rho _\theta +p_{\theta r} ) = \frac{2\,\Pi _\theta }{r} . \end{aligned}$$
(25)

3 Isotropization of compact sources

In the previous section, we noticed that the total anisotropy \(\tilde{\Pi }\) in Eq. (13) can be different from the anisotropy \(\Pi \) generated by the source \(T_{\mu \nu }\). We can therefore consider an anisotropic system (18)–(21) generated by \(T_{\mu \nu }\) with \(\Pi \not =0\) which is transformed into the isotropic system (6)–(9) with \(\tilde{\Pi }=0\) as a consequence of adding the source \(\theta _{\mu \nu }\). This change can be formally controlled by varying the parameter \(\alpha \), with \(\alpha =0\) representing the anisotropic system (18)–(21), and \(\alpha =1\) representing the isotropic system (6)–(9), for which \(\tilde{\Pi }=0\), or

$$\begin{aligned} \Pi _\theta \equiv {\theta }_1^{\ 1} - {\theta }_2^{\ 2} = -\Pi . \end{aligned}$$
(26)

Replacing Eqs. (23) and (24) in the condition (26) yields a differential equation for the geometric deformation in Eq. (17), namely

$$\begin{aligned} \frac{f'}{4\,k^2}\left( \xi '+\frac{2}{r}\right) +\frac{f}{4\,k^2}\left( 2\,\xi ''+\xi '^2-\frac{2\,\xi '}{r}-\frac{4}{r^2}\right) +\Pi =0 . \end{aligned}$$
(27)

As an example, we will implement the above approach in order to isotropize the compact self-gravitating system sustained only by tangential stresses described by

$$\begin{aligned} e^{\xi }= & {} B^2 \left( 1+\frac{r^2}{A^2}\right) , \end{aligned}$$
(28)
$$\begin{aligned} e^{-\mu }= & {} \frac{A^2+r^2}{A^2+3\,r^2} ,\end{aligned}$$
(29)
$$\begin{aligned} \rho= & {} \frac{6 (A^2+r^2 )}{k^2 (A^2+3\,r^2 )^2} ,\end{aligned}$$
(30)
$$\begin{aligned} p_t= & {} \frac{3\,r^2}{k^2\,(A^2+3\,r^2)^2} ,\end{aligned}$$
(31)
$$\begin{aligned} p_r= & {} 0 , \end{aligned}$$
(32)

where \(0\le r \le R\) and \(r=R\) defines the surface of the compact object. A direct interpretation of this class of solutions (albeit not unique, as pointed out in Ref. [52]) is in terms of a cluster of particles moving in randomly oriented circular orbits [53]. The constants A and B can be determined from the matching conditions between this interior solution and the exterior metric for \(r>R\). If we assume the exterior is the Schwarzschild vacuum,

$$\begin{aligned} e^{\xi (R)}= & {} 1-\frac{2\,M}{R}\end{aligned}$$
(33)
$$\begin{aligned} e^{-\mu (R)}= & {} 1-\frac{2\,M}{R}\end{aligned}$$
(34)
$$\begin{aligned} p_r(R)= & {} 0 \end{aligned}$$
(35)

are the necessary and sufficient conditions for a smooth matching of the two metrics. This yields

$$\begin{aligned} \frac{A^2}{R^2} = \frac{R-3\,M}{M} , \quad B^2=1-\frac{3\,M}{R} , \end{aligned}$$
(36)

where \(R>3\,M\) or \(M/R<1/3\) in order to have \(A^2>0\) and \(B^2>0\).

Plugging the solution (28)–(32) in the differential equation (27), we obtain the geometric deformation

$$\begin{aligned} f(r) = \frac{r^2 (A^2+r^2 )}{A^2+2\,r^2} \left( \frac{1}{A^2+3\,r^2} -\frac{1}{\ell ^2}\right) , \end{aligned}$$
(37)

where \(\ell \) is an integration constant with dimensions of a length. Using the metric functions (17) and (28) in the field equation (7), the effective radial pressure in (11) is expressed as

$$\begin{aligned} \tilde{p}_r = \frac{\alpha \,f(r) (A^2+3\,r^2 )}{k^2\,r^2 (A^2+r^2 )} . \end{aligned}$$
(38)

Hence, the matching condition (35) for the outer Schwarzschild space-time yields

$$\begin{aligned} f(R)=0, \end{aligned}$$
(39)

which in turn leads to

$$\begin{aligned} \ell ^2 = {A^2+3\,R^2} , \end{aligned}$$
(40)

and the deformation takes the final form

$$\begin{aligned} f(r)= \frac{3 \,r^2 (A^2+r^2 ) (R^2-r^2 )}{ (A^2+2\, r^2 ) (A^2+3\,r^2 ) (A^2+3\, R^2 )} \end{aligned}$$
(41)

Notice that the Misner–Sharp mass function \(\tilde{m}\) of the system (6)–(8) is related with the mass function (16) of the system (18)–(20) by the simple expression

$$\begin{aligned} \frac{r}{2} (1-e^{-\lambda } ) \equiv \tilde{m}(r) = m(r)-\frac{\alpha \,r\,f(r)}{2} . \end{aligned}$$
(42)

Hence, a direct consequence of (39) is that the total mass is the same for both cases, namely

$$\begin{aligned} \tilde{m}(R)=m(R)=M, \end{aligned}$$
(43)

and therefore the values of the constants A and B remain the same as shown in (36). The deformation (41) generates an effective density

$$\begin{aligned} \tilde{\rho } (r,\alpha ) = \rho (r) - \alpha \,\frac{18\,r^8-6\,r^6\,R^2+A^6 (5\,r^2-3\,R^2 ) +2\,A^4 (11\,r^4-5\,r^2\,R^2 )+A^2 (31\,r^6-9\,r^4\,R^2 )}{k^2 (A^2+2\,r^2 )^2 (A^2+3\,r^2 )^2 (A^2+2\,R^2 )}, \end{aligned}$$
(44)

an effective radial pressure

$$\begin{aligned} \tilde{p}_r(r,\alpha ) = \frac{3\,\alpha (R^2-r^2 )}{k^2 (A^2+2 r^2 ) (A^2+3\,R^2 )}, \end{aligned}$$
(45)

and an effective tangential pressure \(\tilde{p}_t=\tilde{p}_r+\tilde{\Pi }\) where the total anisotropy is given by

$$\begin{aligned} \tilde{\Pi }(r,\alpha )=\frac{3\,(1-\alpha )\,r^2}{k^2 (A^2+3\,r^2 )^2} , \end{aligned}$$
(46)

which vanishes, by construction, for \(\alpha =1\).

The expressions (28), (42) and (10)–(46) are exact solutions of the Einstein field equations (6)–(8) for all values of \(\alpha \). We can further see that the case \(\alpha =0\) represents the anisotropic model in (28)–(32), which is continuously deformed into the isotropic case represented by \(\alpha =1\). Hence we can follow in details the isotropization process by continuously varying the parameter \(\alpha \) between these two values [see Figs 1, 2, where the effective pressure in Eq. (45) and the anisotropy in Eq. (46) are shown for a few values of \(\alpha \)].

Fig. 1
figure 1

Isotropization: the radial pressure [\(\tilde{p}\,\times \,10^3\)] for different values of the parameter \(\alpha \) for a distribution with compactness \(M/R=0.2\)

Fig. 2
figure 2

Isotropization: total anisotropy [\(\Pi \,\times \,10^3\)] for different values of the parameter \(\alpha \) for a distribution with compactness \(M/R=0.2\)

4 Complexity of compact sources

The notion of complexity for static and spherically symmetric self-gravitating systems we are interested in here was introduced recently in Ref. [51], and further extended to the dynamical case in Ref. [54] (for some applications, see e.g. Refs. [55, 56]). The main characteristic of this notion is that it assigns a zero value of the complexity factor to uniform and isotropic distributions (the least complex system).

The complexity of a given static and spherically symmetric self-gravitating system is measured by the complexity factor \(Y_{\mathrm{TF}}\), which is a scalar function defined in terms of the anisotropy \(\Pi \) and gradient \(\rho '\) of the energy-density as [51]

$$\begin{aligned} Y_{\mathrm{TF}}(r)=k^2\,\Pi (r)-\frac{k^2}{2\,r^3}\int ^r_0x^3\rho '(x)\,dx . \end{aligned}$$
(47)

It describes the influence of these two functions on the Tolman mass \(m_{\mathrm{T}}\) which, for the same distribution of matter, is defined as

$$\begin{aligned} m_{\mathrm{T}}(r) = \frac{k^2}{2}\int _0^r\,e^{(\xi +\lambda )/2} (\rho +p_r+2\,p_t ) x^2\,dx . \end{aligned}$$
(48)

The above definition gives the energy contained inside a fluid sphere of radius r, and it has a clear physical interpretation. In fact, we recall that we can write the Tolman mass as a function of the metric components in Eq. (5) as

$$\begin{aligned} m_{\mathrm{T}} = \frac{r^2\,\xi '}{2}\,e^{(\xi -\lambda )/2} \end{aligned}$$
(49)

and that the gravitational acceleration of a test particle, instantaneously at rest in the static gravitational field (5), is given by

$$\begin{aligned} a=-\frac{e^{-\xi /2}\,m_{\mathrm{T}}}{r^2} , \end{aligned}$$
(50)

which shows that \(m_{\mathrm{T}}\) is the active gravitational mass (for more details, see Refs. [52, 57]).

In terms of the complexity factor, we can write the Tolman mass as

$$\begin{aligned} m_{\mathrm{T}} = M_{\mathrm{T}}\left( \frac{r}{R}\right) ^3 +r^3\int ^R_r\frac{e^{(\xi +\lambda )/2}}{x}\,Y_{\mathrm{TF}}\,dx , \end{aligned}$$
(51)

where \(M_{\mathrm{T}}\) represents the total Tolman mass of an isotropic and uniform stellar system of the same radius R. Hence, we see that \(Y_{\mathrm{TF}}\) can quantify the departure of the Tolman mass \(m_{\mathrm{T}}\) of a given system from the Tolman mass \(M_{\mathrm{T}}\) of a uniform isotropic fluid when the anisotropy and density gradient do not vanish. It is in fact clear from Eq. (47) that a uniform isotropic fluid will have zero complexity factor, but this does not mean that a stellar configuration with vanishing complexity factor is uniform and isotropic.

From Eq. (47) we see that the complexity factor for the system (6)–(8) takes the form

$$\begin{aligned} \tilde{Y}_{\mathrm{TF}}= & {} k^2\,\tilde{\Pi }-\frac{k^2}{2\,r^3}\int ^r_0\tilde{r}^3\tilde{\rho }'\,d\tilde{r} \nonumber \\= & {} k^2\,{\Pi }-\frac{k^2}{2\,r^3}\int ^r_0\tilde{r}^3{\rho }'\,d\tilde{r} \nonumber \\&+\,k^2\,{\Pi }_\theta -\frac{k^2}{2\,r^3}\int ^r_0\tilde{r}^3{\rho _\theta }'\,d\tilde{r} , \end{aligned}$$
(52)

which we can write as

$$\begin{aligned} \tilde{Y}_{\mathrm{TF}}={Y}_{\mathrm{TF}}+{Y}^{\theta }_{\mathrm{TF}} , \end{aligned}$$
(53)

where \({Y}_{\mathrm{TF}}\) and \({Y}^{\theta }_{\mathrm{TF}}\) are the complexity factors corresponding to the systems (18)–(20) and (22)–(24) respectively. We conclude that the complexity factor is an additive quantity. Hence, the complexity factor of a gravitational system formed by two coexisting gravitational sources, \(T_{\mu \nu }\) and \(\theta _{\mu \nu }\), will be the sum of the complexity factors of the two sources. We remark that this result is independent of the MGD described in Sect. 2, but it implies that we can employ the GD in order to relate two different systems with the same or different complexity factors.

4.1 Two systems with the same complexity factor

We first consider a case in which the complexity factor \({Y}_\mathrm{TF}\) associated with the energy–momentum tensor \(T_{\mu \nu }\) remains invariant after we add the second source \(\theta _{\mu \nu }\), that is \(\tilde{Y}_{\mathrm{TF}}={Y}_{\mathrm{TF}}\), and therefore \({Y}^{\theta }_{\mathrm{TF}}=0\) or

$$\begin{aligned} \Pi _\theta = \frac{1}{2\,r^3}\int ^r_0\tilde{r}^3\rho _\theta '\,d\tilde{r} . \end{aligned}$$
(54)

Using Eqs. (22)–(24) yields

$$\begin{aligned} \frac{1}{2\,r^3}\int ^r_0\tilde{r}^3\rho _\theta '\,d\tilde{r} = \frac{\alpha }{k^2} \left( \frac{f}{r^2}-\frac{f'}{2\,r}\right) \end{aligned}$$
(55)

and the condition (54) becomes the first order differential equation

$$\begin{aligned} f' \left( \xi '+\frac{4}{r}\right) +f \left( 2\,\xi ''+\xi '^2-\frac{2\, \xi '}{r}-\frac{8}{r^2}\right) =0 . \end{aligned}$$
(56)

Any solution of Eq. (56) can be used to determine the source \(\theta _{\mu \nu }\) through (22)–(24). In other words, given a solution with metric functions \(\xi \) and \(\mu \) for the Einstein field equations (18)–(20), we can find a second solution to (6)–(8) with the same complexity factor by imposing the condition (54). Like with isotropization in Sect. 3, the parameter \(\alpha \) can be implemented to continuously follow this process by identifying the original solution with the case \(\alpha =0\) and the final solution with \(\alpha =1\). However, since Eq. (56) does not contain \(\alpha \), we can now actually require that the complexity remains the same for all values of \(\alpha \). By implementing this procedure we will moreover find that the matching conditions (33)–(35) play a fundamental role in the determination of the final result in that the condition \(\tilde{Y}_{\mathrm{TF}}={Y}_{\mathrm{TF}}\) can only be satisfied if we change the compactness of the system.

Let us start by considering as solution to (18)–(20) the Tolman IV metric for perfect fluids [58],

$$\begin{aligned} e^{\xi }= & {} B^2 (1+\frac{r^2}{A^2} ) \end{aligned}$$
(57)
$$\begin{aligned} e^{-\mu }= & {} \frac{ (C^2-r^2 ) (A^2+r^2 )}{C^2 (A^2+2\,r^2)}, \end{aligned}$$
(58)

which is generated by the density

$$\begin{aligned} \rho = \frac{3\,A^4+A^2 (3\,C^2+7\,r^2 )+2\, r^2 (C^2+3 \,r^2 )}{k^2\,C^2 (A^2+2\,r^2 )^2} , \end{aligned}$$
(59)

and isotropic pressure

$$\begin{aligned} p = \frac{C^2-A^2-3\,r^2}{k^2\,C^2 (A^2+2\,r^2 )} . \end{aligned}$$
(60)

The constants A, B and C are again determined from the matching conditions (33)–(35), which yield the same values (36) and

$$\begin{aligned} \frac{C^2}{R^2} = \frac{R}{M} . \end{aligned}$$
(61)

From the definition (47) we obtain the complexity factor

$$\begin{aligned} Y_{\mathrm{TF}} = \frac{ (A^2+2\, C^2 )r^2}{C^2 (A^2+2\, r^2 )^2} . \end{aligned}$$
(62)

From the metric function (57), we can then compute the deformation which keeps this factor unchanged by solving Eq. (56), and obtain

$$\begin{aligned} f(r) = \frac{r^2 (A^2+r^2 )}{\ell ^2 (2 \,A^2+3\,r^2 )} , \end{aligned}$$
(63)

where \(\ell \) is an integration constant (with dimensions of length). According to (17), the new radial metric component therefore reads

$$\begin{aligned} e^{-\lambda } = \frac{ (C^2-r^2 ) (A^2+r^2 )}{C^2 (A^2+{2\,r^2} )} +\frac{\alpha \,r^2 (A^2+r^2 )}{\ell ^2 (2 \,A^2+3\,r^2 )} \end{aligned}$$
(64)

and generates an effective density

$$\begin{aligned} \tilde{\rho }(r,\alpha ,\ell ) = \rho (r) -\frac{\alpha (6\, A^4+13\, A^2\, r^2+9\,r^4 )}{\ell ^2\,k^2 (2\, A^2+3\, r^2 )^2} , \end{aligned}$$
(65)

an effective radial pressure

$$\begin{aligned} \tilde{p}_r(r,\alpha ,\ell ) = p(r) +\frac{\alpha (A^2+3\, r^2 )}{\ell ^2\,k^2 (2 \,A^2+3 \,r^2 )} , \end{aligned}$$
(66)

and an effective tangential pressure \(\tilde{p}_t=\tilde{p}_r+\tilde{\Pi }\) where the anisotropy is given by

$$\begin{aligned} \tilde{\Pi }(r,\alpha ,\ell ) = \frac{\alpha \, A^2\, r^2}{\ell ^2\,k^2 (2\, A^2+3\,r^2 )^2} . \end{aligned}$$
(67)

The expressions (57) and (64)–(67) describe an exact solution of the Einstein field equations (6)–(8). This is a new anisotropic version of the Tolman IV solution (57)–(60), whose complexity factor \(\tilde{Y}_{\mathrm{TF}}\) is formally the same as that in Eq. (62). However, after imposing the matching conditions (33)–(35) to determine the new values for A, B and C in the solution (57) and (64)–(67), we find that A and B have the same expressions as shown in Eq. (36), but C is promoted to a function of the anisotropic parameter \(\alpha \) (and the length \(\ell \)), namely

$$\begin{aligned} C^2_{\alpha \ell } = \frac{R^3}{M} -\frac{\alpha (A^2+2\, R^2 ) (A^2+3 \,R^2 )^2}{\alpha (A^4+5\,A^2\,R^2+6\,R^4 ) +\ell ^2 (2\,A^2+3\,R^2 )} , \end{aligned}$$
(68)

and the complexity factor becomes

$$\begin{aligned} \tilde{Y}_{\mathrm{TF}}(r,\alpha ,\ell ) = \frac{ [A^2+2\, C^2_{\alpha \ell } ]r^2}{C^2_{\alpha \ell } (A^2+2 r^2 )^2} . \end{aligned}$$
(69)

Comparing the expressions (62) and (69) shows that varying \(\alpha \) in fact changes the complexity factor (see Fig. 3) unless we also change the mass \(M\rightarrow M_{\alpha \ell }\) and the radius \(R\rightarrow R_{\alpha \ell }\) in such a way that

$$\begin{aligned} C_{\alpha \ell }(M_{\alpha \ell },R_{\alpha \ell }) = C(M,R) = \frac{R^3}{M} . \end{aligned}$$
(70)

In the above equation for \(M_{\alpha \ell }\) and \(R_{\alpha \ell }\), we can set \(\alpha =1\) without loss of generality, but we are still left with the freedom to set the arbitrary length scale \(\ell \). This means that we can generate a continuous family of systems with different mass \(M_\ell \) and radius \(R_\ell \) but the same total complexity factor \(Y_{\mathrm{TF}}\) in Eq. (62).

Fig. 3
figure 3

Complexity factor [\(\tilde{Y}_{\mathrm{TF}}\times 10\)] for different values of the parameter \(\alpha \) starting from the Tolman IV isotropic solution (\(\alpha =0\))

4.2 Generating solutions with zero complexity

We will now show how one can build a solution with \(\tilde{Y}_{\mathrm{TF}}=0\) starting from a first solution with \({Y}_{\mathrm{TF}}\ne 0\). According to Eq. (53), we can therefore require the condition

$$\begin{aligned} \tilde{Y}_{\mathrm{TF}} = Y_{\mathrm{TF}} + k^2\,{\Pi }_\theta -\frac{k^2}{2\,r^3} \int ^r_0\tilde{r}^3{\rho _\theta }'\,d\tilde{r}=0 , \end{aligned}$$
(71)

for \(\alpha =1\).Footnote 2 Using Eqs. (22)–(24) in the condition (71), we obtain the first order differential equation for the geometric deformation

$$\begin{aligned} \frac{f'}{4} \left( \xi '+\frac{4}{r}\right) +\frac{f}{4} \left( 2 \,\xi ''+\xi '^2-\frac{2\,\xi '}{r}-\frac{8}{r^2}\right) +{Y_{\mathrm{TF}}} =0 , \end{aligned}$$
(72)

whose solution can be used to generate a system with vanishing complexity factor \(\tilde{Y}_{\mathrm{TF}}=0\) for \(\alpha =1\).

Fig. 4
figure 4

Radial pressure [\(\tilde{p}\times 10^3\)] for the Tolman IV solution (\(Y_{\mathrm{TF}}\ne 0\)) and its anisotropic version with \(\tilde{Y}_{\mathrm{TF}}=0\) for a distribution with compactness \(M/R=0.2\)

Let us consider again the Tolman IV solution (57)–(60). Using the metric function (57) and the complexity factor (62), Eq. (72) can be solved exactly to yield

$$\begin{aligned} f = \frac{r^2 (A^2+r^2 )}{\ell ^2 (2\,A^2+3\,r^2 )} \left[ 1 + \frac{\ell ^2 (A^2+2\,C^2 )}{2 \,C^2(A^2+2 r^2 )} \right] , \end{aligned}$$
(73)

where \(\ell \) is an arbitrary integration constant with dimensions of a length. The corresponding new radial metric component will change the complexity factor in Eq. (62) to

$$\begin{aligned} \tilde{Y}_{\mathrm{TF}}(r,\alpha ) = (1-\alpha )\, \frac{ (A^2+2\,C^2 )r^2}{C^2 (A^2+2\, r^2 )^2} , \end{aligned}$$
(74)

which precisely interpolates continuously between the original value (for \(\alpha =0\)) and vanishing complexity (for \(\alpha =1\)). Note that the arbitrary scale \(\ell \) does not appear explicitly in Eq. (74). However, it will affect the value of the constant C via the matching conditions like in the previous case.

For \(\alpha =1\), we can determine all relevant quantities explicitly. The matching conditions (33)–(35) with the outer Schwarzschild vacuum yield the same A and B shown in Eq. (36), while C is now given by

$$\begin{aligned} C^2 = \frac{3\,\ell ^2 (A^2+3\, R^2 )}{2 (A^2+3\, R^2+3\,\ell ^2 )} . \end{aligned}$$
(75)

The radial metric component then takes the final form

$$\begin{aligned} e^{-\lambda } = \frac{ (A^2+r^2 ) (2\,A^2-3\, r^2+6\, R^2 )}{ (2\,A^2+3\,r^2 ) (A^2+3\, R^2 )} , \end{aligned}$$
(76)

the effective radial pressure reads (see also Fig. 4)

$$\begin{aligned} \tilde{p}_r = \frac{9 (R^2-r^2 )}{k^2 (2\, A^2+3\, r^2 ) (A^2+3 R^2 )} , \end{aligned}$$
(77)

the effective density is

$$\begin{aligned} \tilde{\rho } = \frac{3 [8\, A^4+2\, A^2 (7\,r^2+3\, R^2 )+3\, r^2 (3\,r^2+R^2 ) ]}{k^2 (2\, A^2+3\, r^2 )^2 (A^2+3 R^2 )} , \end{aligned}$$
(78)

and the effective tangential pressure \(\tilde{p}_t=\tilde{p}_r+\tilde{\Pi }\), where the anisotropy is given by

$$\begin{aligned} \tilde{\Pi } = -\frac{3\, r^2 (2\, A^2+3\,R^2 )}{k^2 (2\, A^2+3\,r^2 )^2 (A^2+3\,R^2 )} . \end{aligned}$$
(79)

The main difference with respect to the case in Sect. 4.1 is that the complexity (74) vanishes for \(\alpha =1\) regardless of M and R, and therefore for any values of \(\ell \): we have mapped the Tolman IV fluid of given mass M, radius R and complexity (62) into a whole family of systems with the same mass M and radius R but vanishing complexity parametrized by the length scale \(\ell \).

5 Conclusions

The GD approach is a very effective way to investigate self-gravitating systems with sources described by more than one (spherically symmetric) energy–momentum tensor. Given an exact solution generated by one of such sources, it will allow one to obtain exact solutions with more sources. In most of the previous papers, new solutions were obtained by assuming particular equations of state for the added energy–momentum tensors, or field equations for the added matter sources. In this work we have instead considered the different task of employing the GD in order to impose specific physical properties satisfied by the whole system.

In order to keep the presentation simpler, we just considered two energy–momentum tensors and the MGD in which only the radial component of the metric is modified, although the approach can be straightforwardly generalised to more sources and to the GD in which the time component of the metric is deformed as well. The specific properties we required were isotropic pressure starting from the anisotropic solution (28)–(32) and control over the complexity factor starting from the Tolman IV solution (57)–(60). The examples we provided are mostly meant to illustrate the flexibility and effectiveness of our procedure and different physical requirements could indeed be demanded.