1 Introductions

It is well known that recently it has been found strong evidence for an accelerated expansion of the universe, apparently due to the presence of an effective positive cosmological constant and associated with this acceleration there exists the so called dark energy issue (see for example Padmanabhan 2003). According to the observations of type Ia supernovae, cosmic microwave background (CMB) and large scale structures, the Universe is expanding at an accelerating rate which is linked with dark energy (DE) (having strong negative pressure). Dark energy dynamical models and modified theories of gravity are two candidates to explain the mysterious nature of DE. In physical cosmology and astrophysics, the simplest candidate for the dark energy (DE) is the cosmological constant (Λ) (Carroll 2001; Peebles and Ratra 2003). However, it needs to be extremely fine-tuned to satisfy the current value of the DE density, which is a serious problem (Overduin and Cooperstock 1998). The simplest candidate of dark energy is a cosmological constant with the equation of state parameter ω=−1. However, this scenario suffers from serious problems like a huge fine tuning and the coincidence problem (Shani and Starobinsky 2000, 2006). Alternative models of dark energy suggest a dynamical form of dark energy, which is often realized by one or two scalar fields. In this respect, dark energy has many dynamical components such as quintessence (Ratra and Peebles 1988; Wetterich 1988; Caldwell et al. 1998), K-essence (Armendariz-Picon et al. 2000), tachyon (Sen 2002; Padmanabhan 2002; Setare 2007), phantom (Caldwell 2002), ghost condensate and quintom (Feng et al. 2005; Guo et al. 2005; Setare and Saridakis 2008), and so forth. Alternative to dark energy, modified theories of gravity is extremely attractive, such as f(R) gravity (see, for instance, Felice and Tsujikawa (2010) for reviews), here f(R) is an arbitrary function of the Ricci scalar R. Cosmic acceleration can be explained by f(R) gravity (Nojiri and Odintsov 2003), and the conditions of viable cosmological models have been derived in Capozziello et al. (2006). A general model of f(R) gravity has been proposed in Allemandi et al. (2005), which contains a non-minimal coupling between geometry and matter. Viable cosmological models have been found in Capozziello et al. (2006), Nojiri and Odintsov (2006, 2007a) under some conditions, and weak field constraints obtained from the classical tests of general relativity for the solar system regime seem to rule out most of the models so far (Erickcek et al. 2006; Chiba et al. 2007). For this kind of modification, one assumes that the gravitational action may contain some additional terms which starts to grow with decreasing curvature and obtain a late time acceleration epoch. One of the other of modification of Einstein’s gravity is Gauss-Bonnet (GB) modification. As a possibility the Einstein-Gauss-Bonnet gravity is low energy limit of the string theory is of particular interest because of its special features. The reconstruction scenario for f(G) gravity is proposed and developed in Nojiri and Odintsov (2007b, 2011). The GB generalization adds quadratic terms, involving second order curvature invariants (specifically Gauss-Bonnet term is a topological invariant in four dimensions) to the Einstein-Hilbert Lagrangian (Carter and Neupane 2006, see also Carroll et al. 2005). Finally, such class of modified gravities may successfully describe the universe expansion history from the early-time inflation till late-time acceleration (Cognola et al. 2006; Nojiri et al. 2008, 2010) with the unification of the inflation with DE.

Under the above circumstances, it is observed that in recent years Bianchi universes have been gaining an increasing interest and tremendous impetus of observational cosmology. According to this, the Universe should achieve the following features: (i) a slightly anisotropic special geometry in spite of the inflation, and (ii) a nontrivial isotropization history of Universe due to the presence of an anisotropic energy source. The anomalies found in the cosmic microwave background (CMB) and large scale structure observations stimulated a growing interest in anisotropic cosmological model of Universe. Here we confine ourselves to model LRS Bianchi type I whose spatial sections are flat but the expansion or contraction rate are direction dependent. For studying the possible effects of anisotropy in the early Universe based on the present day observations many researchers (Saha 2006a, 2006b; Pradhan and Singh 2004) have investigated Bianchi type I models from different point of view. We would like to further mention that unlike the FRW model this Bianchi type I model describes a different kind of Universe in which the scale factor is not restricted to be the same in each direction. Recently Aluri et al. (2013) have shown the importance of BI model to discuss the effects of anisotropy on the basis of recent evidences. Fayaz et al. (2014) discussed holographic and new agegraphic dark energy for anisotropic cosmological models in f(R,T). Hossienkhani et al. (2014) investigated accelerating of the universe for Bianchi models in f(R,T).

In this paper, we investigate the cosmological viability of f(G) models by investigating the conditions under which one can find power law solutions that mimic the standard BI expansion history of the Universe. We discover that such solutions only exist for a very special class of f(G) theories. Furthermore, we extend these results to show the existence of phantom phase power law solutions for an special form of f(G) gravity. The investigation is organized as follows: The metric and field equations are presented in Sect. 2. In Sects. 3 and 4, we deals with the exact matter dominant and phantom phase power law solutions and physical behavior of the model. de Sitter solutions and stability of the model is investigated in Sects. 5 and 6 respectively. The results of the paper are summarized in the last section.

