1 Introduction

The search for theoretical framework for the now widely accepted increasing expansion rate of the universe, also dubbed “cosmic acceleration”, has led the scientific community to consider different possibilities. Some are connected to the presence of additional matter fields with exotic properties (e.g. the inflaton, quintessence, k-essence). Others are related to the geometrical properties of cosmological spacetimes or the special features of the homogeneous and isotropic averaging of an anisotropic and non-homogeneous spacetime. A third class includes modifications (or rather extensions) of the underlying theory of gravitation. This last case implies a purely geometrical description of dark energy and has been thoroughly studied in the past years – from the now “classical” f(R) [1,2,3,4] and scalar tensor [5, 6] theories to more complex extensions which involve the presence of torsion or of more complicated invariants in the gravitational actions [7,8,9]. These theories have been thoroughly studied and have revealed interesting features as well as a number of problems connected to different kinds of instabilities. Among those theories which include terms of fourth order in the derivative of the metric, the so-called modified Gauss–Bonnet gravity has been shown to have interesting properties.

The idea of these theories comes from the concept of brane worlds, which are in turn derived from string theories. In five dimensions one considers a Gauss–Bonnet (GB) term which is normally non-minimally coupled with a scalar (modulus or dilaton) field. One can shown that the induced theory on four dimensions is able to generate the de Sitter solution and has other relevant cosmological properties [10,11,12,13,14,15,16,17].

In [18, 19] a new class of theories of gravity, dubbed Gauss–Bonnet gravity, was proposed in which the Gauss–Bonnet term appears in four dimensions. As is well known, the Gauss–Bonnet invariant is a total divergence in four dimensions and therefore a linear GB term would be irrelevant in this case. The new class of theories overcomes this issue introducing in the Hilbert–Einstein action a generic non-linear function of the Gauss–Bonnet term. The cosmology of Gauss–Bonnet gravity has been thoroughly studied [20,21,22,23]. Some of the members of this class of theories were shown to be able to pass the Solar System tests and to possess cosmological solutions producing cosmic acceleration [24,25,26]. The same authors also found that linear cosmological perturbations of a spatially flat background contains some instabilities [27]. Although this is clearly a problem, one must remember that the dynamics of higher order theories depends on the value of the spatial curvature in a more complex way that standard (GR). This means that even if k is almost zero, as recently found by the Planck collaboration [28], the dynamical features of these models can be completely different, especially at perturbative level (see Eq. (13) below for a glimpse of this). This fact justifies a further analysis of these theories which takes into account spatial curvature.

Gauss–Bonnet gravity, like many other extensions of GR, has a structure that makes it difficult to understand the physics of these models. In this respect, the use of semi quantitative techniques, like the dynamical systems approach (DSA) [29], can help in clarifying details of the dynamics of cosmological models based on these theories and other modifications of GR [30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52] which are not obvious. The use of DSA for this purpose is now fairly standard; however, the analysis is often limited to basic aspects of the method, like for example the choice of variables and the closure do the dynamical system. Recently, a new strategy to alleviate these problems was proposed in the context of f(R)-gravity [53]. With respect to the previously proposed approaches, the new method has the advantage to be applicable to any form of the function f and leads to a clearer (albeit not complete) understanding of expanding cosmologies.

In this work, we will propose a similar technique to treat Gauss Bonnet cosmologies in which the action is the sum of the Hilbert–Einstein term and a generic (non linear) function of the Gauss Bonnet invariant. As in the case of f(R) gravity the method will allow one to treat any forms of the function f and will enable us to characterise the nature of the attractors (if any) for the cosmologies Gauss–Bonnet gravity. We will apply this technique to a number of versions of this theory that have been deemed interesting and/or compatible with the present data. The results of this study will be the starting point for a more complete analysis of the dynamics of linear perturbations, which will be pursued elsewhere.

Unless otherwise specified, natural units (\(\hbar =c=k_{B}=G=1\)) will be used throughout this paper, Latin indices run from 0 to 3. The symbol \(\nabla \) represents the usual covariant derivative and \(\partial \) corresponds to partial differentiation. We use the \((+,-,-,-)\) signature and the Riemann tensor is defined by

$$\begin{aligned} R^{a}{}_{bcd}=W^a{}_{bd,c}-W^a{}_{bc,d}+ W^e{}_{bd}W^a{}_{ce}- W^f{}_{bc}W^a{}_{df},\nonumber \\ \end{aligned}$$
(1)

where the \(W^a{}_{bd}\) are the Christoffel symbols (i.e. symmetric in the lower indices), defined by

$$\begin{aligned} W^a_{bd}=\frac{1}{2}g^{ae} \left( g_{be,d}+g_{ed,b}-g_{bd,e}\right) . \end{aligned}$$
(2)

The Ricci tensor is obtained by contracting the first and the third indices,

$$\begin{aligned} R_{ab}=g^{cd}R_{acbd}. \end{aligned}$$
(3)

Finally the Hilbert–Einstein action in the presence of matter is given by

$$\begin{aligned} S=\int d x^{4} \sqrt{-g}\left[ \frac{1}{2\kappa }R+ L_{m}\right] , \end{aligned}$$
(4)

where \(\kappa =8\pi \) and has the dimension of the inverse of a length square.

2 Basic equations

The action for modified Gauss–Bonnet gravity reads

$$\begin{aligned} S=\int \mathrm{d}^4x \sqrt{-g}\left[ \frac{R}{2\kappa }+f(\mathcal{G})\right] +S_\mathrm{M}(g^{\mu \nu },\psi ), \end{aligned}$$
(5)

where \(S_\mathrm{M}(g^{\mu \nu },\psi )\) is the matter action and \(\psi \) collectively denotes the matter fields. The Gauss–Bonnet invariant is defined as

$$\begin{aligned} \mathcal{G}\equiv R^2-4R_{\mu \nu }R^{\mu \nu }+R_{\mu \nu \alpha \beta }R^{\mu \nu \alpha \beta }. \end{aligned}$$
(6)

