1 Introduction

Phenomenological theories of gravity have been on the increase in recent times. Such ideas purport to resolve the problems which are shortcomings of the standard Einstein’s general theory of relativity. Specifically explaining the late time accelerated expansion of the universe remains an open question despite the successes of general relativity in satisfying fundamental experiments such as solar system tests. The seminal review article by Debono and Smoot [1] considers these anomalies and examines the question ‘why consider alternative theories’. The accelerated expansion of the universe has been confirmed by a number of programmes such as supernovae Type 1a data [2,3,4], Baryon Acoustic Oscillations [5] and the WMAP survey involving the cosmic microwave background [6]. In order to resolve the difficulty, proposals of exotic matter fields have emerged. These include dark energy, dark matter, quintessence, phantom fields and the like. These latter fields do not as yet enjoy any experimental support even though their motivations may be sound.

An alternative approach is to reconsider the fundamental geometry prescripts. A modification of the action principle may have the potential to resolve the anomalies with the standard theory. For example, in f(R) theories [7] the action involves a polynomial in the Ricci scalar. It has been demonstrated that such an approach may indeed explain the accelerated expansion of the universe. It has been shown by Goswami et al. [8] that the Buchdahl upperbound [9, 10] for the mass-radius ratio of general relativity may be improved in f(R) theory with more matter per unit mass being admitted. The results also have implications for our understanding of the dark matter problem. The serious drawback of f(R) theory is the appearance of higher derivative terms which correspond to ghosts. It is usual in gravity theory to have at most second order equations of motion. Moreover it has been demonstrated [11] that f(R) theory is conformally related to the scalar–tensor field theory of Brans and Dicke.

The most general tensor theory of gravity admitting at most second order derivatives is the Lovelock theory [12, 13]. The action consists of polynomials in the scalar invariants constructed from the Riemann tensor, Ricci tensor and the Ricci scalar. The drawback in this formalism is that the higher curvature terms are only active in dimensions higher than 4 provided that the field equations are generated from the metric tensor only. If the Lagrangian includes coupling with a scalar field such as a dilatonic field then the dynamics and geometry in 4 dimensions are influenced by the higher curvature effects [14]. Lovelock theory reduces to standard general relativity in dimensions 3 and 4 if no scalar fields are involved in the action and makes an active contribution to the dynamics from dimension 5 upwards. A special case of the Lovelock polynomial is the second order term known as the Gauss–Bonnet term that appears in the effective action of heterotic string theory [15]. The exterior field for a spherically symmetric star has been established by Boulware and Deser [16] for the neutral sphere and by Wiltshire [17] for the charged case in the mid 1980s. However, only recently were interior metrics found for perfect fluid astrophysical objects [18,19,20] in Einstein–Gauss–Bonnet gravity that could be matched to the Boulware–Deser [16] exterior metric.

If a scalar tensor action is sought then the most general such theory yielding second order equations of motion is due to Horndeski [21] and consists of the so called Fab Four components of the effective lagrangian. Several studies into its cosmological implications have been undertaken [22] and of late compact objects such as black holes and neutron stars were investigated by Silva et al. [23]. Tensor multi-scalar theory of gravity has also recently come into vogue [24].

Harko et al. [25] have proposed an action that is a function of the Ricci scalar R and the trace of the energy momentum tensor T which goes by the name f(RT) gravity. The equations of motion are indeed second order however the conservation of energy is sacrificed. This is ostensibly a drawback of the theory. However, it was argued by Rastall [26] that spacetime curvature could account for non-compliance with the Newtonian view of energy conservation [26,27,28]. Extensive investigations into the f(RT) paradigm have been conducted in recent times [29]. The effect of the f(RT) modification on radiating stars was discussed by Yousaf et al. [30]. Moreover Yousaf and other collaborators [31,32,33,34,35,36,37] have considered compact structures within this framework but with anisotropic pressures.

We examine the physically important case of perfect fluids displaying the isothermal property that is an inverse square law fall-off of density as well as a linear equation of state. In such universes galaxies are considered as pointlike structures. By design such models can only describe cosmological fluids as no hypersurface of vanishing pressure indicating a boundary is present.

The paper is structured as follows: Firstly we review the essential ingredients of the f(RT) framework. We then derive the isothermal model in f(RT) theory and compare with the solution for Einstein gravity. In the next section we probe the consequences of a constant gravitational potential since it is known in Einstein gravity that a necessary and sufficient condition for isothermal behavior is a constant spatial gravitational potential. Finally we impose a linear barotropic equation of state on our model but without any restriction on the density profile. Before we conclude with a discussion, we comment on the case of an inverse square fall-off of the density but without imposing an equation of state.

