1 Introduction

The Friedmann–Robertson–Walker (FRW) universe is a thermodynamic system similar to a black hole. In theory, a black hole has many well-known properties, e.g. the existence of a horizon, Hawking temperature and Hawking radiation [1], Bekenstein–Hawking entropy, quasi-local energy, unified first law [2, 3], etc. These mentioned properties are all shared by the FRW universe [4,5,6,7,8,9,10,11,12].

On the other hand, some other properties of black holes have not yet been known to exist for the FRW universe. Take the asymptotically AdS black hole as an example, in both Einstein gravity and modified gravity, it usually has a thermodynamic equation of state \(P=P(V,T)\), where V is the thermodynamic volume, T is the Hawking temperature, and P is the thermodynamic pressure that is usually defined by the cosmological constant [13,14,15,16,17,18]Footnote 1. In some situations such an equation is characterized the P-V phase transition [22,23,24,25,26,27] with a critical point in the P-V phase diagram. However, for the FRW universe, so far there has been rarely any investigations on the equation of state, P-V phase transitions and criticality. In a recent paper [28], the equation of state for the FRW universe with a perfect fluid in Einstein gravity has been constructed, but no P-V phase transition was found.Footnote 2

Out of curiosity, in this paper we would like to find a reasonable way to construct an equation of state that can describe phase transitions of the FRW universe. The construction of such an equation of state depends on: (i) the definition of the thermodynamic quantities (P, V, T); (ii) the choice of the gravitational theory; and (iii) the properties of the matter field or source. The basic setup for this paper is the following: For (i), we follow the definitions of the thermodynamic volume V and the Hawking temperature T in [7, 8], but very importantly we change the definition of P. From the first law of thermodynamics for the FRW universe in Einstein gravity and many modified theories of gravity, we find that the work density W of the matter field is the conjugate variable of the thermodynamic volume, so it should be defined as the thermodynamic pressure

$$\begin{aligned} P\equiv W=-\frac{1}{2}h_{ab}T^{ab}, \end{aligned}$$
(1.1)

where \(h_{ab}\) and \(T^{ab}\) are the 0, 1-components of the metric and the stress–tensor [7] with \(a,b=0,1, (x^0=t, x^1=r)\). For (ii), after a brief discussion on Einstein gravity, we will mainly focus on a modified theory of gravity that belongs to the Horndeski class, because it gives interesting Friedmann’s equations. For (iii) we treat the matter field as a perfect fluid as is usually done in standard cosmology.

This paper is organized as follows. In Sect. 2, as a warmup exercise, we construct the equation of state for the FRW universe in Einstein gravity, which does not show P-V phase transition. In Sect. 3, we obtain the equation of state for the FRW universe in a modified gravity that belongs to the Horndeski class. In Sect. 4, we show that P-V phase transition of the FRW universe exists in the modified gravity. Section 5 is for conclusions and discussions. In this paper, we use units \(c=G=\hbar =k_B=1\).

2 Einstein gravity: no P-V phase transition

In this section, we first show that the thermodynamic pressure P can be defined by the work density W for the FRW universe in Einstein gravity, and then construct the equation of state \(P=P(V,T)\), which shows no P-V phase transition.

In the co-moving coordinate system \(\{t,r,\theta ,\varphi \}\), the line-element of the FRW universe can be written as

$$\begin{aligned} \textrm{d}s^2=-\textrm{d}t^2+a^2(t)\left[ \frac{\textrm{d}r^2}{1-kr^2}+r^2(\textrm{d}\theta ^2+\sin ^2\theta \textrm{d}\varphi ^2)\right] , \end{aligned}$$
(2.1)

where a(t) is the time-dependent scale factor,Footnote 3k is the spatial curvature. The stress–tensor of a perfect fluid is usually written as

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

