1 Introduction

The widely accepted theory of gravitation is the General Relativity (GR) theory, as it passed many experimental and observational tests. For example, recently, gravitational waves within the framework of GR were detected by LIGO and Virgo detectors [1,2,3,4,5].

Despite many attractive features including this great success, there are still several theoretical challenges, which motivate us to search for some modifications in GR. For example, GR does not provide us sufficient ideas to resolve some shortcomings like initial singularity, flatness issues, fine-tuning, cosmological constant and cosmic coincidence problems [6,7,8,9].

To overcome these problems, several modified theories are introduced in the literature. The importance of these theories for studying the behavior of the accelerating universe was investigated [10,11,12,13], in which modifications were made in the gravitational part of Einstein–Hilbert action. On the other hand, the matter part modification of Einstein–Hilbert action yields dynamical models such as quintessence, k-essence, Chaplygin gas and holographic dark energy models [14,15,16,17,18,19,20,21,22]. These modified models can indeed well address the current accelerated expansion of the universe discovered by various observational aspects[23,24,25,26,27,28].

One of the simplest modified theory is the f(R) gravity, which is considered as most suitable for constructing cosmological models with differently ordered curvature invariants as a function of the Ricci scalar R. The unification of early-time inflation and late-time acceleration can be studied through f(R) gravity models [29, 30]. In the literature, it has been found that the higher order curvature terms in f(R) gravity model play a vital role to avoid cosmological singularities [31,32,33].

The weak field theory for stellar-like objects in the f(R) theory of gravity was discussed in Refs. [34,35,36]. Christian et al. in Ref. [37] have shown that one can then find the behavior of \(\psi (r)\) and \(\phi (r)\) outside the star in the metric

$$\begin{aligned} ds^{2}= & {} -(1-2\psi (r))dt^{2}+(1-2\phi (r))dr^{2}\nonumber \\&+r^2(d\theta ^{2}+\sin ^2 \theta d\varphi ^{2}), \end{aligned}$$
(1)

under the assumption that f(R) is an analytic function at a constant curvature for a pressureless fluid, with \(\psi (r)\) and \(\phi (r)\) being the post Newtonian metric potentials. This analysis has led to the value of the post-Newtonian parameter \(\gamma =\frac{1}{2}\), whereas from the solar system observations it is known that \(\gamma =1\). This results contradicts most of the f(R)-type gravity models proposed in the literature so far. For example, models with \(f(R)=R^{(1+\delta )}\), with \(\delta \ne 1\) conflict with the solar system test.

The \(f(R)=R-\frac{\beta }{R^n}\)-type models also suffer in passing the solar system tests [38] and from gravitational instabilities [39]. Also these theories are incapable of producing standard matter dominated era followed by acceleration expansion [40, 41]. The \(f(R)=R+\frac{\alpha }{R^m}-\frac{\beta }{R^n}\)-type models have difficulties in satisfying the set of constraints coming from early and late-time acceleration, big bang nucleosynthesis and fifth-force experiments [42].

Due to all these issues corresponding to most of the f(R) models, we will consider here some f(RT) models, for which T is the trace of the energy-momentum tensor. Recently, the f(RT) gravity was developed by Harko et al. [43] as a generalization of f(R) gravity. The theory contains an arbitrary function of the Ricci scalar R along with the trace of energy-momentum tensor T.

Thereafter, a wide literature was developed in the context of f(RT) gravity, such as [44,45,46,47,48,49,50,51,52,53]. But, there are still so many cosmological questions to investigate in f(RT) gravity. In herein model we choose the following form for the f(RT) gravity function: \(f(R,T)=f(R)+\lambda T\), with constant \(\lambda \). That is, we fix the T-dependence of the theory on its simplest case while investigate different cases for the R-dependence of it. We shall investigate if the T-term is capable of evading the shortcomings one faces in f(R) cosmological models. The accelerated expansion of the universe can indeed be described through modified gravity, but sometimes it faces a number of instabilities [38, 39] which yields further modifications in cosmological models.