2 Elements of f(RT) theory

The f(RT) gravity action is given by

$$\begin{aligned} S=\frac{1}{16\pi }\int d^{4}xf(R,T)\sqrt{-g}+\int d^{4}x\mathcal {L}_m\sqrt{-g}, \end{aligned}$$
(1)

where f(RT) is an arbitrary function of the Ricci scalar R, and T is the trace of the energy momentum tensor \(T_{\mu \nu }\). The Lagrangian density \(\mathcal {L}_m\) for the matter field is defined as

$$\begin{aligned} T_{\mu \nu }= -\frac{2}{\sqrt{-g}}\frac{\delta \left( \sqrt{-g}\mathcal {L}_m\right) }{\delta g^{\mu \nu }}, \end{aligned}$$
(2)

and its trace by \(T=g^{\mu \nu }T_{\mu \nu }\). The Lagrangian density \(\mathcal {L}_m\) of matter has the form

$$\begin{aligned} T_{\mu \nu }= g_{\mu \nu }\mathcal {L}_m-2\frac{\partial \left( \mathcal {L}_m\right) }{\partial g^{\mu \nu }}, \end{aligned}$$
(3)

and is dependent only on the metric tensor components. Variation of the action (1) with respect to the metric \(g^{\mu \nu }\) generates the field equations

$$\begin{aligned}&f_R (R,T) R_{\mu \nu } - \frac{1}{2} f(R,T) g_{\mu \nu }\,+\,(g_{\mu \nu }\Box - \nabla _{\mu } \nabla _{\nu }) f_R (R,T)\nonumber \\&\quad =\, 8\pi T_{\mu \nu } - f_{T(R,T)} T_{\mu \nu } - f_{T(R,T)}\Theta _{\mu \nu }, \end{aligned}$$
(4)

where \(f_R (R,T)= \partial f(R,T)/\partial R\) and \(f_T (R,T)=\partial f(R,T)/\partial T\). \(\nabla _{\mu }\) denotes covariant differentiation and the box operator \(\Box \), is defined via

$$\begin{aligned} \Box \equiv \partial _{\mu }(\sqrt{-g} g^{\mu \nu } \partial _{\nu })/\sqrt{-g},\quad \text {and}\quad \Theta _{\mu \nu }= g^{\alpha \beta }\delta T_{\alpha \beta }/\delta g^{\mu \nu }. \end{aligned}$$

The covariant divergence of Eq. (4) produces the equation

$$\begin{aligned} \nabla ^{\mu }T_{\mu \nu }= & {} \frac{f_T(R,T)}{8\pi -f_T(R,T)}[(T_{\mu \nu }+\Theta _{\mu \nu })\nabla ^{\mu }\nonumber \\&\times \,\ln f_T(R,T)\nabla ^{\mu }\Theta _{\mu \nu }-(1/2)g_{\mu \nu }\nabla ^{\mu }T]. \end{aligned}$$
(5)

which clearly shows that energy is not conserved in this system. With the help of Eq. (3) the quantity \(\Theta _{\mu \nu }\) is expressible as

$$\begin{aligned} \Theta _{\mu \nu }= -2T_{\mu \nu }+g_{\mu \nu }\mathcal {L}_m-2g^{\alpha \beta } \frac{\partial ^2 \mathcal {L}_m }{\partial g^{\mu \nu }\partial g^{\alpha \beta }}. \end{aligned}$$
(6)

For the purposes of this investigation we consider a perfect fluid source with energy–momentum tensor

$$\begin{aligned} T_{\mu \nu }=(\rho +p)u_\mu u_\nu -pg_{\mu \nu }, \end{aligned}$$
(7)

where p is the pressure and \(\rho \) the energy density of strange matter, with \(u^{\mu }u_{\mu } = 1\) and \(u^\mu \nabla _\nu u_\mu =0\). If we take the matter Lagrangian density to be \(\mathcal {L}_m = -p\), and the Eq. (6) we obtain the relationship

$$\begin{aligned} \Theta _{\mu \nu }= -2T_{\mu \nu } -\rho g_{\mu \nu }. \end{aligned}$$
(8)

Following Harko et al we consider the simplest version of f(RT) namely \(f(R,T)=R+2\chi T\) where \(\chi \) is a coupling constant. The field equations are now given by