where \(\rho _m\) is the energy density, \(p_m\) is the pressure and \(u^{\mu }\) is the 4-velocity of the perfect fluid. In Einstein gravity, the line-element (2.1) and the stress–tensor (2.2) satisfy Einstein field equations

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}g_{\mu \nu }R=8\pi T_{\mu \nu }, \end{aligned}$$
(2.3)

which gives the Friedmann’s equations

$$\begin{aligned} H^2+\frac{k}{a^2}=\frac{8\pi }{3}\rho _m, \quad \dot{H}-\frac{k}{a^2}=-4\pi (\rho _m+p_m), \end{aligned}$$
(2.4)

where \(H:=\dot{a}(t)/a(t)\) is the Hubble parameter.

For convenience in the following discussion, we introduce another form of the line-element (2.1)

$$\begin{aligned} \textrm{d}s^2=h_{ab}\textrm{d}x^a\textrm{d}x^b+R^2(\textrm{d}\theta ^2+\sin ^2\theta \textrm{d}\varphi ^2), \end{aligned}$$
(2.5)

where \(a,b=0,1, x^0=t, x^1=r\) and \(R\equiv a(t)r\) is the physical radiusFootnote 4 of the FRW universe. The apparent horizon of the FRW universe is defined by the following condition [5]

$$\begin{aligned} h^{ab}\partial _a R\partial _b R=0, \end{aligned}$$
(2.6)

which can be easily solved

$$\begin{aligned} R_A=\frac{1}{\sqrt{H^2+\frac{k}{a^2}}}. \end{aligned}$$
(2.7)

From the above expression, one can get a useful relation

$$\begin{aligned} \dot{R}_A=-HR^3_A\left( \dot{H}-\frac{k}{a^2}\right) . \end{aligned}$$
(2.8)

The surface gravity at the apparent horizon of the FRW universe is given as [5]

$$\begin{aligned} \kappa =-\frac{1}{R_A}\left( 1-\frac{\dot{R}_A}{2HR_A}\right) , \end{aligned}$$
(2.9)

and we treat \(\dot{R}_A\) as a small quantity, so that the surface gravity \(\kappa \) is negative, i.e. the apparent horizon of the FRW universe is an inner trapping horizon [2] . This surface gravity has a simple relation with the Ricci scalar of the FRW universe

$$\begin{aligned} \kappa =-\frac{R_A R}{12}. \end{aligned}$$
(2.10)

The Kodama–Hayward temperature is defined from the surface gravity (2.9)

$$\begin{aligned} T\equiv \frac{|\kappa |}{2\pi }=\frac{1}{2\pi R_A}\left( 1-\frac{\dot{R}_A}{2HR_A}\right) . \end{aligned}$$
(2.11)

Furthermore, in Einstein gravity we have Bekenstein–Hawking entropy

$$\begin{aligned} S\equiv&\frac{A}{4}=\pi R_A^2, \end{aligned}$$
(2.12)

and Misner–Sharp energy [29, 30]

$$\begin{aligned} M\equiv \frac{R_A}{2} \end{aligned}$$
(2.13)

for the FRW universe.

From (2.3), (2.7) and (2.8), one can express \(\rho _m\) and \(p_m\) in terms of \(R_A\) and \(\dot{R}_A\), i.e.

$$\begin{aligned} \rho _m=\frac{3}{8\pi R^2_A}, \quad p_m=\frac{\dot{R}_A}{4\pi HR^3_A}-\frac{3}{8\pi R^2_A}. \end{aligned}$$
(2.14)

Thus one can get the work density [2] of the matter field in the FRW universe

$$\begin{aligned} W:=-\frac{1}{2}h_{ab}T^{ab}=\frac{1}{2}(\rho _m-p_m)=\frac{3}{8\pi R^2_A}-\frac{\dot{R}_A}{8\pi HR^3_A}, \end{aligned}$$
(2.15)

and the thermodynamic volume is

$$\begin{aligned} V\equiv \frac{4\pi R_A^3}{3}. \end{aligned}$$
(2.16)

With the above quantities defined, the following relation can be easily checked:

$$\begin{aligned} \textrm{d}M=-T\textrm{d}S+W\textrm{d}V. \end{aligned}$$
(2.17)

Compared with the first law of thermodynamicsFootnote 5

$$\begin{aligned} \textrm{d}U=T\textrm{d}S-P\textrm{d}V, \end{aligned}$$
(2.18)

we see that the internal energy U and thermodynamic pressure P can be identified with \(-M\) and W, i.e.

$$\begin{aligned} U:=&-M, \end{aligned}$$
(2.19)
$$\begin{aligned} P:=&W. \end{aligned}$$
(2.20)

Note that this definition of P using the work density is more natural than that in the literature using the cosmological constant, in the sense that it is here a true variable rather than a constant.

The equation of state for the thermodynamic pressure defined in (2.20) can be easily obtained from (2.11) and (2.15)

$$\begin{aligned} P=\frac{T}{2R_A}+\frac{1}{8\pi R^2_A}. \end{aligned}$$
(2.21)

It is then natural to ask whether this system has a P-V phase transition, whose necessary condition is that the equation

$$\begin{aligned} \left( \frac{\partial P}{\partial V}\right) _{T}=\left( \frac{\partial ^2 P}{\partial V^2}\right) _{T}=0, \end{aligned}$$
(2.22)

or equivalently

$$\begin{aligned} \left( \frac{\partial P}{\partial R_A}\right) _{T}=\left( \frac{\partial ^2 P}{\partial R^2_A}\right) _{T}=0 \end{aligned}$$
(2.23)

has a critical-point solution \(T=T_c,\ P=P_c,\ R_A=R_c\). By substituting (2.21) into (2.23), one can easily check that no such solution exists, and thus there is no P-V phase transition for the FRW universe with a perfect fluid in Einstein gravity.

3 Modified gravity: equation of state

In this section, we derive the equation of state for the FRW universe in modified gravity, and we take the gravity with a generalized conformal scalar field as an example, which belongs to the Horndeski class.

3.1 A brief introduction of the gravity with a generalized conformal scalar field

The most generic scalar–tensor theory is Horndeski gravity [26], which allows high order derivatives in the action. Its equations of motion has at most second order derivatives, so there are no Ostrogradsky instabilities [32], which is similar to Lovelock gravity. Horndeski gravity has been used to study the thermodynamics of black holes, where P-V phase transition has been found, and this arouses our interest that whether P-V phase transition can be found for the FRW universe in this gravity.

The general form of the Lagrangian in Horndeski gravity is written as [33],Footnote 6

$$\begin{aligned} \mathcal {L}&= G_2(\phi , X)-G_3(\phi , X)\Box \phi +G_4(\phi , X)R +G_{4;X}[(\Box \phi )^2\nonumber \\&\quad -\nabla ^{\mu }\nabla ^{\nu }\phi \nabla _{\mu }\nabla _{\nu }\phi ] +G_{5}(\phi ,X)G^{\mu \nu }\nabla _{\mu }\nabla _{\nu }\phi \nonumber \\&\quad -\frac{G_{5;X}}{6}[(\Box \phi )^3-3\Box \phi \nabla ^{\mu }\nabla ^{\nu }\phi \nabla _{\mu }\nabla _{\nu }\phi \nonumber \\&\quad +2\nabla _{\mu }\nabla ^{\nu }\phi \nabla _{\nu }\nabla ^{\lambda }\phi \nabla _{\lambda }\nabla ^{\mu }\phi ], \end{aligned}$$
(3.1)

where \(G_2,G_3,G_4\) and \(G_5\) are arbitrary functions of \(\phi \) and \(X:=-\nabla ^{\mu }\phi \nabla _{\mu }\phi /2\equiv -(\nabla \phi )^2/2\). In the following, we only consider a special example of the Horndeski gravity, where the scalar field is conformally invariant [32]. In this case, the action is obtained asFootnote 7