2 Field equations and f(G) gravity

In this section, we consider the following gravitational action (Nojiri and Odintsov 2005).

$$ S=\int d^4x e\biggl[\frac{1}{2\kappa^{2}}R+f (G )+ \mathcal{L}_m\biggr], $$
(1)

where \(\mathcal{L}_{m}\) corresponds to the matter Lagrangian and \(e=\det(e_{\mu}^{i})=\sqrt{-g}\), with g being the determinant of the metric tensor, R is the Ricci scalar curvature and f(G) is an arbitrary differentiable function of G which is generally defined as: G=R 2−4R μν R μν+R μνρλ R μνρλ, where R μν and R μνρλ are Ricci curvature tensor and Riemann curvature tensor respectively. By varying the action S given in Eq. (1) with respect to the metric tensor g μν , the corresponding field equations are obtained as follow (Nojiri and Odintsov 2005):

$$\begin{aligned} 0 =&\frac{1}{2\kappa^{2}}\biggl(\frac{1}{2}g^{\mu\nu}R-R^{\mu\nu} \biggr)+T^{\mu\nu}+\frac{1}{2}g^{\mu\nu}f(G) \\ &{}-2f_GRR^{\mu\nu}+4f_GR^{\mu}_{\rho}R^{\nu\rho}-2f_GR^{\mu\rho\lambda\tau}R^{\nu}_{\rho\lambda\tau} \\ &{}-4f_GR^{\mu\rho\lambda\nu}R_{\rho\lambda}+2\bigl( \triangledown^{\mu}\triangledown^{\nu} f_G \bigr)R-2g^{\mu\nu}\bigl(\triangledown^{2}f_G\bigr)R \\ &{}-4\bigl(\triangledown_{\rho}\triangledown^{\mu} f_G\bigr)R^{\nu\rho}-4\bigl(\triangledown_{\rho} \triangledown^{\nu} f_G\bigr)R^{\mu\rho}+4\bigl( \triangledown^{2}f_G\bigr)R^{\mu\nu} \\ &{}+4g^{\mu\nu}(\triangledown_{\rho}\triangledown_{\lambda} f_G)R^{\rho\lambda}-4(\triangledown_{\rho} \triangledown_{\lambda} f_G)R^{\mu\rho\nu\lambda}, \end{aligned}$$
(2)

where f G =df/dG is the first derivative with respect to G of the function f and T μν represents the energy-momentum tensor of the perfect fluid.

We consider the homogeneous and anisotropic space-time described by Bianchi type I metric in the form

$$ ds^2=-dt^{2}+A(t)^{2}dx^{2}+B(t)^{2}dy^{2}+C(t)^{2}dz^{2}, $$
(3)

where A(t), B(t) and C(t) are the scale factors (metric tensors) and functions of the cosmic time t. This metric does not cover Robertson-Walker metric, but gets its closest form to RW metric when A(t)=B(t)=C(t), thus we may talk about its approaching to isotropy, but not a total isotropization of this metric. The anisotropy of the expansion can be parameterized after defining the directional Hubble parameters and the mean Hubble parameter of the expansion. The directional Hubble parameters in the directions of x, y and z for the Bianchi type I metric defined in (3) may be defined as follows,

$$\begin{aligned} H_x=\frac{\dot{A}}{A},\qquad H_y= \frac{\dot{B}}{B},\qquad H_z=\frac{\dot{C}}{C}, \end{aligned}$$
(4)

and the mean Hubble parameter is given as

$$\begin{aligned} H=\frac{\dot{a}}{a}=\frac{1}{3}\biggl(\frac{\dot{A}}{A}+ \frac{\dot{B}}{B}+\frac{\dot{C}}{C}\biggr), \end{aligned}$$
(5)

with a=(ABC)1/3 being the average scale factor of Bianchi type I model. In this background, the above field equations can be represented as (Hossienkhani and Pasqua 2014; Saaidi and Hossienkhani 2011; Fayaz et al. 2012, 2013; Fayaz and Hossienkhani 2013)

$$\begin{aligned} &3H^{2}-\sigma^{2}=\kappa^2 \rho_\mathrm{eff}, \end{aligned}$$
(6)
$$\begin{aligned} &3H^2+2\dot{H}+\sigma^{2}=- \kappa^2 p_\mathrm{eff}, \end{aligned}$$
(7)

where ρ eff and p eff are the effective energy density and effective pressure densities respectively, and σ 2 is the shear scalar. The equation of state parameter, ω eff=p eff/ρ eff, can be expressed in terms of the Hubble parameter and shear tensor as

