1 Introduction

The well-known, and partially successful, cosmological standard model, based on Einstein gravity, assumes a homogeneous and isotropic universe whose energy density is supplied by matter and fields that satisfy the strong energy condition [1]. The popular Einstein and de Sitter cosmology [2] is a case in point. In this class of models an inevitable singularity occurs at the beginning of the expansion. As \(t \rightarrow 0\) the energy density grows beyond whatever bound, world lines cannot be continued any longer and, worse of all, the spacetime description breaks down. This holds also true if at very early times, before the conventional radiation dominated phase, the expansion of the universe is driven by some field whose energy density, essentially constant, overwhelms every other form of energy [3].

To evade this uncomfortable, philosophical, implication three main possibilities were advanced: (i) The initial singularity arises chiefly from ignoring quantum effects which are to prevail at some point before the singularity can occur [4]. (ii) The universe began expanding from a finite initial size safely larger than Planck’s length (thus avoiding as well the quantum dominated regime). In this scenario, known as the “emergent” universe, an Einstein-type static phase replaces the initial singularity – see e.g. [5, 6]. (iii) Nonsingular bouncing universes. According to this proposal the universe experiences either just one contracting phase followed by an expanding one, or a sequence of expanding and contracting phases connected, in either case, to each other by a bounce such that the scale factor, a(t), of the Friedmann–Robertson–Walker (FRW) metric neither vanishes nor diverges [712] – see [13] and [14] for reviews. Since the singularity theorems of Penrose and Hawking [15] forbid bounces to originate from normal matter the physics behind them is not straightforward and requires the presence of some source of energy that violates the null energy condition. It is therefore understandable that the bounce mechanism remains a subject of debate as yet [9]. Nevertheless, nonsingular bouncing may arise in de Sitter-like models with closed spatial sections [16] as well as in supergravity-based models [17]. Figure 1 shows the evolution of the scale factor and Hubble factor, \(H = \dot{a}/a\) – in arbitrary units – of a nonsingular, bouncing toy model. In spite of its simplicity, it encapsulates the salient kinematics features of this class of models.

Given the strong connection between gravity and thermodynamics [1821], for a cosmological model that fits reasonably well the observational data it will be a bonus to comply with the laws of thermodynamics, especially the second law. The latter formalizes our daily experience that macroscopic systems, left to themselves, spontaneously tend to thermodynamic equilibrium or remain in it, if undisturbed. According to it, the entropy S of isolated systems never decreases, \(\dot{S} \ge 0\), and must be concave at least in the last stage of approaching equilibrium [22]. In the mid-1970s this was proved for gravity dominated systems, namely, black holes plus their environment [23, 24], and later extended to cosmic scenarios consisting in a de Sitter event horizon plus the fluid enclosed by it [25, 26].

In the case of homogeneous and isotropic universes, the entropy measured by a comoving observer splits into two parts, \(S = S_\mathcal{A} + S_{f}\). The first one is the entropy of the apparent horizon [27],

$$\begin{aligned} S_\mathcal{A} = k_{B} \mathcal{A}/(4\ell ^{2}_{pl}), \end{aligned}$$
(1)

where \(\mathcal{A} = 4 \pi \tilde{r}^{2}_\mathcal{A}\) denotes its area and

$$\begin{aligned} \tilde{r}_\mathcal{A} = 1/\sqrt{H^{2} + k \, a^{-2}} \end{aligned}$$
(2)

denotes the horizon radius [27]. This is in keeping with the fact that the entropy of systems dominated by gravity does not vary as its volume but as the area of the surface that bounds this volume.Footnote 1 The second part, \(S_{f}\), corresponds to the entropy of fluids (e.g. matter and radiation) enclosed by the horizon. In many instances of interest the latter is negligible as compared with the former; this is only natural given the smallness of the \(\ell ^{2}_{pl}\) factor. (We do not consider the entropy of scalar fields as we assume these fields are in a pure quantum state and consequently their entropy vanishes altogether). In the particular case of the present universe the entropy of the horizon is larger than that provided by supermassive black holes, stellar black holes, relic neutrinos, and CMB photons by 18, 25, 33, and 33 orders of magnitude, respectively [28].

Fig. 1
figure 1

Qualitative evolution of the scale factor, solid (black) line, and the Hubble function, dashed (red) line, in arbitrary units, of a nonsingular bouncing FRW universe. Here, \(a = 2 + \sin (t)\)

At this point, we feel it expedient to summarize the derivation of the radius of the apparent horizon, Eq. (2). We begin by rewriting the FRW metric,