$$\begin{aligned} S=&\frac{1}{16\pi }\left[ \int (R-2\Lambda )\sqrt{-g}\textrm{d}^{4}x+S_{\alpha }+S_{\beta }+S_{\lambda }+S_m\right] , \end{aligned}$$
(3.2)

where

$$\begin{aligned} S_{\alpha }&= \alpha \int [2(\nabla \phi )^4+4\Box \phi (\nabla \phi )^2\nonumber \\&\quad +4G^{\mu \nu }\nabla _{\mu }\phi \nabla _{\nu }\phi -\phi G]\sqrt{-g}\textrm{d}^4x, \end{aligned}$$
(3.3)
$$\begin{aligned} S_{\beta }=&-\beta \int [R+6(\nabla \phi )^2]e^{2\phi }\sqrt{-g}\textrm{d}^4x, \end{aligned}$$
(3.4)
$$\begin{aligned} S_{\lambda }=&-2\lambda \int e^{4\phi }\sqrt{-g}\textrm{d}^4x, \end{aligned}$$
(3.5)

and \(S_m\) stands for the action of other matter fields, such as the perfect fluid. The above action (3.2) is a special example of Horndeski gravity (3.1) with

$$\begin{aligned}&G_2=-2\Lambda -2\lambda e^{4\phi }+12\beta e^{2\phi }X+8\alpha X^2, \quad G_3=8\alpha X, \quad \nonumber \\&\quad G_4=1-\beta e^{2\phi }+4\alpha X, \quad G_5=4\alpha \log X. \end{aligned}$$
(3.6)

3.2 The equation of state for the FRW universe

In this part, we apply this modified gravity to the FRW universe and get its equation of state. We start with the Friedmann’s equation, then get the first law of thermodynamics, and obtain the equation of state in the end.

For convenience, we apply this modified gravity (3.2) to the spatially flat (\(k=0\)) FRW universe with stress–tensor (2.2) and \(\Lambda =0\). In this case, the modified Friedmann’s equations [32] are very simpleFootnote 8

$$\begin{aligned} (1+\alpha H^2)H^2=&\frac{8\pi }{3}\rho _m, \end{aligned}$$
(3.7)
$$\begin{aligned} (1+2\alpha H^2)\dot{H}=&-4\pi (\rho _m+p_m), \end{aligned}$$
(3.8)

and satisfy the continuity equation

$$\begin{aligned} \dot{\rho }_m+3H(\rho _m+p_m)=0. \end{aligned}$$
(3.9)

Interestingly, the above equations have the same form as the ones from holographic cosmology [37, 38], quantum corrected entropy-area relation [39], generalized uncertainty principle [40], and the 4d EGB gravity [36].

For the spatially flat FRW universe, the relations (2.7) and (2.8) are much simplified

$$\begin{aligned} R_A=\frac{1}{H}, \quad \dot{R}_A=-\dot{H}R^2_A, \end{aligned}$$
(3.10)

which can be used to rewrite the Friedmann’s equations (3.7) and (3.8), and the results are

$$\begin{aligned} \left( 1+\frac{\alpha }{R^2_A}\right) \frac{3}{8\pi R^2_A}=&\rho _m, \end{aligned}$$
(3.11)
$$\begin{aligned} \left( 1+\frac{2\alpha }{R^2_A}\right) \frac{\dot{R}_A}{4\pi R^2_A}=&\rho _m+p_m. \end{aligned}$$
(3.12)

Therefore, the work density of the matter field is

$$\begin{aligned} W&:=-\frac{1}{2}h_{ab}T^{ab}=\frac{1}{2}(\rho _m-p_m)=\left( 1+\frac{\alpha }{R^2_A}\right) \frac{3}{8\pi R^2_A} \nonumber \\&\quad -\left( 1+\frac{2\alpha }{R^2_A}\right) \frac{\dot{R}_A}{8\pi R^2_A}, \end{aligned}$$
(3.13)

and the thermodynamic volume can still take the form of \(V=4\pi R_A^3/3\).