$$ \omega_\mathrm{eff}=-1-\frac{2(\dot{H}+\sigma^{2})}{3H^{2}-\sigma^{2}}. $$
(8)

The corresponding shear scalar, Ricci scalar and Gauss-Bonnet invariant become

$$\begin{aligned} \sigma^{2} =&\frac{1}{3} \biggl(\biggl( \frac{\dot{A}}{A}\biggr)^{2}+ \biggl(\frac{\dot{B}}{B} \biggr)^{2}+\biggl(\frac{\dot{C}}{C}\biggr)^{2} \biggr) \\ &{}-\frac{1}{3} \biggl(\frac{\dot{A}\dot{B}}{AB}+\frac{\dot{B}\dot{C}}{BC}+\frac{\dot{A}\dot{C}}{AC} \biggr), \end{aligned}$$
(9)
$$\begin{aligned} R =&2 \bigl(6H^2+3\dot{H}+\sigma^2 \bigr) \\ =&2\biggl(\frac{\ddot{A}}{A}+\frac{\ddot{B}}{B} +\frac{\ddot{C}}{C}+\frac{\dot{A}\dot{B}}{AB}+ \frac{\dot{B}\dot{C}}{BC}+\frac{\dot{A}\dot{C}}{AC} \biggr), \end{aligned}$$
(10)
$$\begin{aligned} G =&\biggl(\frac{\ddot{A}}{A}\biggr)^2+\biggl( \frac{\ddot{B}}{B}\biggr)^2+\biggl(\frac{\ddot{C}}{C} \biggr)^2+\biggl(\frac{\dot{A}\dot{B}}{AB}\biggr)^2+ \biggl( \frac{\dot{B}\dot{C}}{BC}\biggr)^2 \\ & {}+\biggl(\frac{\dot{A}\dot{C}}{AC} \biggr)^2. \end{aligned}$$
(11)

Using Eqs. (2) and (3), the field equations are given by

$$\begin{aligned} &{}-\frac{1}{\kappa^2} \biggl(\frac{\dot{A}\dot{B}}{AB}+\frac{\dot{B}\dot{C}}{BC}+ \frac{\dot{A}\dot{C}}{AC} \biggr)-24\frac{\dot{A}}{A} \frac{\dot{B}}{B}\frac{\dot{C}}{C} \dot{G}f_{GG} \\ &\quad {}+Gf_G-f+\rho_m=0, \end{aligned}$$
(12)
$$\begin{aligned} &{}+\frac{1}{3\kappa^2} \biggl[2 \biggl(\frac{\ddot{A}}{A}+\frac{\ddot{B}}{B}+ \frac{\ddot{C}}{C} \biggr)+ \biggl(\frac{\dot{A}\dot{B}}{AB}+\frac{\dot{B} \dot{C}}{BC}+ \frac{\dot{A} \dot{C}}{AC} \biggr) \biggr] \\ &\quad {}+\frac{8}{3}\dot{f}_G \biggl(\frac{\dot{A}\ddot{B}}{AB}+\frac{\dot{B}\ddot{A}}{AB}+\frac{\dot{A}\ddot{C}}{AC}+ \frac{\dot{C}\ddot{A}}{AC}+ \frac{\dot{C}\ddot{B}}{C} B +\frac{\dot{B}\ddot{C}}{BC} \biggr) \\ &\quad {}+ \frac{8}{3} \biggl(\frac{\dot{A}\dot{B}}{AB}+\frac{\dot{B}\dot{C}}{BC} +\frac{\dot{A}\dot{C}}{AC} \biggr)\ddot{f}_G+f-Gf_G+p_m=0, \end{aligned}$$
(13)

where dot denotes the first order derivative with respect to t. We take physical assumption for the scale factor A as A=B m=C m, where m≠0,1 (Collins et al. 1980). Note that the Kantowski-Sachs (KS) is recovered by taking B=C. We propose to start with the Bianchi type-I case, from which KS can be recovered. Hubble parameter H, scale factor a and shear scalar σ, for this model are

$$ \begin{aligned} & H=\frac{m+2}{3}\frac{\dot{B}}{B},\qquad a=a_0B^{\frac{m+2}{3}}, \\ &\sigma^2 =\frac{(1-m)^2}{3}\biggl(\frac{\dot{B}}{B}\biggr)^2 =\frac{3(1-m)^2}{(m+2)^2}H^2. \end{aligned} $$
(14)

For the metric (3), the Gauss-Bonnet invariant G and the Ricci scalar R may be defined as functions of the Hubble parameter

$$\begin{aligned} R =&2 \biggl((m+2)\frac{\ddot{B}}{B}+\bigl(1+m+m^2 \bigr) \biggl(\frac{\dot{B}}{B}\biggr)^2 \biggr) \\ =&2 \biggl(3 \dot{H}+\frac{m^2+2m+3}{(m+2)^2}H^2 \biggr), \end{aligned}$$
(15)

