1 Introduction

Recent observational data from the type Ia supernovae (SNeIa) [1, 2], cosmic microwave background radiation [3, 4] and large-scale structure [5, 6] provide ample evidence that the current universe is expanding rapidly, and the reason for this acceleration is still unknown. A group of cosmologists has tried to include the justification for this acceleration through a strange substance called dark energy into the standard cosmology. Another group of cosmologists believes in generalized gravity theories. These generalized theories are thought to be gravitational substitutes for dark energy as well as dark matter.

One of the generalized theories of general relativity in the scope of field theory, describing the nonlinear interactions of a spin-2 massive field, is the theory of massive gravity [7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. Firstly, Fierz and Pauli in 1939 described an action of a free-massive graviton with a second degree mass term [10]. In addition, in 1970, Van Dam, Veltman and Zakharov discovered that the predictions of linear theory differ from the results of linear general relativity in the limit of zero mass of the graviton. This difference is known as the vDVZ discontinuity [11, 12]. The vDVZ discontinuity in 1972 was rectified by Vainstein, who showed that supplementing the non-interacting Fizir–Pauli theory with a non-linear interaction theory could give rise to smooth this limit [13, 14].

In 1972, Boulware and Deser studied some completely non-linear massive gravity theories and showed that there is a ghost instability in them. Although the linear theory has 5 degrees of freedom, it was found that their investigated nonlinear theories have 6 degrees of freedom. The extra degree of freedom around non-flat background manifests itself as a scalar field with a kinetic energy that has the wrong sign. This scalar is known as the Boulware–Deser (BD) ghost [15].

Thereafter, in 2011, de Rham, Gabadadze and Tolley (dRGT) founded the dRGT theory, which is free from the sixth extra mode and the BD ghost [16, 17]. This theory has no closed and flat FRW cosmological solutions. The graviton mass in the open solution, produces an effective cosmological constant. If one consider the graviton mass of the order of the current Hubble constant, the effective cosmological constant of massive gravity can justify the current accelerated expansion.

Besides, there are different generalizations of massive gravity such as GMG theory [18,19,20], and dRGT massive gravity on de Sitter spacetime [21,22,23]. The GMG model is a generalized version of the constant mass dRGT theory in which a slowly varying time dependent mass function is considered for the graviton. This yields the background to remain stable for the allowed region of the parameter space, unlike the standard dRGT model [18]. Even with a small change in the model parameters, the strong coupling issue in the dRGT theory becomes more manageable [19]. In dRGT massive gravity on de Sitter, the secondary Minkowski metric is replaced by the de Sitter one. This results the model to have a flat cosmological solution in addition to the open solution in ordinary dRGT [21,22,23]. Gumrukcuoglu, Lin, and Mukohyama [24] have derived a de Sitter solution with an effective cosmological constant proportional to the mass of the graviton in the dRGT model of massive gravity. The same solution was then obtained for a spatially flat universe in [25]. In [26], it was shown that for the specific values of dRGT model parameters, the solution also exists for a universe with arbitrary spatial curvature. Furthermore, in [27], inflation has been studied in the dRGT massive gravity framework. In [28], the background dynamics and the growth of matter perturbations in the extended quasidilaton setup of massive gravity have been investigated. Additionally, in [29], based on an objective model of massive gravity, the linear growth of matter fluctuations has been studied.

One of another subjects of interest in the cosmology is study of validity of the generalized second law (GSL) of thermodynamics in the accelerating universe. The GSL like the first law of thermodynamics is an accepted law in physics. According to the GSL, the total entropy of the universe including matter and the entropy of horizon should not be reduced over time. The GSL of thermodynamics has been studied in different theories of gravity [30,31,32,33,34,35,36]. The GSL was first formulated by Bekenstein in 1973 for black holes. With the studies done, it was found that the ordinary second law of thermodynamics is violated for black holes. To prevent this violation, the entropy of horizon should be added to the entropy of matter and this is called the generalized second law of thermodynamics. According to that the total entropy of black hole and entropy of the black hole horizon cannot be decreased by increasing the time.

All mentioned in above motivate us to study the GSL of thermodynamics in massive gravity. To this aim, within the framework of massive gravity we consider two models including GMG as well as dRGT on de Sitter and explore the validity of GSL for both of them. The rest of paper is organized as follows: Sect. 2 is devoted to universal thermodynamics in modified gravity. In Sects. 3 and 4, the dynamics of background cosmology and validity of GSL are investigated for the GMG and dRGT on de Sitter models, respectively. At last, the results of our study are summarized in Sect. 5.

2 Universal thermodynamics

For a universe filled with matter and enclosed by the horizon, the GSL is as follows [37, 38]

$$\begin{aligned} {\dot{S}}_\textrm{tot}=\dot{S_A}+{\dot{S}}_{m}\ge 0, \end{aligned}$$
(1)

wherein \( S_{A} \) and \({S}_{m} \) denote the horizon and matter entropy, respectively. Also the dot indicates derivative with respect to the cosmic time. To determine \( \dot{S_ A} \) one can use the Clausius relation as

$$\begin{aligned} \delta Q_A=T_{A}dS_A=-d E_A, \end{aligned}$$
(2)

where \( E_A \) is the energy flow across the horizon, and \(T_A\) implies the apparent horizon temperature defined as

$$\begin{aligned} T_{A} =\frac{1}{2 \pi R_{A}}\left( 1-\frac{\dot{R_A}}{2 H R_{A}}\right) . \end{aligned}$$
(3)

Here \(H\equiv {\dot{a}}/a\) is the Hubble parameter, a is the scale factor for expanding universe, and the radius of the apparent horizon \(R_{A}\) is as follows

$$\begin{aligned} R_{A}=\frac{1}{\sqrt{H^{2}+\frac{k}{a^2}}}, \end{aligned}$$
(4)

in which k is the spatial curvature. Additionally, the entropy of matter is obtained by the Gibbs equation as follows [39]

$$\begin{aligned} T_{m}dS_{m}= dE_{m}+p_{m}dV, \end{aligned}$$
(5)

in which \(E_m=\rho _{m} V\) is the total energy of the matter inside the horizon, \(p_{m}\) is the matter pressure, \(V=\frac{4}{3} \pi R_{A}^3\) is the volume of the universe and \( T_m\) is the matter temperature.

In most generalized gravity theories, the Friedmann equations governing the FRW universe can be written as

$$\begin{aligned}{} & {} H^2+\frac{k}{a^2}=\frac{8\pi G}{3 }\rho _{t}, \end{aligned}$$
(6)
$$\begin{aligned}{} & {} {\dot{H}}-\frac{k}{a^2}=-4 \pi G(\rho _{t}+p_{t}), \end{aligned}$$
(7)

wherein \(\rho _{t}=\rho _m+\rho _{DE} \) and \( p_{t}=p_m+p_{DE} \) indicate the total energy density and pressure. Here \((\rho _m, p_m)\) are related to the distribution of matter and (\(\rho _{DE}\),\( p_{DE}\)) can be considered as effective density and pressure of dark energy.

Applying the Clausius relation \(\delta Q_A=T_{A}dS_A\), the apparent horizon entropy is computed as follows [40]

$$\begin{aligned} S_{A} =\frac{A}{4G}-8 \pi ^2 \int H R_{A}^4 (\rho _{DE}+p_{DE}) dt, \end{aligned}$$
(8)

in which \(A=4\pi R_{A}^2 \) denotes the horizon area. Equation (8) shows that the apparent horizon entropy is the standard Bekenstein entropy with a modified term (in integral form).

From Eqs. (3), (5) and using \({\dot{\rho }}_m+3H(\rho _m+p_m)=0\), the entropy of matter inside the universe can be computed as follows

$$\begin{aligned} T_{A}\dot{S_{m}}=4\pi R_{A}^2(\rho _{m}+p_{m})\Big [\dot{R_{A}}-H R_{A}\Big ], \end{aligned}$$
(9)

where we have assumed the horizon and fluid temperature are equivalent to each other \(T_{m}=T_{A}\).

From Eq. (8) one can calculate the entropy of the apparent horizon as

$$\begin{aligned} T_{A}\dot{S_{A}}= & {} \frac{1}{2 \pi R_{A}}\left( 1-\frac{{\dot{R}}_A}{2 H R_A}\right) \nonumber \\{} & {} \times \left[ \frac{2\pi R_A {\dot{R}}_A}{G} -8\pi ^2 H R_A^4(\rho _{DE} + p_{DE})\right] . \end{aligned}$$
(10)

Using Eqs. (4) and (7), the time derivative of the apparent horizon radius is obtained as follows

$$\begin{aligned} \dot{R_A}= & {} -HR_{A}^3\left( {\dot{H}}-\frac{k}{a^2}\right) ,\nonumber \\= & {} 4\pi G H R_{A}^3 \big [\rho _m+p_m+(\rho _{DE}+p_{DE})\big ]. \end{aligned}$$
(11)

Replacing Eq. (11) into (9) and (10) one can get

$$\begin{aligned} T_A\dot{S_m}= & {} 16\pi ^2 G H R_A^5 (\rho _m+p_m) \nonumber \\{} & {} \times \big [\rho _m+p_m+(\rho _{DE}+p_{DE})\big ]\nonumber \\{} & {} -4\pi H R_A^3\left( \rho _m+p_m\right) , \end{aligned}$$
(12)
$$\begin{aligned} T_A\dot{S_{A}}= & {} 4 \pi H R_{A}^3(\rho _m+p_m)\nonumber \\{} & {} - 8\pi ^2 G H R_{A}^5(\rho _m+p_m) \nonumber \\{} & {} \times \big [\rho _m+p_m+ (\rho _{DE}+p_{DE})\big ]. \end{aligned}$$
(13)

Adding Eqs. (12) and (13), the GSL of thermodynamics in modified gravity can be obtained as

$$\begin{aligned} T_A{\dot{S}}_\textrm{tot}= & {} T_A\dot{S_{A}}+T_A\dot{S_m}=8\pi ^2 G H R_{A}^5 (\rho _m+p_m)\nonumber \\{} & {} \times \big [\rho _m+p_m+(\rho _{DE}+p_{DE})\big ]. \end{aligned}$$
(14)

Note that in the Einstein gravity, where \(S_A=\frac{A}{4\pi G}\) from Eq. (8) we have \(\rho _{DE}+p_{DE}=0\) and consequently, Eq. (14) reduces to

$$\begin{aligned} T_{A} {\dot{S}}_\textrm{tot}= 8\pi ^2 G H R_{A}^5 (\rho _m+p_m)^2\ge 0, \end{aligned}$$
(15)

which shows that the GSL is always respected in the Einstein gravity [41].

In the next sections, within the framework of massive gravity, we consider the two models including the GMG and dRGT on de Sitter and examine the validity of the GSL for both models.

3 Generalized massive gravity

The action of GMG model including the Einstein–Hilbert action and the generalized dRGT takes the form [42]

$$\begin{aligned} S= & {} M_{P}^2\int d^4x\sqrt{-g}\nonumber \\{} & {} \times \left[ \frac{R}{2}+m^2\sum ^{4}_{n=0}\alpha _{n}(\phi ^a\phi _{a})U_{n}[{\mathcal {K}}]\right] +S_m, \end{aligned}$$
(16)

in which \(M_{P}=1/\sqrt{8\pi G}\) is the reduced Planck mass, g is determinant of the metric tensor, R is the Ricci scalar, m is the graviton mass and \(S_m\) is the action of matter. Also the free parameters \(\alpha _n(\phi ^a\phi _a)\) are functions of the Lorentz invariant term \(\eta _{ab}\phi ^{a}\phi ^{b}\) in which \(\phi ^a\) is the Stückelberg field.

Also the functions \( U_n\) in the action (16) denote the dRGT potential terms which are defined as

$$\begin{aligned} U_0 ({\mathcal {K}})&=1,\nonumber \\ U_1 ({\mathcal {K}})&=[{\mathcal {K}}],\nonumber \\ U_2 ({\mathcal {K}})&=\frac{1}{2!}([{\mathcal {K}}]^2-[{\mathcal {K}}^2]),\nonumber \\ U_3 ({\mathcal {K}})&=\frac{1}{3!}([{\mathcal {K}}]^3-3[{\mathcal {K}}][{\mathcal {K}}^2]+2[{\mathcal {K}}^3]),\nonumber \\ U_4 ({\mathcal {K}})&=\frac{1}{4!}([{\mathcal {K}}]^4-6[{\mathcal {K}}]^2[{\mathcal {K}}^2]\nonumber \\&\quad +8[{\mathcal {K}}][{\mathcal {K}}^3] +3[{\mathcal {K}}^2]^2-6[{\mathcal {K}}^4]), \end{aligned}$$
(17)

where the square brackets denote the trace operation on the tensor \({\mathcal {K}}\) defined as

$$\begin{aligned} {\mathcal {K}}^{\mu }_{\nu }=\delta ^{\mu }_{\nu } -\big (\sqrt{g^{-1} f}~\big )^\mu _\nu . \end{aligned}$$
(18)

Also \(f_{\mu \nu }\) is the fiducial metric which is defined in terms of four Stückelberg fields \(\phi ^a\) as \(f_{\mu \nu }\equiv \eta _{ab}\partial _{\mu }\phi ^a\partial _{\nu }\phi ^b\).

Here, we consider an open FRW background as

$$\begin{aligned} g_{\mu \nu }dx^{\mu }dx^{\nu }=-dt^{2}+a(t)^2\Omega _{ij}dx^{i}dx^{j}, \end{aligned}$$
(19)

which \(\Omega _{ij}\) is the spatial metric given by

$$\begin{aligned} \Omega _{ij}dx^{i}dx^{j}= & {} dx^{2}+dy^{2}+dz^{2}\nonumber \\{} & {} -\frac{k(xdx+ydy+zdz)^2}{1+k(x^{2}+y^{2}+z^{2})}, \end{aligned}$$
(20)

and \(k= |K|=-K\) is the negative absolute value of the constant spatial curvature.

For the above background, the configuration of the Stückelberg field corresponding to the conditions of homogeneity and isotropy takes the form [19, 43]

$$\begin{aligned} \phi ^{0}&=f(t)\sqrt{1+k(x^2+y^2+z^2)},\nonumber \\ \phi ^{1}&=f(t)\sqrt{k}~x,\nonumber \\ \phi ^{2}&=f(t)\sqrt{k}~y,\nonumber \\ \phi ^{3}&=f(t)\sqrt{k}~z, \end{aligned}$$
(21)

where the field configuration (21) satisfy the relation \(\phi ^a\phi _a=-f(t)^2\).

Using Eq. (21), the fiducial metric \(f_{\mu \nu }=\eta _{ab}\partial _{\mu }\phi ^a\partial _{\nu }\phi ^b\) corresponding to the Minkowski spacetime \(\eta _{ab}\) in an open universe reads

$$\begin{aligned} f_{\mu \nu } dx^{\mu }dx^{\nu }=-{\dot{f}}(t)^2 dt^2+k f(t)^2\Omega _{ij} dx^{i}dx^{j}, \end{aligned}$$
(22)

where f(t) is the Stückelberg field function.

For the matter part, we consider the energy-momentum tensor of the perfect fluid as

$$\begin{aligned} T_{\mu \nu }=\rho _m u_{\mu }u_{\nu }+p_m(g_{\mu \nu }+u_{\mu }u_{\nu }), \end{aligned}$$
(23)

where \(u_{\mu }\) is the four velocity field. In what follows, we consider the pressureless matter (\(p_m=0\)) throughout the paper. Therefore, the continuity relation \({\dot{\rho }}_m+3H\rho _m=0\) governing the pressureless matter yields \(\rho _m=\rho _{m_0}a^{-3}\).

Varying the action (16) with respect to the physical metric \(g_{\mu \nu }\), Eq. (19), one can get the modified Friedmann equations

$$\begin{aligned} 3\left( H^2-\frac{k}{a^2}\right)= & {} m^2L+\frac{\rho _{m}}{M_P^2}, \end{aligned}$$
(24)
$$\begin{aligned} 2\left( {\dot{H}}+\frac{k}{a^2}\right)= & {} m^2J(r-1)\xi -\frac{\rho _m}{M_P^2}, \end{aligned}$$
(25)

where

$$\begin{aligned} L&\equiv -\alpha _{0}+(3\xi -4)\alpha _{1}-3(\xi -1)(\xi -2)\alpha _{2}\nonumber \\&\quad +(\xi -1)^2(\xi -4)\alpha _3 +(\xi -1)^3\alpha _{4},\nonumber \\ J&\equiv \alpha _{1}+(3-2\xi )\alpha _{2}\nonumber \\&\quad +(\xi -1)(\xi -3)\alpha _{3}+(\xi -1)^2\alpha _{4}, \end{aligned}$$
(26)

and

$$\begin{aligned} \qquad \xi \equiv \frac{\sqrt{k} f}{a}, \quad r\equiv \frac{a\dot{f}}{\sqrt{k}f}. \end{aligned}$$
(27)

Taking variation of the action (16) in terms of the fiducial metric \(f_{\mu \nu }\), Eq. (22), one can obtain the background Stückelberg equation

$$\begin{aligned} 3HJ\left( r-1\right) \xi -{\dot{L}}=0. \end{aligned}$$
(28)

Following [18, 19] for the minimal model of GMG, the functions \(\alpha \) take the forms

$$\begin{aligned} \alpha _{0}(\phi ^a\phi _{a})&=\alpha _1(\phi ^a\phi _{a})=0,\nonumber \\ \alpha _{2}(\phi ^a\phi _{a})&=1+m^2\alpha '_2\phi ^a\phi _{a},\nonumber \\ \alpha _3(\phi ^a\phi _{a})&=\alpha _3,\nonumber \\ \alpha _4(\phi ^a\phi _{a})&=\alpha _4, \end{aligned}$$
(29)

where \(\alpha '_2\), \(\alpha _3\) and \(\alpha _4\) are the free model parameters.

Using the following dimensionless parameters

$$\begin{aligned} m&\equiv H_{0}\mu ,\nonumber \\ H&\equiv H_{0}h,\nonumber \\ k&\equiv a_{0}^2H_{0}^2\Omega _{k_0},\nonumber \\ \alpha '_{2}&\equiv \frac{10^{-4}Q}{\mu ^2},\nonumber \\ \rho _m&\equiv \frac{3a_0^3 H_0^2 M_P^2\Omega _{m_0}}{a^3}, \end{aligned}$$
(30)

and with the help of Eq. (27), the first Friedmann equation (24) and the Stückelberg equation (28) can be recasted in the following form

$$\begin{aligned}&3\left( h^2-\frac{a_0^2\Omega _ {k_0}}{a^2}\right) -\mu ^2\Bigg [\frac{3(\xi -2)(\xi -1)(10^{-4}Q a^2 \xi ^2-a_0^2\Omega _ {k_0})}{a_0^2\Omega _ {k_0}}\nonumber \\&\qquad +\alpha _3(\xi -1)^2 (\xi -4)+\alpha _4(\xi -1)^3\Bigg ]=\frac{3a_0^3\Omega _ {m_0}}{a^3}, \end{aligned}$$
(31)
$$\begin{aligned}&3\left( h-\frac{\sqrt{\Omega _{k_0}}a_0}{a}\right) \left[ (3-2\xi )\left( 1-\frac{10^{-4}Q a^2 \xi ^2}{a_0^2 \Omega _ {k_0}}\right) \right. \nonumber \\&\qquad \left. +\alpha _3(\xi -3)(\xi -1)+\alpha _4(\xi -1)^2\right] \nonumber \\&\quad =\frac{6 (10^{-4}Q) a(\xi -2)(\xi -1)\xi }{a_0\sqrt{\Omega _ {k_0}}}. \end{aligned}$$
(32)

The evolution of h and \( \xi \) can be determined by solving the above equations. Using the Stückelberg equation (32), we obtain a solution for h. Replacing this into the first Friedmann equation (31) yields a tenth order polynomial equation for \(\xi \) and to select the physical solution with positive real values, we compare the roots of the equation to the value of \(\xi _\textrm{dRGT}=2.80902\) at early times. The results are shown in Fig. 1.

Fig. 1
figure 1

Evolutions of the fractional deviation of the Hubble parameter \(\frac{\delta H}{H}=\frac{H-H_{\Lambda \textrm{CDM}}}{H_{\Lambda \textrm{CDM}}}\) in GMG model from \(\Lambda \)CDM as well as the quantity \(\xi (z)\) for different values of Q (with fixed \(\Omega _{k_0}=3\times 10^{-3}\)) and \(\Omega _{k_0}\) (with fixed \(Q=1\)). Auxiliary parameters are \(\Omega _{m_0}=0.3\), \(\alpha _{3}=0\) and \(\alpha _{4}=0.8\) [19]. Here \(H_{\Lambda \textrm{CDM}}=H_{0}\sqrt{\Omega _{m_0}(1+z)^3+\Omega _{k_0}(1+z)^2+\Omega _{\Lambda _0}}\)

Figure 1 shows that: (i) with decreasing Q, \(\delta H/H\) goes to zero and the GMG model behaves like \(\Lambda \)CDM one. (ii) For a given z when \(\Omega _{k_0}\) increases, both \(|\delta H/H|\) and \(\xi (z)\) increase. (iii) For a given z, when Q decreases, \(\xi (z)\) increases and goes to \(\xi _\textrm{dRGT}=2.80902\). This shows that the GMG model for \(Q\rightarrow 0\) recovers the result of standard dRGT massive gravity.

In the next, comparing the Friedmann Eqs. (24) and (25), respectively, with Eqs. (6) and (7) one can obtain

$$\begin{aligned} \rho _{DE}= & {} M^2_Pm^2L, \end{aligned}$$
(33)
$$\begin{aligned} p_{DE}+\rho _{DE}= & {} -M_{P}^2 m^2 J (r-1)\xi . \end{aligned}$$
(34)

Using Eqs. (33) and (34), the effective equation of state parameter of dark energy can be written as follows

$$\begin{aligned} \omega _{DE}\equiv \frac{p_{DE}}{\rho _{DE}}=-1-\frac{\ J (r-1)\xi }{L}. \end{aligned}$$
(35)

From Eq. (27), the quantity r can be expressed in terms of H and \(\xi \) as

$$\begin{aligned} r=\frac{a}{\sqrt{k}}\Bigg (H+\frac{{\dot{\xi }}}{\xi }\Bigg ). \end{aligned}$$
(36)

With the help of Eqs. (29) and (30) and using \(\phi ^a\phi _a=-f(t)^2\), the dimensionless parameter \(\alpha _2\) takes the form

$$\begin{aligned} \alpha _2(t)=1-\frac{Q}{10^4} H_0^2f(t)^2. \end{aligned}$$
(37)

Note that the parameter \(\alpha _2\) shows the departure of GMG model from the dRGT one and for the case of \(Q\rightarrow 0\) we have \(\alpha _2=1\) and consequently the GMG model reduces to the standard dRGT massive gravity as shown in Fig. 1.

From Eq. (33) and using Eqs. (26), (27), (30), (37), the effective density parameter of dark energy arising from the mass term in the GMG model can be obtained as follows

$$\begin{aligned} \Omega _{DE}\equiv & {} \frac{\rho _{DE}}{3M_P^2H^2}=\frac{\mu ^2}{3h^2}L,\nonumber \\= & {} \frac{\mu ^2}{3h^2}(\xi -1)\nonumber \\{} & {} \times \left[ \alpha _3(\xi -1)(\xi -4)+\alpha _4(\xi -1)^2 \right. \nonumber \\{} & {} \left. +3(\xi -2)\left( \frac{Q\xi ^2a^2}{10^4\Omega _{k_0}a_0^2}-1\right) \right] , \end{aligned}$$
(38)

where we have used \(\alpha _0=\alpha _1=0\) from Eq. (29). Here, the value of \(\mu \) parameter can be determined by applying the constraint \(\Omega _{k_0}+\Omega _{m_0}+\Omega _{DE_0}=1\) at the present time.

With the help of results of h and \(\xi \) obtained from numerical solving of Eqs. (31) and (32), one can get the evolutions of \(\omega _{DE}\), \(\Omega _{DE}\), \(\Omega _{m}=\Omega _{m_0}a^{-3}/h^2\) and the deceleration parameter \(q(z)=-1-{\dot{H}}/H^2\) versus the redshift \(z=\frac{a_0}{a}-1\) for different set of model parameters. The results are illustrated in Fig. 2 which shows that (i) the equation of state parameter of GMG model behaves like phantom dark energy, i.e. \(\omega _{DE}<-1\), for different Q and \(\Omega _{k_0}\). (ii) For the case of \(Q\rightarrow 0\) we have \(\omega _{DE}\rightarrow -1\) and the model behaves like the \(\Lambda \)CDM one. (iii) The density parameter of matter \(\Omega _{m}\) and dark energy \(\Omega _{DE}\) start, respectively, from 1 and zero and then tend to their values at the present time. (iv) The deceleration parameter q(z) begins from matter dominated universe, i.e. \(q=0.5\), and then shows a transition from decelerating (\(q>0\)) to accelerating (\(q<0\)) universe in the recent past. (v) Both \(\Omega (z)\) and q(z) for \(Q\rightarrow 0\) behave like the \(\Lambda \)CDM model.

Fig. 2
figure 2

Variations of the equation of state parameter of dark energy \(\omega _{DE}\), the density parameters (\(\Omega _{m}, \Omega _{DE}\)) and the deceleration parameter q(z) versus the redshift z for GMG model with different values of Q (with fixed \(\Omega _{k_0}=3\times 10^{-3}\)) and \(\Omega _{k_0}\) (with fixed \(Q=1\)). Auxiliary parameters are \(\Omega _{m_0}=0.3\), \(\alpha _{3}=0\) and \(\alpha _{4}=0.8\) [19]

3.1 Generalized second law of thermodynamic in GMG model

Here, we are interested in examining the validity of GSL of thermodynamics for the GMG model. To do this, we first replace Eq. (34) into (12) and (13) to obtain evolutions of the pressureless matter entropy \(T_A{\dot{S}}_m\) (with \(p_m=0\)) and entropy of the apparent horizon \(T_A{\dot{S}}_A\) as

$$\begin{aligned} T_A\dot{S_m}= & {} 16\pi ^2G H R_A^5 \rho _m\nonumber \\{} & {} \times \big [\rho _m-M_{P}^2 m^2 J (r-1)\xi \big ]-4\pi H R_A^3\rho _m, \end{aligned}$$
(39)
$$\begin{aligned} T_A\dot{S_{A}}= & {} 4 \pi H R_{A}^3\rho _m-8\pi ^2 G H R_{A}^5\rho _m\nonumber \\{} & {} \times \big [\rho _m-M_{P}^2 m^2 J (r-1)\xi \big ], \end{aligned}$$
(40)

where \(\rho _m=\rho _{m_0}a^{-3}\). Finally, the GSL (14) in GMG theory takes the form

$$\begin{aligned} T_{A} {\dot{S}}_{tot}= 8\pi ^2 G H R_{A}^5\rho _m\big [\rho _m-M_{P}^2 m^2 J (r-1)\xi \big ]. \end{aligned}$$
(41)

In Fig. 3, using Eqs. (39), (40) and (41) we plot evolutions of \(T_A{\dot{S}}_m\), \(T_A{\dot{S}}_A\) and \(T_A{\dot{S}}_{tot}\) for different values of the GMG model parameters. Figure 3 shows that although the entropy of matter does not satisfy the second law of thermodynamics (i.e. \(T_A{\dot{S}}_m<0\)) in the near past, but when we add the entropy of horizon to the matter entropy, the GSL in GMG model is respected for different values of Q and \(\Omega _{k_0}\) during history of the universe.

According to [18], it was pointed out that in the generalized massive gravity model due to having a positive cosmological constant and stable perturbations, the region of the parameter space \(\alpha _4-\alpha _3\) (for the case \(\alpha '_{2}>0\) in our model) should satisfy the following constraints

$$\begin{aligned}&\alpha _3>-1,\nonumber \\&\frac{1}{4}\left( 3+2\alpha _3+3\alpha _3^2\right)<\alpha _4<1+\alpha _3+\alpha _3^2,\nonumber \\&\alpha _3-\alpha _4+1>0. \end{aligned}$$
(42)

The region where all conditions are satisfied has been plotted in Fig. 2 (left panel) of [18]. Following [35, 36], we probed the validity of the GSL, \(T_{A} {\dot{S}}_{tot}\ge 0\), for the allowed region (42) and found that the GSL is respected. In Fig. 3, we plot only the result for the case \(\alpha _3=0\) and \(\alpha _4=0.8\).

Regrading the Q parameter, it should be noted that we only consider the values \(Q\leqslant 1\). This selection yields the cosmological solutions to be stable against linear perturbations [19].

Fig. 3
figure 3

Evolutions of the matter entropy \(T_A{\dot{S}}_m\), entropy of the apparent horizon \(T_A{\dot{S}}_A\) and the GSL of thermodynamics \(T_A{\dot{S}}_{tot}\) for GMG model with different values of Q (with fixed \(\Omega _{k_0}=3\times 10^{-3}\)) and \(\Omega _{k_0}\) (with fixed \(Q=1\)). Auxiliary parameters are \(\Omega _{m_0}=0.3\), \(\alpha _{3}=0\) and \(\alpha _{4}=0.8\) [19]

4 dRGT massive gravity on de Sitter

In this section, the second model of generalized massive gravity namely dRGT massive gravity on de Sitter has been inspected. In this model, the secondary (fiducial) Minkowski metric in the standard dRGT is replaced by the de Sitter metric. The action of dRGT massive gravity on de Sitter is given by [44]

$$\begin{aligned} S=M^2_P \int d^4 x \sqrt{-g}\left( \frac{R}{2}+m^2 U\right) +S_m, \end{aligned}$$
(43)

wherein m denotes the graviton mass and the dRGT potential terms have the following form

$$\begin{aligned} U=U_2+\alpha _3 U_3+\alpha _4 U_4, \end{aligned}$$
(44)

in which \(U_2\), \(U_3\) and \(U_4\) are given by Eq. (17). Also \(\alpha _3\) and \(\alpha _4\) are the free model parameters.

Following Langlois and Naruko [21], we take the de Sitter metric \(f_{ab}\) for the reference metric as follows

$$\begin{aligned} f_{ab} d \phi ^a d \phi ^b=-dT^2+b^2_{k}(T){\gamma _ {ij}}dX^i dX^j, \end{aligned}$$
(45)

where \(\gamma _{ij}\) is the spatial metric and the de Sitter functions \(b_{k}(T)\) (with \(k=0,\pm 1\)) have the following form

$$\begin{aligned} b_{0}(T)= & {} e^{H_cT}, \qquad b_{-1}(T)=H_c^{-1} \sinh (H_{c}T), \nonumber \\ b_{1}(T)= & {} H_c^{-1} \cosh (H_{c}T). \end{aligned}$$
(46)

Note that for the case of \(H_c\rightarrow 0 \), the Minkowski metric is recovered for the flat \(b_0(T)=1\) and open \(b_{-1}(T)=T\) universe and the latter case reduces to the Milne metric in the flat geometry.

The Stückelberg fields \(\phi ^a\) are determined from the homogeneity and isotropy conditions as follows [21]

$$\begin{aligned} \phi ^0=T=f(t), \quad \phi ^i=X^i=x^i. \end{aligned}$$
(47)

Therefore, the fiducial metric \(f_{\mu \nu }\) corresponding to the de Sitter spacetime \(f_{ab}\) yields

$$\begin{aligned} f_{\mu \nu }\equiv f_{ab}\partial _{\mu }\phi ^a\partial _{\nu }\phi ^b=\textrm{Diag}\big [-{\dot{f}}^2,b_k^2\big (f(t)\big )\gamma _{ij}\big ]. \end{aligned}$$
(48)

Taking the variation of action (43) with respect to the physical FRW metric \(g_{\mu \nu }\), the modified Friedmann equations in the dRGT massive gravity on de Sitter can be obtained as

$$\begin{aligned} H^2+\frac{k}{a^2}= & {} \frac{1}{3M_{P}^2} (\rho _m+\rho _{DE}), \end{aligned}$$
(49)
$$\begin{aligned} 2{\dot{H}}+3H^2+\frac{k}{a^2}= & {} -\frac{1}{M_{P}^2}(p_m+p_{DE}), \end{aligned}$$
(50)

where \(\rho _{DE}\) and \(p_{DE}\) are the effective energy density and pressure of dark energy associated with the massive graviton term defined as

$$\begin{aligned} \rho _{DE}&=\frac{m^2 M_P^2}{a^3}(b_k(f)-a)\Big \lbrace (6+4\alpha _3+\alpha _4)a^2\nonumber \\&\quad -(3+5\alpha _3+2\alpha _4)ab_k(f)\nonumber \\&\quad +(\alpha _3+\alpha _4)b^2_k(f)\Big \rbrace , \end{aligned}$$
(51)
$$\begin{aligned} p_{DE}&=\frac{m^2 M_P^2}{a^2}\Big \lbrace \Big [6+4\alpha _3+\alpha _4-(3+3\alpha _3+\alpha _4){\dot{f}}\Big ]a^2\nonumber \\&\quad -2\Big [3+3\alpha _3+\alpha _4-(1+2\alpha _3+\alpha _4){\dot{f}}\Big ]ab_k(f)\nonumber \\&\quad +\Big [1+2\alpha _3+\alpha _4-(\alpha _3+\alpha _4){\dot{f}}\Big ]b^2_k(f)\Big \rbrace . \end{aligned}$$
(52)

Varying the action (43) with respect to the fiducial metric \(f_{\mu \nu }\), Eq. (48), one can get the equation of motion governing the Stückelberg field f(t) as follows

$$\begin{aligned}{} & {} \Big [(3+3\alpha _3+\alpha _4)a^2-2(1+2\alpha _3+\alpha _4)ab_k(f) \nonumber \\{} & {} \quad +(\alpha _3+\alpha _4)b^2_k(f)\Big ] \left( {\dot{a}}-\varepsilon _{f}\frac{d b_k(f)}{d f}\right) =0, \end{aligned}$$
(53)

where \(\varepsilon _f\) denotes the sign of f. The Stückelberg field Eq. (53) has the three solutions, the first two ones \(b_k\big (f(t)\big ) =X_\pm a(t)\) represent the effective cosmological constant and are independent of the specific form of \( b_k(f)\). Here,

$$\begin{aligned} X_\pm =\frac{1+2\alpha _3+\alpha _4\pm \sqrt{1+\alpha _3+\alpha _3^2-\alpha _4}}{\alpha _3+\alpha _4}. \end{aligned}$$
(54)

The third solution of the Stückelberg equation (53) satisfy the following relation

$$\begin{aligned} \varepsilon _f\frac{d b_k(f)}{d f}={\dot{a}}. \end{aligned}$$
(55)

For the case of flat FRW universe (\(k=0\)) which we focus on it in what follows, substituting the de Sitter function \(b_0\big (f(t)\big )=e^{H_c f(t)}\) into Eq. (55) and assuming \({\dot{f}}>0\) (i.e. \(\varepsilon _f=1\)), the result yields the following Stückelberg function

$$\begin{aligned} f(t)=H_c^{-1}\ln \left( \frac{aH}{H_c}\right) . \end{aligned}$$
(56)

Replacing the solution (56) into Eqs. (51) and (52) one can get

$$\begin{aligned} \rho _{DE}= & {} -m^2\left( 1-\frac{H}{H_c}\right) \Bigg [6+4\alpha _3+\alpha _4\nonumber \\{} & {} -(3+5\alpha _3+2\alpha _4) \frac{H}{H_c}+(\alpha _3+\alpha _4)\frac{H^2}{H_c^2}\Bigg ], \end{aligned}$$
(57)
$$\begin{aligned} p_{DE}= & {} m^2\Bigg [6+4\alpha _3+\alpha _4\nonumber \\{} & {} -(3+3\alpha _3+\alpha _4)\frac{H}{H_c} \left( 3+\frac{{\dot{H}}}{H^2}\right) \nonumber \\{} & {} +(1+2\alpha _3+\alpha _4)\frac{H^2}{H_c^2}\left( 3+2\frac{{\dot{H}}}{H^2}\right) \nonumber \\{} & {} -(\alpha _3+\alpha _4)\frac{H^3}{H_c^3}\left( 1+\frac{{\dot{H}}}{H^2}\right) \Bigg ]. \end{aligned}$$
(58)

Adding Eqs. (57) and (58) one can get

$$\begin{aligned} \rho _{DE}+p_{DE}&= m^2\frac{{\dot{H}}}{H^2} \frac{H}{H_c} \Bigg [-(3+3\alpha _3+\alpha _4) \nonumber \\&\quad +(2+4\alpha _3+2\alpha _4) \frac{H}{H_c} -(\alpha _3+\alpha _4) \frac{H^2}{H_{c}^2}\Bigg ]. \end{aligned}$$
(59)

Substituting Eqs. (57) and (58) into the Friedmann Eqs. (49) and (50) and using \(\rho _m=\rho _{m_0} a^{-3}\) for the pressureless matter (\(p_m=0\)), in the case of flat universe (\(k=0\)) one can obtain

$$\begin{aligned}&\frac{m^2}{H_0^2}\frac{H}{H_c}\left[ -\frac{1}{3} (\alpha _3+\alpha _4)\frac{H^2}{H_c^2}+(1+2\alpha _3+\alpha _4)\frac{H}{H_c} \right. \nonumber \\&\quad \left. -(3+3\alpha _3+\alpha _4)\right] \nonumber \\&=-\frac{H^2}{H^2_0}+\Omega _{m_0}(1+z)^3-2\frac{m^2}{H_0^2} \left( 1+\frac{2}{3}\alpha _3+\frac{1}{6}\alpha _4\right) , \end{aligned}$$
(60)
$$\begin{aligned}&\frac{{\dot{H}}}{H^2}\Bigg \lbrace -2\frac{H^2}{H_0^2}+\frac{m^2}{H_c^2}\frac{H}{H_0} \Bigg [(3+3\alpha _3+\alpha _4)\frac{H_c}{H_0}\nonumber \\&\quad -2(1+2\alpha _3+\alpha _4)\frac{H}{H_0}\nonumber \\&\quad +(\alpha _3+\alpha _4)\frac{H^2}{H_0H_c}\Bigg ]\Bigg \rbrace =3\Omega _{m_0}(1+z)^3, \end{aligned}$$
(61)

where \(\Omega _{m_0}\equiv \rho _{m_0}/(3M_P^2H_0^2)\).

Fig. 4
figure 4

Variations of the fractional deviation of the Hubble parameter from \(\Lambda \)CDM, where \(\frac{\delta H}{H}=\frac{H-H_{\Lambda \textrm{CDM}}}{H_{\Lambda \textrm{CDM}}}\), the equation of state parameter of dark energy \(\omega _{DE}\), the density parameters (\(\Omega _{m}\),\(\Omega _{DE}\)) and the deceleration parameter q(z) versus the redshift z for the dRGT theory on de Sitter. Auxiliary parameters are \(\Omega _{m_0}=0.3\), \(\beta _2=20.1\) and \(\alpha _3=0.95\) [22]

Fig. 5
figure 5

Variations of the matter entropy \(T_A{\dot{S}}_m\), entropy of the apparent horizon \(T_A{\dot{S}}_A\) and the GSL of thermodynamics \(T_A{\dot{S}}_{tot}\) versus the redshift z for the dRGT massive gravity on de Sitter. Auxiliary parameters are \(\Omega _{m_0}=0.3\), \(\beta _2=20.1\) and \(\alpha _3=0.95\) [22]

From Eqs. (57), (58), (60) and (61), the effective equation of state parameter \(\omega _{DE}\) for the dRGT massive gravity on de Sitter reads

$$\begin{aligned} \omega _{DE}\equiv \frac{p_{DE}}{\rho _{DE}}=-1-\frac{2\Big (\frac{H}{H_0}\Big )^2\frac{{\dot{H}}}{H^2} +3\Omega _{m_0}(1+z)^3}{3\Big [\Big (\frac{H}{H_0}\Big )^2-\Omega _{m_0}(1+z)^3\Big ]}. \end{aligned}$$
(62)

Here, to obtain the dynamics of the Hubble parameter H(z) we need to solve Eq. (60). To do this, we concentrate on the special case including \(\alpha _3=-\alpha _4\).

For the case \(\alpha _3=-\alpha _4\), from Eq. (60) one can get

$$\begin{aligned} \frac{H(z)}{H_0}=\frac{-3\left( 1+\frac{2\alpha _3}{3}\right) \frac{\beta _1}{\beta _2} +\sqrt{\Delta }}{2\Big [1-(1+\alpha _3)\frac{\beta _1}{\beta _2^2}\Big ]}, \end{aligned}$$
(63)

where

$$\begin{aligned} \Delta= & {} 9\left( 1+\frac{2\alpha _3}{3}\right) ^2\frac{\beta _1^2}{\beta _2^2}+4\Bigg [\beta _1(2+\alpha _3) +\Omega _{m_0}(1+z)^{3}\Bigg ]\nonumber \\{} & {} \times \Bigg [1-\frac{\beta _1}{\beta _2^2}(1+\alpha _3)\Bigg ], \end{aligned}$$
(64)

and \(\beta _1\) and \(\beta _2\) are the free model parameters defined as

$$\begin{aligned} \beta _1\equiv -\frac{m^2}{H_0^2}, \qquad \beta _2\equiv \frac{H_c}{H_0}. \end{aligned}$$
(65)

Here, setting \(H(z=0)=H_0\) into Eq. (63) yields

$$\begin{aligned} \beta _1=\frac{\beta _2(1-\Omega _{m_0})}{(1+\alpha _3) \frac{1}{\beta _2}-(3+2\alpha _3)+2\beta _2(1+\frac{1}{2}\alpha _3)}. \end{aligned}$$
(66)

Here, we have only three free parameters including \(\Omega _{m_0}\), \(\alpha _3\) and \(\beta _2\). From Eq. (61), the deceleration parameter \(q(z)=-1-{\dot{H}}/H^2\) for the case of \(\alpha _3=-\alpha _4\) can be obtained as follows

$$\begin{aligned} q(z)=-1\!+\!\frac{3\Omega _{m_0}(1+z)^3}{2\frac{H^2}{H_0^2}+\frac{\beta _1}{\beta _2^2} \frac{H}{H_0}\Big [3(1\!+\!\frac{2\alpha _3}{3})\beta _2\!-\!2\frac{H}{H_0}(\alpha _3+1)\Big ]}.\nonumber \\ \end{aligned}$$
(67)

Using Eqs. (62), (63) and (67) we plot the evolutionary behaviors of H(z), \(\omega _{DE}(z)\), \(\Omega _{m}(z)=\Omega _{m_0}(1+z)^3H_0^2/H^2\), \(\Omega _{DE}(z)=1-\Omega _{m}(z)\) and q(z) in Fig. 4.

Figure 4 shows that: (i) fractional deviation of the Hubble parameter of dRGT model on de Sitter from \(\Lambda \)CDM is in order of \({\mathcal {O}}(10^{-3})\). (ii) The equation of state parameter of dark energy behaves like phantom dark energy (i.e. \(\omega _{DE}<-1\)) and tends to \(\Lambda \)CDM (i.e. \(\omega _{DE}\rightarrow -1\)) in the future. (iii) The density parameters \(\Omega _m\) and \(\Omega _{DE}\), respectively, start from 1 and 0 at early times and go toward their values at the present time. (iv) The deceleration parameter q(z) begins from matter dominated era (\(q=0.5\)) and shows a transition from decelerating (\(q>0\)) to accelerating (\(q<0\)) phase in the near past.

4.1 Generalized second law of thermodynamic in dRGT massive gravity on de Sitter

Here, similar to what we did for the GMG model we try to check validity of the GSL of thermodynamics in the dRGT massive gravity on de Sitter. To this aim, substituting Eq. (59) into (12) and (13) one can get

$$\begin{aligned} T_A\dot{S_m}&=16\pi ^2 G H R_A^5 \rho _m \Bigg \{\rho _m+m^2\frac{{\dot{H}}}{H^2} \frac{H}{H_c} \nonumber \\&\quad \times \Bigg [-(3+3\alpha _3+\alpha _4)+(2+4\alpha _3+2\alpha _4) \frac{H}{H_c}\nonumber \\&\quad -(\alpha _3+\alpha _4) \frac{H^2}{H_{c}^2}\Bigg ]\Bigg \} -4\pi H R_A^3\rho _m, \end{aligned}$$
(68)
$$\begin{aligned} T_A\dot{S_{A}}&= 4 \pi H R_{A}^3\rho _m-8\pi ^2 G H R_{A}^5\rho _m\Bigg \{\rho _m+m^2 \frac{{\dot{H}}}{H^2} \frac{H}{H_c}\nonumber \\&\quad \times \Bigg [-(3+3\alpha _3+\alpha _4) +(2+4\alpha _3+2\alpha _4) \frac{H}{H_c} \nonumber \\&\quad -(\alpha _3+\alpha _4) \frac{H^2}{H_{c}^2}\Bigg ]\Bigg \}, \end{aligned}$$
(69)

where \(\rho _m=\rho _{m_0}a^{-3}\). Finally, the GSL (14) in dRGT theory on de Sitter takes the form

$$\begin{aligned} T_{A} {\dot{S}}_\textrm{tot}&= 8\pi ^2 G H R_{A}^5 \rho _m\Bigg \{\rho _m+m^2\frac{{\dot{H}}}{H^2} \frac{H}{H_c} \nonumber \\&\quad \times \Bigg [-(3+3\alpha _3+\alpha _4)+(2+4\alpha _3+2\alpha _4) \frac{H}{H_c}\nonumber \\&\quad -(\alpha _3+\alpha _4) \frac{H^2}{H_{c}^2}\Bigg ]\Bigg \}. \end{aligned}$$
(70)

Using Eqs. (68), (69) and (70) we plot the evolution of matter, horizon and total entropy in dRGT model on de Sitter for the case of \(\alpha _3=-\alpha _4\) in Fig. 5. This figure shows that the entropy of matter violates the second law of thermodynamics (i.e. \(T_A{\dot{S}}_m<0\)) for the region of \(z<1\). But when we add the horizon entropy to the matter entropy, the total entropy of the universe in dRGT massive gravity on de Sitter satisfies the GSL of thermodynamics.

5 Conclusions

Here, we investigated the GSL of thermodynamics within the framework of massive gravity. According to the GSL, the time evolution of matter entropy and horizon entropy must be increasing function of time. To this aim, we considered a FRW universe filled with the pressureless matter and enclosed by the apparent horizon. In addition, we obtained a generalized formula for the GSL which is applicable for modified gravity theories. In the next, we considered two massive gravity models including the generalized massive gravity and dRGT theory on de Sitter. The GMG model is a generalized version of the standard dRGT in which the mass graviton is slow varying time dependent. In dRGT on de Sitter, the secondary (fiducial) Minkowski metric in standard dRGT is replaced by the de Sitter reference metric. In the next, we first studied the cosmological background for the GMG and dRGT on de Sitter models and then we examined the GSL for both of them with different model parameters. Our results show that:

  • For the GMG model, \(\delta H/H\) shows deviation from the \(\Lambda \)CDM for different model parameters Q and \(\Omega _{k_0}\). Also for the case of \(Q\rightarrow 0\), the result of standard dRGT model is recovered (i.e. \(\xi \rightarrow \xi _\textrm{dRGT}=2.80902\)).

  • For the GMG and dRGT on de Sitter models, the fractional deviation of the Hubble parameter \(\delta H/H\) from \(\Lambda \)CDM, respectively are in order of \({\mathcal {O}}(10^{-2})\) and \({\mathcal {O}}(10^{-3})\).

  • For the both GMG and dRGT on de Sitter: (i) the equation of state parameter behaves like phantom dark energy (i.e. \(\omega _{DE}<-1\)). (ii) The density parameters \(\Omega _m\) and \(\Omega _{DE}\) start from 1 and 0 at early time and reach to their values at the present. (iii) The deceleration parameter begins from matter dominated epoch (\(q=0.5\)) and shows a transition from decelerating (\(q>0\)) to accelerating (\(q<0\)) phase near the past. (iv) The entropy of matter violates the second law of thermodynamics (i.e. \(T_A{\dot{S}}_m<0\)) but when we add the horizon entropy to the matter entropy, the total entropy satisfies the GSL for both models.