1 Introduction

It is well known nowadays that interest in gravity theories derived from Lagrangians has extended beyond the general relativity (GR). The first step is introducing the cosmological constant, originating from the vacuum expectation value of the quantum field [1, 2]. However, there is no intrinsic mechanism in the theory that can dynamically induce the cosmological constant [3,4,5]. On the other hand, unimodular gravity [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30] is an interesting gravitational theory that can be considered as a specific case of the GR, and in which the cosmological constant appears as the trace-free part of the gravitational field equations, fixing the determinant of the metric tensor as a number or a function [2, 5]. In other words, it would be more appropriate to state that unimodular gravity, in a sense, can offer a proposal to solve the cosmological problem. It is important to mention that in the context of unimodular gravity the problem of late-time acceleration of the universe can be developed, where the metric can be decomposed in the unimodular metric part and a scalar field part [23,24,25]. Instead of considering GR, different kinds of modified gravity based on the curvature scalar have been performed in the recent years, as f(R) [31,32,33,34,35,36,37,38,39] where R is the curvature scalar, f(RT), T being the trace of the energy-momentum tensor [40,41,42,43,44,45,46,47,48,49], and f(G), G denoting the Gauss–Bonnet (GB) invariant [50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84].

In this paper we focus our attention to the f(G) and the purpose here is to realize some cosmological evolutions with specific and realistic Hubble rate, and to investigate which unimodular f(G) model can yield such cosmological evolutions of the universe. We fundamentally adopt two kinds of metric in this paper; the Bianchi type-I (BI) metric and the Friedman–Robertson–Walker (FRW) metric. It is obvious that for both metrics there is no compatibility with the unimodular constraint, and so we fix suitably the metrics in order to satisfy this constraint. With the BI metric we search for f(G) models able to reproduce inflation through the de Sitter and power-law form of the scale factor. Through the use of the FRW metric, we still search for f(G) models that agree with inflation. As we are addressing inflationary models we find it important to formulate the related observables, like the spectral index, the tensor-to-tensor ratio and the running of the spectral index. By considering the f(G) model coming from power-law solutions of the scale factor, with non-specified integration constants in the perfect fluid description, we determine the slow-roll indices and confront them with the observational recent Planck data [85, 86] in order to correctly calculate the constants, and then obtaining the effective unimodular f(G) model able to realize the inflationary epoch of our universe.

An alternative to the standard description of the acceleration of inflation is provided by bouncing cosmologies [87, 118], in which the appearance of the initial singularity is prevented. This feature can be represented by the use of scalar fields [92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118], by the models of modified gravity [93,94,95,96,97,98,99,100,101,102,103,104,105], and also by the use of the Loop Quantum Cosmology (LQC) [106,107,108,109,110,111,112,113,114]. In the general case, the realization of the bounce is related to the coupling of matter fields with an equation of state in order to violate the null energy condition [87,88,89, 118]. Bouncing cosmologies have been developed in several works [115,116,117, 119], but essentially it has been shown that bouncing cosmologies may present primordial instabilities [90, 91], which can be solved by the ekpyrotic scenario. In this paper we also pay attention to the superbounce and the LQC ekpyrotic scenarios in the context of unimodular f(G) gravity by reconstructing a suitable model characteristic of each scenario. This kind of work has been performed in [119], but not in the unimodular context. For other reviews as regards bouncing cosmologies see [120, 121] for f(R) theory, [122,123,124,125] for f(G) theory and [126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151] for f(T) theory, where T denotes the torsion scalar.

The manuscript is organized as follows: in Sect. 2 we present the general description of unimodular gravity. Section 3 is devoted to the formalism of f(G) and unimodular equations of motion. The reconstruction of f(G) gravity in an inhomogeneous universe is performed in Sect. 4, for both de Sitter solutions in Sect. 4.1 and power-law solutions in Sect. 4.2. In the FRW metric context, the reconstructions of unimodular f(G) models have been developed within the de Sitter solutions in Sect. 5.1 and power-law solutions in Sect. 5.2, and the latter has been achieved according to Planck results in Sect. 6, finding the integration constants accordingly. The ekpyrotyc scenario reconstruction and superbounce reconstruction from unimodular f(G) gravity is performed in Sect. 7. We present our conclusion in Sect. 8.

2 General description of unimodular gravity

In this section we point out the generalization of the GR gravity formalism in order to provide the unimodular f(G) gravity formalism. The unimodular gravity approach is based on the assumption that the determinant of the metric tensor is fixed, expressed by the relation \(g_{\mu \nu }\delta g^{\mu \nu }=0\). Throughout this paper the components of the metric are chosen in such a way that [2]

$$\begin{aligned} \sqrt{-g}=1. \end{aligned}$$
(1)

Let us start our study by using the Bianchi type-I metric, from which the usual and practical FRW metric can be recovered,

$$\begin{aligned} \mathrm{d}s^2=\mathrm{d}t^2-A(t)^2\mathrm{d}x^2-B(t)^2\mathrm{d}y^2-C(t)^2\mathrm{d}z^2. \end{aligned}$$
(2)

It is easy to check that the unimodular constraint, expressed by Eq. (1) is not satisfied by the Bianchi-type I metric (2). In order to meet this condition we need to redefine the cosmic time coordinate as follows:

$$\begin{aligned} \mathrm{d}\tau = A(t)B(t)C(t)\mathrm{d}t, \end{aligned}$$
(3)

in such a way that the metric (2) becomes

$$\begin{aligned} \mathrm{d}s^2= & {} \left[ A(t(\tau ))B(t(\tau ))C(t(\tau ))\right] ^{-2}\mathrm{d}\tau ^2\nonumber \\&-A(t(\tau ))^2\mathrm{d}x^2-B(t(\tau ))^2\mathrm{d}y^2-C(t(\tau ))^2\mathrm{d}z^2. \end{aligned}$$
(4)

This metric obviously satisfies the constraint (1) and we shall refer to the latter as the unimodular Bianchi-type I metric from which the FRW metric can be recovered.

3 Formalism of f(G) gravity and unimodular equations of motion

Let us introduce the general \(R+f(G)\) action as follows:

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

where R represents the Ricci scalar, and the modification function f(G) corresponds to a generic globally differentiable Gauss–Bonnet topological invariant G function. The matter action \(S_\mathrm{m}\) is the one which induces the energy-momentum tensor \(T_{\mu \nu }\). We focus our attention on the metric formalism where the variation of the action (5) with respect to the metric tensor yields within the minimum principle the following general equation of motion [50,51,52,53,54]:

$$\begin{aligned} R_{\mu \nu }- & {} \frac{1}{2}Rg_{\mu \nu }+8\Bigg [R_{\mu \rho \nu \sigma }+R_{\rho \nu }g_{\sigma \mu }-R_{\rho \sigma }g_{\nu \mu }\nonumber \\- & {} R_{\mu \nu }g_{\sigma \rho }+R_{\mu \sigma }g_{\nu \rho }+\frac{1}{2}R\left( g_{\mu \nu }g_{\sigma \rho }-g_{\mu \sigma }g_{\nu \rho }\right) \Bigg ]\nonumber \\\times & {} \nabla ^{\rho }\nabla ^{\sigma }f_G+\left( Gf_G-f\right) g_{\mu \nu }=\kappa T_{\mu \nu }. \end{aligned}$$
(6)

Here \(f_G=\frac{\mathrm{d}f(G)}{\mathrm{d}G}\), and the Gauss–Bonnet term is defined by \(G=R^2-R_{\mu \nu }R^{\mu \nu }+R_{\mu \nu \lambda \sigma }R^{\mu \nu \lambda \sigma }\), \(R_{\mu \nu }\) and \(R_{\mu \nu \lambda \sigma }\) being the Ricci tensor and Riemann tensor, respectively. We also point out some adopted definitions as follows: the signature of the Riemannian metric is \((+---)\), \(\nabla _{\mu }V_\nu =\partial \mu V_\nu -\Gamma ^{\lambda }_{\mu \nu }V_\lambda \) and \(R^{\sigma }_{\mu \nu \rho }=\partial _{\nu }\Gamma ^{\sigma }_{\mu \rho }-\partial _{\rho }\Gamma ^{\sigma }_{\mu \nu }+\Gamma ^{\omega }_{\mu \rho }\Gamma ^{\sigma }_{\omega \nu }\) for the covariant derivative of a covariant vector and the Riemann tensor, respectively. Making use of the metric (4) the field equations read