The Kodama–Hayward temperature (2.11) for the spatially flat FRW universe reduces to

$$\begin{aligned} T=\frac{1}{2\pi R_A}\left( 1-\frac{\dot{R}_A}{2}\right) , \end{aligned}$$
(3.14)

but its conjugate entropy may not take the Bekenstein–Hawking form \(S=A/4\), because it is known that this form does not hold in many theories beyond Einstein gravity (see e.g. [39]). Corresponding to the action (3.2) we make the following ansatz for the entropy.Footnote 9

$$\begin{aligned} S=\frac{A}{4}+\alpha f(R_A)+\beta g(R_A)+\lambda h(R_A), \end{aligned}$$
(3.15)

which guarantees that the Bekenstein–Hawking entropy can be recovered in the Einstein gravity limit \(\alpha ,\beta ,\lambda \rightarrow 0\).

The energy for the FRW universe here can be easily obtained from (3.11)

$$\begin{aligned} E=\rho _m V=\left( 1+\frac{\alpha }{R^2_A}\right) \frac{R_A}{2}, \end{aligned}$$
(3.16)

which could be regarded as the effective Misner–Sharp energy, so it should also satisfy the relation (2.17)

$$\begin{aligned} \textrm{d}E=-T\textrm{d}S+W\textrm{d}V, \end{aligned}$$
(3.17)

except that WTS take the new forms in (3.13), (3.14), and (3.15) respectively.

One immediate finding is that the expression of the entropy (3.15) can be determined from (3.17)

$$\begin{aligned} S=\frac{A}{4}+2\pi \alpha \ln \left( \frac{A}{A_0}\right) , \end{aligned}$$
(3.18)

where \(A_0\) can take any constant with the dimensionality of area to guarantee the logarithmic function is well defined. In the above entropy, there is only one correction term to the Bekenstein–Hawking entropy as expected, which is also the same form as the static black hole entropy derived in the same theory [32], the black hole entropy with quantum or thermal correction [39, 44,45,46,47,48,49,50,51] and the entropy of 4d Gauss-Bonnet black hole in AdS space [52].

In the same way as we did for Einstein gravity, here again we identify the internal energy U with \(-E\) and the thermodynamic pressure P with W, i.e.

$$\begin{aligned}&U\equiv -E, \end{aligned}$$
(3.19)
$$\begin{aligned} P\equiv&W, \end{aligned}$$
(3.20)

then the standard first law of thermodynamics (Gibbs equation) can be established

$$\begin{aligned} \textrm{d}U=T\textrm{d}S-P\textrm{d}V. \end{aligned}$$
(3.21)

Finally, from (3.13), (3.14) and (3.20), we obtain the equation of state:

$$\begin{aligned} P=\frac{T}{2R_A}+\frac{1}{8\pi R^2_A}+\frac{\alpha T}{R_A^3}-\frac{\alpha }{8\pi R^4_A}. \end{aligned}$$
(3.22)

4 Modified gravity: P-V phase transition

In this section, we show that the equation of state (3.22) for FRW universe has a critical point and the critical exponents are the same as the mean field theory, i.e. the FRW universe has a P-V phase transition.

For the equation of state (3.22), the critical condition (2.22) can be written as

$$\begin{aligned} 2\pi T_c R_c^3+R_c^2+12\pi \alpha R_c T_c-2\alpha&= 0, \end{aligned}$$
(4.1)
$$\begin{aligned} 4\pi T_c R_c^3+3R_c^2+48\pi \alpha R_c T_c-10\alpha&= 0. \end{aligned}$$
(4.2)

If \(\alpha >0\), the critical radius and temperature can not be both positive, so there is not any physical solution in this case. If \(\alpha <0\), there is a critical point

$$\begin{aligned}{} & {} R_c=\sqrt{(6-4\sqrt{3})\alpha }, \quad T_c=\frac{\sqrt{6+4\sqrt{3}}}{12\pi \sqrt{-\alpha }},\nonumber \\{} & {} P_c=-\frac{15+8\sqrt{3}}{288\pi \alpha }. \end{aligned}$$
(4.3)

