1 Introduction

The universality of the conservation law of energy and momentum, \(T^{\mu \nu };_\mu =0\), where \(T^{\mu \nu }\) is the energy–momentum tensor, in both flat and the curved spacetimes is one of the Einstein’s basic assumptions to get general relativity [1, 2]. With the help of this generalization to formulate the Mach principle, Einstein has obtained his famous tensor and then related field equations leading to the second order equation of motion [1, 2] which have too many applications in astrophysics and cosmology [2, 3]. In 1972, by relating \(T^{\mu \nu };_\mu \) to the derivative of the Ricci scalar, Rastall proposed a new formulation for gravity which converges to the Einstein formulation in the flat background (empty universe) [4]. Indeed, he argued that the \(T^{\mu \nu };_\mu =0\) assumption made by Einstein to obtain his field equations, is questionable in the curved spacetimes [4]. In fact, for \(T^{\mu \nu };_\mu \ne 0\), the gravitationally induced particle creation in cosmology is phenomenologically confirmed [5,6,7]. Moreover, in a gravitational system, quantum effects lead to the violation of the condition \(T^{\mu \nu };_\mu =0\) [8]. Hence, \(T^{\mu \nu };_\mu \) is directly related with the Ricci scalar, and therefore the Rastall theory may be considered as a classical formulation for the particle creation in cosmology [9]. In order to explain the issues regarding late-time cosmic acceleration, different dark energy models and modified theories of gravity has been presented, see, for instance [10, 11, 13,14,15,16,17,18,19].

After numerous years in the time of Einstein, Jacobson [20] demonstrated that one would be able to acquire the Einstein equations with the help of the Clausius relation on the local Rindler causal horizon. Actually, the purpose of the Jacobson’s work is for spacetimes with a causal horizon that the Einstein equations would be considered as a thermodynamical equation of state on the horizon, if one generalizes the four law of black holes to the causal horizon. Furthermore, Eling et al. [21] demonstrated that terms other than the Einstein–Hilbert, one can produce entropy due to non-equilibrium thermodynamic aspects to generalized f(R) theory by the jacobson’s idea, which yields the modification of the event horizon entropy [21, 22]. In fact, applying the thermodynamics laws to the horizon, and using the field equations, one can find the horizon entropy in various cosmological and gravitational setups [22,23,24,25,26,27,28,29,30,31,32,33,34,35].

The generalized second law of thermodynamics (GSLT) has also been studied extensively in the behavior of expanding universe. According to GSLT, “the entropy of matter inside the horizon plus entropy of the horizon remains positive and increases with the passage of time” [36]. It is assumed that the horizon entropy is given by the quarter of its area [24] or power law correction [37,38,39] or logarithmic entropy [40] and the Reyni entropy to analyze the validity of GSLT. Thermodynamics of a Schwarzschild black hole in phantom cosmology with entropy corrections has also been examined [41]. Most of the researchers have discussed the validity of GSLT of different system including the interaction of two fluid components, dark energy (DE) and dark matter [42,43,44,45], and that of three fluid components (DE, dark matter and radiation) [46,47,48] in the FRW universe. Cosmological investigations of thermodynamics in modified gravity theories have been executed in Refs. [49,50,51,52,53,54,55] (for a recent review on thermodynamic properties of modified gravity theories, see, e.g. [56]).

Recently, applying the thermodynamics laws to the spacetime horizon and using the Rastall field equations, the horizon entropy has been obtained in both the static and dynamic setup [33,34,35]. These results show that the horizon entropy in the Rastall theory differs from that of the Einstein theory, a signal addressing us that their Lagrangian are also different [57,58,59,60,61,62]. In addition, it has also been shown that the Rényi entropy content of horizon can help us in providing a proper description for the current accelerated universe in both the Einstein and Rastall theory [63], an analysis which also reveals some differences between the cosmological features of the Rastall theory and those of the Einstein theory. It is also useful to mention here that the Rastall theory provides a proper platform for generalizing the unimodular gravity which leads to the interesting cosmological consequences [64]. Some authors have also given their analysis on Rastall theory [89, 90].

In this paper, our aim is to discuss the validity of first law of thermodynamics, GSLT and thermodynamical equilibrium of the FRW universe in the Rastall theory of gravity in the presence of the equation of state (EoS) \(p=\rho (\gamma -1)\) (where p is the pressure, \(\rho \) is the energy density and \(\gamma \) is a EoS parameter). By applying the Clausius relation on the apparent horizon of the FRW universe, we get the validity of first law of thermodynamics in different entropy corrections. We also analyze the validity of GSLT and thermodynamical equilibrium on apparent horizon by assuming the different entropies such as Bekenstein entropy, logarithmic corrected entropy, power law corrected entropy and the Renyi entropy in Rastall theory of gravity.

The scheme of this paper is organized as follows. In Sect. 2, we present the basic equations, Rastall theory and cosmological parameters. In Sect. 3, we discuss thermodynamics on the apparent horizon using Bekenstein entropy. We investigate logarithmic corrected entropy, power law corrected entropy and the Renyi entropy in Sects. 46 respectively. Finally, conclusions are given in Sect. 7.

2 Basic equations