Nojiri and Odinstov discussed a modified gravity with terms proportional to \(\ln (R)\) or \(R^{-n}(\ln R)^m\), which grow at small curvature [54]. The presence of \(\ln (R)\) or \(R^{-n}(\ln R)^m\) terms in f(R) gravity may be responsible for the acceleration of the universe. Again, Nojiri and Odinstov discussed the f(R) gravity cosmology by considering \(f(R)=R+\gamma R^{-n}\left( \ln \frac{R}{\mu ^2}\right) ^m\) [10]. These forms for the f(R) function were also used in [10, 54, 55] to study different aspects of the theory. In [56], the authors have shown that all these models exhibit current accelerating phase of the universe and the duration of the accelerating phase depends on the coupling constants of the gravitational action.

Moreover, Yousaf et al. have explored the realistic configuration of anisotropic structure of compact stars in f(R) gravity with three different forms for f(R) [57].

In the present article we will consider three different choices for the f(R) function as given in Ref. [56]. In the first model we will consider the mixed form for f(R), namely a positive and a negative power of the curvature R, which is normally assumed to study the inflationary scenario of the early universe and the accelerating phase of the present universe. Such a functional form reads (A) \(f(R,T)=R+\alpha R^2-\frac{\mu ^4}{R}+\lambda T\), where the constants \(\alpha \) and \(\mu \) have dimension of \(R^{-1}\) (i.e., \((time)^2\)) and \(R^{\frac{1}{2}}\) (i.e., \( (time)^{-1}\)) [61, 62]. The models (B) and (C) will be followed as \(f(R,T)=R+k\ln (\gamma R)+\lambda T\) and \(f(R,T)=R+me^{[-nR]}+\lambda T\) where \(k, \gamma , m\) and n are constants. Note that a form that allow a coupling between R and T, such as \(f(R,T)=R+\lambda T\), was already investigated in [63].

2 Basic formalism of the f(RT) gravity

The modified Einstein–Hilbert action for the f(RT) gravity is given by [43]

$$\begin{aligned} S=\int \sqrt{-g}\left[ \frac{1}{16\pi G}f(R,T)+L_{m}\right] d^{4}x, \end{aligned}$$
(2)

where \(L_{m}\) is the usual matter Lagrangian density of matter, f(RT) is an arbitrary function of R and T, the trace of the energy-momentum tensor \(T_{ij}\) of matter, and g is the determinant of the metric tensor \(g_{ij}\).

The energy-momentum tensor \(T_{ij}\) from the Lagrangian matter is defined as

$$\begin{aligned} T_{ij}=g_{ij}L_{m}-\frac{\partial L_{m}}{\partial g^{ij}}. \end{aligned}$$
(3)

By varying action (2) with respect to the metric component, the f(RT) gravity field equations are obtained as

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

where

$$\begin{aligned} \Theta _{ij}=-2T_{ij}+g_{ij}L_{m}-2g^{lm}\frac{\partial ^{2}L_{m}}{\partial g^{ij}\partial g^{lm}}. \end{aligned}$$
(5)

Here, \(f_{R}(R,T)=\frac{\partial f(R,T)}{\partial R}\), \(f_{T}(R,T)=\frac{ \partial f(R,T)}{\partial T}\), \(\Box \equiv \nabla ^{i}\nabla _{i}\), while \(\nabla _{i}\) is the covariant derivative.

With the choice of \(L_m=-p\), with p being the pressure, and assuming units such that \(G=1\), the term \(\Theta _{ij}\) is given by \(\Theta _{ij}=-2T_{ij}-pg_{ij}\) and Eq. (4) reduces to

$$\begin{aligned} G_{ij}=T_{ij}^{eff} \end{aligned}$$
(6)

where