$$\begin{aligned}&-24A^3A'B^3B'C^3C'f'_G+\Bigg (8A^3A'B^3B'C^3C''\nonumber \\&+24A^3A'B^3B'C^2C'^2+8A^3A'B^3B''C^3C' \nonumber \\&+24A^3A'B^2B'^2C^3C'+8A^3A''B^3B'C^3C'\nonumber \\&+24A^2A'^2B^3B'C^3C'\Bigg )f_G+A^2BB'CC'+AA'B^2CC'\nonumber \\&+AA'BB'C^2-f=8\pi \rho , \end{aligned}$$
(7)
$$\begin{aligned}&8A^4B^3B'C^3C'f_G''+\Bigg (8A^4B^3B'C^3C''+24A^4B^3B'C^2C'^2\nonumber \\&\quad +8A^4B^3B''C^3C'+24A^4B^2B'^2C^3C'\nonumber \\&\quad +24A^3A'B^3B'C^3C'\Bigg )f_G'+\Bigg (-8A^3A'B^3B'C^3C''\nonumber \\&\quad -24A^3A'B^3B'C^2C'^2-8A^3A'B^3B''C^3C'\nonumber \\&\quad -24A^3A'B^2B'^2C^3C'-8A^3A''B^3B'C^3C'\nonumber \\&\quad -24A^2A'^2B^3B'C^3C'\Bigg )f_G\nonumber \\&\quad -A^2B^2CC''-A^2B^2C'^2\nonumber \\&\quad -3A^2BB'CC'-AA'B^2CC'-A^2BB''C^2\nonumber \\&\quad -A^2B'^2C^2-AA'BB'C^2+f=8\pi p_r, \end{aligned}$$
(8)
$$\begin{aligned}&8A^3A'B^4C^3C'f_G''+\Bigg (8A^3A'B^4C^3C''\nonumber \\&\quad +24A^3A'B^4C^2C'^2+24A^3A'B^3B'C^3C'\nonumber \\&\quad +8A^3A''B^4C^3C'24A^2A'^2B^4C^3C'\Bigg )f_G'\nonumber \\&\quad +\Bigg (-A^3A'B^3B'C^3C''-24A^3A'B^3B'C^2C'^2\nonumber \\&\quad -8A^3A'B^3B''C^3C'-24A^3A'B^2B'^2C^3C'\nonumber \\&\quad -8A^3A''B^3B'C^3C'-24A^2A'^2B^3B'C^3C'\Bigg )f_G\nonumber \\&\quad -A^2B^2CC''-A^2B^2C'^2-A^2BB'CC'\nonumber \\&\quad -3AA'B^2CC'-AA'BB'C^2-AA''B^2C^2\nonumber \\&\quad -A'^2B^2C^2+f=8\pi p_t, \end{aligned}$$
(9)
$$\begin{aligned}&8A^3A'B^3B'C^4f_G''+\Bigg (24A^3A'B^3B'C^3C'\nonumber \\&\quad +8A^3A'B^3B''C^4+24A^3A'B^2B'^2C^4+8A^3A''B^3B'C^4\nonumber \\&\quad +24A^2A'^2B^3B'C^4\Bigg )f_G'+\Bigg (-8A^3A'B^3B'C^3C''\nonumber \\&\quad -24A^3A'B^3B'C^2C'^2-8A^3A'B^3B''C^3C'\nonumber \\&\quad -24A^3A'B^2B'^2C^3C'\nonumber \\&\quad -8A^3A''B^3B'C^3C-24A^2A'^2B^3B'C^3C'\Bigg )f_G\nonumber \\&\quad -A^2BB'CC'-AA'B^2CC'-A^2BB''C^2\nonumber \\&\quad -A^2B'^2C^2-3AA'BB'C^2-AA''B^2C^2\nonumber \\&\quad -A'^2B^2C^2+f=8\pi p_t, \end{aligned}$$
(10)

where we undertook the matter content as an anisotropic fluid described by the following energy-momentum tensor:

$$\begin{aligned} T_{\mu \nu }=\left( \rho +p_t\right) u_\mu u_\nu -p_\mathrm{t}g_{\mu \nu }+\left( p_\mathrm{r}-p_\mathrm{t}\right) v_\mu v_\mu , \end{aligned}$$
(11)

with \(\rho \) being the energy density, \(u_\mu \) the 4-velocity and \(v_\mu \) the space-like vector in the radial direction; \(p_\mathrm{r}\) (the radial pressure) is the pressure in the direction of \(v_\mu \) and \(p_\mathrm{t}\) (the tangential pressure) the pressure in the direction orthogonal to \(v_\mu \). Due to the fact that one considers an anisotropic spherically symmetric matter one has \(p_\mathrm{r}\ne p_\mathrm{t}\) (their equality corresponds to isotropic spherically symmetric matter).

4 Reconstructing f(G) gravity in inhomogeneous universe

In this section we search for the f(G) action through the reconstruction scheme for some particular solution of the class of the metric explored in the previous section. We will just consider the de Sitter and power-law solutions. In the general case, using (4) and (11) the conservation equation for the energy-momentum tensor can easily be obtained by

$$\begin{aligned} \dot{\rho }+\left( H_x+H_y+H_z\right) \rho +H_xp_\mathrm{r}+\left( H_y+H_z\right) p_\mathrm{t}=0\nonumber \\ \end{aligned}$$
(12)

where the following definitions have been made: \(H_x=\frac{\dot{A}}{A}\), \(H_y=\frac{\dot{B}}{B}\) and \(H_z=\frac{\dot{C}}{C}\)

4.1 Searching for de Sitter solutions

The de Sitter solutions are well known in the context of cosmology due to the fact that they may approximately describe the early and current epochs of the universe where its expansion is accelerated. Here, for the three directions the scale factors present an exponential expansion yielding constant Hubble parameters in each direction. Then we assume the scale factors as follows:

$$\begin{aligned} A=A_0e^{H_{x0}t},\quad B=B_0e^{H_{y0}t}, quad C=C_0e^{H_{z0}t}, \end{aligned}$$
(13)

where \(H_{x0}\), \(H_{y0}\) and \(H_{z0}\) are positive constants expressing the instantaneous rates of the expansion at \(t=0\). By simple derivations one can see that the rates of the expansion for each directions read

$$\begin{aligned} H_x=\frac{\dot{A}}{A}=H_{x0}, \quad H_y=\frac{\dot{B}}{B}=H_{y0}, \quad H_x=\frac{\dot{C}}{C}=H_{z0}.\nonumber \\ \end{aligned}$$
(14)

Then, in the context of the cosmic time t the Gauss–Bonnet invariant reads

$$\begin{aligned} G= & {} \frac{8}{ABC}\left( \dot{A} \dot{B} \ddot{C} +\dot{A} \ddot{B} \dot{C} +\ddot{A} \dot{B} \dot{C} \right) ,\end{aligned}$$
(15)
$$\begin{aligned}= & {} 8H_{x0}H_{y0}H_{z0}\left( H_{x0}+H_{y0}+H_{z0}\right) \end{aligned}$$
(16)

and the field equations become

$$\begin{aligned}&8H_{x0}H_{y0}H_{z0}\left( H_{x0}+H_{y0}+H_{z0}\right) f_G+H_{x0}H_{y0}\nonumber \\&\quad +H_{x0}H_{z0}+H_{y0}H_{z0}-f=8\pi \rho ,\end{aligned}$$
(17)
$$\begin{aligned}&\quad -8H_{x0}H_{y0}H_{z0}\left( H_{x0}+H_{y0}+H_{z0}\right) f_G-H_{z0}^2\nonumber \\&\quad -H_{y0}H_{z0}-H_{y0}^2+f= 8\pi p_r,\end{aligned}$$
(18)
$$\begin{aligned}&\quad -8H_{x0}H_{y0}H_{z0}\left( H_{x0}+H_{y0}+H_{z0}\right) f_G-H_{z0}^2\nonumber \\&\quad -H_{x0}H_{z0}-H_{x0}^2+f= 8\pi p_t,\end{aligned}$$
(19)
$$\begin{aligned}&\quad -8H_{x0}H_{y0}H_{z0}\left( H_{x0}+H_{y0}+H_{z0}\right) f_G-H_{y0}^2\nonumber \\&\quad -H_{x0}H_{y0}-H_{x0}^2+f= 8\pi p_t . \end{aligned}$$
(20)

Since we address de Sitter solutions, by assuming \(p_\mathrm{r}=p_\mathrm{t}=p\), one has \(p=-\rho \), and the combination of any two of the field equations yields

$$\begin{aligned} G\frac{\mathrm{d}f(G)}{\mathrm{d}G}-f(G)+K=0, \end{aligned}$$
(21)

where K is a constant depending on \(H_{x0}\), \(H_{y0}\) and \(H_{z0}\). The general solution of Eq. (21) reads

$$\begin{aligned} f(G)=\alpha G +K, \end{aligned}$$
(22)

where K is an integration constant. Making use of (3) and (13) the expressions of the scale factors can be written as

$$\begin{aligned} A[t(\tau )]=\left( \frac{H_{x0}+H_{y0}+H_{z0}}{B_0C_0}\tau \right) ^{\frac{H_{x0}}{H_{x0}+H_{y0}+H_{z0}}},\end{aligned}$$
(23)
$$\begin{aligned} B[t(\tau )]=\left( \frac{H_{x0}+H_{y0}+H_{z0}}{A_0C_0}\tau \right) ^{\frac{H_{y0}}{H_{x0}+H_{y0}+H_{z0}}},\end{aligned}$$
(24)
$$\begin{aligned} A[t(\tau )]=\left( \frac{H_{x0}+H_{y0}+H_{z0}}{A_0B_0}\tau \right) ^{\frac{H_{z0}}{H_{x0}+H_{y0}+H_{z0}}}, \end{aligned}$$
(25)

such that the metric (4) in the unimodular context becomes

$$\begin{aligned} \mathrm{d}s^2=Q\tau ^{-2}\mathrm{d}\tau ^2-Q_1\tau ^{q_1}\mathrm{d}x^2-Q_2\tau ^{q_2}\mathrm{d}y^2-Q_3\tau ^{q_3}\mathrm{d}z^2\nonumber \\ \end{aligned}$$
(26)

with

$$\begin{aligned} Q= & {} \left( H_{x0}+H_{y0}+H_{z0}\right) ^{-2}\left( B_0C_0\right) ^{q_1}\left( A_0C_0\right) ^{q_2}\left( A_0B_0\right) ^{q_3},\nonumber \\\end{aligned}$$
(27)
$$\begin{aligned} Q_1= & {} A_0^2\left( \frac{H_{x0}+H_{y0}+H_{z0}}{A_0B_0C_0}\right) ^{q_1},\nonumber \\ q_1= & {} \frac{2H_{x0}}{H_{x0}+H_{y0}+H_{z0}},\end{aligned}$$
(28)
$$\begin{aligned} Q_2= & {} B_0^2\left( \frac{H_{x0}+H_{y0}+H_{z0}}{A_0B_0C_0}\right) ^{q_2},\nonumber \\ q_2= & {} \frac{2H_{y0}}{H_{x0}+H_{y0}+H_{z0}},\end{aligned}$$
(29)
$$\begin{aligned} Q_3= & {} C_0^2\left( \frac{H_{x0}+H_{y0}+H_{z0}}{A_0B_0C_0}\right) ^{q_3},\nonumber \\ q_3= & {} \frac{2H_{z0}}{H_{x0}+H_{y0}+H_{z0}}. \end{aligned}$$
(30)

4.2 Power-law solutions

In this subsection we devote our attention to the cosmological evolution described by a power-law functions of cosmic time in each direction of the space. We assume the following expressions for the scale factors in terms of cosmic time:

$$\begin{aligned} A(t)=A_0t^a,\quad B(t)=B_0t^b,\quad C(t)=C_0t^c, \end{aligned}$$
(31)

where abc and \({A_0, B_0, C_0}\) are constants that should be determined from the initial conditions. In this case the rate of the expansion for each direction is given by

$$\begin{aligned} H_x=\frac{a}{t},\quad H_y=\frac{b}{t},\quad H_z=\frac{c}{t}, \end{aligned}$$
(32)

and the expression of Gauss–Bonnet invariant in the context of cosmic time reads

$$\begin{aligned} G=\frac{8\,a\,b\,{c}^{2}}{{t}^{4}}+\frac{8\,a\,{b}^{2}\,c}{{t}^{4}}+\frac{8\,{a}^{2}\,b\,c}{{t}^{4}}-\frac{24\,a\,b\,c}{{t}^{4}}. \end{aligned}$$
(33)

Then the field equations take the following forms:

$$\begin{aligned}&Gf_G+\frac{b\,c}{{t}^{2}}+\frac{a\,c}{{t}^{2}}+\frac{a\,b}{{t}^{2}}-f=8\,\pi \,\rho ,\end{aligned}$$
(34)
$$\begin{aligned}&-Gf_G-\frac{\left( c-1\right) \,c}{{t}^{2}}-\frac{b\,c}{{t}^{2}}-\frac{\left( b-1\right) \,b}{{t}^{2}}+f=8\,\pi \,p_r,\nonumber \\\end{aligned}$$
(35)
$$\begin{aligned}&-Gf_G-\frac{\left( c-1\right) \,c}{{t}^{2}}-\frac{a\,c}{{t}^{2}}-\frac{\left( a-1\right) \,a}{{t}^{2}}+f= 8\,\pi \,p_t,\nonumber \\\end{aligned}$$
(36)
$$\begin{aligned}&-Gf_G-\frac{\left( b-1\right) \,b}{{t}^{2}}-\frac{a\,b}{{t}^{2}}-\frac{\left( a-1\right) \,a}{{t}^{2}}+f=8\,\pi \,p_t.\nonumber \\ \end{aligned}$$
(37)

Here we also assume for simplicity that \(p_\mathrm{r}=p_\mathrm{t}=p=\omega \rho \), \(\omega \) being the parameter of the equation of state. Considering the first two field equations one gets

$$\begin{aligned} G\left( 1+8\pi \omega \right) f_G-\left( 1+8\pi \omega \right) f+\left( {K}_2+8\pi \omega {K}_1\right) \frac{1}{t^2}=0\nonumber \\ \end{aligned}$$
(38)

with \(K_1={b\,c}+{a\,c}+{a\,b}\) and \(K_2=-{\left( c-1\right) \,c}-{b\,c}-{\left( b-1\right) \,b}\). By making use of (33) the previous equations take the following form:

$$\begin{aligned} Gf_G-f+\mathcal {K}G^{1/2}=0, \end{aligned}$$
(39)

where

$$\begin{aligned} \mathcal {K}=\frac{K_2+8\pi \omega K_1}{\left( 1+8\pi \omega \right) \left( {8\,a\,b\,{c}^{2}}+{8\,a\,{b}^{2}\,c}+{8\,{a}^{2}\,b\,c}-{24\,a\,b\,c}\right) ^{1/2} }.\nonumber \\ \end{aligned}$$
(40)

The general solution of the previous equation reads

$$\begin{aligned} f(G)=2\mathcal {K}\sqrt{G}+\beta G \end{aligned}$$
(41)

with \(\beta \) a positive constant to be determined using the cosmological data. In this case the metric (4) in the unimodular context becomes

$$\begin{aligned} \mathrm{d}s^2=\mathcal {Q}\tau ^{r}\mathrm{d}\tau ^2-\mathcal {Q}_1\tau ^{r_1}\mathrm{d}x^2-\mathcal {Q}_2\tau ^{r_2}\mathrm{d}y^2-\mathcal {Q}_3\tau ^{r_3}\mathrm{d}z^2\nonumber \\ \end{aligned}$$
(42)

where

$$\begin{aligned} \mathcal {Q}= & {} \frac{1}{(A_0B_0C_0)^2}\left( \frac{a+B+C+1}{A_0B_0C_0}\right) ^r\,,\nonumber \\ r= & {} -2\frac{a+b+c}{a+b+c+1},\nonumber \\ \mathcal {Q}_1= & {} A_0^2\left( \frac{a+B+C+1}{A_0B_0C_0}\right) ^{r_1},\end{aligned}$$
(43)
$$\begin{aligned} r_1= & {} \frac{2a}{a+b+c+1},\quad \mathcal {Q}_2=B_0^2\left( \frac{a+B+C+1}{A_0B_0C_0}\right) ^{r_2},\nonumber \\ r_2= & {} \frac{2b}{a+b+c+1},\end{aligned}$$
(44)
$$\begin{aligned} \mathcal {Q}_3= & {} C_0^2\left( \frac{a+B+C+1}{A_0B_0C_0}\right) ^{r_3},\quad r_3=\frac{2c}{a+b+c+1}.\nonumber \\ \end{aligned}$$
(45)

5 Lagrange multiplier formulation and reconstruction of unimodular f(G) gravity

In this section we will present the Lagrange multiplier formulation of f(G) gravity, according to the method performed in context of f(R) in [152,153,154]. This procedure is just used to ensure that the unimodular condition is satisfied. To do so, we introduce the Lagrangian multiplier \(\lambda \) and the unimodular f(G) gravity with matter can be expressed as

$$\begin{aligned} S_{\lambda }= \int \mathrm{d}^4x\left\{ \sqrt{-g}\left[ \frac{R+f(G)}{2\kappa ^2}-\lambda \right] +\lambda \right\} . \end{aligned}$$
(46)

From now we will assume the FRW metric and consider the matter energy-momentum tensor as corresponding to a perfect fluid with the energy density and pressure \(\rho \) and p, respectively. Thereby the GB invariant expressions in terms of t and \(\tau \) read

$$\begin{aligned} G= & {} 24\frac{\dot{A}^2\ddot{A}}{A^3},\end{aligned}$$
(47)
$$\begin{aligned}= & {} 24A^9A'^2A''+72A^8A'^4=24A^{12}\left( \mathcal {H}^2\mathcal {H}'+4\mathcal {H}^4\right) \nonumber \\ \end{aligned}$$
(48)

where the parameter \(\mathcal {H}\equiv \frac{1}{A(\tau )}\frac{dA(\tau )}{d\tau }\) is the relative Hubble parameter in this context. Hence the field equations become

$$\begin{aligned}&-24A^{12}\mathcal {H}^3f'_G+24A^{12}\left( \mathcal {H}^2\mathcal {H}'+4\mathcal {H}^4\right) f_G\nonumber \\&\quad +3A^6\mathcal {H}^2-\left( f-\lambda \right) -\rho =0,\end{aligned}$$
(49)
$$\begin{aligned}&8A^{12}\mathcal {H}^2f''_G+\left( 16A^{12}\mathcal {H}\mathcal {H}'+88A^{12}\mathcal {H}^3\right) f'_G\nonumber \\&\quad -24A^{12}\left( \mathcal {H}^2\mathcal {H}'+4\mathcal {H}^4\right) f_G\nonumber \\&\quad -A^6\left( 2\mathcal {H}'+9\mathcal {H}^2\right) +\left( f-\lambda \right) -p=0. \end{aligned}$$
(50)

By directly summing Eqs. (49) and (50), the term \(\left( f-\lambda \right) \) is eliminated, giving rise to the following equations:

$$\begin{aligned}&8A^{12}\mathcal {H}^2f''_G+16A^{12}\left( \mathcal {H}\mathcal {H}'+4\mathcal {H}^3\right) f'_G\nonumber \\&\quad -2A^{6}\left( \mathcal {H}'+3\mathcal {H}^2\right) -\rho -p=0. \end{aligned}$$
(51)

In order to perform a consistent analysis, it is important to make use of the continuity equation for the matter, namely

$$\begin{aligned} \rho '+3\mathcal {H}\left( \rho +p\right) =0 . \end{aligned}$$
(52)

Let us adopt the equation of state \(p=w\rho \). Thus solving the previous equation, one gets

$$\begin{aligned} \rho (\tau )= & {} \rho _0\exp \left\{ -3\left( 1+\omega \right) \int _0^\tau \mathcal {H}(\zeta )\mathrm{d}\zeta \right\} \nonumber \\= & {} \rho _0A(\tau )^{-3(1+w)}. \end{aligned}$$
(53)

Now, in order to obtain cosmological f(G) models in the unimodular context, one just needs a suitable expression of the scale depending on \(\tau \), solving Eq. (51).

5.1 Reconstruction of unimodular f(G) model describing de Sitter universe

In this subsection we consider the FRW metric that describes a de Sitter expanding universe with the scale factor reading

$$\begin{aligned} A(t)=e^{H_0t}, \end{aligned}$$
(54)

where \(H_0\) is an arbitrary positive constant. By using Eq. (3), setting \(B=C=A\), one can extract the t in terms of \(\tau \) as

$$\begin{aligned} t=\frac{1}{3H_0}\ln {\left( 3H_0\tau \right) }, \end{aligned}$$
(55)

such that the scale factor in terms of the \(\tau \) reads

$$\begin{aligned} A(t(\tau ))=\left( 3H_0\tau \right) ^{1/3}. \end{aligned}$$
(56)

In this case, addressing the de Sitter universe, \(\omega =-1\) and the differential equation (51) becomes

$$\begin{aligned} 3\tau \frac{\mathrm{d}^2f_G(\tau )}{\mathrm{d}\tau ^2}+2\frac{\mathrm{d}f_G(\tau )}{\mathrm{d}\tau }=0, \end{aligned}$$
(57)

whose general solutions are

$$\begin{aligned} f_G(\tau )=3\mathcal {C}_1\tau ^{1/3}+\mathcal {C}_2 \end{aligned}$$
(58)

where \(\mathcal {C}_1\) and \(\mathcal {C}_2\) are integration constants. On the other hand, one can express the GB invariant (48) in terms of \(\tau \),

$$\begin{aligned} G(\tau )=24H_0, \end{aligned}$$
(59)

which obviously is a constant. The task to be done now is to invert the function \(G(\tau )\) in order to obtain \(\tau =\tau (G)\), but since \(G(\tau )=\mathrm{Const}\) it is common to fix \(\mathcal {C}_1=0\), such that \(f_G=\mathrm{d}f(G)/\mathrm{d}G=\mathcal {C}_2\), whose general solution takes the following form:

$$\begin{aligned} f(G)=\mathcal {C}_2G+\mathcal {C}_3. \end{aligned}$$
(60)

This result is consistent with the one obtained in (22), confusing \((\alpha ,K)\) with \((\mathcal {C}_1,\mathcal {C}_3)\), characteristic of the de Sitter universe.

5.2 Reconstruction of unimodular f(G) model according to power-law solution

In this case we assume the scale factor in terms of the cosmic time to be

$$\begin{aligned} A(t)=A_0\left( \frac{t}{t_0}\right) ^q \end{aligned}$$
(61)

where \(t_0\) and \(A_0\) are the initial time and the initial value of the scale factor, respectively. According to the relation \(\mathrm{d}\tau =A(t)^3\mathrm{d}t\) one gets

$$\begin{aligned} A(t(\tau ))=\left( \frac{\tau }{\tau _0}\right) ^{\sigma },\quad \sigma =\frac{q}{1+3q},\quad \tau _0=\frac{t_0}{A_0^{1/q}(1+3q)}.\nonumber \\ \end{aligned}$$
(62)

It is easy to see that, for \(\sigma =1/3\), the de Sitter universe is recovered, while the power-law inflation is obtained for \(q>1\) \((1/4<\sigma <1/3)\). The accelerated expansion is realized for \(0<q\le 1\) \((0<\sigma \le 1/4)\), where inflation is possible.

The GB invariant in this case is

$$\begin{aligned} G=24\sigma ^3\left( \frac{4\sigma -1}{\tau ^4}\right) \left( \frac{\tau }{\tau _0}\right) ^{12\sigma }. \end{aligned}$$
(63)

Thus the differential equation (51) becomes

$$\begin{aligned} J_{01}f''_G+J_{02}f'_G+(J_{03}+J_{04})=0, \end{aligned}$$
(64)

with

$$\begin{aligned} J_{01}(\tau )= & {} \frac{8\sigma ^2}{\tau ^2}\left( \frac{\tau }{\tau _0}\right) ^{12\sigma },\nonumber \\ J_{02}(\tau )= & {} \frac{16\sigma ^2(4\sigma -1)}{\tau ^3}\left( \frac{\tau }{\tau _0}\right) ^{12\sigma },\nonumber \\ J_{03}(\tau )= & {} -\frac{2\sigma (3\sigma -1)}{\tau ^2}\left( \frac{\tau }{\tau _0}\right) ^{6\sigma },\nonumber \\ J_{04}(\tau )= & {} -(1+w)\rho _0\left( \frac{\tau }{\tau _0}\right) ^{-3\sigma (1+w)}. \end{aligned}$$
(65)

The previous equation can be rewritten by dividing the whole equation by \(J{01}\ne 0\),

$$\begin{aligned} f''_G+J_{1}f'_G+J_2=0, \end{aligned}$$
(66)

where

$$\begin{aligned} J_1(\tau )= & {} \frac{1-3\sigma }{\tau },\nonumber \\ J_2(\tau )= & {} \frac{1-3\sigma }{4\sigma }\left( \frac{\tau }{\tau _0}\right) ^{-6\sigma }\nonumber \\&+\frac{\rho _0(1+w)\tau ^2}{8\sigma ^2}\left( \frac{\tau }{\tau _0}\right) ^{-3\sigma (5+w)}, \end{aligned}$$
(67)

whose general solution reads

$$\begin{aligned} f_G(\tau )= & {} \frac{\tau ^2\left( \frac{\tau }{\tau _0}\right) ^{-6\sigma }}{8\sigma (1-2\sigma )}\nonumber \\&+\frac{\rho _0(1+w)\tau ^4\left( \frac{\tau }{\tau _0}\right) ^{-3\sigma (5+w)}}{8\sigma ^2\left[ 4-3(5+w)\sigma \right] \left[ -1+(7+3w)\sigma \right] }\nonumber \\&+ \mathcal {K}_1\frac{\tau ^{3-8\sigma }}{3-8\sigma }+\mathcal {K}_2, \end{aligned}$$
(68)

\(\mathcal {K}_1\) and \(\mathcal {K}_2\) being integration constants. From Eq. (63), one can express \(\tau \) and \(\frac{\tau }{\tau _0}\) in terms of G,

$$\begin{aligned}&\tau =\chi _1 G^{\frac{1}{4(3\sigma -1)}},\quad \frac{\tau }{\tau _0}=\chi _2 G^{\frac{1}{4(3\sigma -1)}},\nonumber \\&\chi _1=\left[ \frac{\tau _0^{12\sigma }}{24\sigma ^3(4\sigma -1)}\right] ^{\frac{1}{4(3\sigma -1)}}, \nonumber \\&\chi _2=\left[ \frac{\tau _0^{4}}{24\sigma ^3(4\sigma -1)}\right] ^{\frac{1}{4(3\sigma -1)}}. \end{aligned}$$
(69)

Hence, Eq. (68) can now be written in terms of G as

$$\begin{aligned}&f_G(G)=\frac{\chi _1^2\chi _2^{-6\sigma }}{8\sigma (1-2\sigma )}G^{-\frac{1}{2}}\nonumber \\&\quad +\frac{\rho _0(1+w)\chi _1^4\chi _2^{-3\sigma (5+w)}}{8\sigma ^2\left[ 4-3(5+w)\sigma \right] \left[ -1+(7+3w)\sigma \right] }G^{\frac{4-3\sigma (5+w)}{4(3\sigma -1)}}\nonumber \\&\quad + \frac{\mathcal {K}_1\chi _1^{3-8\sigma }}{3-8\sigma }G^{\frac{3-8\sigma }{4(3\sigma -1)}}+\mathcal {K}_2. \end{aligned}$$
(70)

By integrating the expression in the right hand side of the (70) with respect to G, one gets

$$\begin{aligned} f(G)= & {} \frac{\chi _1^2\chi _2^{-6\sigma }G^{\frac{1}{2}}}{4\sigma (1-2\sigma )}\nonumber \\&+\frac{\rho _0(1-3\sigma )\chi _1^4\chi _2^{-3\sigma (5+w)}G^{\frac{3\sigma (1+w)}{4(1-3\sigma )}}}{6\sigma ^3\left[ 4-3(5+w)\sigma \right] \left[ -1+(7+3w)\sigma \right] }\nonumber \\&+\frac{4\mathcal {K}_1(3\sigma -1)\chi _1^{3-8\sigma }G^{\frac{4\sigma -1}{4(3\sigma -1)}}}{(4\sigma -1)(3-8\sigma )}+\mathcal {K}_2G+\mathcal {K}_3.\nonumber \\ \end{aligned}$$
(71)

6 Unimodular inflationary cosmological f(G) model

In the previous section we performed the reconstruction of the specific f(G) form that generates scale-factor evolution. The obtained model will be explored in the present section to investigate inflation realization in unimodular f(G) gravity. Moreover, we will focus our attention on the investigation of inflationary observables such as scalar and tensor spectral indices, the tensor-to-tensor ratio and the running spectral index confronting them with the cosmological observational data.

6.1 Slow-roll parameters and inflationary observables

The exploration of any inflationary scenario is essentially based on the values of related observables such as the scalar spectral index of the curvature perturbations \(n_\mathrm{s}\), its running \(\alpha _s\equiv \mathrm{d}n_\mathrm{s}/\mathrm{d}\ln k\), k being the absolute value of the wave number \(\vec {k}\), the tensor spectral index \(n_\mathrm{T}\) and the tensor-to-tensor ratio r. The determination of the values of the observables would be by detailed perturbation analysis and we propose to escape from these complicated procedures by making use of the Einstein frame, where all the inflationary information is driven by the so-called effective scalar potential \(V(\phi )\). To do so it is common to define the slow-roll parameters \(\epsilon \), \(\eta \) and \(\xi \) in terms of this potential and its derivatives [155,156,157, 161],

$$\begin{aligned}&\epsilon \equiv \frac{M_\mathrm{p}^2}{2}\left( \frac{1}{V}\frac{\mathrm{d}V}{\mathrm{d}\phi }\right) ^2,\quad \eta \equiv \frac{M_\mathrm{p}^2}{V}\frac{\mathrm{d}^2V}{\mathrm{d}\phi ^2},\nonumber \\&\xi ^2\equiv \frac{M_\mathrm{p}^4}{V^2}\frac{\mathrm{d}V}{\mathrm{d}\phi }\frac{\mathrm{d}^3V}{\mathrm{d}\phi ^3}. \end{aligned}$$
(72)

We point out that the calculation of the spectral index of the primordial curvature perturbations and of the scalar-to-tensor ratio relies upon the technique of the perfect fluid approximation in modified gravity, and this was developed in [158, 159]. It is important to mention that a more direct approach is to calculate the spectral index directly via the direct calculation of the power spectrum, as was done in [160], in the context of standard f(G) gravity; this is, however, very tedious. Also it has been shown in [5] that the inflation ends when \(\epsilon =1\). The approximated expressions for the observables are presented in [161]:

$$\begin{aligned}&r\approx 16\epsilon ,\quad n_s\approx 1-6\epsilon +2\eta ,\nonumber \\&\alpha \approx 16\epsilon \eta -24\epsilon ^2-2\xi ^2, n_T\approx -2\epsilon . \end{aligned}$$
(73)

Since we are dealing with modified gravity, its obvious that the conformal transformation to the Einstein frame is not possible and one cannot define a scalar potential nor the potential slow-roll parameters. To do so, one can introduce the Hubble slow-roll parameters \(\epsilon _n\) by

$$\begin{aligned} \epsilon _{n+1}\equiv \frac{\mathrm{d}\ln {\vert \epsilon _{n}\vert }}{\mathrm{d}N}, \end{aligned}$$
(74)

where the initial value of this parameter is \(\epsilon _0\equiv H_{\mathrm{ini}}/H\) and the parameter N, known as the e-folding number, is defined as \(N\equiv \ln {\left( a/a_{\mathrm{ini}}\right) }\), \(a_{\mathrm{ini}}\) being the scale factor at the beginning of the inflation and \(H_{\mathrm{ini}}\) the corresponding Hubble parameter. Hence one can express the first three \(\epsilon \) as

$$\begin{aligned}&\epsilon _1=-\frac{\dot{H}}{H^2},\quad \epsilon _2=\frac{\ddot{H}}{H\dot{H}}-\frac{2\dot{H}}{H^2},\quad \epsilon _3=\left( H\ddot{H}-2\dot{H}^2\right) ^{-1} \nonumber \\&\quad \times \left[ \frac{H\dot{H} \dddot{H}-\ddot{H} \left( \dot{H}^2+ H\ddot{H}\right) }{H\dot{H}}-\frac{2\dot{H}}{H^2}\left( H\ddot{H} -2\dot{H}^2 \right) \right] ,\nonumber \\ \end{aligned}$$
(75)

in such a way that the inflationary-related observables can now be written as

$$\begin{aligned}&r\approx 16\epsilon _1, \quad n_s\approx 1-2\epsilon _1-2\epsilon _2,\nonumber \\&\alpha _s\approx -2\epsilon _1\epsilon _2-\epsilon -2\epsilon _3, \quad \quad n_T\approx -2\epsilon _1. \end{aligned}$$
(76)

According to (61) and (62), one gets

$$\begin{aligned} \epsilon _1=\frac{1}{q}=\frac{1-3\sigma }{\sigma },\quad \epsilon _2=0,\quad \epsilon _3=\frac{1}{q}=\frac{1-3\sigma }{\sigma }, \end{aligned}$$
(77)

yielding

$$\begin{aligned}&r\approx \frac{16(1-3\sigma )}{\sigma },\quad n_s\approx \frac{7\sigma -2}{\sigma },\nonumber \\&\alpha _s\approx 0,\quad n_T\approx \frac{2(3\sigma -1)}{\sigma }. \end{aligned}$$
(78)

6.2 Obtaining inflationary unimodular f(G) model according to the Planck results

According to the Planck results [85, 162] one has \(0.962\le n_\mathrm{s}\le 0.974\), leading to \(52631\le q\le 76.923\). Thus, fixing \(q=60\), that is, \(\sigma = 0.331\), one gets \(n_\mathrm{s}\approx 0.966\), \(r\approx 0.266\), \(\alpha _s=0\) and \(n_\mathrm{T}=0.033\), consistent with the Planck results. Now, still in agreement with the Planck results we will determine the constants appearing in (71) in order to obtain the f(G) model that describes the inflation. We also note that according to the Planck results [85, 162] one has \(66.9 \,\mathrm{km/s/Mpc}\le H_0\le 68.7\, \mathrm{km/s/Mpc}\) and we fix it to \(H_0=67.8 \,\mathrm{km/s/Mpc}\) and we have the well-known relation between the current values of the cosmic time and the Hubble parameter pointing to the age of the universe, i.e., \(t_0\approx 2/3H_0\), and one gets \(t_0=9.832\times 10^{-3} \,\mathrm{Mpc\,s/km}\). Using Eq. (62) and \(A_0=1\), one gets \(\tau _0=5.43\times 10^{-5}\, \mathrm{Mpc\,s/km}\). Using \(\rho _0=3H_0^2\) and assuming that at this stage of inflation only the radiation is the dominated constituent of the universe (rigorously just after the inflation) i.e., \(w=1/3\), one gets

$$\begin{aligned} f(G)= & {} 1.186 \sqrt{G}-1.074\times 10^{-779}G^{47.285}\nonumber \\&-2.858\times 10^{205}G^{-11.571}+G \end{aligned}$$
(79)

where we fix for simplicity \(\mathcal {K}_1=\mathcal {K}_2=1\) and \(\mathcal {K}_3=0\).

7 Superbounce and loop quantum ekpyrotic cosmology from unimodular f(G) gravity

In this section we propose to reconstruct the unimodular f(G) model able to realize the superbounce and loop quantum ekpyrotic cosmology. The first attempts to realize these cosmologies in modified gravity were performed in [163].

7.1 Ekpyrotic scenario reconstruction from unimodular f(G) gravity

The task here is to find thef(G) model in the unimodular context which, in the large cosmic time limit, corresponds to the late-time era of the ekpyrotic scenario. We assume the well-known gravitational action as in [124, 125],

$$\begin{aligned} \mathcal {S}=\int \mathrm{d}^4x\sqrt{-g}\left[ \frac{R}{2\kappa ^2}+f(G)\right] . \end{aligned}$$
(80)

By making use of the auxiliary scalar field \(\phi \) the previous action becomes

$$\begin{aligned} S=\int \mathrm{d}^4x\sqrt{-g}\left[ \frac{R}{2\kappa ^2}-V(\phi )-\xi (\phi )G\right] . \end{aligned}$$
(81)

The variation of the action (80) with respect to \(\phi \) yields

$$\begin{aligned} V'(\phi )+\xi '(\phi )G=0, \end{aligned}$$
(82)

whose solution, if it exists, will be a functional dependence of G, i.e. \(\phi =\phi (G)\) and now substituting it into (80) leads to

$$\begin{aligned} f(G)=-V(\phi (G))-\xi (\phi (G))G, \end{aligned}$$
(83)

and it is obvious that if we find \(\phi (G)\), the algebraic f(G) will be obtained straightforwardly. We have

$$\begin{aligned}&24A^{12}\mathcal {H}^3\xi '-24A^{12}\left( \mathcal {H}^2\mathcal {H}'+4\mathcal {H}^4\right) \xi \nonumber \\&\quad +3A^6\mathcal {H}^2+V+\xi G=0,\end{aligned}$$
(84)
$$\begin{aligned}&\quad -8A^{12}\mathcal {H}^2\xi ''-\left( 16A^{12}\mathcal {H}\mathcal {H}'+88A^{12}\mathcal {H}^3\right) \xi '\nonumber \\&\quad +24A^{12}\left( \mathcal {H}^2\mathcal {H}'+4\mathcal {H}^4\right) \xi \nonumber \\&\quad -A^6\left( 2\mathcal {H}'+9\mathcal {H}^2\right) -V-\xi G=0. \end{aligned}$$
(85)

By combining the above equations through a straightforward summation one gets the following equation:

$$\begin{aligned} -8A^{12}\mathcal {H}^2\xi ''- & {} 16A^{12}\left( \mathcal {H}\mathcal {H}'+4\mathcal {H}^3\right) \xi '\nonumber \\- & {} 2A^{6}\left( \mathcal {H}'+3\mathcal {H}^2\right) =0. \end{aligned}$$
(86)

Since we are searching for an ekpyrotic model we have to take the large cosmic time limit of the scale factor assumed as \(A(t)=A_0^{v/2}t^v\), corresponding, in the unimodular context, to

$$\begin{aligned} A(t(\tau ))=\bar{A}\tau ^l,\quad l=\frac{v}{3v+1},\quad \bar{A}=\left[ (3v+1)\sqrt{A_0}\right] ^l .\nonumber \\ \end{aligned}$$
(87)

According to the previous expression of the scale factor in the unimodular context, Eq. (64) takes the following form:

$$\begin{aligned} \xi ''+\gamma _1(\tau )\xi '+\gamma _2(\tau )=0, \end{aligned}$$
(88)

with

$$\begin{aligned} \gamma _1(\tau )= & {} 8\bar{A}l\tau ^{l-1}+2(l-1)\tau ^{-1},\quad \text{ and } \quad \nonumber \\ \gamma _2(\tau )= & {} \frac{3}{4}\bar{A}^{-6}\tau ^{-6l}+\frac{1}{4l}\bar{A}^{-7}(l-1)\tau ^{-7l}. \end{aligned}$$
(89)

From this, according to the large cosmic time, we arrive at the following expression of \(\xi (\tau )\) and \(V(\tau )\):

$$\begin{aligned} \xi (\tau )=\Gamma _1\tau ^{2(1-3l)},\quad V(\tau )=\Gamma _2\tau ^{-2(1-3l)}, \end{aligned}$$
(90)

with

$$\begin{aligned} \Gamma _1=\frac{(1-3l)^{6l-1}}{l(1-2l)\bar{A}^{3l}},\quad \text{ and }\quad \Gamma _2=24\frac{l^2(4l-1)(1-3l)^{2(3l-2)}}{1-2l}.\nonumber \\ \end{aligned}$$
(91)

Making use of (48) and (87), one can express \(\tau \) in terms of G as

$$\begin{aligned} \tau =\Gamma _3G^{\frac{1}{4(3l-1)}}, \end{aligned}$$
(92)

where

$$\begin{aligned} \Gamma _3=\left[ 24\bar{A}l^3(4l-1)\right] ^{\frac{1}{4(1-3l)}}. \end{aligned}$$
(93)

Now injecting Eq. (92) of \(\tau \) into (90), one obtains

$$\begin{aligned} \xi (G)= \Gamma _1\Gamma _3^{2(1-3l)}G^{-1/2},\quad \text{ and }\,V(G)=\Gamma _2\Gamma _3^{2(3l-1)}G^{1/2},\nonumber \\ \end{aligned}$$
(94)

such that, from (83), the algebraic f(G) ekpyrotic model reads

$$\begin{aligned} f(G)=-\Gamma _1\Gamma _3^{2(1-3l)}G^{-1/2}-\Gamma _2\Gamma _3^{2(3l-1)}G^{3/2}. \end{aligned}$$
(95)

7.2 Superbounce reconstruction from unimodular f(G) gravity

In this case the scale factor is given by [88]

$$\begin{aligned} A(t)\propto (t_*-t)^{2/c^2}, \end{aligned}$$
(96)

where \(t_*\) denotes the big crunch time, and c is a parameter constrained to \(c>\sqrt{6}\) [88]. In the context of unimodular gravity, one gets

$$\begin{aligned} A(t(\tau ))\propto (\tau _*-\tau )^{\frac{2}{6+c^2}}. \end{aligned}$$
(97)

In this case, for simplicity and for large cosmic time t, i.e. near the bounce, the \(\tau \) dependent functions \(\xi (\tau )\) and \(V(\tau )\) behave as

$$\begin{aligned} \xi (\tau )\propto (\tau _*-\tau )^{\frac{2c^2}{6+c^2}},\quad V(\tau )= (\tau _*-\tau )^{\frac{-2}{6+c^2}}. \end{aligned}$$
(98)

On the other hand, from (97) and (48), one expresses \(\tau \) in terms of G as

$$\begin{aligned} \tau (G)=G^{-\frac{6+c^2}{4c^2}}, \end{aligned}$$
(99)

such that the algebraic f(G) model near the bounce reads

$$\begin{aligned} f(G)=\mathcal {Z}_1G^{-1/2}+\mathcal {Z}_1G^{3/2} \end{aligned}$$
(100)

where \(\mathcal {Z}_1\) and \(\mathcal {Z}_2\) are integration constants depending on the parameter c.

8 Conclusion

In this paper we explored a type of modified GR theory, namely f(G) theory of gravity in the unimodular context, where G denotes the GB invariant. In such a theory an important condition is applied to the metric tensor constraining its determinant to a number or a specific function. Here we work fixing it to 1 and consider both appropriate BI and FRW universes. In a first step the task is to reconstruct the unimodular f(G) models considering de Sitter and power-law solutions for the scale factors. The resulting models are different from the standard f(G) model (without considering unimodular formalism). In the second step we focused our attention to the model provided by the power-law solutions in the FRW universe and searched for the input constants that can constrain it to an inflationary model. To do so, we proceeded to the determination of the slow-roll parameters and the corresponding observational indices from the unimodular f(G) field equations, which appear as functions of the input parameters. According to the recent Planck results we calculated accordingly the input parameters, obtaining an unimodular f(G) inflationary model.

On the other hand we investigated, still in the unimodular f(G) context, the superbounce and the loop quantum cosmology ekpyrotic paradigms. As is well known, bouncing solutions can be an alternative to inflation and thus it appears interesting to search for a related f(G) model. To do so, we considered the well-known standard cosmic time depending scale factors able to lead to the bouncing cosmology in the one case and the ekpyrotic cosmology in the other. The corresponding scale factors in the unimodular context have been determined, namely in terms of the auxiliary time \(\tau \). Through the unimodular formalism and the related field equations, the bouncing and ekpyrotic f(G) models have been reconstructed.