On the basis of Rastall theory of gravity, the ordinary energy–momentum conservation law is not always available in the curved spacetime and therefore we should have

$$\begin{aligned} T^{\mu \nu };_\mu =\lambda R^{,~\nu }, \end{aligned}$$
(1)

where R and \(\lambda \) are the Ricci scalar of the spacetime and the Rastall constant parameter respectively which should be determined from observations and other parts of physics [4]. With the help of above relation, a generalization of the gravitational field can be found as

$$\begin{aligned} G_{\mu \nu }+k\lambda g_{\mu \nu }R=kT_{\mu \nu }, \end{aligned}$$
(2)

here \(G_{\mu \nu },~T_{\mu \nu }\) and k are Einstein tensor, energy–momentum tensor and coupling constant respectively. Moreover for \(\lambda =0\), the Einstein field equations can be re-covered [4]. The line element of FRW universe can be written as

$$\begin{aligned} ds^2=-dt^2+a^2(t)\Bigg (\frac{dr^2}{1-\kappa r^2}+r^2 (d\theta ^2+\sin \theta ^2d\phi ^2 )\Bigg ). \end{aligned}$$
(3)

In this equation a(t) and \(\kappa \) are scale factor and curvature parameter respectively, while \(\kappa =-1, 0, 1\) denotes the open, flat and closed universe respectively [65]. We consider the \(\kappa =0\) for flat universe for which Freidmann equations in Rastall thoery can be be obtained by using Eqs. (2) and (3) as

$$\begin{aligned} (12k\lambda -3)H^2+6k\lambda {\dot{H}}=-k\rho \qquad \qquad \end{aligned}$$
(4)
$$\begin{aligned} (12k\lambda -3)H^2+(6k\lambda -2){\dot{H}}=-kp, \end{aligned}$$
(5)

where \(\rho \) is energy density and p is pressure of energy–momentum source.

The Bianchi identity implies \(G^{; \mu }_{\mu \nu }=0\) which leads to the equation of continuity [66] as follows

$$\begin{aligned} \frac{3k\lambda -1}{4k\lambda -1}{\dot{\rho }}+\frac{3k\lambda }{4k\lambda -1} {\dot{p}} +3H (\rho +p )=0. \end{aligned}$$
(6)

From above equation, one can rediscover the Friedmann equations and equation of continuity by taking \(\lambda =0\) and \(k=8\pi \). Further, combining Eqs. (4) and (5) and applying EoS parameter \(p=(\gamma -1)\rho \) where \(\frac{2}{3}\le \gamma \le 2\), we get

$$\begin{aligned} {\dot{H}}=-\frac{k}{2} (\gamma \rho ), \end{aligned}$$
(7)

which is independent of \(\lambda \). It is same as that of the standard cosmology, which depends on the Einstein theory and the FRW metric. Inserting the value of \({\dot{H}}\) in Eq. (4), it yields

$$\begin{aligned} H^2=\frac{k\rho (3k\lambda \gamma -1 )}{3 (4k\lambda -1 )}. \end{aligned}$$
(8)

Integration of Eq. (6) leads to the solution \(\rho =ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\). By putting this value in Eq. (8), we obtain

$$\begin{aligned} H=\sqrt{\frac{kb (3k\lambda \gamma -1 )a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{3 (4k\lambda -1)}}. \end{aligned}$$
(9)

It can be observed from this equation that the Hubble parameter becomes positive for \(k>0,~b>0\) and \(\lambda <\frac{1}{3\gamma k}\) (or \(\gamma <\frac{1}{3\lambda k}\) which leads to the constraint \(\frac{2}{3}\le \frac{1}{3\lambda k}\le 2\)).

In the following, we analyze the validity of first law of thermodynamics, GSLT and thermodynamical equilibrium in the presence of different entropies such as Bekenstein entropy, logarithmic corrected entropy, power law corrected entropy and the Renyi entropy.

3 Thermodynamical analysis for the modified Bekenstein entropy

Rastall gravitational field equations and Rastall Lagrangian are different from Einstein theory [67]. Therefore one can expect that the horizon entropy is in Rastall theory differs from Bekenstein entropy. In the flat FRW universe, apparent horizon relates with Hubble parameter as \(R_A=\frac{1}{H}\). Taking first derivative with respect to time, we get

$$\begin{aligned} \dot{R_A}=-\frac{{\dot{H}}}{H^2}=\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}. \end{aligned}$$
(10)

However, the modified Bekenstein entropy in Rastall theory on the apparent horizon takes the following form on [91]

$$\begin{aligned}&S_{A }=\frac{{\tilde{A}}}{4}\quad \text {and} \quad \text {where} \quad {\tilde{A}}=\left( 1+\frac{2\gamma }{1+4\gamma }\right) A \quad {with} \nonumber \\&A=4\pi R^2_A, \end{aligned}$$
(11)

and the units of \(c=\hbar =G=1\) has been considered. Recently, it has been proposed that the horizon entropy in the Rastall theory is the same as that of the Einstein theory [94], a result in contrast with the above equation. In Ref. [94], authors used the Misner–Sharp mass of the Einstein theory, but in Ref. [91], the Misner–Sharp mass of the Rastall theory is used to obtain the horizon entropy. Since the Misner–Sharp mass depends on the gravitational theory under investigation [92, 93], we take into account Eq. (11) as the horizon entropy in agreement with others attempts [95]. Also, the Hawking temperature at apparent can be defined as [96]