Varying the action with respect to the metric yields the field equations:

$$\begin{aligned}&G_{\mu \nu }+(\mathcal{G}f'-f) g_{\mu \nu }\nonumber \\&\quad +8 \left[ R_{\mu \rho \nu \sigma } +R_{\rho \nu } g_{\sigma \mu } -R_{\rho \sigma } g_{\nu \mu } -R_{\mu \nu } g_{\sigma \rho }+ R_{\mu \sigma } g_{\nu \rho }\right. \nonumber \\&\quad \left. +\frac{R}{2} (g_{\mu \nu } g_{\sigma \rho } -g_{\mu \sigma } g_{\nu \rho }) \right] \nabla ^{\rho } \nabla ^{\sigma } f' =\kappa T_{\mu \nu }, \end{aligned}$$
(7)

where the prime represents the derivative with respect to \(\mathcal{G}\) and \(G_{\mu \nu }=R_{\mu \nu }-(1/2)R g_{\mu \nu }\) is the Einstein tensor.

The matter energy-momentum tensor is defined as usual as

$$\begin{aligned} T_{\mu \nu }=-\frac{2}{\sqrt{-g}}\frac{\delta (\sqrt{-g}\,{L}_{m})}{\delta (g^{\mu \nu })}. \end{aligned}$$
(8)

Our treatment will consider the Friedmann–Lemaître–Robertson–Walker (FLRW) metric:

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

where a is the scale factor and k the spatial curvature. We also assume that the cosmic fluid is a perfect fluid with equation of state \(p=w \mu \) with \(0\le w\le 1\), where \(\mu \) and p, respectively are the energy density and pressure measured by the co-moving observer, and where we assume w to be constant. In this metric, the Gauss–Bonnet invariant is

$$\begin{aligned} \mathcal{G}=24\left( H^2+\frac{k}{a^2}\right) (\dot{H}+H^2), \end{aligned}$$
(10)

where \(H=\frac{\dot{a}}{a}\) is the Hubble factor. This expression is particularly important because it connects the sign of \(\mathcal{G}\) to the sign of the deceleration factor. For \(k\ge 0\), any cosmology which transits between acceleration and deceleration will have to change the sign of \(\mathcal{G}\). If \(k<0\), this is not necessarily true. In this respect Gauss–Bonnet cosmology depends in an even more crucial way on the spatial curvature than GR.

3 The dynamical systems approach

First, we introduce a constant \(\chi _0\) such that the products \(R\chi _0\) and \(\mathcal{G}\chi _0^2\) are dimensionless and we redefine all the constants appearing in the action (5) to obtain

$$\begin{aligned} S=\int \left\{ \chi _0 R+ f\left( \mathcal{G} \chi _0^2\right) +{\ L} _{m}\left( g_{\mu \nu },\Phi \right) \right\} \sqrt{-g}\;\mathrm{d}^{4}x, \end{aligned}$$
(11)

where now all the constants (with the exception of \(\chi _0\)) in the action are assumed dimensionless.

Now defining the parameters

$$\begin{aligned} {\mathfrak q} =\frac{\dot{H}}{H^2},\quad {\mathfrak j} =\frac{\ddot{H}}{ H^3}-\frac{\dot{H}^2}{ H^4},\quad {\mathfrak s}=\frac{\dddot{H}}{ H^4}+3\frac{\dot{H}^3}{ H^6}-4\frac{ \dot{H} \ddot{H}}{ H^5}, \end{aligned}$$
(12)

the cosmological equations can be written as

$$\begin{aligned}&3\chi _0\left( H^2+ \frac{k}{a^2}\right) - \mu +f -24 H^2 (\mathfrak {q}+1) \left( H^2+\frac{k}{a^2}\right) f'\nonumber \\&\quad +\left\{ 3^2\,2^6 H^4 \left( \mathfrak {j}+\mathfrak {q}^2-2\right) \frac{k^2}{a^4}\right. \nonumber \\&\left. \quad +3^2\,2^7 H^6 \left( 5 \mathfrak {j}+2 \mathfrak {q} (3+1) -9\right) \right. \nonumber \\&\quad \left. \times \frac{k}{a^2}+2^6 3^4 H^8 [\mathfrak {j}+\mathfrak {q} (3 \mathfrak {q}+4)]\right\} f''=0,\end{aligned}$$
(13)
$$\begin{aligned}&\chi _0 H^2 (\mathfrak {q}+1)+\frac{1}{3} \mu (3 w+1)+\frac{f}{3}\nonumber \\&\quad -24 H^2 (\mathfrak {q}+1) \left( \frac{k}{a^2}+H^2\right) f'\nonumber \\&\quad +\left\{ 2^5 3^2 H^4 \left( \frac{k}{a^2}+H^2\right) \left( \frac{k}{a^2}+9 H^2\right) \mathfrak {s}\right. \nonumber \\&\quad \left. +2^5 3^2 H^8 \left[ \mathfrak {j} (92 \mathfrak {q}+29)+ \mathfrak {q}^2 (87 \mathfrak {q}+131)-28\mathfrak {q}\right] \right. \nonumber \\&\quad \left. +2^5 3^2 H^4 \left[ \mathfrak {j} (4 \mathfrak {q}-3)+(\mathfrak {q}-3) \mathfrak {q}^2+6(\mathfrak {q}-1) \right] \frac{k^2}{a^4}\right. \nonumber \\&\quad \left. +2^6 3^2 H^6 \left[ \mathfrak {j} (24 \mathfrak {q}-11){+}\mathfrak {q} (2 \mathfrak {q} (5 \mathfrak {q}-3){-}31){+}25\right] \frac{k}{a^2}\right\} f''\nonumber \\&\quad + \left\{ 2^8 3^3 H^6 \left( \mathfrak {j}+\mathfrak {q}^2-2\right) ^2\frac{k^3}{a^6}+2^8 3^3 H^8 \left( \mathfrak {j}+\mathfrak {q}^2-2\right) \right. \nonumber \\&\quad \times \left. [11 \mathfrak {j}+\mathfrak {q} (15 \mathfrak {q}+8)-18]\frac{k^2}{a^4}\right. \nonumber \\&\quad \left. +2^8 3^3 H^{10} \left[ \mathfrak {j}+\mathfrak {q} (3 \mathfrak {q}+4)\right] [19 \mathfrak {j}+\mathfrak {q} (21 \mathfrak {q}+4)-36] \right. \nonumber \\&\quad \times \left. \frac{k}{a^2}+2^8 3^5 H^{12} [\mathfrak {j}+\mathfrak {q} (3 \mathfrak {q}+4)]^2\right\} f'''=0. \end{aligned}$$
(14)

Here the non-trivial role of the spatial curvature is particularly evident: the \(k=0\) equations are very different from the full ones.

In order to analyse the phase space let us define the expansion normalised variables,

$$\begin{aligned} \mathbb {G}&=\frac{\mathcal{G}}{3 H^4},\quad \mathbb {K}=\frac{k}{a^2 H^2},\quad \Omega =\frac{\mu }{3H^2 \chi _0},\nonumber \\ \mathbb {J}&=\mathfrak j\quad \mathbb {Q}=\mathfrak q,\quad \mathbb {A}=\chi _0H^2. \end{aligned}$$
(15)

We also define the logarithmic (dimensionless) “time variable” \(N=\ln a\). Note that in choosing this time variable we are assuming that we represent the phase space for \(H>0\), i.e., we are considering only expanding cosmologies.

It is important to stress that, since \(\mathbb {G}\) has the same sign of \(\mathcal{G}\), a sufficient condition for the transition between deceleration and acceleration can only be obtained if \(\mathbb {G}=0\) is not an invariant submanifold of the phase space.

The phase space associated to Eq. (13) is then described by the autonomous system

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \frac{\mathbb {G}}{2} \left( 8-\frac{\mathbb {G}}{\mathbb {K}+1}\right) -\frac{8 [\mathbb {K}+\mathbf {X}-\mathbb {G} \mathbf {Y}-\Omega +1]}{(\mathbb {K}+9) \mathbf {Z}},\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4 \mathbb {K}+4},\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \frac{\mathbb {A}}{4} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) , \end{aligned}$$
(16)