$$\begin{aligned} T_{ij}^{eff}= & {} \frac{1}{f_{R}(R,T)}\left[ (8\pi +f_{T}(R,T))T_{ij}+pf_{T}(R,T)g_{ij}\right. \nonumber \\&\left. +\frac{f(R,T)-Rf_R(R,T)}{2}g_{ij}\right. \nonumber \\&\left. -(g_{ij}\Box -\nabla _{i}\nabla _{j})f_{R}(R,T)\right] . \end{aligned}$$
(7)

3 Field equations and Solutions

In the present article, we will concentrate on a spatially flat Friedmann–Lemaître–Robertson–Walker universe with a time-dependent scale factor a(t) such that the metric reads

$$\begin{aligned} ds^{2}=dt^{2}-a^{2}\left[ dr^{2}+r^2(d\theta ^{2}+\sin ^2 \theta d\phi ^{2})\right] . \end{aligned}$$
(8)

The energy-momentum tensor for a perfect fluid, which will be assumed here, is written in the form

$$\begin{aligned} T_{ij}=(\rho +p)u_iu_j-pg_{ij}, \end{aligned}$$
(9)

where p and \(\rho \) are, respectively, the pressure and energy density for the perfect fluid. Note that the trace of (9) reads \(T=\rho -3p\).

The general f(RT) gravity field equations for \(f(R,T)=f(R)+\lambda T\) and the above metric is given by

$$\begin{aligned} 3H^2= & {} \frac{1}{f_{R}}\left[ \left( 8\pi +\frac{3\lambda }{2}\right) \rho -\frac{\lambda }{2} p\right] \nonumber \\&+\frac{1}{f_{R}}\left[ \frac{f(R)-Rf_R}{2}-3H\dot{R}f_{RR}\right] , \end{aligned}$$
(10)
$$\begin{aligned} 2\dot{H}+3H^2= & {} \frac{1}{f_{R}}\left[ -\left( 8\pi +\frac{3\lambda }{2}\right) p+\frac{\lambda }{2} \rho \right] \nonumber \\&-\frac{1}{f_{R}}\left[ -\frac{f(R)-Rf_R}{2}+\dot{R}^2f_{RRR}\right. \nonumber \\&\left. +2H\dot{R}f_{RR}+\ddot{R}f_{RR}\right] , \end{aligned}$$
(11)

with dots representing derivatives with respect to time t and such that the Ricci scalar R for metric (8) is

$$\begin{aligned} R=-6(\dot{H}+2H^2). \end{aligned}$$
(12)

From Eqs. (10) and (11), the pressure p, the energy density \(\rho \) and the equation of state (EoS) parameter \(\omega =p/\rho \) can be analytically expressed as