$$\begin{aligned} G_{\mu \nu }=8\pi T_{\mu \nu }+\chi Tg_{\mu \nu }+2\chi (T_{\mu \nu }+pg_{\mu \nu }), \end{aligned}$$
(9)

where \(\chi \) can be positive or negative. Equation (5) can now be written as

$$\begin{aligned} (8\pi +2\chi )\nabla ^{\mu }T_{\mu \nu }=-2\chi \left[ \nabla ^{\mu }(pg_{\mu \nu }) +\frac{1}{2}g_{\mu \nu }\nabla ^{\mu }T\right] \end{aligned}$$
(10)

and in the case of vanishing \(\chi \) the law of energy conservation in Einstein gravity is recovered.

3 Field equations

In coordinates \((t, r, \theta , \phi )\) the most general spherically symmetric line element reads as

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

where \(\nu (r)\) and \(\lambda (r)\) are arbitrary functions of the radial coordinate r only. We consider a comoving fluid 4-velocity field \( u^a = e^{-\nu /2} \delta _0^a \) and a perfect fluid source with energy momentum tensor given in Eq. (4). Additionally we use geometrized units such that the gravitational constant G and the speed of light c are taken as unity. Now Eqs. (9) and (11) generate the field equations

$$\begin{aligned} e^{-\lambda }\left( \frac{\lambda ^\prime }{r}-\frac{1}{r^2}\right) +\frac{1}{r^2}= & {} \left( 8\pi +3\chi \right) \rho -\chi p, \end{aligned}$$
(12)
$$\begin{aligned} e^{-\lambda }\left( \frac{\nu ^\prime }{r}+\frac{1}{r^2}\right) -\frac{1}{r^2}= & {} \left( 8\pi +3\chi \right) p-\chi \rho , \end{aligned}$$
(13)

where the prime denotes the derivative with respect to the radial coordinate, r. Introducing the transformation \(e^{-\lambda } = 1-2m(r)/r\) we obtain

$$\begin{aligned} m^{\prime }=4\pi r^2\rho +\frac{\chi (3\rho -p)r^2}{2}, \end{aligned}$$
(14)

where the function \(m = m(r)\) represents the gravitational mass. An additional equation may be written from (10)