together with the two constraints

$$\begin{aligned}&(9+\mathbb {K}) \left[ \mathbb {J}+\mathbb {K} \left( \mathbb {J}+\mathbb {Q}^2-2\right) \mathbf {Z}+\mathbb {Q} (3 \mathbb {Q}+4)\right] \nonumber \\&\quad +\mathbb {K}+\mathbf {X}-\mathbb {G} \mathbf {Y}-\Omega +1=0 , \end{aligned}$$
(17)
$$\begin{aligned}&\mathbb {G}=8(1+\mathbb {\mathbb {K}})(1+\mathbb {Q}). \end{aligned}$$
(18)

In all the equations above we have defined

$$\begin{aligned} \mathbf{X}&= \frac{f}{3 \chi _0 H^2 },\end{aligned}$$
(19)
$$\begin{aligned} \mathbf{Y}&= \frac{f' H^2}{\chi _0},\end{aligned}$$
(20)
$$\begin{aligned} \mathbf{Z}&= \frac{3\, 2^6 H^6 f''}{ \chi _0}. \end{aligned}$$
(21)

Note that choosing the variables above, the system is singular for \(\mathbb {K}+1=0\). Such a singularity originates with our choice of coordinates: selecting for example the variable \(\mathbb {Q}\) instead of \(\mathbb {G}\) it can be eliminated to obtain the system

$$\begin{aligned} \frac{\mathrm{d} \mathbb {Q}}{\mathrm{d} N}= & {} -\mathbb {Q}^2-\frac{ (\mathbb {Q}^2-2) \mathbb {K}+ \mathbb {Q}(3\mathbb {Q}+4)}{(\mathbb {K}+1)}\nonumber \\&-\frac{\mathbb {K}-\Omega +1+\mathbf{X}-8 (\mathbb {K}+1) (\mathbb {Q}+1) \mathbf{Y} }{(\mathbb {K}+1) (\mathbb {K}+9) \mathbf{Z}},\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} -\Omega \left[ 2 \mathbb {Q}+3( w+1)\right] ,\\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -2\mathbb {K}\, (1+\mathbb {Q}),\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \mathbb {A}\mathbb {Q},\nonumber \end{aligned}$$
(22)

where now \(\mathbf{X},\mathbf{Y},\mathbf{Z}\) are functions of \(\mathbb {Q},\mathbb {K}\). The two systems are equivalent when one is away from \(\mathbb {K}=-1\). Since for the examples we consider there is no special point for \(\mathbb {K}=-1\) and, moreover, there is no appreciable difference in the structure of the fixed points, we will perform the analysis using Eq. (16). However, one must stress that \(\mathbb {K}=-1\) is nevertheless of interest because, since both \(\mathbb {G}\) and its derivatives become zero, this case represents a state in which the theory effectively becomes of order two. Therefore the system (22) can be useful to explore this property of Gauss–Bonnet gravity.

The solutions associated to the fixed points can be derived using the modified Raychaudhury equation [the second of the Eq. (13)] in the variables (12). At a fixed point we have