$$\begin{aligned} \rho= & {} \frac{f_R}{2}\left[ \frac{-2\dot{H}}{8\pi +\lambda }+\frac{2\dot{H}+ 6H^2}{8\pi +2\lambda } \right] +\left[ \frac{H\dot{R}-\ddot{R}}{8\pi +\lambda }+ \frac{5H\dot{R}+\ddot{R}}{8\pi +2\lambda }\right] \nonumber \\&\times \frac{f_{RR}}{2}+ \left[ \frac{\dot{R}^2}{8\pi +2\lambda }-\frac{\dot{R}^2}{8\pi +\lambda }\right] \frac{f_{RRR}}{2}\nonumber \\&-\frac{f(R)-Rf_R}{2(8\pi +2\lambda )}, \end{aligned}$$
(13)
$$\begin{aligned} p= & {} \frac{f_R}{2}\left[ \frac{-2\dot{H}}{8\pi +\lambda }-\frac{2\dot{H} +6H^2}{8\pi +2\lambda } \right] +\left[ \frac{H\dot{R}-\ddot{R}}{8\pi +\lambda }- \frac{5H\dot{R}+\ddot{R}}{8\pi +2\lambda }\right] \nonumber \\&\times \frac{f_{RR}}{2}+ \left[ \frac{-\dot{R}^2}{8\pi +2\lambda }-\frac{\dot{R}^2}{8\pi +\lambda }\right] \frac{f_{RRR}}{2}\nonumber \\&+\frac{f(R)-Rf_R}{2(8\pi +2\lambda )}, \end{aligned}$$
(14)
$$\begin{aligned} \omega= & {} \dfrac{\frac{f_R}{2}\left[ \frac{-2\dot{H}}{8\pi +\lambda }-\frac{2\dot{H}+6H^2}{8\pi +2\lambda } \right] +\left[ \frac{H\dot{R}-\ddot{R}}{8\pi +\lambda }- \frac{5H\dot{R}+\ddot{R}}{8\pi +2\lambda }\right] \frac{f_{RR}}{2}+\left[ \frac{- \dot{R}^2}{8\pi +2\lambda }-\frac{\dot{R}^2}{8\pi +\lambda }\right] \frac{f_{RRR}}{2}+ \frac{f(R)-Rf_R}{2(8\pi +2\lambda )}}{\frac{f_R}{2}\left[ \frac{-2\dot{H}}{8\pi + \lambda }+\frac{2\dot{H}+6H^2}{8\pi +2\lambda } \right] +\left[ \frac{H\dot{R}-\ddot{R}}{8\pi +\lambda }+\frac{5H\dot{R}+\ddot{R}}{8\pi +2\lambda }\right] \frac{f_{RR}}{2} +\left[ \frac{\dot{R}^2}{8\pi +2\lambda }-\frac{\dot{R}^2}{8\pi +\lambda }\right] \frac{f_{RRR}}{2}-\frac{f(R)-Rf_R}{2(8\pi +2\lambda )}}. \end{aligned}$$
(15)

In order to derive exact solutions we will consider the hybrid expansion law for the scale factor as following [64]

$$\begin{aligned} a=t^{\eta }e^{\beta t}, \end{aligned}$$
(16)

where \(\eta \) and \(\beta \) are positive constants. Such a scale factor yields the deceleration parameter and Hubble parameter as

$$\begin{aligned} q= & {} -1+\frac{\eta }{(\beta t+\eta )^2}, \end{aligned}$$
(17)
$$\begin{aligned} H= & {} \frac{\eta +\beta t}{t}. \end{aligned}$$
(18)

From the relation \(a(t)=\frac{1}{1+z}\), with z being the redshift and the present scale factor \(a_0 = 1\), we obtain the following time-redshift relation:

$$\begin{aligned} t=\frac{\eta }{\beta } W\left[ \beta \left( \frac{1}{z+1}\right) ^{1/\eta }{\eta }\right] , \end{aligned}$$
(19)

where W denotes the Lambert function (also known as “product logarithm”).

Plotting q as a redshift function has the advantage of checking the reliability of the model, through the redshift value in which the transition from the deceleration stage to the present acceleration era of the universe occurs. We will denote the transition redshift by \(z_{tr}\). From Fig. 1, the transition occurs at \(z_{tr} =0.5662,0.6691,0.7574\), corresponding to a fixed value for \(\eta \), namely \(\eta =0.6\), and various values for \(\beta \), as \(\beta =0.5,0.55,0.6\). The transition values for our model are in accordance with the observational data, as one can check in [58,59,60].

Fig. 1
figure 1

Variation of deceleration parameter q against redshift z

Fig. 2
figure 2

Variation of energy density against time with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

3.1 The \(f(R,T)=R+\alpha R^2-\frac{\mu ^4}{R}+\lambda T\) Model

In this case, by using Eq. (16) for \(f(R,T)=R+\alpha R^2-\frac{\mu ^4}{R}+\lambda T\) in Eqs. (13)–(15), the analytical forms for p, \(\rho \) and \(\omega \) are expressed as follows (Figs. 2, 3, 4, 5):

