1 Introduction

An interesting problem for both, mathematicians and physicists, is to find new analytical solutions of Einstein’s equations. This is not an easy task because, in general, it corresponds to a system of coupled differential equations. Moreover, in order to be a realistic solution, it must satisfy certain conditions for physical acceptability. For these reasons, most of the known solutions to Einstein’s equations in the literature, are related to specific restrictions about the geometry of the space-time or particular distributions of matter (like the isotropic perfect fluid) [1,2,3].

Recently, a method was discovered in the context of Randall–Sundrum Brane World [4, 5] named Minimal Geometric Deformation (MGD) [6, 7]. It has many different applications [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25] and it allows us to find new analytical solutions to Einstein’s equations by decoupling gravitational sources in GR [26]. This solution could describe the inner and outer regions of compact objects, black holes and the coupling of the Einstein’s equation with a scalar field, among many other possibilities. It is important to mention that these solutions are in general anisotropic in the pressures. This is really important when dealing with an internal solution. There are many theoretical reasons to consider local anisotropy of the pressures [27,28,29,30] in order to describe more realistic gravitational objects. In [31] we found 2 new families of anisotropic solutions, and we obtained an interval of values where the free parameters shall dwell in order to reproduce a physically acceptable solution. There are a good number of references that shows the efficiency of this method to obtain useful solutions to describe realistic systems that considers anisotropy in the pressures [32,33,34,35,36,37]. However, MGD requires spherical symmetry, and considers solutions of Einstein’s equations whose line element, is written in Schwarzschild’s coordinates (also known by the name of canonical coordinates).

Nevertheless, there are other known exact solutions of Einstein’s equations written in other coordinates systems. In some of these cases, the transformation to move to the Schwarzschild coordinates is not always well defined. This becomes evident when we work in isotropic coordinates. It has been shown (see for example [38]) that every line element given in Schwarzschild-like coordinates can be transformed into the isotropic one, but the reverse process is not always possible. This seems to indicate that the isotropic coordinates are more general that canonical coordinates. The main feature of the isotropic line elements is that it treats the 3 spatial dimensions in the same way. Also, this system of coordinates has been adopted by physicist and astronomers, over the Schwarzschild coordinates in order to describe the solar system [39].

In this work we present two inequivalent algorithms to obtain new analytical and anisotropic solutions of Einstein’s equations, starting with known solutions in isotropic coordinates. These two algorithms are based in the same ansatz of the MGD method. However, there is no decoupling of Einstein’s equation in the first one, while in the second one, it is necessary to assume additional conditions that are not included in the MGD approach. In order to check the validity of the methods, we have chosen a known seed solution in isotropic coordinates, as Gold III [40]. We have founded four different analytical solutions. A few different algorithms that also allow us to obtain new solutions from a line element in isotropic coordinates are explained in [41,42,43]. However, our method is simpler and it will lead us, generally, to solutions with anisotropy in the pressures, which is not the case in [41].

This paper is organized as follows: in Sect. 2 we briefly review Einstein’s equations in standard coordinates. In Sect. 3 we describe the solution-generating technique known as MGD, which is useful with line elements in Schwarzschild-like coordinates. We briefly discuss Einstein’s equations on isotropic coordinates in Sect. 4. The acceptability conditions for the solutions of Einstein’s equations are presented in the Sect. 5. In Sect. 6 we proposed two different, MGD inspired, algorithms that allow us to obtain new analytical solutions in isotropic coordinates, with anisotropy in the pressures. In order to verify the usefulness of the methods, we extend the Gold III solution to the anisotropical domain with both methods and using two different conditions. The physical acceptability conditions of the four new and exact anisotropic solutions are also discussed in Sect. 7.

2 Einstein’s equations in standard coordinates

The line element in standard coordinates, also known as Schwarzschild like coordinates, is given by

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

This metric must be a solution of Einstein’s equations

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

which take the following form