$$\begin{aligned} T_{A }=\frac{1}{2\pi R_A} \end{aligned}$$
(12)

The differential \(dE_{A }\) is the amount of energy crossing the apparent horizon can be evaluated as [68]

$$\begin{aligned} -dE_{A }=\frac{1}{2}R^3(\rho +p)Hdt=\frac{\gamma ba^{-\ \frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}dt. \end{aligned}$$
(13)

From Eq. (12) we can get the differential of surface entropy which leads to

$$\begin{aligned} T_AdS_A=\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}dt. \end{aligned}$$
(14)

The first law of thermodynamics is given with the help of the Clausius relation \(-\ dE_{A}=T_{A}dS_{A}\) written as

$$\begin{aligned} \Omega \ dt=T_{A}dS_{A}+dE_{A}, \end{aligned}$$
(15)

for the sake convenience, which leads to

$$\begin{aligned} \Omega =\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}-\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}. \end{aligned}$$
(16)

Therefore, the first law of thermodynamics holds when \(\Omega \rightarrow 0\) which leads to a constraint \(\gamma = \frac{1-k}{2(2k-1)}\).

Now we check the validity of GSLT and thermodynamical equilibrium for an isolated macroscopic physical system having maximum entropy state. Second law of thermodynamics has been generalized towards the cosmological system where it can be defined as the sum of all entropies of the constituents (mainly dark matter and DE) and entropy of boundary (either it is Hubble or apparent or event horizons) of the universe can never decrease, i.e., \(d(S_{A }+S_{f })\ge 0\). The Gibbs equation is of the form

$$\begin{aligned} T_fdS_f=dE_f+p dV, \end{aligned}$$
(17)

where \( T_{f } \) is the temperature of the cosmic fluid and \( E_{f }\) is the energy of the fluid (\(E_{f }=\rho V) \). From Eq. (17) we can find the differential of fluid entropy as

$$\begin{aligned} dS_f= & {} \frac{\gamma b}{8H^3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}} \nonumber \\&\times \Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma b}{2H^2}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg )dt. \end{aligned}$$
(18)

The total rate of change of entropy is given by

$$\begin{aligned} \dot{S_T}= & {} \frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma b}{2H^2}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg ) \nonumber \\&+\frac{(1+\frac{2\gamma }{1+4\gamma })k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}. \end{aligned}$$
(19)

For the validity of GSLT, \(\dot{S_T}\ge 0\) which gives us the following relation of scale factor

$$\begin{aligned} a\ge \Bigg (\frac{t}{\sqrt{Q}}+D\Bigg ), \end{aligned}$$

here D is the integration constant, \(Q=\frac{4k\lambda -1}{3k\lambda \gamma -1} -(1+\frac{2\gamma }{4\gamma +1})\) and \(P=\frac{-3\gamma (4k\lambda -1)}{3k\lambda \gamma -1}\). Taking the expression \(\acute{S}_T=\frac{dS_T}{da}=\frac{\dot{S_T}}{a H}\) and replacing the value of \(\dot{S_T}\), this equation becomes