$$\begin{aligned} \rho= & {} \frac{1}{2t^2} \left[ \frac{2 \eta }{\lambda +8 \pi }+\frac{3 (\eta +\beta t)^2-\eta }{\lambda +4 \pi }\right] \times \left\{ \frac{{\mu ^4} t^4}{36 \left[ \eta -2 (\eta +\beta t)^2\right] ^2}-\frac{12 \alpha \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}+1\right\} \nonumber \\&+\frac{3 \alpha G_{11}(t)}{t^4} +\frac{{\mu ^4} t^{2} G_{21}(t)}{36 \left[ \eta -2 (\eta +\beta t)^2\right] ^4}, \end{aligned}$$
(20)
$$\begin{aligned} p= & {} \frac{1}{2t^2} \left[ \frac{2 \eta }{\lambda +8 \pi }-\frac{3 (\eta +\beta t)^2-\eta }{\lambda +4 \pi }\right] \times \left\{ \frac{{\mu ^4} t^{4}}{36 \left[ \eta -2 (\eta +\beta t)^{2}\right] ^{2}}-\frac{12 \alpha \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^{2}}+1\right\} \nonumber \\&-\frac{36 \alpha F_{11}(t) }{(\lambda +4\pi ) (\lambda +8\pi ) t^4} +\frac{{\mu ^4} t^{2} F_{21}(t) }{36 \left[ \eta -2 (\eta +\beta t)^2\right] ^2}, \end{aligned}$$
(21)
$$\begin{aligned} \omega= & {} \dfrac{\frac{1}{{2t}^2} \left[ \frac{2 \eta }{\lambda +8 \pi }-\frac{3 (\eta +\beta t)^{2}-\eta }{\lambda +4 \pi }\right] \left\{ \frac{\mu ^4 t^4}{36 \left[ \eta -2 (\eta +\beta t)^2\right] ^2}-\frac{12 \alpha \left( 2 (\eta +\beta t)^{2}-\eta \right) }{t^{2}}+1\right\} -\frac{36 \alpha F_{11}(t) }{(\lambda +4\pi ) (\lambda +8\pi ) t^{4}} +\frac{{\mu ^4} {t}^2 {F}_{21}(t) }{36 \left[ \eta -2 (\eta +\beta t)^{2}\right] ^2}}{\frac{1}{2t^2} \left[ \frac{2 \eta }{\lambda +8 \pi }+\frac{3 (\eta +\beta t)^{2}-\eta }{\lambda +4 \pi }\right] \left\{ \frac{\mu ^4 t^4}{36 \left[ \eta -2 (\eta +\beta t)^2\right] ^2}-\frac{12 \alpha \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}+1\right\} +\frac{3 \alpha G_{11}(t)}{t^4} + \frac{{\mu ^{4}} {{t}^2} {G}_{21}(t)}{36 \left[ \eta -2 (\eta +\beta t)^{2}\right] ^{4}}}, \end{aligned}$$
(22)
Fig. 3
figure 3

Variation of energy density against z with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

Fig. 4
figure 4

Variation of pressure against time with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

where

(23)
(24)
$$\begin{aligned} F_{11}(t)= & {} \eta \left[ \eta ^4 (\lambda +25.1327)+8.37758 \eta ^3+\eta ^2 (-3.25 \lambda \right. \nonumber \\&\left. -60.7375) +\eta (1.5 \lambda +25.1327)\right] \nonumber \\&+\beta ^4 (1. \lambda +25.1327) t^4+\beta ^3 \eta (4 \lambda +100.531) t^3\nonumber \\&+\beta ^2 \eta t^2 [\eta (6 \lambda +150.796)+8.37758]\nonumber \\&+ \beta \eta t \left[ \eta ^2 (4 \lambda +100.531)+16.7552 \eta -2.5 \lambda \right. \nonumber \\&\left. -50.2655\right] , \end{aligned}$$
(25)
(26)
Fig. 5
figure 5

Variation of pressure against z with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

Fig. 6
figure 6

Variation of EoS parameter against time with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

