1 Introduction

Certain observational evidence seems to indicate that dark energy and dark matter, considered as dominant components of the cosmic fluid, can interact [14]. Perhaps an interaction between dynamical vacuum energy and matter is also possible [5] or a scenario where a particle creation mechanism which can lead to cosmic acceleration [6]. It appears unnatural to think that cosmic fluids coexist and do not interact with each other as is usual in the standard \(\Lambda \)CDM model (both components evolve independently and satisfy the usual energy conservation equations). As is well known, \(\Lambda \)CDM, despite its success, is theoretically unappealing because of several well-known shortcomings. Motivated by that, new challenges emerge [7] as, for instance, to understand the nature of the dark energy and the nature of the phantom dark energy (not ruled out by observations), an interesting issue which seems very difficult to understand within the \(\Lambda \)CDM framework.

On the other hand, dark energy and dark matter, both seen as ordinary fluids (perfect fluids), lead to a consistent and simple way to describe them. In other words, here, dark energy and dark matter are described under the hypothesis of perfect fluids and in the literature we find nothing against this assumption. In any case, it is an interesting approach if we are thinking that a perfect fluid is something that we know how to handle.

Components with interaction lead to a new perspective for describing/visualizing the cosmic evolution. There is a rich literature on the subject and for describing that interaction, for instance, various Ansatzes for Q (defined below) are used. This is a first approximation to describe the interaction required by the observational data, but there is no formalism that allows us to obtain Q from first principles.