$$\begin{aligned} {S'}_T= & {} \Bigg (\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg )\nonumber \\&+\frac{(1+\frac{2\gamma }{1+4\gamma })k\gamma b}{8H^3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg )\frac{1}{a H}. \end{aligned}$$
(20)

The graphical behavior of \({S'}_T\) versus scale factor a is shown in Fig. 1. It can be observed that GSLT satisfy the condition \({S'}_T\ge 0\) for chosen three values of \(\gamma \) which leads to the validity of GSLT.

Fig. 1
figure 1

Plot of \({S'}_T\) versus a for Bekenstein entropy using \(k=1,~\lambda =-1\) and \(b=1\)

In order to discuss the thermodynamical equilibrium, we obtain the second order differential equation by using Eq. (20), as follows

$$\begin{aligned} S^{''}_T= & {} \frac{3bk\gamma \sqrt{3}a^{-2-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}} \nonumber \\&\times \left( -\frac{9\sqrt{3}b\gamma ^2(4k\lambda -1)^2 a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{16(3k\lambda \gamma -1)^2\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}}+3bk\gamma \right. \nonumber \\&\left. \times \frac{\sqrt{3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{8\bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}}\right) \nonumber \\&-\frac{\sqrt{3}}{a^2\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}} \nonumber \\&\times \Bigg (-\frac{(4k\lambda -1)^2}{(3k\lambda \gamma -1)^2}\nonumber \\&\times \left( \frac{9\sqrt{3}b\gamma ^2a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{16\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}}\right) \nonumber \\&+\frac{3bk\gamma \sqrt{3} a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{8\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}}\Bigg )+\frac{\sqrt{3}}{a}\nonumber \\&\times \frac{1}{\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}} \nonumber \\&\times \Bigg (\frac{27b^2k^2\gamma ^2a^{-1-\frac{6\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{16\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{5}{2}} \nonumber \\&-\frac{81b^2k\gamma ^3\sqrt{3}}{32(3k\lambda \gamma -1)^2}\nonumber \\&\times \frac{a^{-1-\frac{6\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}(4k\lambda -1)^2}{\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{5}{2}} \nonumber \\&+\frac{27b\gamma ^3(4k\lambda -1)^3\sqrt{3}a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{16(3k\lambda \gamma -1)^3\left( \frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}}-9bk\gamma ^2\nonumber \\&\times \frac{\sqrt{3}(4k\lambda -1)a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{8(3k\lambda \gamma -1)\left( \frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\right) ^\frac{3}{2}}\Bigg ). \end{aligned}$$
(21)

Figure 2 represents its plot against a. The trajectories of \(S^{''}_T\) indicate the positive behavior for three values of \(\gamma \). This leads to the validity of thermodynamical equilibrium for all values of \(\gamma \).

Fig. 2
figure 2

Plot of \(S^{''}_T\) versus a for Bekenstein entropy using \(k=1,~\lambda =- \ 1\), and \(b=1\)

4 Thermodynamical analysis for logarithmic corrected entropy

To study the expansion of entropy of the universe, we discuss the addition of entropy related to the horizon. Quantum gravity allows the logarithmic corrections in the presence of thermal equilibrium fluctuations and quantum fluctuations [69,70,71,72,73,74,75,76,77,78,79,80,81]. Using the quantum gravity, one can get the corrected Wald entropy of horizons as [81]

$$\begin{aligned} S=S_{W}+\alpha \ln S_{W}+ \cdots , \end{aligned}$$
(22)

where \(\alpha \) is an unknown coefficient. The attempts for the Bekenstein–Hawking entropy (\(S_{BH}\)), as the Wald entropy in the Einstein theory [71], lead to [72,73,74]

$$\begin{aligned} S=S_{BH}+\alpha \ln S_{BH}+\frac{\beta }{S_{BH}}+\cdots \end{aligned}$$
(23)

where \(\beta \) is constant whose value is still under consideration (the same as \(\alpha \)). On one hand, Eq. (11) indicates that the difference between \(S_A\), which is a proper candidate for the Wald entropy in the Rastall theory, and \(S_{BH}\) is a constant coefficient (\(1+\frac{2\gamma }{1+4\gamma }\)). On the other hand, the same result as Eq. (23) is also obtainable by studying the effects of the thermal fluctuations on the horizon entropy [75, 76], and indeed, these thermal-based approaches are not restricted to \(S_{BH}\) [75, 76]. Therefore, we assume Eq. (23) is also valid for the Rastall theory, and write the logarithmic entropy corrected as

$$\begin{aligned} S_A=\frac{{\tilde{A}}}{4L^2_p}+\alpha \ln \frac{{\tilde{A}}}{4L^2_p} + \beta \frac{4L^2_p}{{\tilde{A}}}, \end{aligned}$$
(24)

where \(L_P\) is the Planck’s length. The differential form of above equation is given by

$$\begin{aligned} dS_A= & {} \frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2} \nonumber \\&\times \ \Bigg (\frac{ \bigg (1+\frac{2\gamma }{1+4\gamma }\bigg )}{4HL^2_p}+2\alpha H-\frac{16\beta H^3L^2_p}{ \bigg (1+\frac{2\gamma }{1+4\gamma } \bigg )}\Bigg )dt,\nonumber \\ \end{aligned}$$
(25)

which yields

$$\begin{aligned} T_AdS_A= & {} \frac{2k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{H} \nonumber \\&\times \left( \frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p}+2\alpha H-\frac{16\beta H^3L^2_p}{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }\right) dt. \end{aligned}$$
(26)

Using Eq. (15), we get

$$\begin{aligned} \Omega= & {} \frac{2k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{H} \nonumber \\&\times \ \Bigg (\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p}+2\alpha H-\frac{16\beta H^3L^2_p}{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }\Bigg ) \nonumber \\&-\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}. \end{aligned}$$
(27)

The plot of \(\Omega \) versus a for three values of \(\gamma \) taking same values of constants as previous case is shown in Fig. 3. It can be observed that first law of thermodynamics holds for some specific values of a , i.e., for \(\gamma =1\) at \(a=1.39\), at \(a=1.43\) for \(\gamma =1.2\) and for \(\gamma =1.4\) at \(a=1.45\) represent the validity of first law of thermodynamics.

Fig. 3
figure 3

Plot of \(\Omega \) versus a for logarithmic corrected entropy using \(k=1,~\lambda =- \ 1,~\alpha =- \ 1,~L_p=1,~\beta =1\) and \(b=1\)

Moreover, we analyze the validity of GSLT and thermodynamical equilibrium which hold if \(dS_T\ge 0 \) and \(d^2S_T<0\) satisfy respectively. From Eqs. (18) and (25), we get

$$\begin{aligned} \dot{S_T}= & {} \frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg (\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p}+2\alpha H-\frac{16\beta H^3L^2_p}{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }\Bigg ) \nonumber \\&+\frac{\gamma b}{8H^3}\nonumber \\&\times \ a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg ). \end{aligned}$$
(28)

This equation leads to the following equation

$$\begin{aligned} \acute{S}_T= & {} \frac{1}{a H}\Bigg (\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg (\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p} \nonumber \\&+2\alpha H-\frac{16\beta H^3L^2_p}{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }\Bigg )+\frac{\gamma b}{8H^3}\nonumber \\&\times \ a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg )\Bigg ).\nonumber \\ \end{aligned}$$
(29)

In case of logarithmic corrected entropy, we analyze the behavior of GSLT by plotting the graph of \(\acute{S}_T\) versus scale factor as shown in Fig. 4. The trajectories of GSLT meets the condition \(\acute{S}_T\ge 0\) for all the three vales of \(\gamma \) for specific ranges of a. For \(1.26<a,~1.27<a\) and \(1.28<a\) corresponding to \(\gamma =1,~1.2\) and 1.4 respectively indicates the positive behavior expressing the validity of GSLT.

Fig. 4
figure 4

Plot of \(\acute{S}_T\) versus a for logarithmic corrected entropy using \(k=1,~\lambda =- \ 1,~\alpha =- \ 1,~L_p=1,~\beta =1\) and \(b=1\)

In order to discuss the thermodynamical equilibrium, we again differentiate the above equation. It is given by

$$\begin{aligned} S^{''}_T= & {} \frac{\sqrt{3}}{a\sqrt{\frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}} \nonumber \\&\times \left( \frac{27b^2\gamma ^2k\sqrt{3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\Bigg )}{16\Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{5}{2}} \right. \nonumber \\&-\frac{9b\gamma ^2\sqrt{3}(4k\lambda -1)a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\Bigg )}{8(3k\lambda \gamma -1) \Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}} \nonumber \\&+\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)}\nonumber \\&\times \left( \frac{3bk\gamma \sqrt{3}a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{8L^2_p\Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}} \right. \nonumber \\&-\frac{bk\alpha \gamma \sqrt{3}a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}+8bkL^2_p\beta \nonumber \\&\times \left. \left. \gamma a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}\right) \right) \nonumber \\&+3bk\gamma \sqrt{3}a^{-2-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\nonumber \\&\times \frac{1}{2\Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}} \nonumber \\&\times \left( \frac{3b\gamma \sqrt{3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\Bigg )}{8\Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}}\right. \nonumber \\&+\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)}\left( \frac{\sqrt{3}(1+\frac{2\gamma }{1+4\gamma })}{4L^2_p\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}} \right. \nonumber \\&+\frac{2\alpha \sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}{\sqrt{3}}\nonumber \\&\left. \left. - \frac{16L^2_p\beta \Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}}{3\sqrt{3}}\right) \right) \nonumber \\&-\frac{\sqrt{3}}{a^2\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}\nonumber \\&\times \left( \frac{3b\gamma a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\Bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\Bigg )}{8\Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2}}\right. \nonumber \\&+\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)}\nonumber \\&\times \left( -\frac{16L^2_p\beta }{3\sqrt{3}} \times \Bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\Bigg )^\frac{3}{2} \right. \nonumber \\&+\frac{\sqrt{3}\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4L^2_p\sqrt{\frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}+\frac{2\alpha }{\sqrt{3}}\nonumber \\&\left. \left. \times \sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}\right) \right) . \end{aligned}$$
(30)