3.2 The \(f(R,T)=R+k\ln (\gamma R)+\lambda T\) model

By using \(f(R,T)=R+k\ln (\gamma R)+\lambda T\) with Eq. (16) in Eqs. (13)–(15), the analytical forms for p, \(\rho \) and \(\omega \) are written as (Figs. 6, 7)

$$\begin{aligned} \rho= & {} \frac{-0.0833333}{2 (\eta +\beta t)^2-\eta } \left[ k-\frac{ 12 (\eta +\beta t)^2-6\eta }{t^2}\right] \nonumber \\&\times \left[ \frac{2 \eta }{\lambda +8 \pi }+\frac{3 (\eta +\beta t)^2-\eta }{\lambda +4 \pi }\right] \nonumber \\&+ \frac{\eta k G_{12}(t)}{12 (\lambda +4 \pi ) (\lambda +8 \pi ) \left[ 2 (\eta +\beta t)^2-\eta \right] ^3}\nonumber \\&- \frac{k}{4\lambda +16 \pi } \left\{ \log \left( -\frac{6 \gamma \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}\right) -1\right\} ,\nonumber \\ \end{aligned}$$
(27)
$$\begin{aligned} p= & {} \frac{-0.0833333 t^2}{2 (\eta +\beta t)^2-\eta } \left[ k-\frac{6 \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}\right] \nonumber \\&\times \left[ \frac{2 \eta }{(\lambda +8 \pi ) t^2}-\frac{6 (\eta +\beta t)^2-2 \eta }{(2 \lambda +8 \pi )t^2}\right] \nonumber \\&+ \frac{\eta k F_{12}(t)}{12 (\lambda +4 \pi ) (\lambda +8 \pi ) \left[ 2 (\eta +\beta t)^2-\eta \right] ^3} \nonumber \\&+\frac{k}{4\lambda +16 \pi } \left\{ \log \left( -\frac{6 \gamma \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}\right) -1\right\} ,\nonumber \\ \end{aligned}$$
(28)
(29)
Fig. 7
figure 7

Variation of EoS parameter against z with \(\alpha =0.2\), \(\mu =-1\), \(\lambda =-8\)

where

$$\begin{aligned} G_{12}(t)= & {} \lambda \biggl [-\eta (7 \eta -1)(1-2 \eta )^2 -28 \beta ^4 t^4+2 \beta ^3 \nonumber \\&\times (3-56 \eta ) t^3+2 \beta ^2 \left( -84 \eta ^2+22 \eta +3\right) t^2 \nonumber \\&-7 \beta \eta (2 \eta -1) (8 \eta -1) t\biggr ]\nonumber \\&-48 \pi (\eta +\beta t) (2 \eta +2 \beta t-1) \nonumber \\&\times \left[ 2 (\eta +\beta t)^2-\eta \right] , \end{aligned}$$
(30)
$$\begin{aligned} F_{12}(t)= & {} 4 \beta ^4 t^4 (3 \lambda +32 \pi )+2 \beta ^3 t^3 [3 \lambda (8 \eta -5) \nonumber \\&+32\pi (8 \eta -3)]+2 \beta ^2 t^2 \{6 \eta \lambda (6 \eta -5) +9 \lambda \nonumber \\&+16\pi [2 \eta (12 \eta -7)+3]\}+\beta \eta (2 \eta -1) \nonumber \\&\times (8 \eta -1)(3 \lambda +32 \pi ) t+(1-2 \eta )^2 [3 \eta \lambda (\eta +1) \nonumber \\&+16 \eta \pi (2 \eta +1)]. \end{aligned}$$
(31)
Fig. 8
figure 8

Variation of energy density against time with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

3.3 The \(f(R,T)=R+m e^{-nR}+\lambda T\) model

By taking \(f(R,T)=R+m e^{-nR}+\lambda T\) and Eq. (16) in Eqs. (13)–(15), the analytical forms for p, \(\rho \) and \(\omega \) are expressed as (Figs. 8, 9, 10, 11, 12, 13, 14, 15)