$$\begin{aligned} \frac{1}{H}\frac{ \mathrm{d}^3{H}}{\mathrm{d} N^3}= & {} \mathfrak {s}_*,\nonumber \\ \mathfrak {s}_*= & {} -\frac{1}{(K_*+1) (K_*+9) \mathbf{Z}_*} \left\{ 2 (K_*+9) \mathbf{T}_* \right. \nonumber \\&\times \left. \left[ \mathbb {J}_*+K_* \left( \mathbb {J}_*+\mathbb {Q}_*^2-2\right) +\mathbb {Q}_* (3 \mathbb {Q}_*+4)\right] ^2\right. \nonumber \\&\left. +2 \mathbb {Q}_* +(1+3 w) \Omega _*+2 \mathbf{X}_*-2 \mathbb {G}_* \mathbf{Y}_*+2\right. \nonumber \\&\left. + 29\mathbf{Z}_* \mathbb {J}_*+2\mathbf{Z}_* \mathbb {Q}_* [46 \mathbb {J}_*+ 2 K_*\mathbb {J}_* (K_*+12)\right. \nonumber \\&\left. -K_*(3 K_*+31)]+K_*\mathbf{Z}_* [50-22 \mathbb {J}_*-3 \mathbb {J}_* K_*\right. \nonumber \\&\left. +6 K_*]+\mathbf{Z}_* [K_* (K_*+20)+87] \mathbb {Q}_*^3\right. \nonumber \\&\left. +\mathbf{Z}_*[131-3 K_* (K_*+4)] \mathbb {Q}_*^2-28\mathbf{Z}_* \mathbb {Q}_*\right\} ,\nonumber \\ \end{aligned}$$
(23)

where