$$\begin{aligned} \mathrm{d}s^{2} = -\mathrm{d}t^{2} + a^{2}(t)\, \frac{\mathrm{d}r^{2}}{1-k r^{2}} + a^{2} (t) \, r^{2}\, \mathrm{d}\Omega ^{2} \end{aligned}$$
(3)

(where \(k = +1, 0, -1\), denotes the spatial curvature index and \(\Omega \) is the unit two-sphere), as

$$\begin{aligned} \mathrm{d}s^{2} = h_{ab} \mathrm{d} x^{a}\, \mathrm{d} x^{b} + \tilde{ r}^{2}(x)\, \mathrm{d} \Omega ^{2}. \end{aligned}$$
(4)

Here, \(x^{0} = t\), \(x^{1} = r\), and \(h_{ab} = \mathrm{diag} \left[ -1, \frac{a^{2}}{1-k r^{2}}\right] \). The radius of the dynamical apparent horizon is set by the condition \(h^{ab} \partial _{a} \tilde{r} \, \partial _{b} \tilde{r} =0\). A straightforward calculation produces Eq. (2). To better understand the meaning of the horizon note that the expansion of the ingoing and outgoing null geodesic congruences are given by

$$\begin{aligned} \theta _\mathrm{IN} = H - \frac{1}{\tilde{r}}\, \sqrt{1 - \frac{k \tilde{r}^{2}}{a^{2}}} \quad \mathrm{and} \quad \theta _\mathrm{OUT} = H + \frac{1}{\tilde{r}}\, \sqrt{1 - \frac{k \tilde{r}^{2}}{a^{2}}}, \end{aligned}$$
(5)

respectively. A spherically symmetric spacetime region will be called a “trapped” region if the expansion of ingoing and outgoing null geodesics, normal to the spatial two-sphere of radius \(\tilde{r}\) centered at the origin, is negative. By contrast, the region will be called “anti-trapped” if the expansion of both kind of geodesics is positive. In normal regions outgoing null rays have positive expansion and ingoing null rays, negative expansion. Thus, the anti-trapped region is given by the condition \(\tilde{r} > (H^{2} + k a^{-2})^{-1/2}\). Clearly, the surface of the apparent horizon is nothing but the boundary hypersurface of the spacetime anti-trapped region. Therefore, it is only natural to associate an entropy to the apparent horizon since one can regard the latter as a measure of one’s lack of knowledge about the rest of the universe. Further details concerning the entropy of the apparent horizon can be found in [27]. Obviously, in the case of an exact de Sitter expansion, the apparent and event horizons coincide.

Models falling into the emergent class fulfill the generalized second law (GSL) [29], i.e., \(\dot{S}_\mathcal{A}+ \dot{S}_{f} \ge 0\), as well as the concordance \(\Lambda \)CDM model [30, 31]. Likewise, the models of references [32] and [33] satisfy the said law [34]. Both scenarios evade the big bang singularity and evolve from an initial de Sitter expansion to a final, also de Sitter, expansion in the far future. In the first one, [32], a gravitationally induced production of particles drives the current cosmic acceleration. In the second one, [33], the latter arises from a dynamical cosmological “constant” that depends on the Hubble factor in a manner dictated by the renormalization group [35]. By contrast, ever expanding matter-dominated universes (as the Einstein and de Sitter [2]) and phantom-dominated cosmologies obeying Einstein gravity fail to satisfy this law [30, 31].

The target of this paper is to explore whether the GSL is satisfied by the nonsingular bouncing class of world models that obey general relativity, in their evolution outside the bounce itself. As mentioned above, during the bounce the null energy condition, \(\rho + p \ge 0\), is violated; consequently the second law is expected to be violated as well. It is therefore worthwhile to ask whether the transgression of the second law is confined just to the bounce or also occurs in other phases of the universe evolution. This is the question we aim to answer.

Next section focuses on a homogeneous and isotropic cosmological model, sourcered by a massive, complex, scalar field, that display a nonsingunlar bounce [7]. Section 3 studies from an overall viewpoint the class of models that incorporate matter and radiation as sources of the gravitational field though, regrettably, these models do not have analytical solutions. Section 4 presents our conclusions and final comments.

2 Nonsingular Starobinsky’s model

Let us consider a model proposed by Starobinsky whose only energy component is a homogeneous and massive, complex, scalar field [7]. This is the simplest model featuring a nonsingular bounce that has analytical solutions for the scale factor with a nonzero measure in the space of initial conditions -in this last respect; see also [36].

The model obeys Friedmann’s and energy conservation equations

$$\begin{aligned} H^{2} + \frac{k}{a^{2}} = \frac{8 \pi G}{3}(|\dot{\varphi }|^{2} + m^{2} |\varphi |^{2}), \end{aligned}$$
(6)
$$\begin{aligned} \ddot{\varphi } + 3 H \dot{\varphi } + m^{2} \varphi = 0, \end{aligned}$$
(7)