and

$$\begin{aligned} G=\frac{648m}{(m+2)^3}H^2\bigl(H^2+\dot{H}\bigr). \end{aligned}$$
(16)

Thus Eqs. (12) and (13) take the form

$$\begin{aligned} &{}-\frac{1}{\kappa^2} \bigl(3H^2-\sigma^2 \bigr)-\frac{648m}{(m+2)^3}H^3\dot{f}_G+Gf_G \\ &\quad {}-f+\rho_m=0, \end{aligned}$$
(17)
$$\begin{aligned} &{}-\frac{96H}{(m+2)^2} \biggl[2(1+4m)\dot{H}+\frac{3(m^2+7m+2)}{m+2}H^2 \biggr]\dot{f}_G \\ &\quad {}+\frac{1}{\kappa^2} \bigl(2 \dot{H}+3H^2+\sigma^2 \bigr)+\frac{8}{3} \bigl(3H^2-\sigma^2\bigr)\ddot{f}_G-f \\ &\quad {}+Gf_G+p_m=0. \end{aligned}$$
(18)

The conservation equation law can be expressed as the standard continuity equation

$$\begin{aligned} \dot{\rho_m}+\theta(\rho_m+p_m)=0, \end{aligned}$$
(19)

where θ is the volume expansion which defines a scale factor a(t) along the fluid flow lines via the standard relation θ=3H. We often consider the case that ρ m and p m satisfy the simple EoS, p m =ωρ m . Then if ω is a constant, Eq. (19) can be easily integrated as

$$ \rho_m=\rho_0a^{-3(1+\omega)}. $$
(20)

3 Exact matter dominant and accelerating power law solutions

Let us now assume there exists an exact power-law solution to the field equations, i.e., the scale factor behaves as: B(t)=B 0 t h, where h is a fixed real number. If 0<h<1, then the requisite power-law solution is decelerating, while for h>1 it is accelerating. Since we know that within the standard paradigm, the expansion history of the Universe underwent a power-law decelerating phase, it is important to study these kinds of exact solutions in our modified gravity models. Hubble parameter H, time-derivative Hubble parameter \(\dot{H}\) and shear scalar σ, for this model are (Hossienkhani and Pasqua 2014; Saaidi and Hossienkhani 2011; Fayaz et al. 2012, 2013; Fayaz and Hossienkhani 2013)

$$ \begin{aligned} & H=\frac{h(m+2)}{3t},\qquad \dot{H}=-\frac{h(m+2)}{3t^2}, \\ & \sigma^{2}=\frac{h^2(1-m)^2}{3t^2}, \end{aligned} $$
(21)

we see that at the beginning of the universe e.g., about Planck time t p =10−43 s σ 2 is very larger of one in the late time e.g., the proceeding inflation, the particle horizon is smaller than the Hubble length, this indicates the Universe is very anisotropic at the early time and when time is growing the shear tensor tends to zero. Hence, it is expected, the anisotropic parameter is disappeared and the universe tends to be isotropic at late time. From the energy conservation equation, we obtain

$$ \rho_m=\rho_0t^{-h(m+2)(1+\omega)}, $$
(22)

and the Ricci scalar and the Gauss-Bonnet term becomes

$$\begin{aligned} R&=\frac{2h}{t^2} \bigl[h\bigl(m^2+2m+3 \bigr)-(m+2) \bigr], \end{aligned}$$
(23)
$$\begin{aligned} G&=\frac{8mh^3(h(m+2)-3)}{t^4}=\chi_{hm}t^{-4}. \end{aligned}$$
(24)

The negative sign of G for all decelerating models is reflected by χ hm <0 for the power-law models with 0<h<1. By substituting (22) and (24) into (17) we obtain the BI equation

$$ \alpha G^2f_{GG}+Gf_G-f-\gamma G^{\frac{1}{2}}+\rho_0 \biggl(\frac{G}{\chi_{hm}} \biggr)^{\epsilon}=0, $$
(25)

where

$$ \begin{aligned} &\alpha =\frac{96mh^3}{\chi_{hm}}, \qquad \gamma=\frac{(1+2m)h^2}{\kappa^2\sqrt{\chi_{hm}}}, \\ &\epsilon =\frac{h(m+2)(1+\omega)}{4}. \end{aligned} $$
(26)

Note that for the power-law solution \(a(t)=a_{0}t^{\frac{h(m+2)}{3}}\), G/χ hm is positive all the time by definition (24), and therefore Eq. (25) is real-value over the range of G. Solving Eq. (25) get the f(G)-gravity as

$$\begin{aligned} f(G) =&-\frac{1+2m}{3+h(m+2)}\sqrt{\frac{h(-3+h(m+2))}{2m\kappa^4}}G^{\frac{1}{2}} \\ &{}+C_1G+C_2G^{-\frac{1}{\alpha}}-A_{hm\omega}G^{\epsilon}, \end{aligned}$$
(27)