$$\begin{aligned} \rho= & {} \left\{ 1-m n e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}\right\} \left[ \frac{ \eta }{t^2 (\lambda +8 \pi )}-\frac{3 (\eta +\beta t)^2- \eta }{(2 \lambda +8 \pi )t^2}\right] \nonumber \\&+\frac{3 \eta m n^2 e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}G_{13}(t)}{t^6} -\frac{m e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}}{4 (\lambda +4 \pi )} \nonumber \\&\times \left\{ 1-\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}\right\} , \end{aligned}$$
(32)
$$\begin{aligned} p= & {} \left\{ 1-m n e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}\right\} \left[ \frac{ \eta }{(\lambda +8 \pi ) t^2}-\frac{3 (\eta +\beta t)^2- \eta }{(2 \lambda +8 \pi )t^2 }\right] \nonumber \\&+\frac{3 \eta m n^2 e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}F_{13}(t) }{t^6}+\frac{m e^{\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}}}{4 (\lambda +4 \pi )} \nonumber \\&\times \left\{ 1-\frac{6 n \left[ 2 (\eta +\beta t)^2-\eta \right] }{t^2}\right\} , \end{aligned}$$
(33)
(34)
Fig. 9
figure 9

Variation of energy density against z with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

Fig. 10
figure 10

Variation of pressure against time with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

Fig. 11
figure 11

Variation of pressure against z with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

Fig. 12
figure 12

Variation of EoS Parameter against time with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

where

$$\begin{aligned} G_{13}(t)= & {} \frac{12 \eta n (2 \eta +2 \beta t-1)^2-5 t^2 (\eta +\beta t) (2 \eta +2 \beta t-1)+t^2 (6 \eta +4 \beta t-3)}{\lambda +4 \pi }\nonumber \\&+\frac{2 \left[ 12 \eta n (2 \eta +2 \beta t-1)^2+t^2 (\eta +\beta t) (2 \eta +2 \beta t-1)+t^2 (6 \eta +4 \beta t-3)\right] }{\lambda +8 \pi }, \end{aligned}$$
(35)
$$\begin{aligned} F_{13}(t)= & {} \frac{12 \eta n (2 \eta +2 \beta t-1)^2-5 t^2 (\eta +\beta t) (2 \eta +2 \beta t-1)+t^2 (6 \eta +4 \beta t-3)}{\lambda +4 \pi }\nonumber \\&+\frac{2 \left[ 12 \eta n (2 \eta +2 \beta t-1)^2+t^2 (\eta +\beta t) (2 \eta +2 \beta t-1)+t^2 (6 \eta +4 \beta t-3)\right] }{\lambda +8 \pi }. \end{aligned}$$
(36)

4 Om diagnostic analysis

In the literature, state finder parameters and Om diagnostic analysis are used to differentiate dark energy models [65]. In order to understand the cosmological models, the Hubble, deceleration and EoS parameters play an important role. It is known from the literature that dark energy models produce a positive Hubble parameter and a negative deceleration parameter. So H and q cannot be used to differentiate effectively between different dark energy models. Thus Om diagnostic analysis plays a crucial role for such analysis. The Om diagnosis has also been applied to Galileons models [66, 67]. The Om(z) parameter for spatially flat universe is given by [65, 68]

$$\begin{aligned} Om(z)=\frac{\left[ \frac{H(z)}{H_0}\right] ^2-1}{(1+z)^3-1}. \end{aligned}$$
(37)

Here, \(H_0\) is the present value of the Hubble parameter. One can observe that the Om(z) parameter involves first derivatives of the scale factor, so Om diagnosis is a simpler diagnostic than the state finder diagnosis. The positive, negative and zero values of Om(z) represent the phantom (\(\omega <-1\)), quintessence (\(\omega >-1\)) and \(\Lambda \)CDM dark energy models, respectively [69] (Figs. 16, 17, 18, 19).