$$\begin{aligned} \mathbf{T}= \frac{2^8 3^2H^{10} f'''}{ \chi _0}, \end{aligned}$$
(24)

and an asterisk represents the value of a quantity at a fixed point. The general solution for the above equation is

$$\begin{aligned} H=\left\{ \begin{array}{ll} H_0+H_1 N+ H_2 N^2 &{} \mathfrak {s}^*=0,\\ H_0 e^{-p N}+ e^{\frac{p N}{2}}\left( H_1\cos \frac{pN\sqrt{3}}{2}\right. &{}\\ \left. + H_2 \sin \frac{pN\sqrt{3}}{2}\right) &{}\mathfrak {s}^*\ne 0, \end{array} \right. \end{aligned}$$
(25)

where \(p=-\root 3 \of {\mathfrak {s}^*}\) and the \(H_i\) are integration constants. Using the definition of N the above equations translate in equations for the scale factor

$$\begin{aligned} \frac{\dot{a}}{a}=\left\{ \begin{array}{ll} H_0+H_1 \ln a+ H_2 (\ln a)^2 &{} \mathfrak {s}^*=0,\\ H_0 a^{-p}+ a^{p/2}\left[ H_1\cos \left( \frac{p\sqrt{3}}{2}\ln a\right) \right. \\ \left. + H_2 \sin \left( \frac{p\sqrt{3}}{2}\ln a\right) \right] &{}\mathfrak {s}^*\ne 0. \end{array} \right. \end{aligned}$$
(26)

In the first case the equation can be solved exactly to give

$$\begin{aligned} a(t)= & {} a_0 \exp \left\{ \frac{\sqrt{4 H_2 H_0-H_1^2}}{2 H_2}\right. \nonumber \\&\times \left. \tan \left[ \frac{1}{2} (t-t_0) \sqrt{4 H_2H_0-H_1^2}\right] -\frac{H_1}{2 H_2}\right\} , \end{aligned}$$
(27)

which was already found in the case of f(R)-gravity [53].

A major problem when these solutions are found is associated with the determination of the integration constants. Such constants are important as they concur to determine the nature of the solution. For example, the solution given by (27) will have a finite time singularity if \(4 H_2 H_0-H_1^2>0\). One way in which the value of these constants can be inferred is to consider the value of the initial condition of the orbits that approach this point.

4 Examples

We will now apply the machinery presented above to a number of physically relevant theories. We will then compare our results with those found in the literature.

4.1 \(\mathcal{G}^n\)-gravity

As a first example, let us consider the model

$$\begin{aligned} f= \alpha \chi _0^{2n} \mathcal{G}^n, \end{aligned}$$
(28)

we have

$$\begin{aligned} \mathbf{X}&= 3^{n-1} \alpha \mathbb {A}^{2 n-1} \mathbb {G}^n ,\end{aligned}$$
(29)
$$\begin{aligned} \mathbf{Y}&=3^{n-1} n \alpha \mathbb {A}^{2 n-1} \mathbb {G}^{n-1},\end{aligned}$$
(30)
$$\begin{aligned} \mathbf{Z}&=2^6\ 3^{n-1} (n-1) n \alpha \mathbb {A}^{2n-1} \mathbb {G}^{n-2},\end{aligned}$$
(31)
$$\begin{aligned} \mathbf{T}&= 2^8\ 3^{n-1} (n-2) (n-1) n \alpha \mathbb {A}^{2 n-1} \mathbb {G}^{n-3}, \end{aligned}$$
(32)

where the constraint (18) holds. The dynamical equations read

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \mathbb {G} \left[ 4-\mathbb {G}\left( \frac{1 }{\mathbb {K}+1}+\frac{1}{4n(\mathbb {K}+9) } \right) \right. \nonumber \\&\left. +\frac{2^{2-n} 3^{1-n} \mathbb {A}^{1-2 n} (\mathbb {K}-\Omega +1) \mathbb {G}^{1-n}}{n(1-n) \alpha (\mathbb {K}+9) }\right] ,\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4( \mathbb {K}+1)},\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \frac{\mathbb {A}}{4} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) . \end{aligned}$$
(33)

The system admits four invariant submanifolds (\(\mathbb {K}=0, \Omega =0,\mathbb {A}=0, \mathbb {G}=0\)). These results imply that no global attractor exists in general.

The fixed subspaces for this system are indicated in Table 1. We have a line of fixed points \(\mathcal {L}\) for \(\mathbb {K}=\mathbb {K}_0, \Omega =0,\mathbb {A}=0, \mathbb {G}=0\) for \(2+3n<0\). Other fixed points exist only at specific intervals of n. For example, the point \(\mathcal {A}\) is present for \(2-3n>0\), whereas \(\mathcal {B}\) is present only for \((n-1)\alpha >0\).

The points on the line \(\mathcal {L}\) are associated with the solution given by the equation

$$\begin{aligned} \frac{\dot{a}}{a}= & {} \frac{H_1}{a}+a^{1/2} \left[ H_2 \sin \left( \frac{1}{2}\sqrt{3} \log a\right) \right. \nonumber \\&\left. +H_3 \cos \left( \frac{1}{2}\sqrt{3} \log a\right) \right] . \end{aligned}$$
(34)

For point \(\mathcal {A}\) we have

$$\begin{aligned} \frac{\dot{a}}{a}= & {} H_1a^\frac{1-36 n}{\root 3 \of {2^9 3^3 n^2+1}}+a^{1/2} \left[ H_2 \sin \left( \frac{(1-36 n)\sqrt{3}}{\root 3 \of {2^{10} 3^3 n^2+1}} \log a\right) \right. \nonumber \\&\left. +H_3 \cos \left( \frac{(1-36 n)\sqrt{3}}{\root 3 \of {2^{10} 3^3 n^2+1}} \log a\right) \right] , \end{aligned}$$
(35)

whereas \(\mathcal {B}\) corresponds to solution (27). A numerical integration of Eqs. (34) and (35) is given in Figs. 1 and 2, and in Fig. 3 we plot the solution of Eq. (27).

The stability of all the fixed points can be deduced using the standard Hartmann–Grobmann theorem [54, 55] and it is indicated in Table 1. The points on \(\mathcal {L}\) are all unstable and \(\mathcal {A}\) and \(\mathcal {B}\) can be attractors or saddles depending on the values of n and \(\alpha \).

Because of the presence of the invariant submanifold there is no orbit that can represent a transition between decelerated and accelerated cosmologies. In this respect this theory is not useful to model dark energy and could only be used as patch model for eternal inflation. Even in this case, however, these models can have the same issues of f(R) gravity, i.e. the onset of a finite time singularity. Our conclusions are consistent with the results in [24, 26].

Fig. 1
figure 1

Numerical solution of Eq. (34). The constants \(H_i\) have all been chosen to be one and the initial condition is \(a(0)=0.01\)

Fig. 2
figure 2

Numerical solution of Eq. (35). The constants \(H_i\) have all been chosen to be one and the initial condition is \(a(0)=0.01\)

Fig. 3
figure 3

Numerical solution of Eq. (27). The constants \(H_i\) have all been chosen in such a way that \(4 H_0 H_2-H_1^2>0\) and the initial condition is \(a(0)=0.01\). The solution presents a finite time singularity. If the above condition is violated the solution approaches a static universe as in the case of (34) and (35)

Table 1 Fixed subspaces of \(f(\mathcal{{G}})=\alpha \mathcal{{G}}^n\) and their associated solutions. Here \(a_0=H_1+H_2+H_3,\) A stays for attractor, \(\mathrm{F}_{A}\) for attractive focus, S for saddle

4.2 The De Felice–Tsujikawa models

In Ref. [25] some particular forms of f(G) were proposed which, based on exact and perturbative arguments, were considered to be cosmologically viable. In our formulation such models can be written as

$$\begin{aligned} f(\mathcal{G})= & {} \alpha \chi _0^2 \mathcal{G}\arctan \left( \chi _0^2 \mathcal{G}\right) -\beta \chi _0,\nonumber \\ f(\mathcal{G})= & {} \alpha \chi _0^2 \mathcal{G}\arctan \left( \chi _0^2 \mathcal{G}\right) -\beta \chi _0-\gamma \ln \left( 1+\chi _0^2 \mathcal{G}\right) ,\nonumber \\ f(\mathcal{G})= & {} \alpha \ln \left[ \cosh \left( \chi _0^2 \mathcal{G}\right) \right] -\beta \chi _0, \end{aligned}$$
(36)

where \(\beta \), differently form \(\alpha \) and \(\gamma \), is a dimensional constant. All these constant are considered positive. The presence of \(\beta \) requires the introduction of a new variable \(\mathbb {B}= \beta / H^2\) whose dynamic equation is

$$\begin{aligned} \frac{\mathrm{d} \mathbb {B}}{\mathrm{d} N}=-\frac{3 \mathbb {B} (\mathbb {G}-8 \mathbb {K}-8)}{4 (\mathbb {K}+1)}. \end{aligned}$$
(37)

By including this additional equation in the system (16), we are ready to explore these models.

4.2.1 Moldel 1: \(f(\mathcal{G})= \alpha \chi _0^2 \mathcal{G}\arctan \left( \chi _0^2 \mathcal{G}\right) -\beta \chi _0\)

For the first form of f above we have

$$\begin{aligned} \mathbf{X}&=\alpha \mathbb {A} \mathbb {G} \arctan \left( 3 \mathbb {A}^2 \mathbb {G}\right) - \mathbb {B},\end{aligned}$$
(38)
$$\begin{aligned} \mathbf{Y}&=\alpha \mathbb {A} \left[ \arctan \left( 3 \mathbb {A}^2 \mathbb {G}\right) +\frac{3 \mathbb {A}^2 \mathbb {G}}{9 \mathbb {A}^4 \mathbb {G}^2+1}\right] ,\end{aligned}$$
(39)
$$\begin{aligned} \mathbf{Z}&=\frac{\alpha \, 3\, 2^7 \, \mathbb {A}^3}{\left( 9 \mathbb {A}^4 \mathbb {G}^2+1\right) ^2},\end{aligned}$$
(40)
$$\begin{aligned} \mathbf{T}&= -\frac{\alpha 2^{11}\, 3^3 \mathbb {A}^7 \mathbb {G}}{\left( 9 \mathbb {A}^4 \mathbb {G}^2+1\right) ^3}, \end{aligned}$$
(41)

and the dynamical equations read

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \frac{1}{2} \mathbb {G} \left( 8-\frac{\mathbb {G}}{\mathbb {K}+1}\right) +\frac{9 \mathbb {A}^4 \mathbb {G}^2+1}{48 \alpha \mathbb {A}^3 (K+9)} \nonumber \\&\times \left\{ 1+K-\Omega -\mathbb {B}-3 \mathbb {A}^3 \mathbb {G}^2 \left[ \alpha +3 \mathbb {A} (\mathbb {B}+\Omega )\right] \right. \nonumber \\&\left. +9 \mathbb {A}^4 \mathbb {G}^2 (K+1)\right\} , \nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4( \mathbb {K}+1)},\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \frac{\mathbb {A}}{4} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) ,\nonumber \\ \frac{\mathrm{d} \mathbb {B}}{\mathrm{d} N}= & {} -\frac{3 \mathbb {B} (\mathbb {G}-8 \mathbb {K}-8)}{4 (\mathbb {K}+1)}. \end{aligned}$$
(42)

The system admits three invariant submanifolds (\(\mathbb {K}=0, \Omega =0,\mathbb {A}=0\)). The last one, depending on the values of the parameters, can be singular. These results imply that no global attractor exists in general, but they allow the possibility of a transition between decelerated and accelerated cosmologies.

The system (42) presents only a two dimensional fixed point subspace with coordinates

$$\begin{aligned} \mathcal {S}= & {} \{\mathbb {G}_*,\mathbb {K}_*,\Omega _*, \mathbb {A}_*, \mathbb {B}_*\}\nonumber \\= & {} \left\{ 8,0,0, \mathbb {A}_*, 1-\frac{192 \alpha \mathbb {A}_*^3}{576 \mathbb {A}_*^4+1}\right\} , \end{aligned}$$
(43)

which corresponds to the solution (27). Note that, by definition, \(\mathbb {B}>0\) and this implies that this subspace can exist only for \(\left( \alpha < \frac{576 A_*^4+1}{192 A_*^3}\right) \).

Fig. 4
figure 4

Plot of the real part of the eigenvalues of the fixed points of the line \(\mathcal {L}\) for \(f(\mathcal{G})= \alpha \chi _0^2 \mathcal{G}\arctan \left( \chi _0^2 \mathcal{G}\right) -\beta \chi _0^2\). Here \(\alpha \) has been chosen to be 3 and \(w=0\)

The stability of the fixed points on the surface \(\mathcal {S}\) can be obtained using the Hartmann–Grobmann theorem [54, 55]. A plot of the real part of the eigenvalues is given in Fig. 4. It is evident that the points on \(\mathcal {S}\) can be saddles or attractors depending on the values of \(\alpha \). An easier way to visualise the phase space dynamics is to define the variable

$$\begin{aligned} \mathbb {Y}=\mathbb {B}-\frac{3 A \left( 576 \mathbb {A}^4-192 \alpha \mathbb {A}^3+1\right) }{\mathbb {A}^2 \left( 576 \mathbb {A}^4+1\right) } \end{aligned}$$
(44)

and analyse the corresponding dynamical system:

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \frac{1}{2} \mathbb {G} \left( 8-\frac{\mathbb {G}}{\mathbb {K}+1}\right) +\frac{9 \mathbb {A}^4 \mathbb {G}^2+1}{48 \alpha \mathbb {A}^3 (K+9)}\nonumber \\&\times \left\{ 1+K-\Omega -3 \mathbb {A}^3 \mathbb {G}^2 \left( \alpha +3 \mathbb {A} \Omega \right) \right. \nonumber \\&\left. +9 \mathbb {A}^4 \mathbb {G}^2 (K+1)\right\} \nonumber \\&+\frac{\left( 9 A^4 \mathbb {G}^2+1\right) ^2 }{ A (K+9)}\left( \frac{ A \mathbb {Y}+3}{48 \alpha A^3}-\frac{12 }{576 A^4+1}\right) ,\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4( \mathbb {K}+1)},\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \frac{\mathbb {A}}{4} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) ,\nonumber \\ \frac{\mathrm{d} \mathbb {Y}}{\mathrm{d} N}= & {} \frac{3 (-\mathbb {G}+8 K+8)}{4 \mathbb {A} \left( 576 \mathbb {A}^4+1\right) ^2 (K+1)} \left[ \left( 576 \mathbb {A}^4+1\right) ^2\right. \nonumber \\&\times \left. (\mathbb {A} \mathbb {Y}+2)-192 \alpha \mathbb {A}^3 \left( 576 \mathbb {A}^4+5\right) \right] , \end{aligned}$$
(45)

which presents only one line of fixed points (\(\left\{ 8,0,0, \mathbb {A}_*, 0\right\} \)) rather than a surface and shows clearly that there is no heteroclinic orbit that connects the unstable points to the stable points on the line. This implies that there cannot be an orbit in which an unstable phase characterised by (27) is followed by a stable phase characterised by the same solution.

This implies that the theory has an accelerated expansion attractor, but in order to conclude that a transition deceleration/acceleration is possible one should look at the numerical evolution of the orbits. This result is consistent with what was found in [26], in which one of such transitions has been observed by numerical integration.

There is no general way to deduce the size of the set of initial conditions that leads to cosmic acceleration, however, by inspection, we can deduce that the smaller the value of the parameter \(\alpha \) the larger the initial conditions that lead to the cosmic acceleration transition.

In this model the presence of the cosmological constant does not seem to change too much the dynamics. When \(\mathbb {B}=0\) the fixed subspace reduces to a one dimensional space of fixed points associated to the solution (27). Their character can be once again either that of a saddle or of an attractor, depending on the value of \(\alpha \). Again the bigger the parameter \(\alpha \) the lower the number of stable points in the one dimensional space. The only concrete difference between this model and the more general one is the fact that the equations to solve are easier in the presence of the cosmological constant.

4.2.2 Model 2: \(f(\mathcal{G})= \alpha \chi _0^2 \mathcal{G}\arctan \left( \chi _0^2 \mathcal{G}\right) -\gamma \ln \) \(\left( 1+\chi _0^2 \mathcal{G}\right) -\beta \chi _0\)

For the form of f above we have

$$\begin{aligned} \mathbf{X}&=-\frac{\gamma \log \left( 9 \mathbb {A}^4 \mathbb {G}^2+1\right) }{3 \mathbb {A}}\end{aligned}$$
(46)
$$\begin{aligned}&\quad +\alpha \mathbb {A} \mathbb {G} \tan ^{-1}\left( 3 \mathbb {A}^2 \mathbb {G}\right) - \mathbb {B},\end{aligned}$$
(47)
$$\begin{aligned} \mathbf{Y}&=\alpha \mathbb {A} \tan ^{-1}\left( 3 \mathbb {A}^2 \mathbb {G}\right) +\frac{3 \mathbb {A}^3 \mathbb {G} (\alpha -2 \gamma )}{9 \mathbb {A}^4 \mathbb {G}^2+1},\end{aligned}$$
(48)
$$\begin{aligned} \mathbf{Z}&=\frac{384 \mathbb {A}^3 \left( \alpha +\gamma \left( 9 \mathbb {A}^4 \mathbb {G}^2-1\right) \right) }{\left( 9 \mathbb {A}^4 \mathbb {G}^2+1\right) ^2},\end{aligned}$$
(49)
$$\begin{aligned} \mathbf{T}&= -\frac{27648 \mathbb {A}^7 \mathbb {G} \left( 2 \alpha +9 \mathbb {A}^4 \gamma \mathbb {G}^2-3 \gamma \right) }{\left( 9 \mathbb {A}^4 \mathbb {G}^2+1\right) ^3}, \end{aligned}$$
(50)

and the dynamical equations read

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \frac{1}{2} \mathbb {G} \left( 8-\frac{\mathbb {G}}{\mathbb {K}+1}\right) +\frac{9 \mathbb {A}^4 \mathbb {G}^2+1}{48 \alpha \mathbb {A}^3 (K+9)}\nonumber \\&\times \left\{ 1+K-\Omega -\mathbb {B}-3 \mathbb {A}^3 \mathbb {G}^2 \left[ \alpha +3 \mathbb {A} (\mathbb {B}+\Omega )\right] \right. \nonumber \\&\left. +9 \mathbb {A}^4 \mathbb {G}^2 (K+1)\right\} \nonumber \\&+\frac{\gamma \left( 9 A^4 \mathbb {G}^2+1\right) ^2 }{144 A^4 (K+9) \left( \alpha -\gamma +9 A^4 \gamma \mathbb {G}^2 \right) }\nonumber \\&\times \ln \left( 9 A^4 \mathbb {G}^2+1\right) ,\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4( \mathbb {K}+1)},\nonumber \\ \frac{\mathrm{d} \mathbb {B}}{\mathrm{d} N}= & {} -\frac{3 \mathbb {B} (\mathbb {G}-8 \mathbb {K}-8)}{4 (\mathbb {K}+1)}. \end{aligned}$$
(51)

The system above differs for the previous one only by just one term. It has essentially the same general features in terms of invariant submanifold and fixed points. The two dimensional fixed point subspace has coordinates

$$\begin{aligned} \mathcal {L}= & {} \{\mathbb {G}_*,\mathbb {K}_*,\Omega _*, \mathbb {A}_*, \mathbb {B}_*\}\nonumber \\= & {} \left\{ 8,0,0, \mathbb {A}_*, 1-\frac{192 \alpha \mathbb {A}_*^3}{576 \mathbb {A}_*^4+1}\right. \nonumber \\&\left. +\gamma \left[ \frac{384 \mathbb {A}_*^3}{576 \mathbb {A}_*^4+1}-\frac{\ln \left( 576 \mathbb {A}_*^4+1\right) }{3 \mathbb {A}_*}\right] \right\} , \end{aligned}$$
(52)

the solution associated to these points is (27).

Using the Hartmann–Grobmann theorem it is easy to prove that, also in this case, the fixed points on the line can be either attractors or saddles, with the difference that now the stability depends on \(\gamma \) other than \(\alpha \). Therefore the same picture of the previous model seems to emerge in this case. The logarithmic correction seems to be irrelevant on Friedmannian dynamics, but will surely be relevant at perturbative level.

4.2.3 Model 3: \(f(\mathcal{G})=\alpha \ln \left[ \cosh \left( \chi _0^2 \mathcal{G}\right) \right] -\beta \chi _0\)

For the form of f above we have

$$\begin{aligned} \mathbf{X}&=\frac{\alpha }{3 \mathbb {A}} \ln \left[ \cosh \left( 3 \mathbb {A}^2 \mathbb {G}\right) \right] - \mathbb {B},\end{aligned}$$
(53)
$$\begin{aligned} \mathbf{Y}&=\alpha \mathbb {A} \tanh \left( 3 \mathbb {A}^2 \mathbb {G}\right) ,\end{aligned}$$
(54)
$$\begin{aligned} \mathbf{Z}&=3\alpha \, 2^6 \mathbb {A}^3 \text {sech}^2\left( 3 \mathbb {A}^2 \mathbb {G}\right) ,\end{aligned}$$
(55)
$$\begin{aligned} \mathbf{T}&= -2^9 3^2 \alpha \mathbb {A}^5 \tanh \left( 3 \mathbb {A}^2 \mathbb {G}\right) \text {sech}^2\left( 3 \mathbb {A}^2 \mathbb {G}\right) \,. \end{aligned}$$
(56)

and the dynamical equations read

$$\begin{aligned} \frac{\mathrm{d} \mathbb {G}}{\mathrm{d} N}= & {} \frac{1}{2} \mathbb {G} \left( 8-\frac{\mathbb {G}}{\mathbb {K}+1}\right) \nonumber \\&+\frac{\mathbb {G} \sinh \left( 3 \mathbb {A}^2 \mathbb {G}\right) \cosh \left( 3 \mathbb {A}^2 \mathbb {G}\right) }{24 \mathbb {A}^2 (K+9)}\nonumber \\&+\frac{\cosh ^2\left( 3 \mathbb {A}^2 \mathbb {G}\right) ( \mathbb {B}-K+ \Omega -1)}{24 \alpha \mathbb {A}^3 (K+9)}\nonumber \\&-\frac{\alpha \cosh ^2\left( 3 \mathbb {A}^2 \mathbb {G}\right) \ln \left[ \cosh \left( 3 \mathbb {A}^2 \mathbb {G}\right) \right] }{72 \alpha \mathbb {A}^4 (K+9)},\nonumber \\ \frac{\mathrm{d} \Omega }{\mathrm{d} N}= & {} \Omega \left[ \frac{\mathbb {G}}{4 (\mathbb {K}+1)}+(3 w+1)\right] ,\nonumber \\ \frac{\mathrm{d} \mathbb {K} }{\mathrm{d} N}= & {} -\frac{\mathbb {K}\, \mathbb {G} }{4( \mathbb {K}+1)},\nonumber \\ \frac{\mathrm{d} \mathbb {A}}{\mathrm{d} N}= & {} \frac{\mathbb {A}}{4} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) ,\nonumber \\ \frac{\mathrm{d} \mathbb {B}}{\mathrm{d} N}= & {} -\frac{3 \mathbb {B} }{2} \left( \frac{\mathbb {G}}{\mathbb {K}+1}-8\right) . \end{aligned}$$
(57)

The system admits again three invariant submanifolds: \(\mathbb {K}=0, \Omega =0,\mathbb {A}=0\), and the latter can be singular. These results imply that, in general, no global attractor exists also for this model.

The system (51) presents only a two dimensional fixed point subspace with coordinates

$$\begin{aligned} \mathcal {L}= & {} \{\mathbb {G}_*,\mathbb {K}_*,\Omega _*, \mathbb {A}_*, \mathbb {B}_*\}\nonumber \\= & {} \left\{ 8,0,0, \mathbb {A}_0, 1-8 \alpha \mathbb {A}_* \tanh \left( 24 \mathbb {A}_*^2\right) \right. \nonumber \\&\left. +\frac{\alpha \log \left( \cosh \left( 24 \mathbb {A}_*^2\right) \right) }{3 \mathbb {A}_*}\right\} , \end{aligned}$$
(58)

as in the case of Model 2, the solution associated to this fixed point is (27).

The stability of the fixed points is of the same type to the two previous models, depending essentially on the value of the variable \(\alpha \). In Fig. 5 we represent a plot of the eigenvalues of these points.

In spite of the different analytical form, the observed dynamics essentially is the same as in the previous two models. This should not be surprising as all these models have been explicitly designed to have the same characteristics. Our results confirm this fact. As for model 2, differences between the behaviour of these cosmologies will likely become evident at perturbative level.

Fig. 5
figure 5

Plot of the real part of the eigenvalues of the fixed points of the line \(\mathcal {L}\) for Model 3. Here \(\alpha \) has been chosen to be 3 and \(w=0\). Its increase wides the set of values of \(\mathbb {A}_*\) for which two of the eigenvalues have discordant sign

5 Conclusions

In this paper we have proposed a new formalism to analyse the cosmology of Gauss–Bonnet gravity. The method allows us to explore the phase space of any theory, and it associates to the fixed points solutions for the scale factor which present four integration constants.

Many features of this class of theories become clear by looking at the structure of dynamical equations. For example, a transition between decelerating and accelerating cosmology can only happen if the submanifold \(\mathbb {G}=0\) is not an invariant submanifold, and therefore the dynamical equations can be used as selection tools for this class of theories, even without the actual phase space analysis. More specifically, we can conclude that all theories for which \(\mathcal {G}f'(\mathcal {G})-f(\mathcal {G})\ne 0\) (i.e. f is non-linear) and \(f''(\mathcal {G})^{-1}=0\) for \(\mathcal {G}\rightarrow 0\) will have an invariant submanifold. In other words, the transition between deceleration and acceleration requires a nonlinear function whose second derivative does not diverge in \(\mathcal {G}\). This is a general validity criterion of any model of Gauss–Bonnet gravity, and it is fulfilled by the models of Sect. IVB. In fact this condition overlaps with those already found in [25]. Our analysis shows also that there are conditions for which another type of fixed point can appear, which could play the role of decelerating fixed point. However, from the first of Eq. (16) we can deduce that the condition for the existence of this point is precisely the same as the one for the existence of the invariant submanifold. This implies that even if this point could be a fixed point associated with a decelerated expansion there would not be heteroclinic orbits connecting it to an accelerated expansion one.

We have applied the new technique to four different models. One of them \(f(\mathcal {G})=\alpha \mathcal {G}^n\) has been considered for its simplicity and as a testing ground for the new method. The presence of the invariant manifold \(\mathbb {G}=0\) forbids the presence of a transition within acceleration and deceleration if \(n<2\). Depending on the sign of n, there could be two types of attractors: one characterised by the solution (34) (\(n<0\)) and the other by (35) (\(n>0\)). Since this last solution can lead to a big rip scenario, one can conclude that \(n<0\) is a more physically interesting scenario for this model. It is interesting to note that for these values of n the constraints from measurement in the Solar System are known to be much less strict [24].

Next we studied three examples of the models proposed in [25]. They all have very similar phase spaces. This is to be expected from the way in which these models are constructed, and thus gives a confirmation of the consistency of the method we have used. In accordance with the results available in the literature, in this case we find that these models admit a transition from decelerated to accelerated expansion, but that this transition and the approach to the accelerated expansion attractor depend on the initial conditions, and are not guaranteed.

Finally, as in f(R) gravity and because of the higher order of the equations, our analysis shows that there is a set of initial conditions for which these models have a finite time singularity which is an attractor. The presence of this instability also in the Gauss–Bonnet gravity under consideration implies that the existence of this instability is to be ascribed to the fourth-order derivative in the field equations.