where

$$ A_{hm\omega}= \frac{4\rho_0(8mh^3)^{-\epsilon} ((h(m+2)-3) )^{1-\epsilon}}{ [-4+h(m+2)(1 +\omega) ] [-3+h(m+2)(4+3\omega) ] }, $$
(28)

and C 1 and C 2 are arbitrary constants of integration. This solution is in agreement with the one obtained in Goheer et al. (2009) and, as is explained there, we can without any lost of generality assume the constants C 1=C 1=0. Hence, the required form of the function f(G) becomes

$$\begin{aligned} f(G) =&-\frac{1+2m}{3+h(m+2)}\sqrt{\frac{h}{2m\kappa^4}\bigl(-3+h(m+2) \bigr)}G^{\frac{1}{2}} \\ &{}-A_{hm\omega}G^{\epsilon}. \end{aligned}$$
(29)

We note that the above form of f identically satisfies the other field equations, if we similarly transform them as differential equations in G space. First, we note that a real-value solution for f(G) requires the values h and m. It has been seen that isotropic universe, σ=0 or m=1, Eq. (29) reduces to

$$\begin{aligned} &f(G)=-\frac{1}{1+h}\sqrt{\frac{3h}{2\kappa^4}(-1+h)}G^{\frac{1}{2}} -A_{h\omega}G^{\frac{3}{4}h(1+\omega)}, \end{aligned}$$
(30)
$$\begin{aligned} &A_{h\omega}=\frac{\rho_0(h-1) (24h^3(h-1) )^{-\frac{3}{4}h(1+\omega)}}{1+h [\frac{13}{4}+\frac{9}{4}\omega+3h(1+\omega) (1+\frac{3}{4}\omega) ]}. \end{aligned}$$
(31)

The case h=1 and m=1 leads to G=0 and R=6/t 2 which is the general relativity limit. The coefficient A hmω are real-values and non-zero unless h=1 and m=1, in which case a(t)∝t. In general, the function f(G) is real-value only if G/χ hm >0, which is satisfied based on the exact power law solution. According to (22), it is readily seen by taking h=2/[(m+2)(1+ω)] the f(G) reduce to general relativity, and taking h=1 and m=1 the equation of state parameter is fixed by ω=−1/3 which accounts for a negative pressure but not still an accelerating Universe. The case h>1, leads to a nonzero real Gauss-Bonnet term G and a positive Ricci scalar R. However, in order to avoid divergence in the Gauss-Bonnet term we have to keep h, m and ω far away from the values in which A hmω diverges according to the following equation

$$ \bigl[-4+h(m+2) (1+\omega) \bigr] \bigl[-3+h(m+2) (4+3\omega) \bigr]=0 $$
(32)

In this case, taking h>1 and m>1 predicts an accelerating universe. The evolution of the EoS parameter obtained in (32), is plotted in Fig. 1. Thus, power-law solutions time dependent type a(t)=a 0 t h(m+2)/3 or H=h(m+2)/3t held for the actions, that are as [R+f(G)+L m ] with f(G) given by (27) except for its values of h and m which satisfy (32). It is interesting to note that an exact GR-like solution h=2/[(m+2)(1+ω)] is possible with non-zero C 2 for \(f(G)=C_{2}G^{\frac{12(1+\omega)}{1+3\omega}}\) for values of ω for which f(G) is real-valued. Using (22) the effective EoS for this model is obtained as

$$ \omega_\mathrm{eff}=-1-\frac{2[-2-m+h(1-m)^2]}{3h(1+2m)}, $$
(33)

which is less than −1 if h>1 and m>1, which corresponds to phantom era. In the phantom phase, the Big Rip type singularity at t=t s might occur. Near the Big Rip singularity, however, the curvature becomes dominant and f(G)-term may be neglected. Then the universe expands as a=a 0 t 2/(m+2)(1+ω). Hence, the Big Rip singularity eventually does not occur.

Fig. 1
figure 1

The evolution of the EoS parameter in f(G)-gravity model, Eq. (32), versus h and m

4 Exact phantom phase power low solution

One may also study the power law solutions where the universe enters a phantom phase in which equation of state (EoS) is smaller than −1, leading to a Big Rip singularity. For this case, the general set of Hubble parameters, shear scalar and cosmological solutions are defined as (Hossienkhani and Pasqua 2014; Saaidi and Hossienkhani 2011; Fayaz et al. 2012, 2013; Fayaz and Hossienkhani 2013)