A dimensionless constant can be acquired from the above three values:

$$\begin{aligned} \rho =\frac{2P_{c} R_{c}}{T_{c}}=\frac{6+\sqrt{3}}{12}. \end{aligned}$$
(4.4)

Near the critical point, there are four critical exponents \((\tilde{\alpha },\beta ,\gamma ,\delta )\) defined in the following way [26, 52]:

$$\begin{aligned} C_{V}=&T\left( \frac{\partial S}{\partial T}\right) _V\propto |t|^{-\tilde{\alpha }}, \end{aligned}$$
(4.5)
$$\begin{aligned} \eta =&\frac{V_l-V_s}{V_c}\propto |t|^{\beta }, \end{aligned}$$
(4.6)
$$\begin{aligned} \kappa _T=&-\frac{1}{V}\left( \frac{\partial V}{\partial P}\right) _T\propto |t|^{-\gamma }, \end{aligned}$$
(4.7)
$$\begin{aligned} p\propto&\quad v^{\delta }, \end{aligned}$$
(4.8)

where

$$\begin{aligned} t=\frac{T-T_c}{T_c}, \quad p=\frac{P-P_c}{P_c},\quad v=\frac{V-V_c}{V_c}. \end{aligned}$$
(4.9)

In most cases, the four critical exponents satisfy the following four scaling laws

$$\begin{aligned}&\tilde{\alpha }+2\beta +\gamma =2,\quad \tilde{\alpha }+\beta (1+\delta )=2, \nonumber \\&\gamma (1+\delta )=(2-\tilde{\alpha })(\delta -1),\quad \gamma =\beta (\delta -1), \end{aligned}$$
(4.10)

in which there are actually two independent relations. In the following, we will calculate the four critical exponents and check whether they satisfy the scaling laws.

The entropy (3.18) of the FRW universe in this modified gravity is also a function of the thermodynamic volume V, so \(C_V\) is zero, which means the first critical exponent \(\tilde{\alpha }\) is zero. To get the other three critical exponents conveniently, one can expand the thermodynamic pressure or the equation of state (3.22) around the critical point

$$\begin{aligned} p=a_{10}t+a_{11}tv+a_{03}v^3+\mathcal {O}(tv^2,v^4), \end{aligned}$$
(4.11)

where the coefficients are

$$\begin{aligned} a_{10}=&\left( \frac{\partial p}{\partial t}\right) _{c}=\frac{T_c}{P_c}\left( \frac{\partial P}{\partial T}\right) _{c} =\frac{T_{c}(R_{c}^2+2\alpha )}{2P_{c} R_{c}^3}<0, \end{aligned}$$
(4.12)
$$\begin{aligned} a_{11}=&\left( \frac{\partial ^2 p}{\partial t\partial v}\right) _{c}=\frac{R_c T_c}{3P_c}\left( \frac{\partial ^2 P}{\partial T\partial R_A}\right) _c \nonumber \\ =&-\frac{T_{c}(R_{c}^2+6\alpha )}{6P_{c} R_{c}^3}>0, \end{aligned}$$
(4.13)
$$\begin{aligned} a_{03}&= \frac{1}{3!}\left( \frac{\partial ^3 p}{\partial v^3}\right) _c=\frac{R_c^3}{162P_c} \left( \frac{\partial ^3 P}{\partial R_A^3}\right) _{c} =\frac{R_{c}^2+6\alpha }{648\pi P_{c} R_{c}^4}<0. \end{aligned}$$
(4.14)

The Gibbs free energy is defined as usual

$$\begin{aligned} G:=U+PV-TS, \end{aligned}$$
(4.15)

so we have

$$\begin{aligned} \textrm{d}G=-S\textrm{d}T+V\textrm{d}P, \end{aligned}$$
(4.16)