The graphical behavior of \(S^{''}_T\) versus a is shown in Fig. 5 for same constant values as mentioned above. We observe that all the trajectories express the positive behavior which represent non-equilibrium state of the solution. However, if we replace \(\beta =- \ 1\), we obtain the equilibrium states for \(a\le 1.2,~ a\le 1.225,~ a\le 1.24\) for logarithmic corrected entropy related to \(\gamma =1,~1.2,~1.4\) respectively as shown in Fig. 6 (outer graph). The inner plots in this figure show the trajectories for replacing the value of \(\beta =- \ 20\) which indicate the negative behavior for more values of a. This leads to the result that we obtain the thermodynamical equilibrium as we decrease the value of \(\beta \). However, first law of thermodynamics does not hold while GSLT satisfies for these negative values.

Fig. 5
figure 5

Plot of \(S^{''}_T\) versus a for logarithmic corrected entropy using \(k=1,~\lambda =- \ 1,~\alpha =- \ 1,~L_p=1,~\beta =1\) and \(b=1\)

Fig. 6
figure 6

Plot of \(S^{''}_T\) versus a for logarithmic corrected entropy using \(k=1,~\lambda =-\ 1,~\alpha =- \ 1,~L_p=1,~b=1\) and \(\beta =-1\) in outer graph while \(\beta =- \ 20\) in inner graph

5 Power-law corrected entropy

The quantum corrections provided to the entropy-area relationship lead to the curvature corrections in the Einstein–Hilbert action and vice versa [78, 82, 83]. As it has been shown in Ref. [91], the linear entropy-area relation \((S\sim A)\) in the Rastall theory is the same as that of the Einstein theory [84]. In addition, the entanglement of quantum fields between inside and outside of the horizon produces an entropy as \(A^m\), where m depends on the amount of mixing [85]. Thus, by adding this entropy to the horizon entropy [85], one may get the power-law corrected entropy as [85]