$$\begin{aligned} & a(t) = a_0(t_s-t)^{-\frac{h(m+2)}{3}}, \quad t\leq t_s, \end{aligned}$$
(34)
$$\begin{aligned} & H = \frac{h(m+2)}{3(t_s-t)},\qquad \dot{H}=\frac{h(m+2)}{3(t_s-t)^2}, \end{aligned}$$
(35)
$$\begin{aligned} & \sigma^2 = \frac{1}{3} \biggl( \frac{ h (1-m)}{(t_s-t)} \biggr)^{2}. \end{aligned}$$
(36)

Considering the era when phantom phase is dominated i.e., ω<−1, and the smaller redshift, e.g., z≃0.25. It is clear Eq. (34) has a Big Rip singularity at t=t s with \(\dot{H}>0\), is that a(t)→∞. The model is shown that an escape from the Big Rip is possible on making quantum corrections to energy density ρ and pressure p in Bianchi type I space-time. when tt s , so the scale factor will diverge for a future value on the world time: t s and only 0<t<t s is considered due to the fact that H should be real number. Again, using the above solution and working out the analogous calculations we obtain the following results

$$\begin{aligned} &\rho_m = \rho_0(t_s-t)^{h(m+2)(1+\omega)}, \end{aligned}$$
(37)
$$\begin{aligned} &G = \frac{8mh^3(h(m+2)+3)}{(t_s-t)^4}=\chi'_{hm}(t_s-t)^{-4}, \end{aligned}$$
(38)
$$\begin{aligned} &\dot{G} = \frac{32mh^3(h(m+2)+3)}{(t_s-t)^5}=4\chi'_{hm}(t_s-t)^{-5}, \end{aligned}$$
(39)
$$\begin{aligned} &R = \frac{2h}{(t_s-t)^2} \bigl[h\bigl(m^2+2m+3\bigr)+(m+2)\bigr]. \end{aligned}$$
(40)

Substituting (37), (38) and (39) into the first BI equation (17) we obtain

$$ -\alpha' G^2f_{GG}+Gf_G-f- \gamma' G^{\frac{1}{2}}+\rho_0 \biggl( \frac{G}{\chi'_{hm}}\biggr)^{\epsilon}=0, $$
(41)

where

$$ \alpha' =\frac{96mh^3}{\chi'_{hm}}, \qquad \gamma'=\frac{(1+2m)h^2}{\sqrt{\chi'_{hm}}}. $$
(42)

Therefore its solution is obtained by using the same way in (27) as

$$\begin{aligned} f(G) =& -\frac{1+2m}{3-h(m+2)}\sqrt{\frac{h(3+h(m+2))}{2m\kappa^4}}G^{\frac{1}{2}} \\ &{}+C'_1G+C_2G^{\frac{1}{\alpha'}}+A'_{hm\omega}G^{-\epsilon}, \end{aligned}$$
(43)

where

$$ A'_{hm\omega}=\frac{4\rho_0(8mh^3)^{\epsilon} [(h(m+2)+3) ]^{1+\epsilon}}{ [4+h(m+2)(1+\omega)] [3+h(m+2)(4+3\omega) ]}. $$
(44)

Similar to the solutions in the previous section, we assume \(C'_{1} = C'_{2} = 0\). Then, the required form of the function f(G) becomes

$$\begin{aligned} f(G) =&-\frac{1+2m}{3-h(m+2)}\sqrt{\frac{h(3+h(m+2))}{2m\kappa^4}} G^{\frac{1}{2}} \\ &{}+A'_{hm\omega}G^{-\epsilon}. \end{aligned}$$
(45)