$$\begin{aligned} \frac{dp}{dr}+(\rho +p)\frac{\nu ^{\prime }}{2}= \frac{\chi }{8\pi +2\chi }(p'-\rho ^{\prime }), \end{aligned}$$
(15)

that reduces to the energy conservation of general relativity when \(\chi = 0\). It is possible to rewrite Eqs. (12) and (13) in terms of energy density (\(\rho \)) and pressure (p) in the form

$$\begin{aligned} \rho= & {} \frac{e^{-\lambda }}{((8\pi + 3\chi )^2-\chi ^2)r^2}\left( 2(\chi + 4\pi )(e^{\lambda }-1) \right. \nonumber \\&\left. +\,r((8\pi + 3\chi )\lambda ' +\chi \nu ')\right) , \end{aligned}$$
(16)
$$\begin{aligned} p= & {} \frac{e^{-\lambda }}{((8\pi + 3\chi )^2-\chi ^2)r^2} \left( 2(\chi + 4\pi )(1 - e^{\lambda }) \right. \nonumber \\&\left. +\, r(\chi \lambda ' + (8\pi +3\chi )\nu ')\right) , \end{aligned}$$
(17)

while the equation of pressure isotropy \(G^r_r = G^{\theta }_{\theta }\) reduces to

$$\begin{aligned} r^2(2\nu '' + \nu '^2 -\nu '\lambda ') -2r(\nu ' + \lambda ') +4(e^{\lambda } -1) = 0. \end{aligned}$$
(18)

Observe that the equation of isotropy is the same for the ordinary Einstein’s equations with a perfect fluid source. Therefore any of the well known solutions reported over the past century (for example see Delgaty and Lake [38]) will satisfy (18).

4 Solution of the field equations with the isothermal property

A perfect fluid is said to be isothermal if the density and pressure both obey the inverse square law fall-off and consequently display the equation of state \(p = \gamma \rho \) for some real number \(0< \gamma < 1\) [39]. Accordingly let us insert

$$\begin{aligned} p = \frac{A}{r^2} \quad {\text{ and }} \quad \rho = \frac{B}{r^2} \end{aligned}$$
(19)

where A and B are arbitrary parameters (at this stage) into Eqs. (16) and (17). Observe that the field equations are essentially 3 in number and they contain four unknown functions. Accordingly, specifying two of the quantities, namely the density and pressure, appears to be over-determining the system. This is true, however, we shall utilise the pressure isotropy equation as a consistency condition and determine the relationship between A and B for the isothermal property to hold. This is a similar route followed by Saslaw et al. [39] in dealing with isothermal spheres in standard Einstein gravity.

Introducing (19) into (12) yields the differential equation

$$\begin{aligned} e^{-\lambda } (-1 + e^{\lambda } + r\lambda ') = 8\pi B + \chi (3B - A) \end{aligned}$$
(20)

which is written only in terms of the potential \(\lambda \). With the help of the substitution \(e^{\lambda } = \beta (r)\), Eq. (20) assumes the form

$$\begin{aligned} r\beta ' + (1-w_1 )\beta ^2 - \beta = 0 \end{aligned}$$
(21)

where we have set \(w_1 = 8\pi B + \chi (3B-A)\). Equation (21) is a Riccati equation and is solvable in the form

$$\begin{aligned} \beta = e^{\lambda } = \frac{C_1 r}{C_1 r( w_1 -1)-1} \end{aligned}$$
(22)

where \(C_1\) is a constant of integration. Putting (19) into (13) simplifies it to the form

$$\begin{aligned} e^{-\lambda } (1 - e^{\lambda } + r\nu ') = w_2 \end{aligned}$$
(23)

where we have labelled \(w_2 = 8\pi A + \chi (3A - B)\).

Now inserting (22) into (23) generates the solution

$$\begin{aligned} e^{\nu } = \frac{\left( 1-C_1 r (w_1 -1)\right) {}^{\frac{w_2 +1}{1- w_1}}}{r}. \end{aligned}$$
(24)

The isotropy equation (18) becomes

$$\begin{aligned} C_1 r (w_1^2+6 w_1 w_2+(w_2 -4) w_2)-w_1 -5 w_2 = 0 \end{aligned}$$
(25)

and for consistency it is required that the coefficient of r and the constant term simultaneously vanish. This is achieved for

$$\begin{aligned} \{(w_1, w_2) \} = \{(0; 0), (5, -1)\} \end{aligned}$$
(26)

which translates to

$$\begin{aligned} A = \frac{\chi - 4 \pi }{4 (\chi ^2+6 \pi \chi +8 \pi ^2)} \quad {\text{ and }} \quad B = \frac{7 \chi + 20 \pi }{4 (\chi ^2+6 \pi \chi +8 \pi ^2)} \end{aligned}$$
(27)

expressing A and B in terms of the coupling constant \(\chi \).

To ensure a subluminal sound speed requires \(0< \gamma = \frac{A}{B} < 1\) and this constrains the coupling constant to \(\chi < -4 \pi \) or \( \chi > 4\pi \) for the stability of the model. A positive pressure exists for \(-4 \pi< \chi < -\frac{20}{7}\pi \) or \(\chi > -2\pi \) while the positivity of the energy density is satisfied for \(-4\pi< \chi < -2\pi \) or \(\chi > 4\pi \). Reconciling all of these boils down to \(\chi > 4\pi \) for a stable causal configuration of perfect fluid with a linear barotropic equation of state and with the isothermal property. The mass of the infinite sphere behaves as

$$\begin{aligned} m= \frac{\chi - 4 \pi }{4 \left( \chi ^2+6 \pi \chi +8 \pi ^2\right) } r + K \end{aligned}$$
(28)

for some constant K. Observe that in the interval of validity above, the mass profile is a monotonically increasing function.

5 The Einstein isothermal model

The Saslaw et al. isothermal solution in Einstein gravity is given by the geometric variables

$$\begin{aligned} e^{\nu } = Hr^{4\alpha / (1+\alpha )} \quad e^{\lambda } = 1 + \frac{4\alpha }{(1+\alpha )^2} \end{aligned}$$
(29)

and dynamical quantities

$$\begin{aligned} 8\pi \rho = \frac{4\alpha }{4\alpha + (1+\alpha )^2} \frac{1}{r^2} \quad 8\pi p = \frac{4\alpha ^2}{4\alpha + (1+\alpha )^2}\frac{1}{r^2} \end{aligned}$$
(30)

where H is an integration constant and \(\alpha = \frac{p}{\rho }\) is a proportionality constant obeying \(0< \alpha < 1\). The positivity of \(e^{\lambda }\) requires \(\alpha < -3 -2\sqrt{2}\) or \(\alpha > -3 + 2\sqrt{2}\). Moreover, a positive density demands the window \(-3 -2\sqrt{2}< \alpha < -3 + 2\sqrt{2}\) or \(\alpha > 0\) while the interval \(\alpha < -3 -2\sqrt{2}\) or \(-3 + 2\sqrt{2}< \alpha < 0\) guarantees a positive pressure. Finally to ensure a causal stable fluid the constraint \(0< \alpha < 1\) must be enforced. Now routine checks show that there exists no values of \(\alpha \) such that all these constraints may be simultaneously satisfied in some interval on the real line. Accordingly the Saslaw model violates one or more physical requirements and is therefore not realistic. The modified gravity model we have presented in the previous section does not suffer this defect provided that the coupling constant satisfies \(\chi > 4\pi \).

6 Constant gravitational potential

It has been shown that a necessary and sufficient condition for isothermal behaviour, namely an inverse square fall off of the density and pressure, is a constant spatial gravitational potential \(\lambda \). This is valid in Einstein theory and the more general Lovelock theory [40]. But what are the consequences of a constant potential in f(RT) theory? We now examine this question.

Setting \(Z = k\) for some constant k in the isotropy equation (18) gives

$$\begin{aligned} e^{\nu } = c_2 r^{2-2 \sqrt{2-k}} \left( c_1+r^{2 \sqrt{2-k}}\right) {}^2 \end{aligned}$$
(31)

for the remaining temporal potential. Note that k is now restricted through \(0< k < 2\).

Introducing the substitutions \(a_1 = 2(\chi + 4\pi )\) and \(a_2 = 8\pi + 3\chi \) the density and pressure are given by

$$\begin{aligned} \rho= & {} \frac{2 \chi \left( \sqrt{2-k} \left( 1-\frac{2 c_1}{c_1+r^{2 \sqrt{2-k}}}\right) +k\right) +8 \pi (k-1)}{8 k (\chi +2 \pi ) (\chi +4 \pi )} \end{aligned}$$
(32)
$$\begin{aligned} p= & {} \frac{2 a_2 \left( c_1(1- \sqrt{2-k})+\left( 1+\sqrt{2-k}\right) r^{2 \sqrt{2-k}}\right) - (k-1) a_1(c_1+r^{2 \sqrt{2-k}})}{8 k (\chi +2 \pi ) (\chi +4 \pi )(c_1+r^{2 \sqrt{2-k}})} \nonumber \\ \end{aligned}$$
(33)

respectively while the sound speed has the remarkably simple constant value

$$\begin{aligned} \frac{dp}{d\rho } = \frac{8 \pi }{\chi }+3 \end{aligned}$$
(34)

and to ensure causal behaviour \(0< \frac{dp}{d\rho } < 1\) it is demanded that \(\chi \) obeys \(-4 \pi<\chi <-\frac{8\pi }{3}\) or approximately \(-12.566< \chi < -8.378\).

The expressions governing the energy conditions have the form

$$\begin{aligned}&\rho - p = \frac{c_1 \left( k+\sqrt{2-k}-2\right) +\left( k-\sqrt{2-k}-2\right) r^{2 \sqrt{2-k}}}{2 k (\chi +2 \pi ) \left( c_1+r^{2 \sqrt{2-k}}\right) } \end{aligned}$$
(35)
$$\begin{aligned}&\rho + p = \frac{\left( \sqrt{2-k}+1\right) r^{2 \sqrt{2-k}}-c_1 \left( \sqrt{2-k}-1\right) }{k (\chi +4 \pi ) \left( c_1+r^{2 \sqrt{2-k}}\right) } \end{aligned}$$
(36)
$$\begin{aligned}&\rho + 3p = \frac{\chi \left( \left( -k+5 \sqrt{2-k}+6\right) r^{2 \sqrt{2-k}}-c_1 \left( k+5 \sqrt{2-k}-6\right) \right) }{2 k (\chi +2 \pi ) (\chi +4 \pi ) \left( c_1+r^{2 \sqrt{2-k}}\right) } \nonumber \\&\quad +\, \frac{4 \pi \left( \left( -k+3 \sqrt{2-k}+4\right) r^{2 \sqrt{2-k}}-c_1 \left( k+3 \sqrt{2-k}-4\right) \right) }{2 k (\chi +2 \pi ) (\chi +4 \pi ) \left( c_1+r^{2 \sqrt{2-k}}\right) }. \end{aligned}$$
(37)

The active gravitational mass is calculated as

$$\begin{aligned} m = \frac{r^3 \left( -2 \sqrt{2-k} \chi \, _2F_1\left( 1,\frac{3}{2 \sqrt{2-k}};1+\frac{3}{2 \sqrt{2-k}};-\frac{r^{2 \sqrt{2-k}}}{c_1}\right) +\left( k+\sqrt{2-k}\right) \chi +4 \pi (k-1)\right) }{12 k (\chi +2 \pi ) (\chi +4 \pi )} \end{aligned}$$
(38)

where \(_2F_1\) is the familiar hypergeometric function.

In view of the complexity of the expressions for the dynamical quantities we conduct a qualitative study with the aid of graphical plots. The following parameter values have been used to generate the plots \(c_1 = 1\), \(c_2 = 2\) and \(k = 1.5\). These choices have been made following empirical fine tuning. Additionally we consider three different values for the coupling \(\chi \) namely \(\chi = - 12\) (thick curve), \(\chi = - 10\) (thin curve) and \(\chi = 0\) (dashed curve). These values of \(\chi \) are so chosen to coincide with the interval of validity ensuring a subluminal sound speed determined by Eq. (34). We provide two independent choices of \(\chi \) to indicate that the graphical profile is generic in the causally valid region. The third plot \(\chi = 0\) corresponds to the model in the standard Einstein framework.

Fig. 1
figure 1

Density versus radial value r

Fig. 2
figure 2

Pressure versus radial value r

Fig. 3
figure 3

Sound speed squared versus radial value r

Analysis of the plots: Figs. 1 and 2 display the density and pressure profile respectively and it can be observed that in all cases of \(\chi \) the curves are positive and increasing. The absence of a surface of vanishing pressure is evident and is characteristic of isothermal fluids. However, neither the density nor pressure appear to obey the inverse square law fall off from the center. Figure 3 depicts only curves for the f(RT) cases as the Einstein case is meaningless. the sound speed values are in the acceptable range of 0 to 1 to prevent a violation of causality. While the weak, strong and dominant energy conditions (Figs. 456) appear to be well behaved for the f(RT) cases, the weak energy condition is violated for the Einstein case. Finally the plot of the mass profile (Fig. 7) is reasonable. The mass increases more rapidly in the case of the f(RT) theory than compared to its Einstein counterpart. In summary, the f(RT) case displays more pleasing physical behavior than the Einstein case.

Fig. 4
figure 4

Weak energy condition versus radial value r

Fig. 5
figure 5

Strong energy versus radial value r

Fig. 6
figure 6

Dominant energy condition versus radial value r

Fig. 7
figure 7

Mass versus radial value r

7 Equation of state

In the Einstein framework, imposing the equation of state \(p = \alpha \rho \) determines a relationship between the metric potentials \(\nu \) and \(\lambda \). It is possible to isolate \(\nu '\) and substitute this into the equation of pressure isotropy – also an equation connecting \(\nu \) and \(\lambda \). The caveat in this approach is that the resulting nonlinear differential equation is difficult to integrate and to date no unique general solution is known. An alternative approach is to specify one of the four variables \(\nu \), \(\lambda \), p or \(\rho \) and then to solve the system to reveal the remaining three. Finally if the density or pressure equation is solvable for r in terms of \(\rho \) or p then a linear barotropic equation can easily be determined albeit that the expressions are lengthy. For example, if the density profile is prescribed in such a way that the resulting equation can be arranged as a polynomial equation up to quartic order in r, then the equation can be solved for r in terms of \(\rho \). Substituting r in the expression for p gives the equation of state. This equation of state is clearly not the most general one for \(p = \alpha \rho \) but represents a special case. For example see the seminal work of Tolman [41] wherein some Tolman models do indeed display equations of state. Note that in the Einstein case, specifying the density is tantamount to specifying the potential \(\lambda \) as the \(G^t_t = T^t_t\) equation only contains \(\lambda \) and \(\rho \) and is well known that the left-hand side may be expressed as an entire derivative. This is not the case in the f(RT) scenario where both \(\nu \) and \(\lambda \) appear in the same equation with \(\rho \). For this reason the incompressible fluid (constant density) solution is still unknown in f(RT) gravity. However, there is some extra latitude present through the constant \(\chi \) and an equation of state may be determined as shall be demonstrated below.

Imposing the equation of state \(p = \alpha \rho \) results in the relationship

$$\begin{aligned} r \nu ' = (\chi - \alpha a_2)r\lambda ' - (\alpha +1)a_1 (e^{\lambda } -1) \end{aligned}$$
(39)

expressing \(\nu \) in terms of \(\lambda \). Substituting (31) into the isotropy equation (18) generates the differential equation

$$\begin{aligned}&(\alpha +1)^2 a_1^2 \beta ^4+\beta ^2 \left( (\alpha +1) a_1 (\alpha a_1 +a_1 -4) \right. \nonumber \\&\quad \left. +\,(\alpha +1) a_1 r (2 \alpha a_2 -2 \chi -1) \beta '-4\right) \nonumber \\&\quad +\,r\beta \left( 2 r (\chi -\alpha a_2) \beta ''-\beta ' ((\alpha +1) a_1 (2 \alpha a_2-2 \chi +1)\right. \nonumber \\&\quad \left. -\,2 \alpha a_2 +2 \chi +2)\right) \nonumber \\&\quad -\,2 ((\alpha +1) a_1 (\alpha a_1+a_1 -2)-2) \beta ^3 \nonumber \\&\quad +\,r^2 (\alpha a_2 -\chi ) (\alpha a_2 -\chi +3) \beta '^2 = 0 \end{aligned}$$
(40)

governing the behaviour of \(e^{\lambda } = \beta \). Obtaining the general solution to (40) has proved elusive in view of the nonlinearity. The method of Lie group analysis was invoked however no symmetries could be detected immediately. However, on careful observation it is seen that in some cases (40) may be solved explicitly.

For the special case \(\alpha = \frac{\chi }{a_2}\) the isotropy equation becomes

$$\begin{aligned} \beta (\beta -1) (c_1^2 \beta + c_2) -r\beta ' (c_1 (\beta +1) +2 ) = 0 \end{aligned}$$
(41)

where we have redefined \(c_1 = (\alpha + 1)a_1\) and \(c_2 = -(\alpha +1) a_1 (\alpha a_1 + a_1-4)+4\). Dividing throughout by the first term on the left we may rearrange Eq. (41) to the form

$$\begin{aligned}&\beta ' \left( -\frac{(c_1 + 2)}{c_2 \beta } + \frac{2(c_1 + 1)}{(c_1^2 + c_2)(\beta - 1)} + \frac{c_1^3(2c_1 + c_1^2 - c_2 )}{c_2(c_1^2 + c_2)(c_1^2 \beta + c_2)} \right) \nonumber \\&\quad = \frac{1}{r} \end{aligned}$$
(42)

with the help of partial fractions. The solution by quadratures may now be obtained implicitly as

$$\begin{aligned} \frac{(\beta -1)^{\frac{2(c_1 + 1)}{(c_1^2 + c_2)}} (c_1^2 \beta + c_2)^{\frac{c_1( c_1^2 +2c_1 - c_2)}{c_2 (c_1^2 + c_2)}} }{\beta ^{\frac{c_1 + 2}{c_2}}} = Kr \end{aligned}$$
(43)

where K is a constant of integration. Equation (43) is essentially an algebraic equation in \(\beta (r)\). Clearly for judicious choices of the constants \(c_1\) and \(c_2\), Eq. (43) may be solved explicitly to find the gravitational potential function \(\beta \).

As an example, consider the choice \(c_1 = -2\) and consequently \(c_2 = - 8\) follows. Now from \(\frac{c_1}{\alpha + 1} = 2(\chi + 4\pi )\) and the original assumption \(\alpha = \frac{\chi }{a_2}\) we solve simultaneously and obtain the pair

$$\begin{aligned}&\{(\chi , \alpha )\} = \left\{ \left( \frac{ \left( \mp \sqrt{9+16 \pi +64 \pi ^2}-24 \pi -3\right) }{8}\right) , \right. \nonumber \\&\quad \left. \left( \frac{\pm \sqrt{9+16 \pi +64 \pi ^2}-3}{8 \pi }\right) \right\} \end{aligned}$$
(44)

or given approximately numerically as \(\{(\chi , \alpha )\} = \{ (-13.0854, 0.926495),( -6.51411, -1.16523)\} \). We must discard the negative value of \(\alpha \) since the causality criterion \(0< \alpha < 1\) will be violated. However, note that we are able to obtain the value \(\alpha = 0.926\) which indeed guarantees a subluminal sound speed. For this choice of \(c_2\) Eq. (43) is solvable and the metric potential evaluates to

$$\begin{aligned} \beta = e^{\lambda } = \frac{1-4K^2r^2}{1-2K^2r^2} \end{aligned}$$
(45)

which corresponds to the Vaidya–Tikekar [42] spheroidal geometry utilised to model superdense relativistic stars. In order to determine the remaining gravitational potential it is prudent to introduce the transformations \(x = 2K^2r^2\), \(Z(x) = e^{-\lambda }\) and \(e^{\nu } = y^2 (x)\) whence the equation of pressure isotropy assumes the form

$$\begin{aligned} 4x^2Z\ddot{y} + 2x^2\dot{Z}\dot{y} + (\dot{Z}x - Z +1)y=0 \end{aligned}$$
(46)

and is now a second order linear differential equation in y. Inserting \(Z=\frac{1-x}{1-2x}\) into (46) generates the potential

$$\begin{aligned} y= & {} c_1 \sqrt{1-x}+2 c_2 \left( \sqrt{1-2 x}- \sqrt{2(1-x)} \log \right. \nonumber \\&\times \left. \left( 2 \sqrt{1-x}+\sqrt{2-4 x}\right) \right) \end{aligned}$$
(47)

or in the canonical form

$$\begin{aligned} e^{\nu } = c_1 v_1 +2 c_2 \left( v_2- \sqrt{2}v_1 \log \left( 2 v_1+\sqrt{2}v_2\right) \right) \end{aligned}$$
(48)

where we have put \(v_1 {=} \sqrt{1-2K^2r^2}\) and \(v_2 = \sqrt{1-4K^2r^2}\). The pressure and density are given by

$$\begin{aligned} p= & {} \alpha \rho \nonumber \\= & {} \frac{2\alpha K^2r^2}{8 K_1 K_2 v_2^2} \left( \frac{ \chi v_1 \left( 2\sqrt{2} c_2 v_2 v_3 \log v_3 - c_1\right) }{\sqrt{2}\left( c_1 v_1+2 c_2 \left( v_2-\sqrt{2}v_1 \log v_3\right) \right) } \right. \nonumber \\&\left. -\,\frac{2 (3 \chi +8 \pi )}{v_2^2}- 2 K_1 \right) \end{aligned}$$
(49)

where we have made the further simplifications \(v_3 = (2 v_1+\sqrt{2}v_2)\), \(K_1 = \chi + 4\pi \) and \(K_2 = \chi + 2\pi \). Now we have a complete model with Vaidya–Tikekar [42] geometry and linear barotropic equation of state \(p = \alpha \rho \). A defect in this model is that there exists an essential singularity at \(r= \pm \frac{1}{2K}\). While the presence of the singularity is undesirable, it may not be a generic feature of this model. Suitable constants \(c_1\) and\(c_2\) may yet exist that support a well behaved cosmological model. Interestingly, the vanishing of the pressure for a finite r is possible allowing for the interpretation of this model as a bounded astrophysical distribution.

8 Relaxing the equation of state

Finally we consider the case where the density displays an inverse square-law fall-off but we refrain from imposing an equation of state. That is the system of field equations is now completely determined and the resulting solution should be inspected for an equation of state. It turns out that Eq. (16) allows us to write \(\nu '\) in terms of \(\lambda \) and its derivative. When this form is substituted into the isotropy equation (18) the resulting differential equation proves intractable to solve. Note that this situation does not arise in the standard Einstein gravity since on setting \(\chi = 0\) for the Einstein case, (16) can be solved explicitly for \(\lambda \) in terms of r. This has been amply demonstrated by Dadhich et al. [40, 43] for the Einstein case and its generalization pure Lovelock theory.

9 Conclusion

We have analysed the isothermal property in the framework of f(RT) theory. Demanding an inverse square fall-off of the density and the equation of state \(p = \alpha \rho \) yielded an exact model where the proportionality constant \(\alpha \) is expressed in terms of the coupling constant \(\chi \). For stability and to prevent super-luminal behavior of the fluid the value of \(\chi \) was constrained to a certain negative window. On setting \(\chi = 0\) we regain the Saslaw et al model for standard Einstein gravity and we discover that it is not physically reasonable. In contrast, the f(RT) model displayed the necessary features corresponding to expectations, namely a positive definite density and pressure and a sound speed obeying causality. While it is known that a constant spatial potential guarantees isothermal behaviour in the Einstein case and its generalization Lovelock gravity, such a prescription behaves completely differently in the (f(RT) gravity framework. Dropping the inverse square law requirement and requiring an equation of state, the f(RT) model is indeed solvable in at least one special case. We have given a prescription to determine other models which satisfy the field equations and the equation of state. The case of an inverse square fall-off of the density without an equation of state did not yield an exact solution.