where m is the quantum mass of the field and \(k = +1\) in order for Eq. (6) to allow for a bounce.

At the epoch of maximum expansion (\(-a_\mathrm{max} \ll t \ll -m^{-1}\)) the universe contracts according to \(a(t) = \lambda |t|^{3/2}\), where \(\lambda \) is a positive-definite constant. In this era the variation with time of the area of the apparent horizon is

$$\begin{aligned} \dot{\mathcal{A}} = - 4 \pi \frac{\frac{8}{9}|t|^{-3} + \frac{4}{3} \lambda ^{-2} |t|^{-7/3}}{\left( \frac{4}{9}|t|^{-2} + \lambda ^{-2} |t|^{-4/3}\right) ^{2}} < 0. \end{aligned}$$
(8)

For \( t \gg m^{-1}\) but \(t < m^{-1} (2 \ln m a_\mathrm{max})^{1/2}\) the scale factor obeys \( a(t) = a_{1} \, \exp (-C \, t^{2})\) with \(C = m^{2}/6\) [7]. Consequently,

$$\begin{aligned} \dot{\mathcal{A}} = - 4 \pi \, t \, \frac{8 C^{2} + \frac{4C \exp {(2C t^{2})}}{a_{1}^{2}}}{\left( 4 C^{2} t^{2} + \frac{\exp {(2C t^{2})}}{a_{1}^{2}} \right) ^{2}} < 0. \end{aligned}$$
(9)

Figure 2 shows the evolution of the scale factor (though, in reality, the solution is valid only for a portion of the graph) as well as the evolution of the entropy of the apparent horizon.

Fig. 2
figure 2

Evolution of the scale factor – solid (black) line – given by \( a(t) = a_{1} \, \exp (-C \, t^{2})\), and the entropy of the horizon – dashed (blue) line – for \(t > 0\)

As we see, the entropy of the horizon diminishes, at least, in some interval of the contracting stage. Since neither matter nor radiation sources the gravitational field the total entropy decreases in such periods.

3 Models with matter and radiation

We next consider nonsingular bouncing models that include matter and radiation. Since we are not aware of analytical solutions for the scale factor our study will necessarily be from a general viewpoint. In the following we adopt the toy model of Fig. 3.

Inspection of the said figure reveals that irrespective of the sign of the curvature index, k, of the FRW metric (3), the entropy of the apparent horizon \(S_\mathcal{A}\), oscillates so that it presents alternated phases of increase and decrease. To fulfill the GSL, the entropy of matter and fields inside the horizon should compensate for the stages of decrease. Even though this can hardly be the case,Footnote 2 this may not be necessarily true near the turning points (where \(\dot{a}\) vanishes). In these points, it may depend on the details of the specific bouncing model. So, except possibly for the turning points, the entropy of matter and fields inside the horizon, most likely, will not compensate.

Fig. 3
figure 3

Evolution of the scale factor – solid (black) line – and the horizon entropy, in arbitrary units, for \(k = 0\)dashed (blue) lines, and \( k= +1\)dotted (red) line. Here, \(a = 2 + \sin (t)\)

In Fig. 3 it is seen that when the scale factor goes from a maximum to the next minimum, the area, \(\mathcal{A} = 4 \pi /(H^{2} + k a^{-2})\) (or what amounts to the same, the entropy), of the \(k = + 1\) apparent horizon decreases. This is also true for the \(k = 0\) apparent horizon when the scale factor goes from a maximum to the consecutive inflection point. Next we shall check if matter and radiation may compensate for the decrease in entropy.

The entropy of pressureless matter, as well as of massless radiation, inside the apparent horizon varies as the number of particles in there, i.e., \(S_{m} = k_{B} N_{m}\), \(S_{\gamma } = k_{B} N_{\gamma }\) [37]. Since \(N_{i} = (4 \pi /3) \, n_{i} \, \tilde{r}_\mathcal{A}^{3}\), where the number densities obey \(n_{m} = n_{m0} \, a^{-3}\) and \(n_{\gamma } = n_{\gamma 0} \, a^{-4}\) for matter and radiation, respectively,Footnote 3 one obtains

$$\begin{aligned} \dot{S}_{m} = - 4 \pi k_{B} \, n_{m0} \, \left( \frac{\tilde{r}_\mathcal{A}}{a} \right) ^{5}\, \dot{a} \, \ddot{a} \end{aligned}$$
(10)

and