and thus the Maxwell’s equal area law still holds. The values of P at the two endpoints of the coexistence line are the same

$$\begin{aligned} p^*=a_{10}t+a_{11}tv_{s}+a_{03}v_{s}^3=a_{10}t+a_{11}tv_{l}+a_{03}v_{l}^3, \end{aligned}$$
(4.17)

or

$$\begin{aligned} a_{11}(v_{l}-v_{s})t+a_{03}(v_{l}^3-v_{s}^3)=0, \end{aligned}$$
(4.18)

where the labels ‘s’ and ‘l’ stand for ‘small’ and ‘large’ respectively. Another relation is

$$\begin{aligned} \int v\textrm{d}p=\int _{v_s}^{v_l} v\left( \frac{\partial p}{\partial v}\right) _t\textrm{d}v=0, \end{aligned}$$
(4.19)

so we have

$$\begin{aligned} 2a_{11}(v_{l}^2-v_{s}^2)t+3a_{03}(v_{l}^4-v_{s}^4)=0. \end{aligned}$$
(4.20)

From the above two relations (4.18) and (4.20), one can get a nontrivial solution

$$\begin{aligned} v_{l}=\sqrt{-\frac{a_{11}}{a_{03}}t},\quad v_{s}=-\sqrt{-\frac{a_{11}}{a_{03}}t}, \end{aligned}$$
(4.21)

and

$$\begin{aligned} \eta =v_{l}-v_{s}=2\sqrt{-\frac{a_{11}}{a_{03}}t}\propto |t|^{1/2}, \end{aligned}$$
(4.22)

which shows that the second critical exponent \(\beta \) is 1/2. Interestingly, because \(a_{11}>0, a_{03}<0\), we have \(t>0\), which means that the coexistence phases in the P-V diagram appear above the critical temperature \(T>T_{c}\). This behavior is different from that of an AdS black hole, where coexistence phases appear below the critical temperature \(T<T_{c}\).

The third critical exponent is from the isothermal compressibility near the critical point

$$\begin{aligned} \kappa _T=-\frac{1}{V_{c}}\left( \frac{\partial V}{\partial P}\right) _T|_{c}\propto -\left( \frac{\partial p}{\partial v}\right) ^{-1}=-\frac{1}{a_{11}t}\propto t^{-1}, \end{aligned}$$
(4.23)

which shows \(\gamma =1\).

The shape of the isothermal line of the critical temperature \(t=0\) is

$$\begin{aligned} p\propto v^3, \end{aligned}$$
(4.24)

which provides the fourth critical exponent \(\delta =3\).

In summary, the four critical exponents are:

$$\begin{aligned} \tilde{\alpha }=0,\quad \beta =\frac{1}{2},\quad \gamma =1, \quad \delta =3, \end{aligned}$$
(4.25)

which are the same as those in the mean field theory and satisfy the scaling laws (4.10).

5 Conclusions and discussions

In this paper, we have studied the thermodynamic properties, especially the equation of state and P-V phase transitions of the FRW universe with a perfect fluid in Einstein gravity and a modified theory of gravity that belongs to the Horndeski class. The thermodynamic pressure P of the FRW universe is defined as the work density W, which is a natural definition directly read out from the first law of thermodynamics. We have derived the equations of state, and impressively in the modified gravity case, it exhibits P-V phase transitions. To our best knowledge of the literature, this is the first time that such phase transitions are found in a spacetime that is not asymptotically AdS black holes. The phase transitions occur above the critical temperature, which is different from the AdS black holes. In the end, we have calculated the four critical exponents, which are the same as those in the mean field theory and thus satisfy the scaling laws.

We would like to discuss a few more open questions related to our work. The first natural question is whether P-V phase transitions can be found for FRW universe in other modified theories of gravity and/or filled with other fields. The second question is whether P-V phase transitions can be found in black holes inside the FRW universeFootnote 10 and other dynamical black holes. We will carry these investigations in the future.