$$\begin{aligned} S_{A }=\frac{{\tilde{A}}}{4L^2_p} (1-F_\alpha {\tilde{A}}^{1-\frac{\alpha }{2}} ), \end{aligned}$$
(31)

where \(F_\alpha =\frac{\alpha (4\pi )^{\frac{\alpha }{2}-1}}{(4-\alpha )r^{4-\alpha }_c}\), \(\alpha \) is a dimensionless constant and \(r_c\) represents the crossover scale. The differential of Eq. (31) is given by

$$\begin{aligned} dS_A= & {} \frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2} \Bigg (\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p} \nonumber \\&-\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) ^{2-\frac{\alpha }{2}}F_\alpha }{4L^2_p} \Bigg (2-\frac{\alpha }{2}\Bigg )\Bigg (\frac{1}{H}\Bigg )^{3-\alpha }\Bigg )dt, \end{aligned}$$
(32)

which leads to

$$\begin{aligned} T_AdS_A= & {} \frac{2bk\gamma a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{H} \nonumber \\&\times \ \left( \frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p}- \frac{F_\alpha }{4L^2_p} \left( 2-\frac{\alpha }{2}\right) \left( \frac{1}{H}\right) ^{3-\alpha }\right) dt.\nonumber \\ \end{aligned}$$
(33)

Combining Eqs. (13) and (31), we get

$$\begin{aligned} \Omega= & {} \frac{2bk\gamma a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{H} \nonumber \\&\times \ \Bigg (\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) }{4HL^2_p} -\frac{\left( 1+\frac{2\gamma }{1+4\gamma }\right) ^{2-\frac{\alpha }{2}}F_\alpha }{4L^2_p} \Bigg (2-\frac{\alpha }{2}\Bigg )\Bigg (\frac{1}{H}\Bigg )^{3-\alpha }\Bigg ) \nonumber \\&-\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}. \end{aligned}$$
(34)

Figure 7 represents that the trajectories of \(\Omega \) against a with respect to three values of \(\gamma \) approach to zero which indicates the validity of first law of thermodynamics.

Fig. 7
figure 7

Plot of \(\Omega \) versus a for power law corrected entropy using \(k=1,~\lambda =- \ 1,~\alpha =1,~L_p=1,~r_c=\frac{1}{67}\) and \(b=1\)

To discuss the GSLT for power law corrected entropy at event horizon, we obtain the total entropy by using Eqs. (18) and (32) as

$$\begin{aligned} \dot{S_T}= & {} \frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg ) \nonumber \\&+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\nonumber \\&\times \left( \frac{\Bigg (1+\frac{2\gamma }{1+4\gamma }\Bigg )}{4HL^2_p} \right. \nonumber \\&\left. -\frac{\Bigg (1+\frac{2\gamma }{1+4\gamma }\Bigg )^{2-\frac{\alpha }{2}}F_\alpha }{4L^2_p} \Bigg (2-\frac{\alpha }{2}\Bigg )\Bigg (\frac{1}{H}\Bigg )^{3-\alpha }\right) . \end{aligned}$$
(35)

The above equation reduces to

$$\begin{aligned} \acute{S}_T= & {} \frac{1}{a H}\Bigg (\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg )\nonumber \\&+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\bigg (\frac{(1+\frac{2\gamma }{1+4\gamma })}{4HL^2_p} \nonumber \\&-\frac{(1+\frac{2\gamma }{1+4\gamma })^{2-\frac{\alpha }{2}}F_\alpha }{4L^2_p} \bigg (2-\frac{\alpha }{2}\bigg )\bigg (\frac{1}{H}\bigg )^{3-\alpha }\bigg )\Bigg ). \end{aligned}$$
(36)

The graphical behavior of \(\acute{S}_T\) against a is shown in Fig. 8 for three values of \(\gamma \). The trajectories follow the condition \(\acute{S}_T\ge 0\) by expressing positive behavior, which leads to the validity of GSLT for all values \(\gamma \). From Eq. (35), we find the second order differential equation as follows

Fig. 8
figure 8

Plot of \(\acute{S}_T\) versus a for power law corrected entropy using \(k=1,~\lambda =-1,~\alpha =-1,~L_p=1,~r_c=\frac{1}{67}\) and \(b=1\)