$$\begin{aligned} \dot{S}_{\gamma } = - 4 \pi k_{B} \, n_{\gamma 0} \, \left( \frac{\tilde{r}_\mathcal{A}}{a} \right) ^{3}\, H\, \left[ \left( \frac{\tilde{r}_\mathcal{A}}{a}\right) ^{2} \, \ddot{a} + \frac{1}{3a}\right] . \end{aligned}$$
(11)

Inspection of the right-hand-side of the last two equations and Fig. 3 reveals that the entropy of the fluids (matter and radiation) enclosed by the apparent horizon also diminishes in the scale factor interval between each maximum and the subsequent inflection point (note that there both \(\dot{a}\) and \(\ddot{a}\) are negative quantities). Thereby, in the said interval the total entropy (that of the horizon plus that of relativistic and non-relativistic particles inside the horizon) decreases, \(\dot{S}_\mathcal{A} + \dot{S}_{m} + \dot{S}_{\gamma } < 0\).

In addition, as is well known, when matter evolves from an uniform distribution to a clumped one to form bound objects (stars, galaxies, and so on) its entropy also diminishes since spatial matter distribution goes from a disordered state to a less disordered one. In expanding phases of an oscillating universe this decrease might be counterbalanced by the entropy gain associated to the volume increase of the universe, but not in contracting phases.

Likewise, if one includes the “entropy” associated to the perturbed FRW universe, recently introduced by Clifton et al. [38], based on the Bel–Robinson tensor, the situation does not change since the said entropy is proportional to \(a^{3}\) (see Eq. (54) in [38]). Then in contracting phases this entropy diminishes as well.

For a bounce (or a sequence of bounces) to occur in the class of models considered in this section, an energy component that violates the null energy condition (NEC) must also be present. Thus, one may wonder if this component may restore the GSL in this context. Typically, fields that break the NEC are scalar fields of phantom type. As mentioned in the Introduction, it is generally assumed that scalar fields have vanishing entropy. Upon this usually accepted assumption, the presence of this field will not modify our results in any way. However, one may still argue that the said field might, in reality, be an effective one that corresponds to a mixture of fields, every single one being in a pure quantum state. In such a case, this effective phantom field should be entitled to an entropy. Now, the entropy of any system is an increasing function of its energy and volume. In the contracting phase, at variance with matter and fields that fulfill the NEC, the energy density of the phantom field decreases. Since the volume of the apparent horizon diminishes as well, the entropy of this effective, phantom field, decreases too. Once again, our result stands.

Altogether, our analysis suggests that the GSL is not satisfied by homogeneous and isotropic, nonsingular, bouncing models obeying Einstein relativity.

4 Concluding remarks

Assuming that the entropy of the universe is proportional to the area enclosing the dynamical apparent horizon, and taking into account the contributions by the matter and radiation, we investigated if nonsingular bouncing models satisfy the generalized second law of thermodynamics. We found that homogeneous and isotropic nonsingular bouncing models, governed by general relativity, do not comply with the GSL also away from the bounce. This is not only an interesting result in itself, it also begs the question as to whether more elaborated bouncing models respect this law.

One may wonder whether our results would change if we have used the event horizon rather than the apparent horizon. The answer is: no. The entropy of the former horizon is also given by his area, \(\mathcal{A}_{eh} \propto l^{2}_{eh}\), where the radius of the horizon reads \(l_{eh}(t) = a(t)\, \int _{t}^{\infty }{\mathrm{d}\tilde{t}/a(\tilde{t})}\). Consequently, in contracting phases this entropy decreases as well.

Similarly, the “entropy of the gravitational field” introduced four decades ago by Penrose [39, 40], based on Weyl’s tensor does not change our results because, in the case of non-perturbed FRW universes, the Weyl tensor vanishes identically and so does this entropy. At any rate, it faces well-known difficulties; see e.g. [41, 42].

One might still argue that the failure to fulfill the GSL arises from the fact that we are observing just one universe and that we did not take into account cosmic variance. However, from the principle of indifference of Laplace [43], it is hard to see how cosmic variance will alter this result for the subset of the multiverseFootnote 4 obeying general relativity. In any case, this depends on how one would choose a measure in the space of solutions, a subject that lies beyond the scope of this work.

Finally, bouncing models based on gravity theories that go beyond general relativity, or that introduce extra dimensions (see [13, 14] and references therein, as well as the recent proposals by Steinhardt et al. [44, 45] and Ijjas and Steinhardt [46]), should also be considered from the thermodynamic standpoint. However, for the time being, it is rather unclear how to define a meaningful entropy in such models.

We conclude by saying that, while the aforesaid connection between gravity and thermodynamics, [1821] does not fully ensure us that the universe behaves as a thermodynamic system (i.e., one that obeys the thermodynamic laws), given two models that fit equally well the observational data, one respecting the GSL while the other does not, the former will likely be preferred.