$$\begin{aligned} 8\pi T_0^0= & {} \frac{1}{r^2}-\frac{\mu }{r^2}-\frac{\mu '}{r}\ , \end{aligned}$$
(3)
$$\begin{aligned} -\,8\pi T_1^1= & {} -\frac{1}{r^2}+\mu \left( \frac{1}{r^2}+\frac{\nu '}{r}\right) \ , \end{aligned}$$
(4)
$$\begin{aligned} -\,8\pi T_2^2= & {} \frac{\mu }{4}\left( 2\nu ''+\nu '^2+\frac{2\nu '}{r}\right) +\frac{\mu '}{4}\left( \nu '+\frac{2}{r}\right) , \end{aligned}$$
(5)

where the prime indicates derivatives respect to variable r.

Finally the conservation equation, derived from the latter system of equations is

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

whose radial component lead to the equilibrium equation of the matter distribution

$$\begin{aligned} 8\pi (T_1^1)' +\frac{16\pi }{r}(T_1^1-T_2^2)+4\pi \nu ' (T_1^1-T_0^0)=0 \end{aligned}$$
(7)

3 The MGD approach

The starting point of this method is to assume that the energy-momentum tensor has the specific form

$$\begin{aligned} T_{\mu \nu }=T^{\mathrm{(PF)}}_{\mu \nu }+\alpha \,\theta _{\mu \nu }, \end{aligned}$$
(8)

where \(\alpha \) is a coupling constant and \(T^{\mathrm{(PF)}}\) is the matter-energy content associated to a perfect fluid

$$\begin{aligned} T^{\mathrm{(PF)}}_{\mu \nu }=(\rho +p)\,u_{\mu }\,u_{\nu }-p\,g_{\mu \nu }, \end{aligned}$$
(9)

with the fluid 4-velocity given by \(u^{\mu }=e^{-\nu /2}\,\delta _{0}^{\mu }\).

Now we can consider a perfect fluid solution of Einstein’s equations (\(\alpha =0\)) with a line element written in standard coordinates as (1), and define

$$\begin{aligned} \mu (r)\equiv 1-\frac{8\pi }{r}\int _0^r x^2\,\rho \, dx =1-\frac{2\,m(r)}{r}, \end{aligned}$$
(10)

which is the standard expression for the mass function in GR. The next step is to take account of the anisotropy introduced by the gravitational source \(\theta _{\mu \nu }\) in our system. This will be done by assuming that the contribution of the \(\alpha \) parameter, in the perfect fluid solution (1), is encoded in the deformations g and f of the temporal and radial metric component respectively.

$$\begin{aligned} \nu\mapsto & {} {\tilde{\nu }} = \nu +\alpha \,g, \end{aligned}$$
(11)
$$\begin{aligned} \mu\mapsto & {} {\tilde{\mu }} = \mu +\alpha \,f, \end{aligned}$$
(12)

The Minimal Geometric Deformation will be associated to the specific case where \(g=0\). In this case (\(g=0\)) is easy to check that, using (8) and (12), Einstein’s equations (3)–(5) splits in two systems. The first one coincides with Einstein’s equations system for a perfect fluid

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

with the correspondent conservation equation

$$\begin{aligned} p'+\frac{\nu '}{2}\left( \rho +p\right) = 0, \end{aligned}$$
(16)

that turns out to be Eq. (6) with the energy momentum tensor associated to a perfect fluid (9) (Eq. (8) with \(\alpha =0\)).

The second system of equations, which is not an Einstein’s equations system due to the lackness of a \(\frac{1}{r}\) on the right side of the first two equations, reads

$$\begin{aligned} 8\pi \,\theta _0^{\,0}= & {} -\frac{f^{*}}{r^2} -\frac{f^{*'}}{r} \ , \end{aligned}$$
(17)
$$\begin{aligned} 8\pi \,\theta _1^{\,1}= & {} -f^{*}\left( \frac{1}{r^2}+\frac{\nu '}{r}\right) \ , \end{aligned}$$
(18)
$$\begin{aligned} 8\pi \,\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) ,\nonumber \\ \end{aligned}$$
(19)

and the conservation equation associated with the source is

$$\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)

In order to find a solution of Einstein’s field equations for an energy-momentum tensor of the form (8) we have to solve the equations systems (13)–(15) and (17)–(19). In the case when we start with a known perfect fluid solution, then is only necessary to solve the second system. Now, in both cases there are more unknown functions that equations so additional information is required in order to solve the systems. This information can be given in the form of equation of state or other expressions that relates the physical variables of the system under study.

Finally it can be seen that redefining an energy momentum tensor \({\tilde{\theta }}_{\mu \nu }\), the system of Eqs. (17)–(19) associated to the source, can be rewritten as an Einstein’s equations system system for an anisotropic fluid. Also, it can be verified that the conservation equations (16) and (20), implies that the interaction of the perfect fluid with the source is purely gravitational.

4 Einstein’s equations in isotropic coordinates

In this paper we shall study the interior of static and spherical symmetric matter distributions, but using the line element in isotropic coordinates given by

$$\begin{aligned} ds^2=e^{\nu (r)} dt^2-\frac{1}{\omega }(dr^2+r^2d\varOmega ^2), \end{aligned}$$
(21)

in which Einstein’s equations take the following form

$$\begin{aligned} 8\pi T_0^0= & {} \omega ''-\frac{5}{4}\frac{\omega '^2}{\omega }+\frac{2}{r}\omega ' , \end{aligned}$$
(22)
$$\begin{aligned} -8\pi T_1^1= & {} \frac{1}{4}\frac{\omega '^2}{\omega }-\frac{1}{2}\omega '\nu '+\frac{\nu '\omega -\omega '}{r} , \end{aligned}$$
(23)
$$\begin{aligned} -8\pi T_2^2= & {} \frac{1}{2}\left( \frac{\omega '^2}{\omega }-\omega ''\right) +\left( \frac{\nu ''}{2}+\frac{\nu '^2}{4}+\frac{\nu '}{2r}\right) \omega \nonumber \\&- \, \frac{\omega '}{2r}. \end{aligned}$$
(24)

This coordinates seems to be more general than the Schwarzschild like ones (1), due to the fact that there is always possible to transform the line element from the standard form to the isotropic one by

$$\begin{aligned} r=A\exp \left\{ \int \mu ^{-1/2}\frac{dr_1}{r_1}\right\} , \end{aligned}$$
(25)

where \(\mu ^{-1}\) and \(r_1\) are the radial component and the coordinate associated to the line element in standard coordinates (1). However, is not always possible to perform the reverse process. Therefore, there is a chance to obtain solutions to Einstein’s equations that can not be found using the Schwarzschild like coordinates.

If we consider that \(\omega =({\tilde{A}}(r))^2\), the Eqs. (22)–(24) reads

$$\begin{aligned} 8\pi T_0^0= & {} -3({\tilde{A}}')^2+2{\tilde{A}}{\tilde{A}}'' +\frac{4}{r}{\tilde{A}}{\tilde{A}}', \end{aligned}$$
(26)
$$\begin{aligned} -8\pi T_1^1= & {} ({\tilde{A}}')^2-{\tilde{A}}{\tilde{A}}'\nu ' +\nu ' \frac{{\tilde{A}}^2}{r}-\frac{2{\tilde{A}}{\tilde{A}}'}{r}, \end{aligned}$$
(27)
$$\begin{aligned} -8\pi T_2^2= & {} ({\tilde{A}}')^2-{\tilde{A}}{\tilde{A}}''+\left( \frac{\nu ''}{2}+\frac{(\nu ')^2}{4}+\frac{\nu '}{2r}\right) {\tilde{A}}^2 \nonumber \\&-\, \frac{{\tilde{A}}{\tilde{A}}'}{r}. \end{aligned}$$
(28)

At this point is easy to see that the system (22)–(24) (or (26)–(28)) will not be decoupled if we choose an energy momentum tensor of the form (8) and consider the particular ansatz for the metric (12) of the MGD method . Nevertheless, as we will show in next sections, this conditions can be used to obtain new internal analytical solutions (physically acceptable) of Einstein’s equations in isotropic coordinates.

Finally, in order to avoid the appearance of singular behaviour of the physical variables on the surface of our distribution, we must impose the well known matching conditions between the interior and the exterior space-time geometries. The inner region is defined by the metric (21) and we will consider that the outer region is described by the vacuum Schwarzschild solution

$$\begin{aligned} ds^{2}=\left( 1-\frac{2M}{r_1}\right) dt^2 -\left( 1-\frac{2M}{r_1}\right) ^{-1}dr_1^2+r_1^2d\varOmega ^2, \nonumber \\ \end{aligned}$$
(29)

where M denote the total mass of the distributions.

Now, using (21) and (29) the matching condition takes the following form

$$\begin{aligned} e^{\nu _{\varSigma }}= & {} \left( 1-\frac{2M}{r_{1\varSigma }}\right) , \end{aligned}$$
(30)
$$\begin{aligned} \frac{r_\varSigma }{2}\left( \frac{2}{r_\varSigma }-\frac{w'}{w}\right) _\varSigma \nonumber= & {} \left( 1-\frac{2M}{r_{1\varSigma }}\right) ^{1/2}, \\ P_r(r_\varSigma )= & {} 0, \end{aligned}$$
(31)

were the subscript \(\varSigma \) indicates that the quantity is evaluated at the boundary of the distribution. Then its possible to obtain an expression for the total mass of the distribution given by

$$\begin{aligned} M = \frac{r_\varSigma }{2w^{1/2}}\left[ 1-\frac{r^2_\varSigma }{4}\left( \frac{2}{r_\varSigma }-\frac{w'}{w}\right) ^2\right] _\varSigma \end{aligned}$$
(32)

5 Physical acceptability conditions

Now, solving Einstein’s equations does not ensure that the solution will describe any physical system. Indeed, among all the known solutions of Einstein’s equations, only a part of them fulfill the physically acceptable conditions (see for example [3]).

Then, in order to ensure that the solutions of Einstein’s equations are physically acceptable, they must satisfy the following conditions

  • \(P_r\), \(P_t\) and \(\rho \) are positive and finite inside the distribution.

  • \(\frac{dP_r}{dr}\), \(\frac{dP_t}{dr}\) and \(\frac{d\rho }{dr}\) are monotonically decreasing.

  • Dominant energy condition: \(\frac{P_r}{\rho }\le 1\),        \(\frac{P_t}{\rho }\) \(\le 1\).

  • Causality condition: \(0<\frac{dP_r}{d\rho }<1\),    \(0<\frac{dP_t}{d\rho }<1\).

  • The local anisotropy of the distribution should be zero at the center and increasing towards the surface.

6 The algorithms to obtain new solutions

In this section we present two possibles and inequivalent algorithms to find new analytical anisotropic solutions of Einstein’s equations in isotropic coordinates based in the conditions (8) and (12) of the MGD method.

6.1 The first algorithm

In order to solve Einstein’s equations we will consider an energy-momentum tensor of the form (8). In this case, as the geometry remains untouched, Einstein’s equations reads as before

$$\begin{aligned} 8\pi {\tilde{\rho }}(r)= & {} \omega ''-\frac{5}{4}\frac{\omega '^2}{\omega }+\frac{2}{r}\omega ' , \end{aligned}$$
(33)
$$\begin{aligned} 8\pi {\tilde{p}}_r(r)= & {} \frac{1}{4}\frac{\omega '^2}{\omega }-\frac{1}{2}\omega '\nu '+\frac{\nu '\omega -\omega '}{r} , \end{aligned}$$
(34)
$$\begin{aligned} 8\pi {\tilde{p}}_t(r)= & {} \frac{1}{2}\left( \frac{\omega '^2}{\omega }-\omega ''\right) +\left( \frac{\nu ''}{2}+\frac{\nu '^2}{4}+\frac{\nu '}{2r}\right) \omega \nonumber \\&- \, \frac{\omega '}{2r} , \end{aligned}$$
(35)

but with an effective radial pressure \({\tilde{p}}_r\), effective tangential pressure \({\tilde{p}}_t\) and effective density \({\tilde{\rho }}\) that are given by

$$\begin{aligned} {\tilde{\rho }}\equiv \rho +\alpha \theta _0^0, \quad {\tilde{p}}_r \equiv p_r-\alpha \theta _0^0, \quad {\tilde{p}}_t \equiv p_t -\alpha \theta _2^2. \end{aligned}$$
(36)

At this point it is easy to see that we have an anisotropic system with three independent equations and seven unknown functions, the same 4 as the isotropic perfect fluid case (13)–(15) plus \(\theta _0^0\) , \(\theta _1^1\) , \(\theta _2^2\).

Now, as we mention before, if we try to consider the deformation

$$\begin{aligned} \omega \mapsto {\tilde{\omega }}=\omega +\alpha f, \end{aligned}$$
(37)

is not possible to decouple the system of Eqs. (33)–(35) due to the presence of \(\alpha ^2\) terms in \(\omega '^2\) and \(\omega ''\).

However, if we consider a specific combination of Eqs. (33)–(35) given by

$$\begin{aligned} 8\pi ({\tilde{p}}_r+{\tilde{\rho }} +2{\tilde{p}}_t)= & {} \frac{1}{2}\nu '^2\omega +\nu ''\omega +\frac{2\nu '\omega }{r}-\frac{1}{2}\omega '\nu ' , \end{aligned}$$
(38)

and we introduce the minimal geometric deformation

$$\begin{aligned} \omega \mapsto {\tilde{\omega }}=\omega +\alpha f, \end{aligned}$$
(39)

we obtained that this equation splits in two: one equation associated to a perfect fluid and another one related to the gravitational source

$$\begin{aligned} 8\pi (p_r+\rho +2 p_t)= & {} \frac{1}{2}\nu '^2\omega +\nu ''\omega +\frac{2\nu '\omega }{r} - \frac{1}{2}\omega '\nu ' \nonumber \\ \end{aligned}$$
(40)
$$\begin{aligned} 8\pi (-\theta _1^1+\theta _0^0-2\theta _2^2)= & {} \frac{1}{4}\Bigg \{ 2\nu '^2f +4\nu ''f \nonumber \\&+ \,\frac{8\nu 'f}{r} - 2f'\nu ' \Bigg \} , \end{aligned}$$
(41)

respectively.

If we now impose a linear constraint of the form

$$\begin{aligned} \theta _0^0-\theta _1^1-2\theta _2^2=-\frac{F(r)}{8\pi }, \end{aligned}$$
(42)

we have from (41) that

$$\begin{aligned} f=e^\nu \nu '^2 r^4 \left( 2 \int \frac{F(r)e^{-\nu }}{\nu '^3 r^4}dr +C\right) , \end{aligned}$$
(43)

where C is a constant. Although it is not possible to decouple the system of Eqs. (33)–(35) after we introduce the deformation, is remarkable that knowing f, \(f'\) and \(f''\), we can obtain \(\theta _0^0\),\(\theta _1^1\) and \(\theta _2^2\) for each value of \(\alpha \), from Eqs. (33), (34) and (35) respectively. In fact

$$\begin{aligned} 8\pi \theta _0^0= & {} \frac{f}{\omega +\alpha f}\left\{ \frac{5}{4}\frac{\omega '^2}{\omega }+\frac{2}{r}\omega {\widetilde{H}}_1-\frac{5}{2}\omega ' {\widetilde{H}}_1+\omega {\widetilde{H}}_2 \right. \nonumber \\&+\, \left. \alpha f\left[ \frac{2}{r}{\widetilde{H}}_1-\frac{5}{4}{\widetilde{H}}_1^2+{\widetilde{H}}_2 \right] \right\} , \end{aligned}$$
(44)
$$\begin{aligned} 8\pi \theta _1^1= & {} \frac{f}{(\omega +\alpha f)}\left\{ \frac{1}{4}\frac{\omega '^2}{\omega } -\frac{1}{r}\omega \nu ' \right. \nonumber \\&+\, \left( \frac{1}{2}\omega \nu '-\frac{1}{2}\omega '+\frac{1}{r}\omega \right) {\widetilde{H}}_1 \nonumber \\&-\, \left. \alpha f\left[ \frac{1}{4}{\widetilde{H}}_1^2-\left( \frac{1}{2}\nu '-\frac{1}{r}\right) {\widetilde{H}}_1+\frac{1}{r}\nu ' \right] \right\} , \end{aligned}$$
(45)
$$\begin{aligned} 8\pi \theta _2^2= & {} \frac{f}{(\omega +\alpha f)}\left\{ \frac{1}{2}\frac{\omega '^2}{\omega }-\frac{1}{2}\nu ''\omega -\frac{1}{4}\nu '^2\omega \right. \nonumber \\&-\, \frac{1}{2r}\omega \nu '+ \frac{1}{2}\omega {\widetilde{H}}_2 -\omega ' {\widetilde{H}}_1+\frac{1}{2r}\omega {\widetilde{H}}_1\nonumber \\&-\, \alpha f\left[ \frac{1}{2}{\widetilde{H}}_1^2-\frac{1}{2}{\widetilde{H}}_2+\frac{1}{2}\nu ''+\frac{1}{4}\nu '^2+\frac{1}{2r}\nu '\right. \nonumber \\&-\, \left. \left. \frac{1}{2r}{\widetilde{H}}_1 \right] \right\} , \end{aligned}$$
(46)

where we have used Eqs. (22)–(24), and

$$\begin{aligned} f'= & {} {\widetilde{H}}_1f , \end{aligned}$$
(47)
$$\begin{aligned} f''= & {} {\widetilde{H}}_2f, \end{aligned}$$
(48)

with

$$\begin{aligned} {\widetilde{H}}_1= & {} H_1+\frac{2F(r)}{\nu 'f}, \end{aligned}$$
(49)
$$\begin{aligned} {\widetilde{H}}_2= & {} H_2 +\frac{2}{\nu 'f}\left[ H_1-\frac{\nu ''}{\nu '} \right] F(r)+\frac{2}{\nu 'f}F'(r), \end{aligned}$$
(50)
$$\begin{aligned} H_1= & {} \nu ' + 2\frac{\nu ''}{\nu '}+\frac{4}{r} , \end{aligned}$$
(51)
$$\begin{aligned} H_2= & {} H_1^2+H_1'. \end{aligned}$$
(52)

Then, knowing \(\theta _0^0\), \(\theta _1^1\) and \(\theta _2^2\), we can write the expressions for the effective pressures and energy density using (36). This represent an analytical and (in general) anisotropic solution of Einstein’s Equations in isotropic coordinates, different from the original one.

6.2 The second algorithm

Starting with the line element in isotropic coordinate given by

$$\begin{aligned} ds^2 = e^{{\tilde{\nu }}(r)}dt^{2}-\frac{1}{{\tilde{A}}(r)^2}(dr^2+r^2 d\varOmega ^2), \end{aligned}$$
(53)

and considering that the energy momentum tensor has the form

$$\begin{aligned} T_{\mu \nu }=T^{PF}_{\mu \nu }+\alpha \varTheta _{\mu \nu }+\alpha ^2 H_{\mu \nu } \end{aligned}$$
(54)

where \(T^{PF}_{\mu \nu }\) is the energy momentum tensor of a perfect fluid. Einstein’s equations leads to the system

$$\begin{aligned} 8\pi {\tilde{\rho }}= & {} -3({\tilde{A}}')^2+2{\tilde{A}}{\tilde{A}}'' +\frac{4}{r}{\tilde{A}}{\tilde{A}}', \end{aligned}$$
(55)
$$\begin{aligned} 8\pi {\tilde{P}}_r= & {} ({\tilde{A}}')^2-{\tilde{A}}{\tilde{A}}'\nu ' +\nu ' \frac{{\tilde{A}}^2}{r} - \frac{2{\tilde{A}}{\tilde{A}}'}{r}, \end{aligned}$$
(56)
$$\begin{aligned} 8\pi {\tilde{P}}_t= & {} ({\tilde{A}}')^2-{\tilde{A}}{\tilde{A}}''+\left( \frac{\nu ''}{2}+\frac{(\nu ')^2}{4}+\frac{\nu '}{2r}\right) {\tilde{A}}^2\nonumber \\&- \frac{{\tilde{A}}{\tilde{A}}'}{r}, \end{aligned}$$
(57)

where

$$\begin{aligned} {\tilde{\rho }}\equiv & {} \rho + \alpha \varTheta ^0_{0}+ \alpha ^2 H^0_{0}, \end{aligned}$$
(58)
$$\begin{aligned} {\tilde{P}}_r\equiv & {} P - \alpha \varTheta ^1_{1}- \alpha ^2 H^1_{1}, \end{aligned}$$
(59)
$$\begin{aligned} {\tilde{P}}_t\equiv & {} P - \alpha \varTheta ^2_{2}- \alpha ^2 H^2_{2} . \end{aligned}$$
(60)

Now assuming that the system with \(\alpha \not = 0\) is characterized by

$$\begin{aligned} {\tilde{A}}(r)=A(r)+\alpha f(r), \end{aligned}$$
(61)

and supposing that the sets of functions \(\{\nu , A, \rho , P \}\) and \(\{\nu , f,H^0_{0},H^1_{1},H^2_{2}\}\) are solutions of Einstein’s equations we have that the above equation system is decomposed in the following systems: the first

$$\begin{aligned} 8\pi \rho= & {} -3(A')^2+2AA'' +\frac{4}{r}AA', \end{aligned}$$
(62)
$$\begin{aligned} 8\pi P= & {} (A')^2-AA'\nu ' +\nu ' \frac{A^2}{r}-\frac{2AA'}{r} , \end{aligned}$$
(63)
$$\begin{aligned} 8\pi P= & {} (A')^2-AA''+\left( \frac{\nu ''}{2}+\frac{(\nu ')^2}{4}+\frac{\nu '}{2r}\right) A^2\nonumber \\&-\, \frac{AA'}{r}, \end{aligned}$$
(64)

the second

$$\begin{aligned} 8\pi H^0_{0}= & {} -3(f')^2+2ff'' +\frac{4}{r}ff', \end{aligned}$$
(65)
$$\begin{aligned} -\,8\pi H^1_{1}= & {} (f')^2-ff'\nu ' +\nu ' \frac{f^2}{r}-\frac{2ff'}{r}, \end{aligned}$$
(66)
$$\begin{aligned} -\,8\pi H^2_{2}= & {} (f')^2-ff''+\left( \frac{\nu ''}{2}+\frac{(\nu ')^2}{4}+\frac{\nu '}{2r}\right) f^2\nonumber \\&-\, \frac{ff'}{r} , \end{aligned}$$
(67)

which are both systems of Einstein’s equations, and a third one

$$\begin{aligned} 8\pi \varTheta ^0_{0}= & {} -6A'f'+2(Af''+A''f) \nonumber \\&+\, \frac{4}{r}(Af'+A'f), \end{aligned}$$
(68)
$$\begin{aligned} -8\pi \varTheta ^1_{1}= & {} 2A'f'-(Af'+A'f)\left( \nu '+\frac{2}{r}\right) \nonumber \\&+\, 2\nu ' \frac{fA}{r} , \end{aligned}$$
(69)
$$\begin{aligned} -8\pi \varTheta ^2_{2}= & {} 2A'f'-(Af''+A''f) \nonumber \\&+\, 2\left( \frac{\nu ''}{2}+\frac{(\nu ')^2}{4}+\frac{\nu '}{2r}\right) Af \nonumber \\&-\, \frac{(Af'+A'f)}{r} , \end{aligned}$$
(70)

which is not.

Now in order to solve the systems and find the deformation function f we could propose any relation of the components of the sources. In the MGD method the solutions were found imposing some simple mimic constrains. In this case, a simple possibility to solve the system is to assume

$$\begin{aligned} \varTheta ^0_0 - 2\varTheta ^2_2- \varTheta ^1_1 = -\frac{{\tilde{F}}(r)}{8\pi }, \end{aligned}$$
(71)

which leads to

$$\begin{aligned} f'-f\left( 2\frac{\nu ''}{\nu }+\nu '+\frac{4}{r}-\frac{A'}{A}\right) = \frac{{\tilde{F}}}{A\nu '}, \end{aligned}$$
(72)

whose solution is

$$\begin{aligned} f(r)=\frac{r^4 (\nu ')^2e^\nu }{A}\left( \int \frac{{\tilde{F}}(r)}{r^4 (\nu ')^3e^\nu }dr+C\right) , \end{aligned}$$
(73)

where C is an integration constant. Then, if we choose a known solution of Einstein’s equations in isotropic coordinates is possible to obtain new analytical solutions with local anisotropy in pressures.

7 New exact anisotropic solutions of Einstein’s equations in isotropic coordinates

7.1 Using the first method

In order to verify the first algorithm, let us choose a known perfect fluid solution in isotropic coordinates as Gold III [40] solution

$$\begin{aligned} e^\nu= & {} D \left( \frac{g-1}{g+1} \right) , \end{aligned}$$
(74)
$$\begin{aligned} \frac{1}{\omega }= & {} B\left( \frac{g+1}{g}\right) ^2, \quad \end{aligned}$$
(75)
$$\begin{aligned} P(r)= & {} \frac{b}{2\pi B}\frac{1}{(g+1)^2}\left[ \frac{g}{(g+1)^2}-br^2\right] , \end{aligned}$$
(76)
$$\begin{aligned} \rho (r)= & {} \frac{b}{2\pi B}\frac{1}{(g+1)^2}\left[ \frac{3g(g-1)}{(g^2-1)^{1/2}}-br^2(3-2g)\right] , \nonumber \\ \end{aligned}$$
(77)
$$\begin{aligned} g(r)= & {} \cosh (a+br^2), \end{aligned}$$
(78)

where D, B, a and b are constants. This solution will be regular at the origin only if

$$\begin{aligned} B=\frac{(\exp (2a)+1)^2}{(\exp (a)+1)^4}, \end{aligned}$$
(79)

nevertheless this equation will not be necessary satisfied in the new solutions obtained from this one.

7.1.1 Solution 1

If we consider \(F(r)=0\), for simplicity, it can be check that the deformation function takes the form

$$\begin{aligned} f=\frac{16CDr^6b^2}{(g+1)^2}, \end{aligned}$$
(80)

with C an integration constant. Therefore

$$\begin{aligned} \theta _1^1= & {} \frac{Bf}{8\pi (g^2+\alpha B f(g+1)^2)}\left[ S_1-\alpha f(g+1)^2{\tilde{S}}_1\right] , \end{aligned}$$
(81)
$$\begin{aligned} \theta _0^0= & {} \frac{Bf}{8\pi (g^2+\alpha B f(g+1)^2)}\left[ S_0+\alpha f(g+1)^2{\tilde{S}}_0\right] , \end{aligned}$$
(82)
$$\begin{aligned} \theta _2^2= & {} \frac{Bf}{8\pi (g^2+\alpha B f(g+1)^2)}\left[ S_2-\alpha f(g+1)^2{\tilde{S}}_2\right] , \end{aligned}$$
(83)

where

$$\begin{aligned} S_1B= & {} \frac{g'^2}{(g+1)^2}-8\frac{b^2rg^2}{g'}+4\frac{b^2r^2g^2}{g'}H_{1} \nonumber \\&-\, \frac{gg'}{(g+1)}H_{1}+\frac{g^2}{r}H_{1}, \end{aligned}$$
(84)
$$\begin{aligned} {\tilde{S}}_1= & {} \frac{1}{4}H_{1}^2 - 4\frac{b^2r^2}{g'}H_{1} - \frac{1}{r}H_{1}+2\frac{r}{g'}, \end{aligned}$$
(85)
$$\begin{aligned} S_0B= & {} 5\frac{g'^2}{(g+1)^2}+2\frac{g^2}{r}H_{1} -5\frac{gg'}{(g+1)}H_{1} \nonumber \\&+ \,g^2H_2 , \end{aligned}$$
(86)
$$\begin{aligned} {\tilde{S}}_0= & {} 2\frac{1}{r}H_{1}- \frac{5}{2} \frac{b}{g'}H_{1}^2 + H_2, \end{aligned}$$
(87)
$$\begin{aligned} S_2B= & {} 2\frac{g'^2}{(g+1)^2}-4\frac{b^2rg^2}{g'}+16\frac{b^4r^4g^2}{g'^2}(g-1) \nonumber \\&-\, 4\frac{b^2rg^2}{g'}+\frac{1}{2}g^2H_2 -\frac{gg'}{(g+1)}H_{1}+\frac{1}{2}\frac{g^2}{r}H_{1}, \end{aligned}$$
(88)
$$\begin{aligned} {\tilde{S}}_2= & {} \frac{b}{g'}H_{1}^2-\frac{1}{2}H_2 +8\frac{b^2r}{g'}- 16\frac{b^4r^4}{g'^2}(g-1) \nonumber \\&-\, \frac{1}{2r}H_{1}, \end{aligned}$$
(89)

and

$$\begin{aligned} H_1= & {} \frac{6}{r}+\frac{8b^2r^2}{g'}(1-g), \end{aligned}$$
(90)
$$\begin{aligned} H_2= & {} H_1^2 + H_1' . \end{aligned}$$
(91)

We can write now the effective energy density and pressures as (36).

Now, is easy to see that for \(a=2\), \(b=1\) and \({\tilde{\alpha }}=D\alpha =0.05\), we found that \(r_\varSigma =0.885\), \(r_{1\varSigma }=0.7853\), \(D=0.881\) and \(M=0.126\). The pressures and the energy density are plotted in Figs. 1 and 2 while the acceptability condition are plotted in Figs. 3, 4, 5 and 6.

Fig. 1
figure 1

Pressures for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 2
figure 2

Energy density for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 3
figure 3

Gradients of the pressures for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 4
figure 4

Gradient of the energy density for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 5
figure 5

Dominant energy condition for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 6
figure 6

Causality condition for the solution obtained with the first algorithm with \(F=0\) from the isotropic Gold III solution

Fig. 7
figure 7

Pressures for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

Fig. 8
figure 8

Energy density for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

Fig. 9
figure 9

Gradients of the pressures for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

Fig. 10
figure 10

Gradient of the energy density for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

Fig. 11
figure 11

Dominant energy condition for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

Fig. 12
figure 12

Causality condition for the solution obtained with the first algorithm with \(F\not =0\) from the isotropic Gold III solution

7.1.2 Solution 2

The latter solution can be generalized to the case where \(F(r)\ne 0\). In particular, if we choose

$$\begin{aligned} F(r)=\frac{16DGb^2\nu '}{r(g+1)^2} \end{aligned}$$
(92)

with G a proportionality constant, then

$$\begin{aligned} B=\frac{3}{3+8\alpha Db^2G}\frac{(e^{2a}+1)^2}{(1+e^a)^4} \end{aligned}$$
(93)

and it can be seen that

$$\begin{aligned} f=\frac{16Db^2r^6}{(g+1)^2}\left[ {\tilde{C}}-\frac{G}{3r^6}\right] \end{aligned}$$
(94)

where \({\tilde{C}}=2K+C\) and K is an integration constant. Is easy to see that it contains the solution 1 (\(K=G=0\)).

It can be check that

$$\begin{aligned} {\widetilde{H}}_1= & {} \frac{6}{r}+\frac{8b^2r^2}{g'}(1-g)+\frac{32DGb^2}{rf(g+1)^2} , \end{aligned}$$
(95)
$$\begin{aligned} {\widetilde{H}}_2= & {} H_1^2 + H_1' , \nonumber \\&+\, \frac{2}{f}\left[ \frac{5}{r}+\frac{8b^2r^2}{g'}(1-g)-\frac{2g'}{g+1}\right] \frac{16DGb^2}{(g+1)^2r} \end{aligned}$$
(96)

Now, from the matching conditions, is easy to see that for \(a=2\), \(b=1\) and \({\tilde{\alpha }}=D\alpha =0.1\), we found that \(r_\varSigma =0.5955\), \(r_{1\varSigma }=0.6527\) , \(M=0.07\) and \(D=1.1496\). The pressures, energy density and acceptability conditions are plotted in Figs. 7, 8, 9, 10, 11 and 12.

7.2 Using the second method

In order to check the method, we choose as seed solution the Gold III solution again, which is given by Eqs. (74)–(78) where is easy to see that

$$\begin{aligned} A=\frac{1}{\sqrt{B}}\frac{g}{g+1}. \end{aligned}$$
(97)

Now, using these expressions and the differential equation for f (Eq. (72)) we can rewrite the systems (65)–(67) and (68)–(69) as

$$\begin{aligned} 8\pi H^0_0= & {} f^2\left[ G(r)\left( \frac{6}{r}-G(r)\right) - \frac{24}{r^2} \right. \nonumber \\&- \, \left. \frac{8b^2r^2(g^2+g+1)}{g^2(g+1)^2}\right] \nonumber \\&+\, 2f\left[ J(r) + 2{\hat{F}}\left( \frac{1}{r}-G(r)\right) \right] - 3{\tilde{F}}^2, \end{aligned}$$
(98)
$$\begin{aligned} -8\pi H^1_1= & {} f^2 \left\{ G(r)\left[ G(r)-\frac{2}{r}-\frac{4br}{(g^2-1)^{1/2}}\right] \right. \nonumber \\&+\, \left. \frac{4b}{(g^2-1)^{1/2}}\right\} + {\hat{F}}^2 \nonumber \\&+\, {\hat{F}}\left[ f\left( 2\left[ G(r)-\frac{1}{r}\right] -\frac{4br}{\sqrt{g^2-1}}\right) \right] , \end{aligned}$$
(99)
$$\begin{aligned} -8\pi H^2_2= & {} f^2 \left\{ \frac{12}{r}+\frac{4b^2r^2(g^2+g+1)}{g^2(g+1)^2} \right. \nonumber \\&+ \, G(r)\left[ \frac{br}{(g^2-1)^{1/2}}-\frac{2}{r} \right] \nonumber \\&+ \left. \frac{2br}{(g^2-1)^{1/2}}\left( \frac{br(g^2-1)^{1/2}}{g(g+1)}-\frac{1}{r}\right) \right\} \nonumber \\&+\, f\left[ {\hat{F}}\left( G(r)-\frac{1}{r}\right) -J(r)\right] +{\hat{F}}^2, \end{aligned}$$
(100)

and

$$\begin{aligned} 8\pi \varTheta _0^0= & {} \frac{fg}{\sqrt{B}(g+1)}\left\{ 2G(r)\left[ \left( G(r)+\frac{3}{r}\right) \right. \right. \nonumber \\&-\, \left. \frac{6br(g-1)^{1/2}}{g(g+1)}\right] \nonumber \\&+\, \frac{4br(g^2-1)^{1/2}}{g(g+1)}\left( \frac{2br(2-g)}{(g^2-1)^{1/2}}+\frac{3}{r}\right) \nonumber \\&-\, \left. 8\left( \frac{3}{r^2}+\frac{b^2r^2(g^2+g+1)}{g^2(g+1)^2}\right) \right\} \nonumber \\&+\, \left[ {\hat{F}}\left( G(r)+\frac{2}{r}-\frac{6br(g-1)^{1/2}}{g(g+1)}\right) + J(r)\right] , \nonumber \\ \end{aligned}$$
(101)
$$\begin{aligned} -8\pi \varTheta ^1_1= & {} \frac{fg}{\sqrt{B}(g+1)}\left\{ G(r)\left[ \frac{4br(g^2-1)^{1/2}}{g+1} \right. \right. \nonumber \\&-\, \left. g\left( \frac{4br}{(g^2-1)^{1/2}}+\frac{2}{r}\right) \right] - \frac{4br(g^2-1)^{1/2}}{g+1} \nonumber \\&\times \left. \left( \frac{2br}{g^2-1)^{1/2}}+\frac{1}{r}\right) + \frac{8bg}{(g^2-1)^{1/2}} \right\} \nonumber \\&+\, \frac{2g{\hat{F}}}{\sqrt{B}(g+1)}\left[ 2br\left( \frac{(g^2-1)^{1/2}}{g(g+1)} \right. \right. \nonumber \\&-\, \left. \left. \frac{1}{(g^2+1)^{1/2}}\right) -\frac{2}{r}\right] , \end{aligned}$$
(102)
$$\begin{aligned} -8\pi \varTheta ^2_2= & {} \frac{16r^6b^2}{g(g+1)^2} \left\{ G(r)\left[ \frac{4br(g^2-1)^{1/2}}{(g+1)} \right. \right. \nonumber \\&+\, \left. g\left( \frac{2br}{(g^2-1)^{1/2}}-\frac{2}{r}-G(r)\right) \right] \nonumber \\&-\, \frac{4br(g^2-1)^{1/2}}{g+1}\left( \frac{br(1-g)}{(g^2-1)^{1/2}}+\frac{1}{r}\right) \nonumber \\&+\, \left. \left( \frac{3}{r^2}+\frac{b^2r^2(g^2+g+1)}{g^2(g+1)^2}-\frac{b}{(g^2-1)^{1/2}}\right) \right\} \nonumber \\&+\, \frac{4br(g^2-1)^{1/2}}{g+1} \left[ {\hat{F}}\left( \frac{4br(g^2-1)^{1/2}}{g(g+1)}\right) \right. \nonumber \\&- \,\left. \frac{1}{r}-G(r)\right] , \end{aligned}$$
(103)

where

$$\begin{aligned} G(r)= & {} \frac{2br(g+1-2g^2)}{g(g^2-1)^{1/2}}+\frac{6}{r}, \end{aligned}$$
(104)
$$\begin{aligned} {\hat{F}}= & {} \frac{{\tilde{F}}}{A\nu '}, \end{aligned}$$
(105)
$$\begin{aligned} J(r)= & {} {\hat{F}}'. \end{aligned}$$
(106)

7.2.1 Solution 1

Let us now study the most simple case were \({\tilde{F}}=0\) in which

$$\begin{aligned} f=\frac{16r^6DC\sqrt{B}b^2}{g(g+1)}, \end{aligned}$$
(107)

where we can take, without losing generality, \(C=1\).

Now, introducing (107) in the systems (98)–(100) and (101)–(103), we can compute the effective energy density and pressures

$$\begin{aligned} {\tilde{\rho }}= & {} \rho +\alpha \varTheta ^0_0 + \alpha ^2 H^0_0, \end{aligned}$$
(108)
$$\begin{aligned} {\tilde{P}}_r= & {} P -\alpha \varTheta ^1_1 - \alpha ^2 H^1_1 ,\end{aligned}$$
(109)
$$\begin{aligned} {\tilde{P}}_t= & {} P -\alpha \varTheta ^2_2 - \alpha ^2 H^2_2. \end{aligned}$$
(110)

Finally in order to give an example of a physical acceptable solution we can take the following values for the constants, \(\alpha D = 0.020\), \(a=2\) and \(b=0.4\). Then from the matching conditions we obtain that \(r_\varSigma =1.270\), \(r_{1\varSigma }=1.142\), \(M=0.175\), \(D=0.922\) and \(\alpha =0.022\).The pressures can be found in the Fig. 13 while the energy density is in the Fig. 14. All the acceptability condition are plotted in the Figs. 15, 16, 17 and 18.

Fig. 13
figure 13

Pressures for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 14
figure 14

Energy density for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 15
figure 15

Gradients of the pressures for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 16
figure 16

Gradient of the energy density for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 17
figure 17

Dominant energy condition for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 18
figure 18

Causality condition for the solution obtained with the second algorithm with \({\tilde{F}}=0\) from the isotropic Gold III solution

Fig. 19
figure 19

Pressures for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

Fig. 20
figure 20

Energy density for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

Fig. 21
figure 21

Gradients pressures for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

Fig. 22
figure 22

Gradient of the energy density for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

Fig. 23
figure 23

Dominant energy condition for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

Fig. 24
figure 24

Causality condition for the solution obtained with the second algorithm with \({\tilde{F}}\not =0\) form the isotropic Gold III solution

7.2.2 Solution 2

In order to see if we can improve the behavior of the previous solution let us now take a more complicated case in which \({\tilde{F}}\not =0\). In particular we will suppose that

$$\begin{aligned} {\tilde{F}}=\frac{4bG}{\sqrt{B}}\left( \frac{g-1}{g+1}\right) (g^2-1)^{-3/2}, \end{aligned}$$
(111)

where G is a constant that allow us to connect with the previous case (\({\tilde{F}}=0\)). Then we can obtain

$$\begin{aligned} f= & {} \frac{1}{g(g+1)}\left[ 16CDr^6\sqrt{B}b^2 -\frac{G}{6}\right] , \end{aligned}$$
(112)
$$\begin{aligned} J= & {} -\frac{G^2[g(g+1)+2r^2b(g^2-1)^{1/2}(2g+1)]}{r^2g^2(g+1)^2}. \end{aligned}$$
(113)

Now, in this case the regularity in the center of the distribution implies

$$\begin{aligned} B = \frac{9(e^{2a}+1)^4}{[3(e^{2a}+1)^2+2e^a(\alpha G e^a +3(e^{2a}+1))]^2}. \end{aligned}$$
(114)

As in the previous case, introducing (111)–(113) in the systems (98)–(100) and (101)–(103) we can obtain the effective pressures and energy density from

$$\begin{aligned} {\tilde{\rho }}= & {} \rho +\alpha \varTheta ^0_0 + \alpha ^2 H^0_0, \end{aligned}$$
(115)
$$\begin{aligned} {\tilde{P}}_r= & {} P -\alpha \varTheta ^1_1 - \alpha ^2 H^1_1 ,\end{aligned}$$
(116)
$$\begin{aligned} {\tilde{P}}_t= & {} P -\alpha \varTheta ^2_2 - \alpha ^2 H^2_2. \end{aligned}$$
(117)

Finally, to give an example we choose the values \(G=D\), \(D\alpha =0.304\), \(a=3.3\), \(b=1.02\) and \(C=0\). Then with the matching conditions it is easy to obtain \(r_\varSigma = 0.952\), \(r_{1\varSigma }= 0.913\), \(M=0.047\), \(D=0.953\) and \(\alpha =0.319\). In this case the pressures and the energy density are in the Figs. 19 and 20, while the acceptability conditions are in the Figs. 21, 22, 23 and 24.

8 Conclusions

The Minimal Geometric Deformation is an efficient method to obtain new analytical internal solutions to Einstein’s equations. However, the main advantage of MGD is not present if one considers a line element in isotropic coordinates, because it is not possible to decouple the system of equations related to the gravitational sources.

In this work, we present two inequivalent methods to obtain analytical and anisotropical solutions of Einstein’s equations in isotropic coordinates, starting with a known (isotropic or anisotropic in pressures) solution. Although this is not exactly the known Minimal Geometric Deformation, both algorithms uses the same ansatz for the metric deformations. The differences with MGD is the following: in the first method there is no decoupling of Einstein’s equations and we only use convenient combinations of the equations to solve the complete system. In the second method, there is a decoupling of the system of equations. Nevertheless, to achieve this, is necessary to include an additional source (\(H_{\mu \nu }\)) that also have to satisfy Einstein’s equations.

In order to test the two methods we select Gold III as a seed solution and with each algorithm we extend it to the anisotropical domain using two different conditions over the new sources. Indeed, we have found four analytical solutions in isotropic coordinates, completely different from the initial ones, and with local anisotropic pressures. It is important to mention that the inequivalence of both methods is evident. This can be easily verified by selecting the same seed solution and the same values for the free parameters. This way, it can be verified that the resulting solutions are different. In fact, selecting the values for the parameters used in the second method in order to obtain a physical acceptable solution, the first method throws a solution that does not satisfy the conditions for physical acceptability.

As we can observe from Figs. 1 and 13, the solution obtained from Gold III with \(F=0\) in the first method and \({\tilde{F}}=0\) in the second one exhibit regions, in the internal part of the distributions, in which the radial pressure is greater than the tangential pressure. This behavior could suggest that this models are unstable under perturbations. In fact the change of sign in the force contribution coming from the local anisotropy indicates the possible appearance of cracking (see [44, 46,47,48,49, 52,53,54]) under perturbations. It had been widely discussed in the literature that the presence of cracking can affect the evolution of compact objects in a drastically way when these depart from the equilibrium. Indeed cracking phenomenon can be associated to different scenarios that can be related with observations (for example [55,56,57,58,59,60,61,62,63]).

However, in both methods we show that this behavior can be corrected when \(F\not =0\) in the first one and \({\tilde{F}}\not =0\) in the second one. Indeed, we show that the solutions displayed in the Figs. 9, 10, 11, 12, 19, 20, 21, 22, 23 and 24 satisfied all the physical acceptability conditions. Another possibility to avoid the odd behavior of the solutions obtained here with \(F=0\) ( \({\tilde{F}}=0\) in the second method), which we do not discuss, consist in doing the matching with an exterior solution different from the Schwarzschild’s vacuum.

Finally, we what to mention that the complicate form that solutions have, suggest that this may be new solutions of the Einstein’s equations not reported in the literature, at least compared with other solutions in isotropic coordinates. Nevertheless, to probe that these are indeed new solutions of the field equations (including the rewriting in any other coordinates) it is necessary to perform a deeper analysis (computing the scalar invariants of our solutions and comparing them with those obtained from all the others known solutions of the Einstein’s equation’s) which is beyond the purpose of this work. Our main goal in this work is not to study any particular model. We only center our attention in presenting two different simple algorithms to find analytical solutions to Einstein’s equations in isotropic coordinates. In order to describe any particular model, it is necessary to consider F(r) (or \({\widetilde{F}}(r)\)) related with the system under study, in order to solve the resulting equations.