In this work, we analyze thermodynamical aspects from the aforementioned interaction in the framework of two interacting fluids. As already said, we will use the holographic principle for modeling the dark energy where the emphasis will appear from the temperature, during the cosmic evolution, from each fluid (dark energy and dark matter. Phase transitions (seen as sign changes in the heat capacity) will also be discussed. \(8\pi G=\) \(c=1\) units will be used.

The organization of the paper is as follows: in Sect. 2 we present a brief description of two non-interacting fluids and we revise the behavior of its temperatures through the cosmic evolution. In Sect. 3 we incorporate interaction and we revise the involved thermodynamics bearing in mind the second law. In Sect. 4 we discuss the interaction under holographic considerations and we show the presence of phase transitions (sign changes in its heat capacities) experienced by both fluids during the evolution. In Sect. 5, we discuss the behavior of the Hubble parameter and cosmological evolution model.

Finally, Sect. 6 is devoted to our conclusions. We have added an appendix to show explicitly the sign changes in the heat capacities of the interacting fluids.

2 Non-interacting fluids and thermodynamics

We consider, in the framework of General Relativity (GR), the non-interacting flat-FLRW scheme between two components,

$$\begin{aligned} 3H^{2}=\rho _\mathrm{de}+\rho _\mathrm{dm} \end{aligned}$$
(1)

and

$$\begin{aligned} \dot{\rho }_\mathrm{de}+3H(1+\omega _\mathrm{de})\rho _\mathrm{de}= & {} 0, \nonumber \\ \dot{\rho }_\mathrm{dm}+3H(1+\omega _\mathrm{dm})\rho _\mathrm{dm}= & {} 0, \end{aligned}$$
(2)

where \(\rho _\mathrm{de}\) denotes the dark energy density, \(\rho _\mathrm{dm}\) denotes the dark matter density, H is the Hubble parameter, and the dot denotes derivative with respect to the cosmic time. We assume that both components can be amenable to study by using a description under the rigorous scope of the thermodynamic laws. Then, by using the equation \(T\mathrm{d}S=\mathrm{d}\left( \rho V\right) +p\;\mathrm{d}V\), for a generic fluid, where T is the temperature, S the entropy, \(\rho \) the energy density, p its pressure, and V the physical volume, besides the integrability condition \(\partial ^{2}S/\partial T\partial V=\partial ^{2}S/\partial V\partial T\), we can obtain the following equation for the temperature during the cosmic evolution [810]:

$$\begin{aligned} \frac{\mathrm{d}T}{T}= & {} -\frac{\mathrm{d}V}{V}\left( \frac{\partial p}{\partial \rho }\right) _{V}=-3H\mathrm{d}t\left( \frac{\partial p}{\partial \rho }\right) _{a}, \nonumber \\\rightarrow & {} T\left( z\right) =T\left( 0\right) \exp \left( 3\int \frac{\mathrm{d}z}{ 1+z}\omega \left( z\right) \right) , \end{aligned}$$
(3)

where we have used \(p=\omega \rho \), \(1+z=a_{0}/a\) with z being the redshift parameter and a the cosmic scale factor with \(a_{0}=a(0)\). Since \(V=\Omega _{0}a^{3}\) (for a spatially flat section \(\Omega _{0}=4\pi /3\), see [1113]), we obtain \(\mathrm{d}V/V=3\mathrm{d}a/a=3H\mathrm{d}t\). By considering for dark energy \(\omega _\mathrm{de}\left( z\right) \approx -1\) and for non-relativistic dark matter \(p_\mathrm{dm}=nT_\mathrm{dm}\), n being the number density and \(\rho _\mathrm{dm}=nm+3nT/2\) with m the rest mass, where \(T_\mathrm{dm}\ll m\) [8], we can obtain \(T_\mathrm{dm}\left( z\right) \sim (1+z)^{2}\) after using (3). So,

$$\begin{aligned} T_\mathrm{de}(z)=T_\mathrm{de}(0)(1+z)^{-3} , \quad T_\mathrm{dm}(z)=T_\mathrm{dm}(0)(1+z)^{2}, \end{aligned}$$
(4)

i.e., \(T_\mathrm{de}\left( z\right) \) grows and \(T_\mathrm{dm}\left( z\right) \) decreases when z goes to the future. This fact appears to be unusual if we want to think in energy transference from dark energy to dark matter, at least from some \(z_{e}\) in the past. At equilibrium, we have

$$\begin{aligned} T_\mathrm{de}\left( z_{e}\right) =T_\mathrm{dm}\left( z_{e}\right) , \end{aligned}$$
$$\begin{aligned}&\Longrightarrow \;z_{e}=\left[ T_\mathrm{de}\left( 0\right) /T_\mathrm{dm}\left( 0\right) \right] ^{1/5}-1, \end{aligned}$$
$$\begin{aligned} \quad \rightarrow \left\{ \begin{array}{c} z_{e} \epsilon \text{ past }\Longrightarrow T_\mathrm{de}\left( 0\right) /T_\mathrm{dm}\left( 0\right) >1, \\ z_{e} \epsilon \text{ future }\Longrightarrow T_\mathrm{de}\left( 0\right) /T_\mathrm{dm}\left( 0\right) <1. \end{array} \right. \end{aligned}$$
(5)

Nowadays we would expect that \(T_\mathrm{de}\left( 0\right) >T_\mathrm{dm}\left( 0\right) \) (see below) and in this case \(z_{e}\) belongs to the past. But the problem arises when \(z_{e}\) is in the future. If we do not have equilibrium through the evolution, we can think in two options: only one sign of Q and then only one option for the inequality between the temperatures, \(T_\mathrm{de}\left( z\right) >T_\mathrm{dm}\left( z\right) \) or \(T_\mathrm{de}\left( z\right) <T_\mathrm{dm}\left( z\right) \). Nevertheless, there are holographic arguments in order to justify, at least on a theoretical level, both options for the sign of Q [14]. As a second option we can imagine that even when there are sign changes in Q, the amount of energy transferred is not enough for generating changes in the relation between \( T_\mathrm{de}\left( z\right) \) and \(T_\mathrm{dm}\left( z\right) \). But the thermodynamical constraint given by the second law rejects the latter option.

By following Ref. [8], we ascribe a temperature (Gibbs integrability condition) to the dark energy in the form \(T_\mathrm{de}\sim \rho _\mathrm{de}^{\omega / \left( \omega +1\right) }\), and we see that if \(-1<\omega <0\), \(T_\mathrm{de}\) increases when \(\rho _\mathrm{de}\) decreases and vice versa. If we assume that the given relationship between temperature and energy density is valid for \(\omega < \; -1\) (phantom dark energy, not ruled out by the observational data), \(T_\mathrm{de}\) and \(\rho _\mathrm{de}\), both increase as time evolves and dark energy increasing in the future appears to be not only a conjecture.

On the other hand, if we write for dark matter \(T_\mathrm{dm}\sim \rho _\mathrm{dm}^{\omega / \left( \omega +1\right) }\), we can see that \(\omega =0\) (dust) leads to \(T_\mathrm{dm}=\mathrm{const}\) and if this were the case, we would have, from a thermodynamical point of view, a fluid without the ability of interacting with others. Strictly speaking, the limiting case of dust has null temperature and then we have the same, that is, a fluid without the ability of interacting with others. Roughly speaking, when we consider a pressureless fluid we are thinking in \(p\approx 0\), i.e., non-null pressure or \(\omega \approx 0\) and also non-null temperature for it. In this case, whether we can have a fluid capable of interacting with others.

In the next sections we introduce the interaction and discuss its consequences for the evolution of the temperatures.

3 Interacting fluids and thermodynamics

By using the interacting scheme

$$\begin{aligned} \dot{\rho }_\mathrm{de}+3H\left( 1+\omega _\mathrm{de}\right) \rho _\mathrm{de}= & {} -Q,\nonumber \\ \dot{\rho }_\mathrm{dm}+3H\left( 1+\omega _\mathrm{dm}\right) \rho _\mathrm{dm}= & {} Q, \end{aligned}$$
(6)

or, equivalently

$$\begin{aligned} \dot{\rho }_\mathrm{de}+3H\left( 1+\omega _\mathrm{de}^\mathrm{eff}\right) \rho _\mathrm{de}= & {} 0,\nonumber \\ \dot{\rho }_\mathrm{dm}+3H\left( 1+\omega _\mathrm{dm}^{eff}\right) \rho _\mathrm{dm}= & {} 0, \end{aligned}$$
(7)

where

$$\begin{aligned} \omega _\mathrm{de}^\mathrm{eff}=\omega _\mathrm{de}+\frac{Q}{3H\rho _\mathrm{de}}~\mathrm{and} ~\omega _\mathrm{dm}^\mathrm{eff}=\omega _\mathrm{dm}-\frac{Q}{3H\rho _\mathrm{dm}}, \end{aligned}$$
(8)

so that according to (3) the temperatures are given, respectively, by

$$\begin{aligned}&T_\mathrm{de}\left( z\right) \sim \exp \left( 3\int \frac{\mathrm{d}z}{1+z}\omega _\mathrm{de}^\mathrm{eff}\right) =\exp \left( 3\int \frac{\mathrm{d}z}{1+z}\omega _\mathrm{de}\right) \nonumber \\&\quad \times \exp \left( 3\int \frac{\mathrm{d}z}{1+z}\frac{Q}{H\rho _\mathrm{de}}\right) \end{aligned}$$
(9)

and

$$\begin{aligned}&T_\mathrm{dm}\left( z\right) \sim \exp \left( 3\int \frac{\mathrm{d}z}{1+z}\omega _\mathrm{dm}^\mathrm{eff}\right) =\exp \left( 3\int \frac{\mathrm{d}z}{1+z}\omega _\mathrm{dm}\right) \nonumber \\&\quad \times \exp \left( -3\int \frac{\mathrm{d}z}{1+z}\frac{Q}{H\rho _\mathrm{dm}}\right) . \end{aligned}$$
(10)

Here we have considered a generic \(\omega _\mathrm{dm}\) for dark matter without any special commitment with it. In Sect. 4 we will use \(\omega _\mathrm{dm}=0\) (dust).

On the other hand, in the presence of interaction, the entropy production associated to the interaction is [15]

$$\begin{aligned} \forall t,\;\; \dot{S}_\mathrm{de}\left( t\right) +\dot{S}_\mathrm{dm}\left( t\right) =\left( \frac{ Q\left( t\right) }{T_\mathrm{dm}\left( t\right) }+\frac{\left( -Q\left( t\right) \right) }{T_\mathrm{de}\left( t\right) }\right) \geqslant 0,\nonumber \\ \end{aligned}$$
(11)

or, by using the redshift parameter

$$\begin{aligned} \forall z,\;\; -\left( 1+z\right) H\left( z\right) \frac{\mathrm{d}}{\mathrm{d}z}\left[ S_\mathrm{de}\left( z\right) +S_\mathrm{dm}\left( z\right) \right] \end{aligned}$$
$$\begin{aligned} =\left( \frac{1}{T_\mathrm{dm}\left( z\right) }-\frac{1}{T_\mathrm{de}\left( z\right) } \right) Q\left( z\right) \geqslant 0, \end{aligned}$$
(12)

i.e. \(T_\mathrm{de}\left( z\right) >T_\mathrm{dm}\left( z\right) \) at late times \(\Longrightarrow Q\left( z\right) >0\). However, at early times \( T_\mathrm{de}\left( z\right) <T_\mathrm{dm}\left( z\right) \) (a reasonable assumption), meaning that we should have \(Q\left( z\right) <0\) in order to satisfy the second law. As was said before, it may seem strange that today \(T_\mathrm{de}\left( z\right) \) grows with z if dark energy is transferring energy to dark matter (\(Q\left( z\right) >0\)) at least from some \(z_{e}\) (5). Can we have a signal of a negative heat capacity for dark energy? As we will see in the next section, the incorporation of interaction explicitly shows this fact. Moreover, the dark matter shows also phase transitions, in the past and in the future. Sign changes of Q (one in the past and another in the future) can be visualized in Ref. [14] where a holographic modeling for the dark energy was used with the linear parametrization \(\omega _\mathrm{de}\left( z\right) =\omega _\mathrm{de}\left( 0\right) +\sigma z\), and \(\sigma =\text{ const }\) [16].

We end this section by making a consistency check. By using the usual concepts of thermodynamics, we deduce the equation for the evolution of the temperature for a generic fluid denoted by \(\rho \). We start by setting \( \rho =\rho \left( V,T\right) \) and \(p=p\left( V,T\right) \), a reasonable setup. So,

$$\begin{aligned} \dot{\rho }=aH\left( \frac{\partial \rho }{\partial a}\right) _{T}+\left( \frac{\partial \rho }{\partial T}\right) _{a}\dot{T}, \end{aligned}$$
(13)

and \(V=\left( 4\pi /3\right) a^{3}\) so that \(\dot{V}=3VH\) and \(\left( \partial \rho /\partial V\right) _{T}=\left( a/3V\right) \left( \partial \rho /\partial a\right) _{T}\). On the other hand, from the second law with the integrability condition given before, it is straightforward to obtain the expression

$$\begin{aligned} \left( \frac{\partial \rho }{\partial a}\right) _{T}=\frac{3T}{a}\left[ \left( \frac{\partial p}{\partial T}\right) _{a}-\frac{p+\rho }{T}\right] . \end{aligned}$$
(14)

By replacing this last expression in (13) and by using the non-conservation equation

$$\begin{aligned} \dot{\rho }=Q_{f}-3H\left( \rho +p\right) , \end{aligned}$$
(15)

where \(Q_{f}=-Q\) for dark energy and \(Q_{f}=Q\) for dark matter, we can obtain

$$\begin{aligned} \frac{\dot{T}}{T}=-3H\left( \frac{\partial p}{\partial \rho }\right) _{a}+\left( \frac{\partial \rho }{\partial T}\right) _{a}^{-1}\frac{Q_{f}}{T} , \end{aligned}$$
(16)

and by using the redshift parameter, we write the last equation in the form

$$\begin{aligned} \frac{\mathrm{d}T}{T}=\frac{\mathrm{d}z}{1+z}\left[ 3\left( \frac{\partial p}{\partial \rho } \right) _{z}-\frac{Q_{f}}{H}\left( \frac{\partial \rho }{\partial T}\right) _{z}^{-1}\frac{1}{T}\right] , \end{aligned}$$
(17)

so that, for dark energy,

$$\begin{aligned} \frac{\mathrm{d}T_\mathrm{de}}{T_\mathrm{de}}=\frac{\mathrm{d}z}{1+z}\left[ 3\left( \frac{\partial p_\mathrm{de}}{ \partial \rho _\mathrm{de}}\right) _{z}+\frac{Q}{H}\left( \frac{\partial \rho _\mathrm{de} }{\partial T_\mathrm{de}}\right) _{z}^{-1}\frac{1}{T_\mathrm{de}}\right] , \end{aligned}$$
(18)

and for dark matter

$$\begin{aligned} \frac{\mathrm{d}T_\mathrm{dm}}{T_\mathrm{dm}}=\frac{\mathrm{d}z}{1+z}\left[ 3\left( \frac{\partial p_\mathrm{dm}}{ \partial \rho _\mathrm{dm}}\right) _{z}-\frac{Q}{H}\left( \frac{\partial \rho _\mathrm{dm} }{\partial T_\mathrm{dm}}\right) _{z}^{-1}\frac{1}{T_\mathrm{dm}}\right] . \end{aligned}$$
(19)

Now, we compare the expressions given in (9) and (18), i.e.,

$$\begin{aligned} \frac{\mathrm{d}T_\mathrm{de}}{T_\mathrm{de}}=\frac{\mathrm{d}z}{1+z}\left[ 3\omega _\mathrm{de}\left( z\right) + \frac{Q}{H}\frac{1}{\rho _\mathrm{de}}\right] \end{aligned}$$
(20)

and

$$\begin{aligned} \frac{\mathrm{d}T_\mathrm{de}}{T_\mathrm{de}}=\frac{\mathrm{d}z}{1+z}\left[ 3\omega _\mathrm{de}\left( z\right) + \frac{Q}{H}\left( \frac{\partial \rho _\mathrm{de}}{\partial T_\mathrm{de}}\right) _{z}^{-1}\frac{1}{T_\mathrm{de}}\right] , \end{aligned}$$
(21)

where \(\left( \partial p_\mathrm{de}/\partial \rho _\mathrm{de}\right) _{z}=\) \(\omega _\mathrm{de}\left( z\right) \). The consistency between (20) and (21) indicates that

$$\begin{aligned} \rho _\mathrm{de}=\left( \frac{\partial \rho _\mathrm{de}}{\partial T_\mathrm{de}}\right) _{z}T_\mathrm{de}, \end{aligned}$$
(22)

and the same occurs if we compare (10) and (19)

$$\begin{aligned} \rho _\mathrm{dm}=\left( \frac{\partial \rho _\mathrm{dm}}{\partial T_\mathrm{dm}}\right) _{z}T_\mathrm{dm}, \end{aligned}$$
(23)

as expected (see [17]).

4 Sign change of Q and holography

One approach for treating the Q-function is by considering the following Ansatz: \( Q=3H\left( \lambda _{1}\rho _\mathrm{de}+ \lambda _{2}\rho _\mathrm{dm}\right) \), where \(\lambda _{1}\) and \(\lambda _{2}\) are both constant parameters to be adjusted by observations. According to observational settings, the two parameters have equal sign and so there is no sign change in Q [18, 19].

The second approach, which we will use from now on, is based on a holographic model

$$\begin{aligned} \rho _\mathrm{de}\left( z\right) =3H^{2}\left( z\right) \left[ \alpha -\frac{\beta }{2}\left( 1+z\right) \frac{\mathrm{d}\ln H^{2}\left( z\right) }{\mathrm{d}z}\right] , \end{aligned}$$
(24)

where \(\alpha \) and \(\beta \) are both positive parameters which are well confined by the observational data: \(\beta<\alpha <1\) [14, 20, 21].

The infrared cut-off given for \(\rho _\mathrm{de}\) [20, 21] can be understood as a generalization of the model \(\rho _\mathrm{de}\sim -R\) [22], where R is the Ricci scalar given by \(R=-6\left( 2H^{2}+\dot{H}+k/a^{2}\right) \) or as an extension of the holographic model \(\rho _\mathrm{de}=3\alpha H^{2}\) proposed by Li [23]. In the last case, the key idea is to use the holographic principle [24] and its possible role in cosmology. This approach is an open issue and, in this philosophy, the model given in (24) is an interesting starting point in order to visualize what we mean by dark energy. This is a crucial fact if we are thinking (as usual) of dark energy as a cosmological constant, although the observational data would indicate that \(\rho _\mathrm{de}\) is not necessarily a constant [25]. In this sense, the \(\Lambda \)CDM model could be questioned, despite their successes.

By using (24) besides (1) and (6), it is possible to write

$$\begin{aligned} \rho _\mathrm{de}\left( z\right) =3H^{2}\left( z\right) \left( \frac{2\alpha -3\beta }{2+3\beta \omega _\mathrm{de}\left( z\right) }\right) , \end{aligned}$$
(25)

and so

$$\begin{aligned} \rho _\mathrm{dm}\left( z\right) =3H^{2}\left( z\right) \left( \frac{2\left( 1-\alpha \right) +3\beta \left( 1+\omega _\mathrm{de}\left( z\right) \right) }{ 2+3\beta \omega _\mathrm{de}\left( z\right) }\right) , \end{aligned}$$
(26)

so that we can obtain an explicit expression for Q

$$\begin{aligned}&\frac{Q}{9H^{3}}\left( z\right) =-\left( 2\alpha -3\beta \right) \nonumber \\&\quad \times \frac{\left[ 2\left( 1-\alpha \right) +3\beta \left( 1+\omega _\mathrm{de}\right) \right] \omega _\mathrm{de}+\beta \left( 1+z\right) \mathrm{d}\omega _\mathrm{de}/\mathrm{d}z}{\left( 2+3\beta \omega _\mathrm{de}\right) ^{2}}.\nonumber \\ \end{aligned}$$
(27)

The interaction sign can change through the evolution as can be seen from the Ansatz \(\omega _\mathrm{de}\left( z\right) =\omega _\mathrm{de}\left( 0\right) +\sigma z\). Therefore, according to (27) and by using the Ansatz given before, \(Q\left( z\right) \) experiences two sign changes (Fig. 1), one in the past and another in the future, as can be found in [14]. But, what means a sign change of Q at late times?, would we have dark matter phase again?, the current accelerated expansion would be transient previous to a possible future collapse? [26].

Fig. 1
figure 1

The behavior of Q and its two sign changes: for \(-0.2<z<1.86\) we have \(Q>0\), and \(Q<0\) otherwise

On the other hand, and under an entropic philosophy (entropic cosmology) in which we have an amount of non-conservation energy, we can observe sign changes in it and, in particular, that sign is mainly dependent on the equation of state (\(\omega \)) in each stage of the cosmic evolution [27].

Assuming a holographic principle, also, if we are considering an interaction between the bulk and the boundary of the space-time, we can see sign changes in \(Q\left( z\right) \) [28].

Fig. 2
figure 2

We see that \(T_\mathrm{de}>T_\mathrm{dm}\) in the range \(-0.2<z<1.86\), i.e., when \( Q>0\) and \(T_\mathrm{de}<T_\mathrm{dm}\) for \(z>1.86\), i.e., when \(Q<0\), in accord to the second law. However, in the range \(-0.39<z<-0.2\), when \(Q<0\), the quotient \( T_\mathrm{de}/T_\mathrm{dm}\) diverges

Now, by using (27) together with (26) and (25) in (8), we write

$$\begin{aligned} \omega _\mathrm{de}^\mathrm{eff}=\left( \frac{2\alpha -3\beta }{2+3\beta \omega _\mathrm{de}} \right) \left[ \omega _\mathrm{de}-\frac{\beta \left( 1+z\right) }{2\alpha -3\beta } \frac{\mathrm{d}\omega _\mathrm{de}}{\mathrm{d}z}\right] \end{aligned}$$
(28)

and

$$\begin{aligned}&\omega _\mathrm{dm}^\mathrm{eff}=\omega _\mathrm{dm}+\left( \frac{2\alpha -3\beta }{2+3\beta \omega _\mathrm{de}}\right) \nonumber \\&\quad \times \left[ \omega _\mathrm{de}+\frac{\beta \left( 1+z\right) }{ 2\left( 1-\alpha \right) +3\beta \left( 1+\omega _\mathrm{de}\right) }\frac{d\omega _\mathrm{de}}{\mathrm{d}z}\right] , \end{aligned}$$
(29)

and \(Q\left( z\right) \) can be written in the form

$$\begin{aligned} \frac{Q}{9H^{3}}\left( z\right) =-\frac{1}{3\beta ^{2}\sigma }\left( 2\alpha -3\beta \right) \frac{\left( z-1.86\right) \left( z+0.2\right) }{\left( A+z\right) ^{2}}, \end{aligned}$$
(30)

furthermore by using (9) and (10), the temperatures are given, respectively, by

$$\begin{aligned} T_\mathrm{de}\left( z\right) =T_\mathrm{de}\left( 0\right) \left( 1+z\right) ^{a}\left( 1+ \frac{z}{A}\right) ^{b} \end{aligned}$$
(31)

and

$$\begin{aligned} T_\mathrm{dm}\left( z\right) =T_\mathrm{dm}\left( 0\right) \left( 1+z\right) ^{a}\left( 1+ \frac{z}{A}\right) ^{b+1}\left( 1+\frac{z}{B}\right) ^{c}, \end{aligned}$$
(32)

where

$$\begin{aligned} a= & {} \left( \frac{2\alpha -3\beta }{\beta \sigma }\right) \left( \sigma + \frac{\omega \left( 0\right) -\sigma A}{A-1}\right) , \nonumber \\ b= & {} -1-\left( \frac{2\alpha -3\beta }{\beta \sigma }\right) \left( \frac{ \omega \left( 0\right) -\sigma A}{A-1}\right) , \nonumber \\ c= & {} 2\alpha -3\beta ; \nonumber \\ A= & {} \frac{2+3\beta \omega \left( 0\right) }{3\beta \sigma } , B=A-\left( \frac{2\alpha -3\beta }{3\beta \sigma }\right) , \end{aligned}$$
(33)

where we have considered \(\omega _\mathrm{dm}=0\) (dust). In Ref. [14] the best fit for the used parameters was \(\left( \alpha ,\beta ,\omega _\mathrm{de}\left( 0\right) ,\sigma \right) =\left( 0.73,0.38,-1.29,0.47\right) \) with \(\chi ^{2}=0.981\). All these parameters were estimated by using an adjustment with type I Supernova, Union 2 [29]. We note that the phantom case (\(\omega _\mathrm{de}\left( 0\right) <-1\)) is required by this best fit. So, from them we have \(Q\left( 1.86\right) =Q(-0.2)=0\) and \(a\approx 264.00\), \( b\approx -264.15\), \(c\approx 0.32\); \(A\approx 0.98\) \(B\approx 0.39\). For a better visualization we have chosen \( T_\mathrm{de}\left( 0\right) /T_\mathrm{dm}\left( 0\right) >1\) (Figs. 2, 3, and 4).

Fig. 3
figure 3

We see that \(T_\mathrm{de}\) always grows and the dark energy exhibits a negative heat capacity from \(z\approx 1.86\) to \(z\approx -0.2\) (dark energy is heated while energy is being delivered to dark matter). Out the indicated range, we have a positive heat capacity

Fig. 4
figure 4

We see that \(T_\mathrm{dm}\left( z\right) \) grows toward \( z=-0.39 \). The dark matter heat capacity experiences a sign change, that is, from \(z=\infty \) to \(z=1.86 \) we have a negative heat capacity (dark matter is heated while energy is being delivered to dark energy), from \(z=1.86\) to \(z=-0.2\) the heat capacity is positive, from \(z=-0.2\) to \(z=-0.33\) its heat capacity is negative (dark matter cools while receiving energy) and from \(z=-0.33\) to \( z=-0.38\) the heat capacity is positive

According to (28) and (29), we note that if \(\omega _\mathrm{de}=\text{ const }.\) and \(\omega _\mathrm{dm}=0\) both temperatures are equal. This last situation does not appear to be consistent; is this a signal that \(\omega _\mathrm{de}\ne \text{ const }.\) through the evolution?

So, sign changes in Q imply changes in the temperatures of dark energy and dark matter, as dictated by the second law. Additionally, we can visualize phase transitions, sign changes in its heat capacities, for both energy densities. Details can be found in the appendix.

Clearly, the observational data eventually will tell us if these changes will definitely occur. Today, the observational data is only just showing signals of the presence of Q, but as we stated above, it appears unnatural to think that cosmic fluids coexist and do not interact with each other. Additionally, we cannot say anything about values of \(T_\mathrm{de}\left( 0\right) \) and \(T_\mathrm{dm}\left( 0\right) \): the question is whether future observations could elucidate or not this issue.

Finally, in the used parametrization for \(\omega _\mathrm{de}(z)\), which makes sense for small values of z [30, 31], the behavior toward high z is only formal. So, as can be seen from the figures, the essential scope lies in the region extending around today toward the near future where the emphasis has been put on the sign changes in the heat capacities of the energy densities and the behavior of the temperatures associated to them.

Roughly speaking, the sign change in the cosmic acceleration (\( z\sim 0.6\)) is located “inside” the zone where \(Q\left( z\right) >0\).

5 Cosmological evolution

We discuss briefly the behavior of the Hubble parameter, the coincidence parameter and the energy densities in the vicinity of the divergence of \(T_\mathrm{de}\left( z\right) \), which occurs around \(z\approx -0.4\), as shown in Fig. 3. According to (1), we write

$$\begin{aligned} 3H^{2}=\rho _\mathrm{de}+\rho _\mathrm{dm}=\rho _\mathrm{de}\left( 1+r\right) =\rho , \end{aligned}$$
(34)

where r is the coincidence parameter given by the quotient \(\rho _\mathrm{dm}/\rho _\mathrm{de}\) so that from (25, 26) we can write

$$\begin{aligned} r=\frac{2\left( 1-\alpha \right) +3\beta \left( 1+\omega _\mathrm{de}\right) }{ 2\alpha -3\beta }, \end{aligned}$$
(35)

and \(\mathrm{d}r\left( z\right) /\mathrm{d}z=3\beta \sigma /\left( 2\alpha -3\beta \right) >0\), i.e., \(\dot{r}\left( t\right) <0\longleftrightarrow 2\alpha -3\beta >0\) (using the values for \(\alpha \) and \(\beta \)).

By using (6), the energy density \(\rho \) defined in (34) satisfies the conservation equation

$$\begin{aligned} \dot{\rho }+3H\left( 1+\frac{\omega _\mathrm{de}}{1+r}\right) \rho =0, \end{aligned}$$
(36)

where we have considered \(\omega _\mathrm{dm}=0\). So, from (34) and (35), it is straightforward to obtain the following solution for the Hubble parameter:

$$\begin{aligned} H\left( z\right) /H\left( 0\right) =C\left( 1+z\right) ^{\alpha /\beta }\left| 1+ \frac{2+3\beta \left( \omega _\mathrm{de}\left( 0\right) -\sigma \right) }{3\beta \sigma \left( 1+z\right) }\right| ^{e}, \end{aligned}$$
(37)

where

$$\begin{aligned} C= & {} \left| \frac{2+3\beta \omega _\mathrm{de}\left( 0\right) }{3\beta \sigma } \right| ^{-e} \nonumber \\ e= & {} \frac{1}{\beta }\left( \frac{2\alpha -3\beta }{2+3\beta \left( \omega _\mathrm{de}\left( 0\right) -\sigma \right) }\right) . \end{aligned}$$
(38)
Fig. 5
figure 5

The behavior of the Hubble parameter. There is no future divergence of H(z) when \(T_\mathrm{de}\) approximates \(z= -0.4\)

According to the values for \(\alpha \), \(\beta \), and \(\sigma \) used we have \(e<0\). So, although \(T_\mathrm{de}\left( z\longrightarrow -0.4\right) \) diverges, Fig. 3, \(H\left( z\longrightarrow -0.4\right) \longrightarrow \) finite value, Fig. 5, and there is no future singularity in \(H\left( z\right) \).

As regards the coincidence parameter, if we look at (37), we have

$$\begin{aligned} r\left( z\right)>0\Longrightarrow \omega _\mathrm{de}\left( z\right) >-\left[ 2\left( \frac{1-\alpha }{3\beta }\right) +1\right] , \end{aligned}$$
(39)

and according to the used Ansatz for \(\omega _\mathrm{de}\left( z\right) \), we have \(r\left( z\right) >0\Longleftrightarrow \) \(z>-0.4\).

Finally, let us comment on the weak energy condition (WEC), which states that \(\rho _\mathrm{dm}>0\) and \(\rho _\mathrm{de}>0\), which implies according to (25)

$$\begin{aligned} \rho _\mathrm{de}>0\Longrightarrow z>-\frac{1}{\sigma }\left( \frac{2}{3\beta } +\omega _\mathrm{de}\left( 0\right) \right) \approx -1, \end{aligned}$$
(40)

and according to (26)

$$\begin{aligned} \rho _\mathrm{dm}>0\Longrightarrow z>-\frac{1}{\sigma }\left( \frac{2\left( 1-\alpha \right) }{3\beta }+1+\omega _\mathrm{de}\left( 0\right) \right) \approx -0.4, \end{aligned}$$
(41)

and for \(z>-0.4\) the WEC is satisfied and there are no future singularities in the energy densities.

We use now the CPL-parametrization [32] given by \(\omega _\mathrm{de}\left( z\right) =\omega _{0}+\omega _{1}z\left( 1+z\right) ^{-1}\), where \(\omega _{0}=\omega _\mathrm{de}\left( 0\right) \) and \(\omega _{1}=\omega _\mathrm{de}^{\prime }\left( 0\right) \), in order to compare with the previous case.

At variance with the previous case, we see only one sign change in \( Q\left( z\right) \) and this change occurs in the future, Fig. 6. However, as before, this fact also leads to sign changes in the heat capacities of both, dark energy and dark matter. See the appendix. So, there are no differences if we are thinking in the behavior of the heat capacities.

Fig. 6
figure 6

The behavior of Q and its sign change in the future

In this last section, we addresses the evolution of the temperatures. According to (9) and (10), we obtain, respectively,

$$\begin{aligned} T_\mathrm{de}\left( z\right) =T_\mathrm{de}\left( 0\right) \left( 1+z\right) ^{p_{1}}\left( 1+\frac{a}{b}z\right) ^{p_{2}}\exp \left( 6\omega _{1}\frac{z }{1+z}\right) \end{aligned}$$
(42)

(Fig. 7), and

$$\begin{aligned} T_\mathrm{dm}\left( z\right) =T_\mathrm{dm}\left( 0\right) \left( 1+z\right) ^{\sigma _{2}}\left( 1+\frac{a}{b}z\right) ^{\sigma _{1}}\left( 1+\frac{A}{B}z\right) ^{\sigma _{3}} \end{aligned}$$
(43)

(Fig. 8), where the parameters involved are given by

$$\begin{aligned} p_{1}=3\left[ 1+\frac{1}{\beta }\left( 2\alpha -3\beta \right) -2\left( \omega _{0}+\omega _{1}\right) \right] ,\nonumber \\ p_{2}=-3\left[ 1+\frac{2}{\beta }\left( \frac{2\alpha -3\beta }{2+3\beta \left( \omega _{0}+\omega _{1}\right) }\right) \right] , \end{aligned}$$
(44)

and

$$\begin{aligned} \sigma _{i}=9\left( 2\alpha -3\beta \right) \epsilon _{i}, \end{aligned}$$
(45)

where

$$\begin{aligned} \epsilon _{1}= & {} \frac{\omega _{0}+\omega _{1}}{a}+\frac{\beta \omega _{1}}{a A}\left( \frac{1}{B/A-b/a}\right) -\frac{1}{3\beta },\nonumber \\ \epsilon _{2}= & {} \frac{1}{3\beta },\nonumber \\ \epsilon _{3}= & {} -\frac{\beta \omega _{1}}{a A}\left( \frac{1}{B/A-b/a} \right) , \end{aligned}$$
(46)
Fig. 7
figure 7

We see that \(T_\mathrm{de}\) grows to the future and the dark energy exhibits a sign change in its heat capacity given the sign change experienced by Q

Fig. 8
figure 8

We see that \(T_\mathrm{dm}\) decreases to the future and the dark matter exhibits a sign change in its heat capacity given the sign change experienced by Q

and then

$$\begin{aligned} a= & {} 2+3\beta \left( \omega _{0}+\omega _{1}\right) ,\nonumber \\ b= & {} 2+3\beta \omega _{0};\nonumber \\ A= & {} 2+3\beta \left( \omega _{0}+\omega _{1}\right) -\left( 2\alpha -3\beta \right) ,\nonumber \\ B= & {} 2+3\beta \omega _{0}-\left( 2\alpha -3\beta \right) . \end{aligned}$$
(47)

Finally, the Hubble parameter is given by

$$\begin{aligned} H\left( z\right) /H\left( 0\right) =\left( 1+z\right) ^{p_{3}}\left[ 1+\left( 1+\frac{2}{3\beta \omega _{0}}\right) ^{-1}\frac{z}{1+z}\right] ^{p_{4}} \end{aligned}$$
(48)

(Fig. 9), where

$$\begin{aligned} p_{3}=3\left[ \frac{1+\alpha \left( \omega _{0}+\omega _{1}\right) }{ 2+3\beta \left( \omega _{0}+\omega _{1}\right) }\right] , \nonumber \\ p_{4}=-\frac{1}{\beta }\left[ \frac{2\alpha -3\beta }{2+3\beta \left( \omega _{0}+\omega _{1}\right) }\right] . \end{aligned}$$
(49)

In order to plot Figs. 6, 7, 8, and 9 we have used the best fit for the parameters \(\left( \alpha ,\beta ,\omega _{0},\omega _{1}\right) =\left( 0.86,0.23,-1.001,\right. \left. 0.999\right) \) with \(\chi ^{2}=0.982\) [14]. All these parameters, as those used in the linear parametrization for \(\omega _\mathrm{de}\), have been adjusted from type I Supernova, Union 2 [29]. In this case, the phantom case (\(\omega _{0}<-1\)) is also required by this best fit.

Fig. 9
figure 9

The Hubble parameter

We end this section by recalling that in the literature we can observe several parametrizations for dark energy (see [33], for instance). Regardless of this, the presence of interaction and the possibility of sign changes in the direction of energy transference between cosmological components, and mainly its consequences, are the key facts to inspect.

6 Final remarks

Consistently with the second law of thermodynamics, we have studied the behavior of the temperatures of two interacting fluids (dark energy and dark matter) and its relationship with the sign changes of Q through the cosmic evolution. We have investigated the phase transitions (sign changes of its heat capacities) experienced for both, dark energy and dark matter. We have used a holographic model for the dark energy and, as usual, we have considered a pressureless fluid (dust) for dark matter.

It is generally believed that phase transitions have taken place in the early universe and its effects may well have been important for the late evolution. In the present work, phase transitions (seen here as sign change in the heat capacities of the fluids) are studied. Obviously phase transitions studied here are not like those experienced earlier, however, the possibility of having future sign change in the heat capacities of the interacting cosmological components is in itself interesting to explore. So, negative heat capacities, as showed here, could reveal new physics beyond the usual thermodynamic limit. As we said before, the presence of interaction and possibility of sign change because of energy transfer between cosmological components can therefore be the key facts in order to inspect this issue. It is evident that we need a better theoretical approach, endorsed by the observational data, if we are thinking in the future evolution. Needless to say that the study realized before for the phantom case (\(\omega <-1\)) may also be important.

We have used two modeling for \(\omega _\mathrm{de}\left( z\right) \) and in both cases we have a sign change in Q. This fact is the highlight which leads to phase transitions and the behavior of the fluid temperatures. We emphasize that a sign change in Q is relevant. The parametrization play an important role here, for example, in the linear case \(\omega _\mathrm{de}\left( z\right) =\omega \left( 0\right) +\sigma z\), we see two sign changes in Q, one in the past and the other in the future and for the CPL-model \(\omega _\mathrm{de}\left( z\right) =\omega _{0}+\omega _{1}z\left( 1+z\right) ^{-1}\) we see only one sign change, in the future. Both \(\omega _\mathrm{de}\left( z\right) \) -models represent a good description of the dark energy in the vicinity of \( z=0\), time where we can better visualize the aforementioned changes.

Finally, and as we said at the beginning, it is natural to consider an interaction between cosmic fluids, in particular, between dark components which contribute in significant fractions to the contents of the universe. The presence of Q appears to be compatible with the observations [3436], such that this interaction could provide us an interesting insight to inspect the nature of the dark sectors, in particular, its thermodynamical nature. Additionally, if future observations were to detect sign changes in Q, very interesting consequences should appear in late cosmology.