1 Introduction

Static solutions of the Einstein’s field equations for spherically symmetric manifolds are important in the description of relativistic spheres in astrophysics. First two exact solutions for the Einstein’s field equations were obtained by Schwarzschild [1, 2] about a century ago; one solution describing the geometry of the space-time exterior to a prefect relativistic fluid sphere in hydrostatic equilibrium, and the other corresponding to the interior geometry of a fluid sphere of homogeneous energy-density. There have been considerable efforts since then to find exact solutions to the Einstein’s field equations for the interior space-time that smoothly match to the Schwarzschild exterior [1] and such generated models becomes physically admissible to describe compact relativistic spheres with strong gravitational fields such as in neutron stars for example. However, only a few of these solutions correspond to non-singular metric functions with physically acceptable energy momentum tensor [39]. In fact, the interior Schwarzschild solution provides two important features towards obtaining configurations in hydrostatic equilibrium: (i) an absolute upper limit on compaction parameter (mass-to-radius ratio) for any static spherical solution (provided the density decreases monotonically outwards from the centre) in hydrostatic equilibrium [10], and (ii) an assigned value of the compaction parameter, the minimum central pressure, corresponds to the homogeneous density solution [11].

There have been significant experimental developments in recent years and a number of attempts have been made on measuring the radii and masses of dense astrophysical objects; e.g. observations on double neutron star [12], glitches in radio pulsars [13], thermal emission [14, 15] from accreting neutron star and from millisecond X-ray pulsars, pressure on neutron star matter at supranuclear density [16], etc. Mass-to-radius ratio of astrophysical objects provides a vital clue to distinguish different stars such as white dwarf, neutron stars and strange stars from one another [17]. Stellar objects such as SAX, Her.X-1 and other low-mass X-ray binaries have been differently interpreted at times [18] and hence compaction parameter is suggested to be a good measure in this study to differentiate compact stellar objects.

The study of experimental data of highly dense stars have been reported in literature with various theoretical approaches. Strange quark matter model [1921] with linear equation of state have been of particular interest, modelling such compact stars [2228]. There have also been interpretations with quadratic equation of states [29, 30], linear or nonlinear equation of state [31] and polytrophic equation of states [32, 33].

In this work we seek new classes of solutions to the Einstein system in static spherically symmetric spacetimes with isotropic matter distribution which satisfy the physical criteria [34]:

  1. (i)

    regularity of the gravitational potentials at the origin;

  2. (ii)

    positive definiteness of the energy density and the radial pressure at the origin;

  3. (iii)

    vanishing of the pressure at some finite radius;

  4. (iv)

    monotonic degrease of the energy density and the radial pressure with increasing radius.

  5. (v)

    casuality condition: speed of sound should be less than the speed of light.

In addition the generated models satisfy the junction condition: interior metric match smoothly with the Schwarzschild exterior metric at the boundary.

2 The Field Equations

The internal structure of a dense compact relativistic sphere in static spherically symmetric spacetime can be described by the line element

$$ ds^{2} = -e^{2\nu(r)} dt^{2} + e^{2\lambda(r)} dr^{2} + r^{2}\bigl(d\theta^{2} + \sin^{2}{\theta} d\phi^{2}\bigr), $$
(1)

in Schwarzschild coordinates (x a)=(t,r,θ,ϕ). The Einstein field equations for a neutral perfect fluid matter distribution can be written in the form