$$\begin{aligned} S^{''}_T= & {} \frac{27\gamma ^2(4k\lambda -1)^3a^{-1+\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg )}{16bk^2(3k\lambda \gamma -1)^3} \nonumber \\&\times \left( 3bk\gamma a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}} \right. \times \frac{\sqrt{3}(1+\frac{2\gamma }{1+4\gamma })}{8L^2_p \bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}} \nonumber \\&+3^{1+\frac{3-\alpha }{2}}(\alpha -3)(2-\frac{\alpha }{2}) a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\nonumber \\&\times \left. \frac{\alpha bk\gamma F_\alpha (1+\frac{2\gamma }{1+4\gamma })^{2-\frac{\alpha }{2}}\bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^{-1+\frac{\alpha -3}{2}}}{8L^2_p}\right) \nonumber \\&+27\gamma ^2(4k\lambda -1)^3\nonumber \\&\times \frac{a^{-2+\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg ) \bigg (-1+\frac{3\gamma (4k\lambda -1)}{3k\lambda \gamma -1}\bigg )}{16bk^2(-1+3k\lambda \gamma )^3} \nonumber \\&\times \left( \frac{{1}}{\sqrt{\frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}\right. \nonumber \\&\left. \times \frac{\sqrt{3}}{4L^2_p}-\frac{F_\alpha 3^{\frac{3-\alpha }{2}}(2-\frac{\alpha }{2}) \bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{\alpha -3}{2}}{4L^2_p}\right) .\nonumber \\ \end{aligned}$$
(37)

Figure 9 is showing the graph of \(S^{''}_T\) versus scale factor for \(\alpha =1\) respectively. The graph indicates the thermodynamical equilibrium as the plots are negative for all the values of \(\gamma \).

Fig. 9
figure 9

Plot of \(S^{''}_T\) versus a for power law corrected entropy using \(k=1,~\lambda =-1,~\alpha =1,~L_p=1,~r_c=\frac{1}{67}\) and \(b=1\)

6 The Renyi entropy

A novel sort of the Renyi entropy has been inspected in various cosmological and gravitational setups [63, 87, 88]. In which not exclusively is the logarithmic corrected entropy of the original, the Renyi entropy is utilized based on the fact that the Bekenstein Hawking entropy \(S_{BH}\) is a Tsallis entropy \(S_A\) [97]. One can obtain the Renyi entropy \(S_R\) [88]

$$\begin{aligned} S_R=\frac{\ln (1+\eta S_A)}{\eta }. \end{aligned}$$
(38)

The differential of this surface entropy is given by

$$\begin{aligned} dS_R=\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H}\left( \frac{\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{\eta (1+\frac{2\gamma }{4\gamma -1})+8H^2}\right) dt, \end{aligned}$$
(39)

which leads to

$$\begin{aligned} T_AdS_R=k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( \frac{2\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{\eta (1+\frac{2\gamma }{4\gamma -1})+8H^2}\right) dt. \end{aligned}$$
(40)

Both of these equations take the form

$$\begin{aligned} \Omega= & {} k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\left( \frac{2\left( 1+\frac{2\gamma }{4\gamma -1}\right) }{\eta (1+\frac{2\gamma }{4\gamma -1})+8H^2}\right) \nonumber \\&-\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}. \end{aligned}$$
(41)

The numerical display of above differential equation for \(\Omega \) against a for different values of \(\gamma \) is shown in Fig. 10. The first law of thermodynamics does not hold for \(\gamma -1.2,~1.4\) as all the corresponding trajectories fail to meet the condition \(\Omega \rightarrow 0\). The trajectory for \(\gamma =1\) represents the validity of first law of thermodynamics. Further, we analyze the validity of GSLT and thermodynamical equilibrium in the presence of Renyi entropy. Using Eqs. (18) and (39), we get

Fig. 10
figure 10

Plot of \(\Omega \) versus a for Renyi entropy using \(k=1,~\lambda =-\ 1,~\eta =1\) and \(b=1\)

$$\begin{aligned} \dot{S_T}= & {} \Bigg (\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg )\nonumber \\&+\frac{\left( 1+\frac{2\gamma }{4\gamma -1}\right) k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H}\bigg (\frac{2H}{\eta \left( 1+\frac{2\gamma }{4\gamma -1}\right) +8H^2}\bigg )\Bigg ), \end{aligned}$$
(42)
$$\begin{aligned} \acute{S}_T= & {} \frac{1}{a H}\Bigg (\frac{\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{8H^3}\Bigg (\frac{(1-4k\lambda )}{(3k\lambda \gamma -1)}+\frac{k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H^2}\Bigg )\nonumber \\&+\frac{\left( 1+\frac{2\gamma }{4\gamma -1}\right) k\gamma ba^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2H}\bigg (\frac{2H}{\eta (1+\frac{2\gamma }{4\gamma -1})+8H^2}\bigg )\Bigg )\Bigg ). \end{aligned}$$
(43)

Figure 11 indicates the plot of \(\acute{S}_T\) against scale factor a for three values of \(\gamma \). The trajectories in the plot are remain positive and obey the condition \(\acute{S}_T\ge 0\) for all values of \(\gamma \) which give the validity of GSLT. The second order differential equation takes the form

Fig. 11
figure 11

Plot of \(\acute{S}_T\) versus a for Renyi entropy using \(k=1,~\lambda =-\ 1,~\eta =1\) and \(b=1\)