Fig. 13
figure 13

Variation of EoS Parameter against z with \(k=1\), \(\gamma =-2\), \(\lambda =35\)

Fig. 14
figure 14

Variation of energy density against time with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

Fig. 15
figure 15

Variation of energy density against z with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

Fig. 16
figure 16

Variation of pressure against time with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

Fig. 17
figure 17

Variation of pressure against z with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

Fig. 18
figure 18

Variation of EoS parameter against time with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

Fig. 19
figure 19

Variation of EoS parameter against z with \(m=0.2\), \(n=0.05\), \(\lambda =0.5\)

In our discussed models, the Om(z) parameter takes the form

$$\begin{aligned} Om(z)=\frac{(\beta ^2-H_0^2)W^2\left[ \frac{\beta \left( \frac{1}{z+1}\right) ^{1/\eta }}{\eta }\right] +2\beta ^2W\left[ \frac{\beta \left( \frac{1}{z+1}\right) ^{1/\eta }}{\eta }\right] +\beta ^2}{W^2\left[ \frac{\beta \left( \frac{1}{z+1}\right) ^{1/\eta }}{\eta }\right] H_0^2z(3+3z+z^2)}, \end{aligned}$$
(38)

and its behaviour can be seen in the Fig. 20.

Fig. 20
figure 20

Variation of Om(z) against z with \(H_0=67.77\) km s\(^{-1}\)M pc\(^{-1}\)

5 Concluding remarks

In the presented manuscript we have discussed Friedmann–Lemaître–Robertson–Walker cosmological models in the context of the f(RT) gravity.

Our cosmological solutions show a very healthy behaviour and yield great cosmological models. Particularly, let us argue about the EoS parameter evolution. Figures 6, 12 and 18 show a remarkable feature. They present for the evolution of \(\omega \) a scenario which is consistent with three different stages of the universe evolution, namely radiation, matter and dark energy eras, as we argue below.

One can see that for small values of time, \(\omega \sim 1/3\), which is the EoS parameter value for the primordial stage of the universe in which its dynamics was dominated by radiation [70], whose high temperature did not allow, for a period of time, the formation of the first atoms.

As the universe cool down, it allows the formation of the atoms and a posteriori the formation of stars, galaxies, clusters of galaxies etc. These objects, namely matter or pressureless matter, dominate the dynamics of the universe as a fluid with EoS \(\omega =0\) [70]. From Figs. 6, 12 and 18, we can see that after describing a radiation-dominated period, \(\omega \) indeed passes through 0, indicating the matter-dominated phase of the universe expansion.

Finally, for high values of time, \(\omega \rightarrow -1\), in accordance with recent observational data on fluctuations of temperature in the cosmic microwave radiation [71]. In standard model, the cosmological constant is the “mechanism” responsible for taking the universe to a “dark energy”-dominated phase, in which a negative pressure fluid accelerates its expansion. In the present approach, rather, the extra terms in f(R) and f(T) are the responsible for such an important feature, which remarkably evades the cosmological constant problem [72,73,74].

It is important to highlight that the description of three different stages of the evolution of the universe in a continuous and analytical form is not only a novelty in f(RT) gravity but also in the broad literature. Some of the few examples of complete cosmological models already present in the literature are those obtained from two scalar field quintessence models [75] and decaying vacuum models [76].

By comparing our results with present literature we are led to conclude that our particular forms for f(R) together with the linear term on T are responsible for the remarkable features of the present model. On this regard, one can note that f(RT) functional forms which are linear on both R and T-dependences generally do not yield complete cosmological scenarios as those here obtained [77,78,79].

Moreover, In Fig. 20, we plotted Om(z) for the redshift range \(0\le z\le 2\). We observe that when the redshift z is increasing within the interval \(0\le z\le 2\), the Om(z) is monotonically increasing, which also indicates the accelerated expansion of the universe.