Actually, h>0 leads to a real values function f(G) according to (43). However, demanding a Big Rip that may be during the phantom phase, as the cosmic time t approaches t s , requires h≥1 in (34). However, h=1 and m=1 causes a divergence in f(G) through the first term of (43) in the bracket. Moreover, the Gauss-Bonnet term diverges through \(A'_{hm\omega}\) for its value of m which the following equation is satisfied

$$ \bigl(4+h(m+2) (1+\omega) \bigr) \bigl(3+h(m+2) (4+3\omega) \bigr)=0. $$
(46)

For h>1 and m>1 one can find the EoS parameter (46) corresponds to the phantom phase regime in which ω<−1. The evolution of the EoS parameter obtained in Eq. (46), is plotted in Fig. 2. Therefore, power-law solutions in the phantom phase of the type a(t)=a 0(t s t)h(m+2)/3 exist for the actions, that is as [R+f(G)+L m ] with f(G) given by (43) except for its values of h and m which satisfy (46).

Fig. 2
figure 2

The evolution of the EoS parameter, Eq. (46), versus h and m

5 De Sitter solutions

de Sitter solutions are well known in the context of cosmology because the current epoch, where in the Universe expansion is being accelerated, can be described approximately with a de Sitter solution. This kind of solution consists of an exponential expansion of the scale factor, which yields a constant Hubble parameter. This kind of solutions consists on an exponential expansion of the scale factor, which yields a constant Hubble parameter. Astrophysical data indicate that ω lies in a very narrow strip close to ω→−1. In the case of Bianchi type-I and Kantowski-Sachs metrics (B=C) in (3), we may assume an exponential expansion for each spatial direction,

$$\begin{aligned} A(t)=A_0e^{\varLambda m t}, \qquad C(t)=B(t)=B_0e^{\varLambda t}, \end{aligned}$$
(47)

and the rates of the expansion for each direction can be defined as,

$$\begin{aligned} H_{x}&=\frac{\dot{A}}{A}=H_{x0},\qquad H_{y}=\frac{\dot{B}}{B}=H_{y0},\qquad H_{z}= \frac{\dot{C}}{C}=H_{z0}, \end{aligned}$$
(48)

where H x0= and H y0=H z0=Λ are constants. The Gauss-Bonnet invariant defined in (11) is given by,

$$\begin{aligned} G=H^4_{x0}+2H^4_{y0}+H^2_{y0}+2H_{x0}H_{y0}. \end{aligned}$$
(49)

Then, by assuming p x =p y =p z =p and an equation of state p=ωρ, the conservation equation can be easily solved for the ansatz (47),

$$\begin{aligned} \rho_m=\rho_{0}e^{(H_{x0}+2H_{y0})(1+\omega)t}. \end{aligned}$$
(50)

Hence, the field equations (12) become,

$$\begin{aligned} &Gf_{G}-f(G)-\frac{1}{\kappa^2} \bigl(H^2_{y0}+2H_{x0}H_{y0} \bigr) \\ &\quad {}+\rho_{0}e^{(H_{x0}+2H_{y0})(1+\omega)t}=0. \end{aligned}$$
(51)

Note that the only possible solution in the presence of a perfect fluid is one with ω=−1 as the r.h.s. of Eq. (51) is independent of time, according to the expression of the Gauss-Bonnet invariant for a pure de Sitter solution (49), unless H x0+2H y0=0, which would imply a decelerating expansion in a particular direction, being H i0<0. Moreover, for a particular f(G) action, the system of Eq. (51) reduces to an algebraic system of equations for the variables H x0,H y0,H z0. In the case of BI, (3) and (47), we consider the following form of the scale factor:

$$\begin{aligned} a=a_0e^{\frac{\varLambda(2+m)}{3}}, \end{aligned}$$
(52)

where a 0 is a constant parameter indicating the present day value of a(t), i.e. the value of the scale factor for t=0.

Using the de Sitter scale factor and Eq. (14), we get:

$$ \begin{aligned} & H= H_0=\frac{\varLambda(2+m)}{3}, \quad \dot{H}=0, \\ &\sigma^2 =\frac{ \varLambda^{2} (1-m)^{2}}{3}. \end{aligned} $$
(53)

For large H 0 t the general solution approaches the isotropic de Sitter solution. This solution describes a Universe model entering the inflationary era at t=(2H 0)−1=10−35 sec as an anisotropic Universe, and terminating this era at t=1.3×10−33 sec as an isotropic de Sitter Universe. The mean expansion anisotropy has decreased during the inflationary era. So, can concluded that a Universe with a large amount of anisotropy will not undergo the inflationary phase. A Universe with only moderate anisotropy will undergo inflation and will be rapidly isotropized. We now want to evaluate the form of f(G) for each of the scale factor mentioned above in the Bianchi type I models. From Eq. (8), we observe that \(\omega_{\mathrm{eff}}=-1-\frac{2}{3} \frac{1+m^{2}-2m}{1+2m}\) for sufficiently large time t. Note that in the same way, one can construct f(G) action describing other epoch remembering that form of modified gravity is different for different epochs (the inflationary epoch action is different from the form at late-time universe). Moreover, we can determine the expressions of ρ m , R and G, respectively, as:

$$\begin{aligned} & \rho_m=\rho_0e^{\varLambda(m+2)(1+\omega)t}, \end{aligned}$$
(54)
$$\begin{aligned} & R=2\varLambda^2\bigl(m^2+2m+3\bigr), \end{aligned}$$
(55)
$$\begin{aligned} & G=8m(m+2)\varLambda^4. \end{aligned}$$
(56)

Note that the only possible solution in the presence of a perfect fluid is one with ω=−1 as Eq. (54) is independent of time, so, ρ m is a constant. Substituting Eqs. (53), (54) and (56) into (51), we obtain:

$$\begin{aligned} Gf_{G}-f(G)-\frac{(1+2m)}{\kappa^2\sqrt{8m}(m+2)}G^{\frac{1}{2}}=0, \end{aligned}$$
(57)

the solution of Eq. (57) is

$$\begin{aligned} f (G )=C_1 G-\frac{(1+2m)}{\kappa^2\sqrt{2m}(m+2)}\sqrt{G}, \end{aligned}$$
(58)

where C 1 is integrating constant. Thus, we see that models corresponding to the inflation and the late time accelerated Universe can be reconstructed within KS metrics where the matter content is partially isotropic (p x =p y =p z ).

6 The stability issue

The stability issue of a large class of modified gravitational models has been discussed with particular emphasis to de Sitter solutions (Capozziello et al. 2006; Cognola et al. 2005, 2008; Cognola and Zerbini 2006; Faraoni 2005a, 2005b). When ρ m =0, Eq. (12) has a de Sitter Universe solution where H and therefore G are constants. If H=H 0 with constant H 0, Eq. (12) looks as

$$ G_0f'_0-f_0=3H^2_0- \sigma_0^2, $$
(59)

it has been seen that isotropic Universe, σ 0=0 or m=1, (59) reduces to (Nojiri and Odintsov 2005)

$$ G_0f'_0-f_0=3H^2_0. $$
(60)

For a large number of choices of the function f(G), Eq. (59) has a non-trivial (H 0≠0) real solution for H 0 (de Sitter Universe). The stability issue leads to the following condition (Cognola et al. 2005, 2008; Cognola and Zerbini 2006)

$$ R_0^3f_0''< 9, $$
(61)

where the critical points are defined by

$$ \begin{aligned} & R_0=\frac{18(m^2+2m+3)}{(m+2)^2}H^2_0, \\ &\sigma_0=\frac{3(1-m)^2}{(m+2)^2}H_0^2, \\ & G_0=\frac{648m}{(m+2)^3}H^4_0, \end{aligned} $$
(62)

in the case of phantom phase power law solution, namely (45), the first condition reads as

$$\begin{aligned} &A_{hm\omega} \biggl(\frac{1+\frac{1}{4}h(m+2)(1+\omega)}{1+2m} \biggr) G^{-\frac{1}{4}h(m+2)(1+\omega)-\frac{1}{2}} \\ &\qquad {}+\frac{1}{2(3-h(m+2))}\sqrt{\frac{h(3+h(m+2))}{2m\kappa^4}} \\ &\quad =\sqrt{\frac{1}{8m(m+2)}}, \end{aligned}$$
(63)

which implies that

$$ A_{hm\omega} \biggl(1+\frac{1}{4}h(m+2) (1+\omega) \biggr)>0. $$
(64)

By using (64), the second condition (61) reads as

$$\begin{aligned} &-\frac{h(m+2)(1+2m)(1+\omega)(m^2+2m+3)^3}{8(2m(m+2))^{\frac{3}{2}}} \\ &\quad {}\times \biggl(\frac{1}{\sqrt{2m(m+2)}}- \frac{\sqrt{\frac{h(3+h(m+2))}{2m\kappa^4}}}{3-h(m+2)} \biggr) \\ &\quad {}+\frac{(1+2m)(m^2+2m+3)^3}{16m^2(3-h(m+2))(m+2)^{\frac{3}{2}}} \\ &\quad {}\times \sqrt{h \bigl(3+h(m+2)\bigr)}< 9. \end{aligned}$$
(65)

Then, the model is stable around de Sitter solution if the arbitrary parameters also satisfy both the conditions (64) and (65).

7 Conclusion

The expansion history of the Universe is thought to have undergone a phase of decelerated power-law expansion followed by late time acceleration. Therefore, power-law solutions play an important role in cosmology as matter dominated phases that later connect to an accelerating phase.

We have considered an f(G) action which describes Einstein’s gravity added with a function of the Gauss-Bonnet term in Bianchi type I space-time. A f(G) function corresponding with power law solutions for given scale factor are calculated. Then, it was shown that exact power-law solutions in f(G) gravity only exist for the very special class of models given in (29) and (45). We have derived the gravitational field equations for perfect fluid corresponding to f(G) gravity model. It have been considered three specific f(G) models which are important to describe the late time cosmic acceleration and avoid from the finite time future singularities. The First model have been obtained the field equations using the power-law solution of the type a=a 0 t h(m+2)/3. In the second model we have studied, the Universe enters a phantom phase, is that, EoS, ω<−1, given to, the power-law solutions. It is shown that the power-law solution in the phantom phase, with scale factor as a(t)=a 0(t s t)h(m+2)/3 there exists for this f(G) except for its values of h and m in which function diverges. In dS solutions, where the scale factor is an exponential function of the cosmic time, has been considered for Bianchi type-I metric by imposing a particular exponential expansion in each direction of the space. We have shown that the only possible solution turns out to the FLRW metric, such that no possible dS anisotropic evolution can be found in f(G), unless one considers an anisotropic fluid. In the case, we shown that the model can realize the early accelerated Universe, characterized by the inflation, and the late time acceleration of our current Universe. The stability issue was studied in f(G) gravity and it was concluded that the model is stable around de Sitter solution. It is interesting to mentioned here that for σ=0 or m=1, the results reduce to FRW Universe model.