$$\begin{aligned} \rho =&\frac{1}{r^{2}} \bigl[ r\bigl(1-e^{-2\lambda}\bigr) \bigr]' , \end{aligned}$$
(2)
$$\begin{aligned} p =& - \frac{1}{r^{2}} \bigl( 1-e^{-2\lambda} \bigr) + \frac{2\nu'}{r}e^{-2\lambda}, \end{aligned}$$
(3)
$$\begin{aligned} p =& e^{-2\lambda} \biggl( \nu'' + \nu'^{2} + \frac{\nu'}{r} -\nu' \lambda' - \frac{\lambda'}{r} \biggr), \end{aligned}$$
(4)

where primes denote differentiation with respect to the radial coordinate r. The energy density ρ and the pressure p are measured relative to the comoving fluid 4-velocity \(u^{a} = e^{-\nu} \delta^{a}_{0}\); and we use the units for the coupling constant \(\frac{8\pi G}{c^{4}}=1\) and the speed of light c=1. The system of (2)–(4) determines the behaviour of the gravitational field for a neutral perfect fluid source. The mass contained within a radius r of the sphere is defined as

$$ m(r)= \frac{1}{2}\int_0^r \omega^2 \rho(\omega)d\omega . $$
(5)

If we introduce the transformation

$$ x = Cr^2,\quad\quad Z(x) = e^{-2\lambda(r)}, \quad\quad A^{2}y^{2}(x) = e^{2\nu(r)}, $$
(6)

where A and C are arbitrary constants, the system (2)–(4) has the equivalent form

$$\begin{aligned} \frac{\rho}{C} =&\frac{1-Z}{x} - 2\dot{Z}, \end{aligned}$$
(7)
$$\begin{aligned} \frac{p}{C} =&4Z \frac{\dot{y}}{y} + \frac{Z-1}{x}, \end{aligned}$$
(8)
$$\begin{aligned} 0 =&4Zx^{2}\ddot{y} + 2 \dot{Z}x^{2} \dot{y} + (\dot{Z}x - Z + 1)y, \end{aligned}$$
(9)

where dots represent differentiation with respect to x. The mass function (5) becomes

$$ m(x)=\frac{1}{4 C^{3/2}} \int_0^x \sqrt{w}\rho(w)dw, $$
(10)

in terms of the new variables in (6).

3 Choosing Potential

The Einstein system (7)–(9) comprises three equations in the four unknowns Z,y,ρ and p. Therefore we have the freedom to choose one of the gravitational potential to integrate the master equation (9), called the generalised condition of pressure isotropy. In this treatment we specify the gravitational potential Z on physical ground, so that it is possible to integrate (9). The explicit solution of the Einstein system (7)–(9) then follows. We choose a particular form

$$ Z = \frac{1+a x}{1+b x}, $$
(11)

where a and b are real constants. This form of gravitational potential have been previously used to model charged isotropic compact objects [35] and it contains physically acceptable neutron star models as special case: for example, when \(a= - \frac{1}{2}\) and b=1 we regain the dense neutron star model of Durgapal and Bannerji [3]; and when a=−1 and b=7 we regain Tikekar super dense star model [6]. These solutions can be used to model a relativistic compact sphere with desirable physical properties. We attempt to find new classes of solutions with the choice (11) to the Einstein system in closed form.

Substituting (11) into (9) we obtain

$$ 4(1+a x) (1+bx) \ddot{y}+2(a-b) \dot{y}+ b(b-a)y = 0. $$
(12)

The differential equation (12) is difficult to solve in the above form; we first introduce a transformation to obtain a more convenient form. We let

$$ X=\frac{a}{(a-b)}(1+b x),\quad\quad Y(X) = y(x), \quad a \neq b \neq 0. $$
(13)

With the help of (13), (12) becomes

$$ X [ X-1 ]\frac{d^{2}Y}{dX^{2}} + \frac{1}{2}\frac{dY}{dX} - \biggl[\frac{a-b}{4a} \biggr]Y = 0 $$
(14)

in terms of the new dependent and independent variables Y and X respectively, which is a Gaussian type hypergeometric equation.

4 Exact Solutions

The general solution of the hypergeometric equation (14) is given by

$$ Y=C_1 F \biggl(\alpha, -(\alpha +1), - \frac{1}{2};X \biggr)+C_2X^{3/2}F \biggl( \frac{3}{2}+\alpha, \frac{1}{2}-\alpha , \frac{5}{2};X \biggr) $$
(15)

in terms hypergeometric functions, where C 1,C 2 are constants of integration and \(\displaystyle \alpha = [-1 \pm \sqrt{(2a-b)/a}]/2\).

It is noted that in some special cases a hypergeometric function can be expressed in terms of elementary functions [36]. We illustrate some of such cases below as examples.

4.1 Case I: 2a+b=0

In this case (15) becomes

$$ Y=C_1 F \biggl(-\frac{3}{2}, \frac{1}{2}, -\frac{1}{2};X \biggr)+C_2X^{3/2}F \biggl(0, 2, \frac{5}{2};X \biggr), $$
(16)

which can be expressed as

$$ Y= C_1 (1+2X)\sqrt{X-1}+C_2 X^{\frac{3}{2}}. $$
(17)

Therefore the general solution for (12) becomes

$$ y= d_1 (5-4ax)\sqrt{1+ax}+d_2 (1-2ax)^{\frac{3}{2}}, $$
(18)

where d 1 and d 2 are new arbitrary constants. It is easy to see that this solution reduces to the Durgapal and Bannerji [3] neutron stars model when \(a=-\frac{1}{2}\) that satisfies all physical requirements of realistic neutron stars. For the solution (18) the physical quantities takes the form:

$$\begin{aligned} e^{2\lambda} =& \frac{1-2ax}{1+ax}; \end{aligned}$$
(19)
$$\begin{aligned} e^{2\nu} =& A^2 \bigl[d_1 (5-4ax)\sqrt{1+ax}+d_2 (1-2ax)^{\frac{3}{2}} \bigr]^2; \end{aligned}$$
(20)
$$\begin{aligned} \rho =&\frac{-3aC(3-2ax)}{(1-2ax)^2}; \end{aligned}$$
(21)
$$\begin{aligned} p =& \frac{9aC [d_1(1-4ax)\sqrt{1+ax}- d_2 (1+2ax)\sqrt{1-2ax} ]}{(1-2ax) [d_1(5-4ax)\sqrt{1+ax}+d_2 (1-2ax)^{\frac{3}{2}} ]}; \end{aligned}$$
(22)

and the mass function (10) becomes

$$ m(x)=\frac{-3ax^{\frac{3}{2}}}{2\sqrt{C}(1-2ax)}. $$
(23)

4.2 Case II: 2ab=0

Here (15) reduces to

$$ Y=C_1 F \biggl(-\frac{1}{2}, - \frac{1}{2}, -\frac{1}{2};X \biggr)+C_2X^{3/2}F \biggl(1, 1, \frac{5}{2}; X \biggr), $$
(24)

which can be expressed in terms of elementary function

$$ Y= C_1 \sqrt{1-X} + C_2 \sqrt{1-X} \biggl(\ln [\sqrt{-X}+\sqrt{1-X}]- \frac{\sqrt{-X}}{\sqrt{1-X}} \biggr). $$
(25)

Hence, the general solution for (12) becomes

$$ y = g_1 \sqrt{1+ax} + g_2 \bigl( \sqrt{2(1+ax)} \ln \bigl[\sqrt{2(1+ax)}+\sqrt{1+2ax}\bigr]-\sqrt{1+2ax} \bigr), $$
(26)

where g 1 and g 2 are new arbitrary constants. For the solution (26) the physical quantities takes the form:

$$\begin{aligned} e^{2\lambda} =& \frac{1+2ax}{1+ax}; \end{aligned}$$
(27)
$$\begin{aligned} e^{2\nu} =& A^2 \bigl[g_1 \sqrt{1+ax} + g_2 \bigl(\sqrt{2(1+ax)} \ln \bigl[\sqrt{2(1+ax)}+ \sqrt{1+2ax}\bigr] -\sqrt{1+2ax} \bigr) \bigr]^2; \\ \end{aligned}$$
(28)
$$\begin{aligned} \rho =&\frac{-8aC(3-7ax)}{(1-7ax)^2}; \end{aligned}$$
(29)
$$\begin{aligned} p =& \bigl\{ aC \bigl[g_1 (1+ax) \bigl( \sqrt{1+2ax}+\sqrt{2(1+ax)}\bigr)+g_2 \bigl((1+2ax) \bigl(\sqrt{1+ax} \\ &{}+\sqrt{2(1+2ax)} \bigr)+(1+ax) \bigl(2 \sqrt{1+ax}+\sqrt{2(1+2ax)}\bigr) \bigr){\sinh}^{-1}[\sqrt{1+2ax}] \bigr] \bigr\} \\ & {}/\bigl\{ \sqrt{1+ax}(1+2ax) \bigl(\sqrt{1+2ax}+\sqrt{2(1+ax)} \bigr) \\ &{}\times\bigl[g_1 \sqrt{1+ax}-g_2 \bigl(\sqrt{1+2ax}+ \sqrt{2} {\sinh}^{-1}[\sqrt{1+2ax}] \bigr) \bigr] \bigr\} ; \end{aligned}$$
(30)

and the mass function (10) takes the form

$$ m(x)=\frac{ax^{\frac{3}{2}}}{2\sqrt{C}(1+2ax)}. $$
(31)

4.3 Case III: 7a−4b=0

In this case (15) reduces to

$$ Y=C_1 F \biggl(-\frac{1}{4}, - \frac{3}{4}, -\frac{1}{2};X \biggr)+C_2X^{3/2}F \biggl(\frac{5}{4}, \frac{3}{4}, \frac{5}{2}; X \biggr), $$
(32)

which has the particular form

$$ Y= C_1X^{\frac{3}{2}} [ 1+\sqrt{1-X} ]^{-\frac{3}{2}}+C_2 [ 1+\sqrt{1-X} ]^{\frac{3}{2}}. $$
(33)

Therefore the general solution for (12) becomes

$$ y= D_1(4+7ax)^{\frac{3}{2}} \bigl(\sqrt{3}+ \sqrt{7(1+ax)} \bigr)^{-\frac{3}{2}}+D_2 \bigl(\sqrt{3}+\sqrt{7(1+ax)} \bigr)^{\frac{3}{2}}, $$
(34)

where D 1 and D 2 are new arbitrary constants. In this case the physical quantities can be written explicitly as:

$$\begin{aligned} e^{2\lambda} =& \frac{4+7ax}{4(1+ax)}; \end{aligned}$$
(35)
$$\begin{aligned} e^{2\nu} =& A^2 \bigl[D_1(4+7ax)^{\frac{3}{2}} \bigl(\sqrt{3}+\sqrt{7(1+ax)} \bigr)^{-\frac{3}{2}}+D_2 \bigl( \sqrt{3}+\sqrt{7(1+ax)} \bigr)^{\frac{3}{2}} \bigr]^2; \end{aligned}$$
(36)
$$\begin{aligned} \rho =& \frac{3aC(12 +7ax)}{(4+7ax)^2}; \end{aligned}$$
(37)
$$\begin{aligned} p =& \bigl\{ 3aC \bigl[D_1 \sqrt{4+7ax} \bigl( \sqrt{7(1+ax)}(36+21ax)+ \sqrt{3}(52+49ax) \bigr) \\ & {}+ D_2 \bigl(264+420ax+147a^2x^2+56 \sqrt{21}(1+ax)^{\frac{3}{2}} \bigr) \bigr] \bigr\} \\ &{}/ \bigl\{ (4+7ax) \bigl(\sqrt{3}+\sqrt{7(1+ax)}\bigr) \bigl[D_1 (4+7ax)^{\frac{3}{2}} \\ & {} +D_2 \bigl(\sqrt{7(1+ax)}(16+7ax)+3 \sqrt{3}(8+7ax) \bigr) \bigr] \bigr\} ; \end{aligned}$$
(38)

and the mass function (10) becomes

$$ m(x)=\frac{3ax^{\frac{3}{2}}}{2\sqrt{C}(4+7ax)}. $$
(39)

4.4 Case IV: 7a+b=0

In this case (15) becomes

$$ Y=C_1 F \biggl(1, -2, -\frac{1}{2};X \biggr)+C_2X^{3/2}F \biggl(\frac{5}{2}, - \frac{1}{2}, \frac{5}{2}; X \biggr), $$
(40)

which has a particular form

$$ Y= C_1 \bigl[1+4X-8X^2 \bigr] + C_2 X^{\frac{3}{2}} \sqrt{1-X}. $$
(41)

Therefore the general solution for (12) takes the form

$$ y= k_1 \sqrt{1+ax}(1-7ax)^{\frac{3}{2}} + k_2 \biggl[1+\frac{1}{2}(1-7ax)-\frac{1}{8}(1-7ax)^2 \biggr], $$
(42)

where k 1 and k 2 are new arbitrary constants. It can be shown that the class of solution (42) reduces to the Tikekar super dense star model [6] when a=−1. The Tikekar super dense models are shown to be useful to study the behaviour of relativistic stars having highly dense matter, cold compact matter.

For the solution (42) the physical quantities takes the form:

$$\begin{aligned} e^{2\lambda} =& \frac{1-7ax}{1+ax}; \end{aligned}$$
(43)
$$\begin{aligned} e^{2\nu} =& A^2 \biggl[k_1 \sqrt{1+ax}(1-7ax)^{\frac{3}{2}} + k_2 \biggl(1+\frac{1}{2}(1-7ax)- \frac{1}{8}(1-7ax)^2 \biggr) \biggr]^2; \end{aligned}$$
(44)
$$\begin{aligned} \rho =& \frac{-8aC(3-7ax)}{(1-7ax)^2}; \end{aligned}$$
(45)
$$\begin{aligned} p =& \frac{16aC [k_2[2-7ax(5+7ax)]-8k_1\sqrt{(1+ax)(1-7ax)}(2+7ax) ]}{ (1-7ax) [8k_1\sqrt{1+ax}(1-7ax)^{\frac{3}{2}}+k_2[11-7ax(2+7ax)] ]} ; \end{aligned}$$
(46)

and the mass function (10) becomes

$$ m(x)=\frac{-4ax^{\frac{3}{2}}}{\sqrt{C}(1-7ax)}. $$
(47)

We should pointed out that in all these cases the physical quantities are expressed in simple elementary functions that is necessary for detailed study of physical properties with ease. The mass functions we obtained are similar to mass functions used by Matese and Whitman [37] to generate equilibrium configurations in general relativity, Finch and Skea [5] to study the behaviour of neutron star and Mak and Harko [38] to analyze anisotropic relativistic stars. It is noted that the solutions given in Case I and Case IV may be regained as special cases of Thirukkanesh and Maharaj [35] charged model in the limit of vanishing electric field intensity. However, the physical significance of these solutions was not shown through a detailed analysis. Moreover, the classes of solutions obtained in Case II and Case III cannot be regained from Thirukkanesh and Maharaj charged model [35] and we believe that these classes are new solutions for the Einstein system of field equations.

5 Physical Analysis

In this section, we discuss the physical properties that has to be satisfied by realistic star for the model generated in Case I in detail.

  1. (i)

    Regularity of the gravitational potentials at the origin.

It is easy to show that e 2λ(0)=1, e 2ν(0)=A 2(5d 1+d 2) and [e 2λ(r)]′=[e 2ν(r)]′=0 at the centre r=0. This shows that the gravitational potentials are regular at the centre of the star.

  1. (ii)

    Positive definiteness of the energy density and the radial pressure at the origin.

Since the energy density at the centre is ρ(0)=−9aC, to satisfy positive definiteness condition we must take a<0.

The matter pressure at the centre is \(p(0)= -9aC\frac{(d_{2}-d_{1})}{(5d_{1}+d_{2})}\). Therefore to satisfy the positive definiteness property we have to choose the constants of integration d 1 and d 2 such that \(d_{2}>d_{1}>-\frac{d_{2}}{5}\) or \(d_{2}< d_{1}< -\frac{d_{2}}{5}\).

  1. (iii)

    Vanishing of the radial pressure at some finite radius.

At the boundary of the star r=R the condition p(R)=0 implies

$$ d_1\bigl(1-4aCR^2\bigr) \sqrt{1+aCR^2}- d_2 \bigl(1+2aCR^2\bigr) \sqrt{1-2aCR^2}=0. $$
(48)

This shows that the radius of the star R depend on the parameters a,C and the arbitrary constants d 1,d 2.

Junction condition: Interior metric match smoothly with the Schwarzschild exterior metric:

$$ds^2 = - \biggl( 1 - \frac{2M}{r} \biggr) dt^2 + \biggl( 1 - \frac{2M}{r} \biggr)^{-1} dr^2 + r^2 \bigl(d\theta^2 +\sin^2\theta d \phi^2\bigr) $$

across the boundary r=R, where M is the total mass of the sphere. This generate the conditions:

$$\begin{aligned} \biggl(1 -\frac{2M}{R} \biggr)^{-1} =& \frac{1-2 a C R^2}{1+aCR^2} \end{aligned}$$
(49)
$$\begin{aligned} \biggl(1 -\frac{2M}{R} \biggr) =&A^2 \bigl[d_1 \bigl(5-4aCR^2\bigr)\sqrt{1+aCR^2}+d_2 \bigl(1-2aCR^2\bigr)^{\frac{3}{2}} \bigr]^2. \end{aligned}$$
(50)

Although condition (49) does not impose any restriction on the parameters, condition (50) restricts the parameter A as

$$A^2=\frac{1+aCR^2}{(1-2 a C R^2) [d_1 (5-4aCR^2)\sqrt{1+aCR^2}+d_2 (1-2aCR^2)^{\frac{3}{2}} ]^2}. $$

We shall show the other conditions such as monotonic degrease of the energy density and the radial pressure with increasing radius, and casuality property by plotting figures for the relevant parameters for a particular example.

In view of comparing our model with realistic stars, values of model parameters and the relevant physical parameters calculated for various strange star candidates RXJ 1856-37, SAX J1808.4-3658(SS2), Her. X-1, SAX J1808.4-3658(SS1) and 4U 1820-30 in respective order are given in the Table 1. As stated a<0 above, taking a=−1 as an example, we show that this model satisfy the necessary physical requirements. In the calculation of numerical values for the physical parameters in the Table 1, we fixed values for parameters a=−1 and d 2=7 and used values for the parameters d 1 and C as given in the Table 1 such that the pressure at the boundary p(R)=0 (i.e. equation (48) satisfied).

Table 1 Pressure, density and mass for different stellar models

Our calculated masses 1.44M and 1.32M for radii 7.07 km and 6.35 km respectively, well corroborates with theoretical model [18] reported analysing pulsars SAX J1808.4-3658 (SS1 & SS2), which is also shown to be consistent with observational data and remarkable accord with the strange star models [18]. Our calculated values for surface densities for SAX J1808.4-3658 (SS1 & SS2) in Table 1 are more than five times of nuclear saturation density ρ n , suggesting the chargeless beta-stable (u,d,s) quarks may form the surface of the compact star with central core density in the order of 10ρ n , which substantiate the reported claim for strange star. Moreover, Mass-radius relation studies using different theoretical models to analyze the original experimental observations associated with cyclotron line data from the X-ray pulsar Her X-1 [39, 40], and with the X-ray burst spectra of 4U 1820-1830 [41], have shown that they are good strange star candidates. Our calculations of surface densities show ρ(R)=4.6ρ n and ρ(0)=8ρ n for Her X-1, and ρ(R)=2.8ρ n and ρ(0)=7.1ρ n for 4U 1820-30. Moreover, our calculated masses for respective strange star candidates coincide with the values of Tikekar and Jotania [17]. Therefore we compare the compaction parameter (mass-to-radius ratio) in [17]: u>0.3 for pulsars SAX J1808.4-3658 (SS1 & SS2) and 4U 1820-30 suggests they are strange stars of type I, and Her X-1 and RXJ 1856-37 are of type II (0.2<u<0.3), and the u value for neutron star counterparts are considered to be still lower.

To illustrate the radial dependence of physical quantities of the model, Figs. 16 were plotted for the same parameter values utilised in Table 1 corresponding for SAX J1808.4-3658 (SS1) with radius R=7.07 km. Figures 1 and 2 shows that the gravitational potential is finite and continuous at the interior and increases radially. Figure 3 illustrates that the energy density of the star decreases continuously from a value ρ(0)=12ρ n at the centre to ρ(7.07)=5.25ρ n at the surface where the isotropic interior matter pressure vanishes as illustrated in Fig. 4. The isotropic pressure increases continuously towards the origin from zero at the surface and reaches a maximum value p(0)=22.09×1035 dyne cm−2 at the centre. Figure 5 shows that \(0 <\frac{dp}{d\rho}<1\) throughout the interior of the star and hence satisfy the casuality condition: the speed of sound is less than the speed of light through out the interior of star. The combinations \(\frac{dp}{d\rho}\) and \(\frac{p}{\rho}\) are related to speed of sound v s as \(v_{s}^{2} = \frac{dp}{d\rho}=\gamma \frac{p}{\rho}\), and the bulk modulus κ=γp (where γ is the adiabatic index) gives a measure of the stiffness of the substance. Hence, the marginal increase and decrease of \(v_{s}^{2}\) (8 %) shown in Fig. 5 suggests adiabatic perturbations in the properties of the interior substance of the star. The observed decrease in ρ in Fig. 3 should increase v s towards the surface, but the \(v_{s}^{2}\) behaviour observed in Fig. 5 (i.e. a marginal increase of about 2.3 % and decrease) shows the fluctuation in the decreasing trend of the stiffness κ in the interior material as r increases.

Fig. 1
figure 1

Gravitational potential e 2ν

Fig. 2
figure 2

Gravitational potential e 2λ

Fig. 3
figure 3

Energy density

Fig. 4
figure 4

Matter pressure

Fig. 5
figure 5

The derivative dp/

Note that Figs. 3 and 4 respectively show ρ>0 and p≥0 throughout the interior of the star, and from the physical analysis it is observed that the models satisfy the null energy condition (ρ+p≥0), weak energy condition (ρ≥0 and ρ+p≥0) and strong energy condition (ρ+3p≥0 and ρ+p≥0). Moreover, Fig. 6 shows ρp>0 throughout the interior of the star, implying the model also satisfy the dominant energy condition (ρ≥0 and ρ±p≥0), and hence collectively satisfying the standard point-wise energy condition [42] of normal matter. The above detailed study is for a particular example from Case I. Given the simplicity of the models generated in subsequent cases, similar analysis can be performed without much difficulty.

Fig. 6
figure 6

The difference ρp

6 Conclusion

We have obtained four classes of solutions to the Einstein system in static spherically symmetric spacetimes by transforming the pressure isotropic condition into a hypergeometric equation by choosing a generalised rational form for one of the gravitational potentials. In general the solution is obtained in terms of hypergeometric functions and we extract four classes of solutions in terms of simple elementary functions as examples which would be desirable to study the physical behavior of relativistic compact objects in detail. A physical analysis show that our models satisfy all the fundamental requirements of a realistic star and match smoothly with the exterior Schwarzschild metric. We have demonstrated that our models yield stellar structures with masses and densities consistent with the previously reported experimental and theoretical studies in the description of strange stars. The models satisfy the standard point-wise energy condition that is required by normal matter. Therefore it is likely that our solutions may be helpful in the gravitational description of dense and ultradense stellar bodies such as SAX J1808.4-3658, 4U 1820-30, RXJ 1856-37, Her. X-1, etc. We believe that the classes of exact solutions found in this paper may assist in more detailed studies of relativistic compact stellar bodies and allow for varied matter distributions.