$$\begin{aligned} S^{''}_T= & {} \frac{3\sqrt{3}bk\gamma a^{-2-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{2\bigg (\frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}} \nonumber \\&\times \left( \frac{3\sqrt{3}b\gamma a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg )}{8\bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}}\right. \nonumber \\&\left. +\frac{bk\gamma \left( 1+\frac{2\gamma }{4\gamma -1}\right) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{\eta \left( 1+\frac{2\gamma }{4\gamma -1}\right) +\frac{8bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{3(4k\lambda -1)}}\right) \nonumber \\&-\frac{\sqrt{3}}{a^2\sqrt{\frac{bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}\nonumber \\&\times \left( \frac{3\sqrt{3}b\gamma a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg )}{8\bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}}\right. \nonumber \\&+bk\gamma \left( 1+\frac{2\gamma }{4\gamma -1}\right) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\nonumber \\&\left. \times \frac{1}{\eta \left( 1+\frac{2\gamma }{4\gamma -1}\right) +\frac{8bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{3(4k\lambda -1)}}\right) \nonumber \\&+\frac{\sqrt{3}}{a\sqrt{\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}}}\nonumber \\&\times \left( \frac{27b^2\gamma ^2k\sqrt{3}a^{-1-\frac{6\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg )}{16\bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{5}{2}}\right. \nonumber \\&-9b\gamma ^2\sqrt{3}a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}\nonumber \\&\times \frac{(4k\lambda -1)\bigg (\frac{3\gamma (4k\lambda -1)}{2(3k\lambda \gamma -1)} -\frac{4k\lambda -1}{3k\lambda \gamma -1}\bigg )}{8(3k\lambda \gamma -1) \bigg (\frac{bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(4k\lambda -1)}\bigg )^\frac{3}{2}} \nonumber \\&+\frac{8b^2k^2 \gamma ^2\left( 1+\frac{2\gamma }{4\gamma -1}\right) a^{-1-\frac{6\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{\bigg (\eta \left( 1+\frac{2\gamma }{4\gamma -1}\right) +\frac{8bk(3k\lambda \gamma -1)a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}} }{3(4k\lambda -1)}\bigg )^2}\nonumber \\&\left. - \frac{3bk\gamma ^2(4k\lambda -1)\left( 1+\frac{2\gamma }{4\gamma -1}\right) a^{-1-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{(3k\lambda \gamma -1) \bigg (\eta \left( 1+\frac{2\gamma }{4\gamma -1}\right) +\frac{8bk(3k\lambda \gamma -1) a^{-\frac{3\gamma (4k\lambda -1)}{(3k\lambda \gamma -1)}}}{3(4k\lambda -1)}\bigg )}\right) \nonumber \\ \end{aligned}$$
(44)

The plot of \(S^{''}_T\) versus a for second order differential equation with apparent horizon as shown in Fig. 12. It is observed that \(S^{''}_T\ge 0\) with all values of \(\frac{2}{3}\le \gamma \le 2\) which leads to instability of thermodynamical equilibrium with \(S^{''}_T<0\).

Fig. 12
figure 12

Plot of \(S^{''}_T\) versus a for Renyi entropy using \(k=1,~\lambda =-\ 1,~\eta =1\) and \(b=1\)

7 Conclusions

In the present paper, we have investigated the validity of first law of thermodynamics, GSLT and thermodynamical equilibrium for the flat FRW universe in Rastall theory of gravity. For this purpose, we have taken the EoS for perfect fluid by considering the different entropies including the modified Bekenstein entropy, the logarithmic corrected entropy, power law corrected entropy and the Renyi entropy. We have summarized our results as follows:

  • For the modified Bekenstein entropy The plot of \(\acute{S}_T\) versus scale factor parameter as shown in Fig. 1 prove that GSLT is valid for all values of \(\frac{2}{3}\le \gamma \le 2\). Further, we have observed the validity of thermodynamical equilibrium. Figure 2 indicates that thermodynamical equilibrium satisfies the condition \(S^{''}_T<0\).

  • For logarithmic corrected entropy In the presence of logarithmic corrected entropy it can be seen that first law of thermodynamics is showing the validity for some specific points. These are for \(\gamma =1\) at \(a=1.39\), at \(a=1.43\) for \(\gamma =1.2\) and for \(\gamma =1.4\) at \(a=1.45\) represent the validity of first law of thermodynamics (Fig. 3). The trajectories of GSLT meets the condition \(\acute{S}_T\ge 0\) for all the three vales of \(\gamma \) for specific ranges of a which are \(a>1.07,~a>1.08\) and \(a>1.09\) corresponding to \(\gamma =1,~1.2\) and 1.4 respectively (Fig. 4). Further, the graphical behavior of \(S^{''}_T\) against a is shown in Fig. 5 does not hold the thermodynamical equilibrium when \(\beta \) is positive while Fig. 6 provide the validity of thermodynamical equilibrium for all values of \(\gamma \) with negative decreasing value of \(\beta \).

  • Power law corrected entropy In this entropy, we have analyzed that the first law of thermodynamics holds (Fig. 7) as well as the GSLT is valid for all values \(\gamma \) (Fig. 8). From Fig. 9, we have investigated that the thermodynamical equilibrium condition \(S^{''}_T<0)\) satisfied with all values a The trajectories of thermodynamical equilibrium are negative which lead to the instability of thermodynamical equilibrium.

  • For the Renyi entropy In this entropy, we have observed that the first law of thermodynamics does not hold for \(\gamma -1.2,~1.4\) as all the corresponding trajectories fail to meet the condition \(\Omega \rightarrow 0\). The trajectory for \(\gamma =1\) represents the validity of first law of thermodynamics. (Fig. 10). The graphical behavior of Fig. 11 shows that all trajectories remains positive for all values of \(\gamma \) which leads to the validity of GSLT. Moreover, thermodynamical equilibrium condition is not satisfied with all values of \(\gamma \) (Fig. 12).