1 Introduction

Modern cosmology has passed through a remarkable transition from speculative science to an experimental one in recent years. This is mostly due to the high precision observations like Supernova Ia, Baryon Acoustic Oscillations (BAO), Cosmic Microwave Background (CMB) measurements etc. [1,2,3,4,5,6], which have imposed tight constraints on the theoretical models. Cosmological and astronomical observations predict that the present universe is passing through an accelerated phase of expansion. The accelerating nature of the universe along with the issue of dark matter are two of the most challenging problems in modern cosmology. The standard model of cosmology can explain this accelerated phase of expansion of the universe by introducing a cosmological constant \((\varLambda )\) [7,8,9,10]. The \(\varLambda \) cold dark matter (\(\varLambda \)CDM) model is the most successful model to describe the dark energy (DE) era. Although the model is fairly compatible with the cosmic microwave background data, the existence of both the constituents of the model are in question. Recent observations have further established the fact that the expansion rate of the universe based on local data is different in comparison to the expansion rate which the universe had in the past based on the cosmic microwave background data, an issue known as the Hubble tension [11,12,13,14,15]. The \(\varLambda \)CDM model also suffers from the serious problem of fine tuning [16].

An alternative approach is to modify the geometrical sector of the Einstein field equations (EFE) to fit the missing matter-energy content of the observed universe. Various modified theories of gravity have been considered in the literature [17,18,19,20,21,22,23,24,25,26] to describe the evolution of the universe. Such theories can provide a successful description of the late time DE dominated era and can also explain the early inflation [27] with different coupling parameters. A large class of works in modified gravity consider higher order curvature invariants in the Einstein–Hilbert action which leads to curvature based f(R) gravity formalisms [28]. Other modified theories of gravity have also been proposed such as \(f({\mathcal {T}})\) models [29,30,31], and \(f({{\mathcal {G}}})\) gravity [32], etc. Such modified theories offer several possibilities for theoretical descriptions of cosmology and astrophysics in conformity with observations.

The DE era of the universe has been widely modeled through the f(R) theory of gravity. In f(R) gravity models the modifications to general relativity (GR) appear naturally in the low energy limit of the effective actions [33] of promising candidates of quantum gravity, such as superstring theory. The advantage of f(R) theory of gravity lies in the fact that these models are conformally related to GR with a self-interacting scalar field and can unify both early inflation and the late time acceleration of the universe [34, 35]. In fact, the inflationary cosmological scenario was first obtained by Starobinsky [27] in a higher derivative theory of gravity. Cosmological models can be constructed in the f(R) theory of gravity following two different approaches, viz., the Palatini approach where the field equations are second-order differential equations [36,37,38,39], and the metric variational approach where the field equations are of fourth order [40]. Different functional forms of f(R) have been considered to study cosmological and astrophysical scenarios [41,42,43,44,45,46,47,48]. Solar system tests are implemented to check the viability of these models [49,50,51,52,53,54]. However, it may be noted that a cosmological model which fails the solar system test can admit the present accelerating universe. These local tests can thus be bypassed in favor of an independent test at a cosmological scale [55,56,57,58,59].

Recently, a particular class of cosmological models have received attention, where the cosmic fluid components interact with each other via energy exchange [60,61,62,63,64]. Interacting cosmologies are interesting because of their physical as well as mathematical properties. Interactions are introduced in several cosmological scenarios to obtain a complete description of the universe. The cosmic matter sector may possess multiple interacting components as shown in case of M theory, inflationary models and also in case of the accelerating universe [65,66,67,68,69,70]. The cosmic fluid components violate the energy conservation equation individually, but the total energy density remains conserved. It should be pointed out here that the role of interaction is not to explain the current accelerating phase of the universe, rather, it could provide a plausible solution of the cosmic coincidence problem. In the literature a number of authors have investigated this issue [71,72,73,74,75,76,77,78,79,80]. The addition of interaction among the dark components of the universe can also help alleviate the tension on the local Hubble constant [81, 82].

In this work the dynamics of late type evolution of the universe is studied in the framework of \(f(R,{{\mathcal {G}}})\) gravity with interacting components. We consider an exponential form of interaction to study the effect of the interaction parameter on the dynamics of evolution, as it is the simplest generalization of the usual linear interaction forms [83]. The gravitational action has a Gauss–Bonnet (GB) term coupled to a scalar field. Einstein–Gauss–Bonnet theory can provide a viable description of the dynamics of the early universe as well as the late time era. In the usual four-dimensional framework, the GB terms do not contribute to the dynamics of the universe, however, when coupled with a scalar dilaton field in the gravitational action, they can significantly alter the phenomenology of the universe evolution. (For a detailed review of GB cosmology see Refs. [84,85,86,87,88]). In the present analysis, we investigate the dynamics of an interacting cosmological model of f(R) gravity with a GB term. We further analyze the viability of our model against the backdrop of recent observational data.

The paper is organised as follows: in Sect. 2, we obtain the field equations in f(R) gravity coupled to a GB term. The cosmological parameters to probe the Universe are also obtained. In Sect. 3, we consider interaction among the cosmic fluid components, namely the non-relativistic matter sector which includes dark matter, and the dark energy. The conservation equation is rewritten incorporating the interaction terms. In Sect. 4, we obtain cosmological models in the framework of two different modified theories of gravity and investigate the late time evolution of the universe. In Sect. 5, we probe our model with the observed data of type Ia supernovae (UNION 2.1 data) and obtain the constrain on the model parameters. Finally in Sect. 6 we summarize the results obtained followed by a brief discussion.

2 Background of f(R)-modified gravity with Gauss–Bonnet terms

In this section we describe the basic features of f(R)-modified gravity coupled with the Gauss–Bonnet (GB) terms in presence of a scalar dilaton field. The modified action in this case in \((3+1)\) dimensions is given by [89],

$$\begin{aligned} S= & {} \int {d}^{4}x\sqrt{-g}\Bigg (\frac{1}{2\kappa ^{2}}f(R) -\frac{1}{2}g^{\mu \nu }\partial _{\mu }\phi \partial _{\nu }\phi \nonumber \\{} & {} -V(\phi )-\xi (\phi ){{\mathcal {G}}}+L_{m}\Bigg ), \end{aligned}$$
(1)

where R denotes the Ricci scalar, \(\kappa =\frac{1}{M_{P}}\) is the gravitational constant with \(M_{P}\) being the reduced Planck mass, \(V(\phi )\) is the potential associated with the scalar field, and \(\xi (\phi )\) is the Gauss–Bonnet coupling function which depends on the dilaton field. The Gauss–Bonnet invariant is given by \({{\mathcal {G}}}=R^{2}-4R_{\mu \nu }R^{\mu \nu }+R_{\mu \nu \sigma \rho }R^{\mu \nu \sigma \rho }\) where \(R_{\mu \nu }\) and \(R_{\mu \nu \sigma \rho }\) are the Ricci and Riemann curvature tensors respectively. The matter Lagrangian corresponding to both relativistic and non-relativistic perfect fluids is denoted by \(L_{m}\). The dynamics of evolution of the universe depends significantly on the functional form of the f(R)-modified gravity. To describe the background spacetime geometry we consider a flat Friedmann–Robertson–Walker (FRW) metric in this study. The line element is given by,

$$\begin{aligned} ds^{2}=-dt^{2}+a(t)^{2}\delta _{ij}dx^{i}dx^{j} \end{aligned}$$
(2)

with a(t) being the scale factor of the universe. For the chosen background geometry, the Ricci scalar and the Gauss–Bonnet invariant can be expressed as, \(R=6(2H^{2}+\dot{H})\) and \({\mathcal {G}}=24H^{2}(H^{2}+\dot{H})\), where the overdot (“\(^{.}\)”) denotes differentiation with respect to cosmic time t and \(H=\frac{\dot{a}}{a}\) is the Hubble parameter. The scalar field is assumed to be homogeneous which depends only on the cosmic time.

Variation of the gravitational action with respect to the metric tensor \((g_{\mu \nu })\) and the scalar field \((\phi )\) leads to the field equations for the gravitational sector as well as the scalar field given by,

$$\begin{aligned}{} & {} H^{2}=\frac{k^{2}}{3f_{R}}\Bigg (\rho +\frac{1}{2}\dot{\phi }^{2}+V(\phi )\Bigg )\nonumber \\{} & {} \quad +\frac{f_{R}R-f}{6f_{R}}-\frac{H\dot{f_{R}}}{f_{R}}+ \frac{8\kappa ^{2}\dot{\xi }H^{3}}{f_{R}}, \end{aligned}$$
(3)
$$\begin{aligned}{} & {} \dot{H}=-\frac{\kappa ^{2}}{2f_{R}}\Big (\rho +P+\dot{\phi }^{2}\Big )-\frac{\ddot{f_{R}}-H\dot{f_{R}}}{2f_{R}}+\frac{8\kappa ^{2}\dot{\xi }H\dot{H}}{f_{R}}, \end{aligned}$$
(4)
$$\begin{aligned}{} & {} V_{\phi }+\ddot{\phi }+3H\dot{\phi }=\xi _{\phi }{\mathcal {G}}, \end{aligned}$$
(5)

where, \(\rho \) and P denote the matter density and pressure of the cosmic fluid respectively and the suffix \(\phi \) represents derivative w.r.t. scalar field \(\phi \), also \(f_{R}=\frac{\partial f}{\partial R}\). We assume that the cosmic fluid is composed of two different type of fluids, namely non-relativistic matter which is composed of baryons, leptons as well as cold dark matter (CDM) and relativistic matter components which is mainly composed of photons and neutrinos. Therefore the total energy density and pressure of the cosmic fluid are taken as,

$$\begin{aligned}{} & {} \rho =\rho _{1}+\rho _{r} \end{aligned}$$
(6)
$$\begin{aligned}{} & {} P=\sum _{i}\omega _{i}\rho _{i} \end{aligned}$$
(7)

where, \(\rho _{r}=\zeta \rho _{2}\) and \(\rho _{1}\), \(\rho _{2}\) are the energy densities of the fluids, \(\zeta =\frac{\rho _{20}}{\rho _{0}}\) with \(\rho _{20}\) being the current density of relativistic matter, \(\rho _{0}\) is the present value of energy density for non-relativistic matter and \(\omega _{i}\) is the equation of state (EoS) parameter for the ith fluid. Though the present energy density for radiation is almost negligible, in order to probe the evolution of the universe for a modest fractional value of the radiation we consider the second term in Eq. (6).

The evolution of the universe can be better visualized in terms of the redshift parameter z which can be measured for different cosmological sources. Thus, to study the late time evolution of the universe we substitute cosmic time t by the redshift parameter (z) with late time universe being represented by low redshifts close to zero. The scale factor of the universe then becomes,

$$\begin{aligned} a(t)=\frac{1}{1+z} \end{aligned}$$
(8)

where the present size of the universe \((a_{0})\) is assumed to be unity. We also replace the time derivative by the derivative w.r.t. the redshift parameter (z) as,

$$\begin{aligned} \frac{d}{dt}\equiv -H(1+z)\frac{d}{dz}. \end{aligned}$$
(9)

Using Eq. (9) all the time derivatives can be replaced by the derivatives with respect to z and we obtain the following relations:

$$\begin{aligned}{} & {} \ddot{H}=-H(1+z)H' \end{aligned}$$
(10)
$$\begin{aligned}{} & {} \dot{\phi }=-H(1+z)\phi ' \end{aligned}$$
(11)
$$\begin{aligned}{} & {} \ddot{\phi }=H^{2}(1+z)^{2}\phi ''+H^{2}(1+z)\phi '+HH'(1+z)^{2}\phi ' \end{aligned}$$
(12)
$$\begin{aligned}{} & {} \dot{f_{R}}=\dot{R}f_{RR}+\dot{\phi }f_{R\phi } \end{aligned}$$
(13)
$$\begin{aligned}{} & {} \dot{R}=6H(1+z)^{2}(HH''+(H')^{2}-\frac{3HH'}{1+z}. \end{aligned}$$
(14)

These relations will be used to rewrite the field equations obtained earlier.

We recast the field Eqs. (3) and (5) in the following form,

$$\begin{aligned} H^{2}= & {} \frac{\kappa ^{2}}{3f_{R}}\Bigg (\rho +\frac{1}{2}\dot{\phi }^{2}+V(\phi )\Bigg )\nonumber \\{} & {} +\frac{f_{R}R-f}{6f_{R}}-\frac{H\dot{f_{R}}}{f_{R}}- \frac{8\kappa ^{2}(1+z)\xi 'H^{4}}{f_{R}}, \end{aligned}$$
(15)
$$\begin{aligned}{} & {} V_{\phi }+\ddot{\phi }+3H\dot{\phi }=\xi _{\phi }{\mathcal {G}} \end{aligned}$$
(16)

where the “prime” \((')\) denotes differentiation with respect to the redshift parameter (z). We have rewritten only two of the three field equations as these two equations will be sufficient to describe the dynamics of the evolution of the late universe. To study the cosmological behaviour of the model we now define a new density parameter as [89,90,91,92,93,94],

$$\begin{aligned} \varOmega _{H}=\frac{\rho _{DE}}{\rho _{0}}, \end{aligned}$$
(17)

where \(\rho _{DE}\) denotes the DE density. The parameter \(\varOmega _{H}\) will be used to investigate the evolution of the universe and the nature of DE. Instead of using Hubble rate and its derivatives to quantify the cosmological evolution we will use \(\varOmega _{H}\) to study evolution of the universe. The dark energy density in this case is assumed to be composed of all the geometric terms arising in the Friedmann equation and can be expressed as,

$$\begin{aligned} \rho _{DE}=\frac{1}{2}\dot{\phi }^{2}+V+\frac{f_{R}R-f}{2\kappa ^{2}}- \frac{3H\dot{f_{R}}}{\kappa ^{2}}+24\dot{\xi }H^{3}+\frac{3H^{2}}{\kappa ^{2}}(1-f_{R}). \end{aligned}$$
(18)

One may reproduce the usual forms of the Friedmann equations of GR using Eqs. (18), (3) and (4) which are given by,

$$\begin{aligned}{} & {} H^{2}=\frac{\kappa ^{2}}{3}\Big (\rho +\rho _{DE}\Big ) \end{aligned}$$
(19)
$$\begin{aligned}{} & {} \dot{H}=-\frac{\kappa ^{2}}{2}\Big (\rho +P+\rho _{DE}+P_{DE}\Big ) \end{aligned}$$
(20)

where, \(P_{DE}\) represents the pressure corresponding to the dark energy component. The Hubble rate can be expressed in terms of the density parameter \(\varOmega _{H}\) as,

$$\begin{aligned} H^{2}=m_{s}^{2}\Bigg [y_{H}(z)+\frac{\rho }{\rho _{0}}\Bigg ] \end{aligned}$$
(21)

where, \(m_{s}^{2}=\kappa ^{2}\frac{\rho _{0}}{3}=1.87101\times 10^{-67}\).

Taking the derivatives of the above expression with respect to the redshift parameter (z) we get,

$$\begin{aligned}{} & {} HH'=\frac{m_{s}^{2}}{2}\Bigg (y_{H}'(z)+\frac{\rho '}{\rho _{0}}\Bigg ), \end{aligned}$$
(22)
$$\begin{aligned}{} & {} H'^{2}+HH''=\frac{m_{s}^{2}}{2}\Bigg (y_{H}''(z)+\frac{\rho ''}{\rho _{0}}\Bigg ), \end{aligned}$$
(23)

which will be used to formulate the cosmological parameters. To study the late time evolutionary behaviour of the universe one has to solve the field equations (15) and (16). The equations are highly non-linear, so we adopt numerical techniques to solve them with respect to the density parameter \(\varOmega _{H}\) and scalar field \(\phi \). The evolutionary behaviour of different cosmological parameters will be plotted here with the redshift (z) for two different models. To differentiate between different DE models quantitatively, a geometrical analysis called statefinder diagnostic was proposed by Sahni et al. [95]. To study the nature of DE we define the equation of state (EoS) parameter \(\omega _{DE}\) and the density parameter \(\varOmega _{DE}\) with respect to z and \(\varOmega _{H}\) as [89],

$$\begin{aligned} \omega _{DE}=-1+\frac{1+z}{3}\frac{dlny_{H}}{dz}\quad \varOmega _{DE}=\frac{y_{H}}{y_{H}+\frac{\rho }{\rho _{0}}}. \end{aligned}$$
(24)

However for a complete understanding of the cosmological evolution one has to determine the following parameters,

$$\begin{aligned} q= & {} -1-\frac{\dot{H}}{H^{2}},\quad j=\frac{\ddot{H}}{H^{2}}-3q-2,\nonumber \\ s= & {} \frac{j-1}{3(q-\frac{1}{2})},\quad Om(z)=\frac{(\frac{H}{H_{0}})^{2}-1}{(1+z)^{3}-1}, \end{aligned}$$
(25)

where q is the deceleration parameter, j is the jerk parameter, s is the snap parameter and Om(z) is the Om parameter. In this work we consider an interacting cosmic fluid model where the transfer of energy from one sector to another begins at time \(t=t_{i}\), when the interactions originate among the different cosmic fluid components which will be considered in the following section.

3 Conservation equations for interacting fluids

We consider an interacting cosmic fluid scenario where the dark energy interacts with the non-relativistic matter sector. The relativistic particles do not take part in the interactions. The interaction is assumed to originate at a later epoch. Such interactions may originate due to a variety of mechanisms during particular eras. In case of various scalar field models of DE, such as quintessence or k-essence, phase transitions arise during several cosmological epochs, which result in decay of the cosmological vacuum energy as well as particle production. For the FLRW line element considered above, the conservation equations with interactions can be written as [60,61,62,63,64]:

$$\begin{aligned}{} & {} \dot{\rho _{1}}+3H(\rho _{1}+P_{1})=-Q \end{aligned}$$
(26)
$$\begin{aligned}{} & {} \dot{\rho _{DE}}+3H(\rho _{DE}+P_{DE})=Q \end{aligned}$$
(27)

where, \(\rho _{1}\), \(P_{1}\) and \(\rho _{DE}\), \(P_{DE}\) are the energy density and pressure corresponding to the non-relativistic matter and dark energy, respectively. Here Q represents the interaction strength which may assume arbitrary forms. Depending on the sign of Q one can determine the direction of energy flow between the two components. When \(Q>0\), energy flows from the non-relativistic matter sector to the dark energy sector, whereas \(Q<0\) corresponds to the energy loss from the dark energy sector. It is evident from Eqs. (26) and (27) that although the individual fluids violate the conservation equations the total energy density of satisfies the conservation equation together. One can construct an equivalent uncoupled set of energy conservation equations as [96]:

$$\begin{aligned}{} & {} \dot{\rho _{1}}+3H(1+\omega _{1}^{eff})\rho _{1}=0 \end{aligned}$$
(28)
$$\begin{aligned}{} & {} \dot{\rho _{DE}}+3H(1+\omega _{DE}^{eff})\rho _{DE}=0, \end{aligned}$$
(29)

i.e.,

$$\begin{aligned} \sum _{i=1}^{3} \Big [\rho _{i}+3H(1+\omega _{i}^{eff})\rho _{i}\Big ]=0, \end{aligned}$$
(30)

where \(\omega _{i}^{eff}\) is the effective equation of state parameter corresponding to the cosmic fluid components. The effective EoS parameters are given by:

$$\begin{aligned}{} & {} \omega _{1}^{eff}=\omega _{1}+\frac{Q}{3H\rho _{1}} \end{aligned}$$
(31)
$$\begin{aligned}{} & {} \omega _{DE}^{eff}=\omega _{DE}-\frac{Q}{3H\rho _{DE}}. \end{aligned}$$
(32)

The forms of these interactions are not constrained to specific functions. Certain phenomenological choices are initially made and later they are tested using observational data. In the literature several functional forms of interaction rates are considered as, \(Q\propto \rho _{DE}\) [97], \(Q\propto \rho _{1}\) [77,78,79,80], \(Q\propto (\rho _{1}+\rho _{DE})\) [77,78,79,80], \(Q\propto \dot{\rho _{DE}}\) [98], \(Q\propto \frac{\rho _{DE}^{2}}{\rho _{1}}\) [99], etc. Several of these interaction forms agree with the observational data and lead to stable cosmological models [100, 101]. Thus, any new form of interaction must be constrained using the current observations. In this work we consider an exponential form of interaction as [83]:

$$\begin{aligned} Q=3H\eta \rho _{DE}\;exp\Bigg (\frac{\rho _{DE}}{\rho _{1}}-1\Bigg ) \end{aligned}$$
(33)

where, \(\eta \) is a coupling parameter which denotes the strength of the interaction. We denote the ratio of energy densities of these two fluids as \(\alpha =\frac{\rho _{DE}}{\rho _{1}}\). The above interaction can be rewritten in terms of \(\alpha \) as \(Q=3H\eta \rho _{DE} exp(\alpha -1)\). Thus, the exponential form of interaction reduces to the linear form when \(\alpha \rightarrow 1\) i.e., \(Q=3H\eta \rho _{DE}\), while for \(\alpha \rightarrow 0\), \(Q\approx 3H\eta \rho _{DE}\). These limits have been studied earlier in the literature [98]. The Taylor series expansion of Eq. (33) around \(\rho _{DE}=0\) yields,

$$\begin{aligned} Q\propto \rho _{DE}+\frac{\rho _{DE}^{2}}{\rho _{1}}+\cdots \end{aligned}$$
(34)

One can thus study the effects of the higher order terms present in the interaction and compare their effect with the linear counterpart. Recently Yang et al. considered this exponential interaction model and drew a comparison between different interaction scenarios [83]. It is noted that the exponential model exhibits a considerable deviation near the present epoch (i.e., \(z=0\)).

One can express the energy densities of the non-relativistic and relativistic matters as:

$$\begin{aligned}{} & {} \rho _{1}=\rho _{0}(1+z)^{3(1+w_{1}^{eff})} \end{aligned}$$
(35)
$$\begin{aligned}{} & {} \rho _{2}=\rho _{20}(1+z)^{4}. \end{aligned}$$
(36)

One can express the total energy density using Eqs. (35) and (36) as:

$$\begin{aligned} \rho =\rho _{0}\Big [(1+z)^{3(1+w_{1}^{eff}})+\zeta (1+z)^{4}\Big ]. \end{aligned}$$
(37)

One can solve field equations (15) and (16) numerically using the expressions for energy densities and the parameters \(\varOmega _{H}\), and the scalar field \(\phi \) can be determined. The evolution of the universe can be studied through the behaviour of the state finder parameters, the scalar field \(\phi \), and other cosmological parameters like the deceleration parameter q, Om(z) parameter, etc. The interaction strength \(\eta \) acts as a free parameter in this case along with the function f(R), potential function \(V(\phi )\) and the GB coupling term \(\xi (\phi )\). One has to consider specific forms of these functions to study the late time dynamics of the universe in presence of interacting cosmic fluid components. The interaction strength severely affects the evolution of the universe which will be studied in the next section.

4 Cosmological models in the modified f(R) gravity with GB terms in the presence of interacting cosmic fluid

We consider different forms of the coupling function for the GB terms with a scalar field in presence of interacting cosmic fluids to study the dynamics of evolution of the late universe. Two different f(R) gravity models are considered here.

4.1 Model-I

We begin our study by considering the simple Einstein gravity (i.e. \(f(R)=R\)) with Gauss–Bonnet terms coupled to a scalar field. In recent years there is a spurt in activities to search for a viable universe in the framework of modified theories of gravity that emerged as an alternative for dark energy in order to accommodate the present accelerating phase of the universe satisfactorily. A number of modified theories of gravity came up in the literature to study the early and late evolutionary phases of the universe which however finally unify them within a single theoretical framework [111,112,113,114,115,116].

The string-inspired modified theories of gravity are one of the promising candidates. Zweibach first pointed out that the string corrections due to the Einstein action up to first order in the slope parameter and fourth power of the momenta should be proportional to the GB terms and leads to a ghost-free non-trivial interacting theory [117]. Later it was shown that the field redefinition theorem of Hooft and Veltman [118, 119] may apply in this case. Thus the GB terms arise in the low-energy effective action for the heterotic strings [120,121,122,123] and also in the second order terms in the Lovelock gravity [124]. It is known that the GB term in 4 dimensions is a constant which does not play any role in explaining the dynamics of the universe. However, the scalar field coupled with the GB terms is important and a number of features of the universe can be explored. A non-singular universe can be obtained in a string-induced gravity with GB term near the initial singularity [125, 126]. The string-inspired scalar Gauss–Bonnet gravity as well as the modified GB gravity have been employed to investigate the gravitational dark energy [127].

Recently, scalar GB and modified GB theories have been reconstructed for a given expansion of the universe with and without matter [128]. The bouncing cosmological scenario is investigated in the framework of scalar GB gravity in both the Jordan (string) frame and the Einstein frame [129]. Cosmological solutions of the field equations obtained from a ten-dimensional action differing from the superstring corrected action and containing higher derivative terms in the GB combination have been studied by Paul and Mukherjee [130]. They found realistic cosmological scenarios in presence of an inflationary era in the early ten-dimensional universe. The emergent universe scenario has also been investigated in the framework of scalar GB gravity [131, 132]. The role of scalar coupled GB terms in the dynamics of evolution of the late universe has been investigated considering a three-component cosmic fluid [89]. The scalar coupling function \(\xi (\phi )\) is constrained considering the primordial gravitational wave speed.

In the present paper we introduce a non-linear coupling between the cosmic fluid components in order to study the role of interaction between the fluid components. The scalar potential is assumed to be coupled with the dilaton field in this case. The functional form of the scalar field potential is assumed to be:

$$\begin{aligned} V(\phi )=\Bigg (\frac{\phi }{M_{P}}\Bigg )^{4} \end{aligned}$$
(38)

with a scalar coupling function of the form,

$$\begin{aligned} \xi (\phi )=\Bigg (\frac{\phi }{M_{P}}\Bigg ). \end{aligned}$$
(39)

We assume simple power law models for the scalar field functions with proper normalization. These models are mostly used in the inflationary epoch where the “slow-roll” conditions are assumed to hold true. The “slow-roll” approximation neglects the most slowly changing terms in the equations of motion. However, during the late era, one can take fields that do not obey the slow-roll conditions. It is known that theories which involve Gauss–Bonnet terms coupled with an arbitrary scalar field produce gravitational waves which propagate with a velocity that deviates from the speed of light [89]. However, the recent GW170817 event has predicted that the primordial gravitational wave speed must be equal to the speed of light [99]. This leads to an incompatibility in the theoretical framework involving Gauss–Bonnet terms. If the theory considered is described by massless gravitons throughout the evolution of the universe, then this problem can be removed [89]. This implies that the scalar coupling function should satisfy the differential equation \(\ddot{\xi }=H\dot{\xi }\). The Hubble parameter is obtained from the Friedmann equations which in turn connects the two scalar functions \(V(\phi )\) and \(\xi (\phi )\) in such a way that the differential equation is satisfied. In this paper we start from arbitrary forms of the scalar field coupling functions.

In the Einstein gravity \(f(R)=R\) with GB terms, we do not have \(\dot{R}\) in the field equation, and the second derivative of the density parameter \(\varOmega _{H}\) is zero. However, the second derivative of the scalar field \(\phi \) is proportional to \(\varOmega _{H}'\) as seen from the continuity equation. So, we need only one initial condition for \(\varOmega _{H}\) to solve the field equations (15) and (16). We assume that \(\varOmega _{H}{\Big |}_{(z=0)}=\frac{\varLambda }{3m_{s}^{2}}\Big (1+\frac{1+z_{f}}{1000}\Big )\) and the initial values for the scalar field are taken as \(\phi {\Big |}_{(z=0)}=10^{-10}M_{P}=\frac{d\phi }{dz}{\Big |}_{(z=0)}\). The choice of the initial conditions are done in such a way so that they lead to a physically viable description of the present observed universe. We consider two types of interaction among the fluids where energy flows from the non-relativistic matter sector to the dark energy sector and vice versa, and summarize the results below.

Case-I: For  \(\eta >0\) (i.e., \(Q>0\))

At first, we consider the case of energy transfer from the non-relativistic matter sector. The interaction coupling parameter \(\eta \) plays a crucial role in determining the stability of the model. For a suitable choice of the model parameters, the field equations are solved numerically and we have plotted the cosmological parameters in Fig. 1 for \(\alpha =0.9\) and \(\eta =0.0004\). From the figure, it is evident that the DE oscillations are absent in the case of \(f(R)=R\) gravity, and as a consequence, all the cosmological parameters are oscillation free throughout the evolution of the universe. The scalar field in this case exhibits a monotonically decreasing nature and attains large negative values at the present epoch. The deceleration parameter shows a change in sign indicating a transition from a decelerating to an accelerating phase of expansion. The parameter \(\varOmega _{H}\) remains constant throughout. We note that the jerk and snap parameters approach their corresponding \(\varLambda \)CDM limits at \(z\sim 0\) (Table 1).

In Table 1 we display the present day values of the cosmological parameters as obtained from the theoretical model and compare them with the PLANCK 2018 results [102]. We note that for the present model the cosmological parameters are close to their corresponding \(\varLambda \)CDM values at the present epoch. The DE variables i.e., the DE density parameter and the effective EoS parameter are plotted in Fig. 2. From the figure it is evident that \(\varOmega _{DE}\) increases as the universe enters the DE dominated phase. The effective EoS parameter in this case remains almost constant showing a slight deviation from the corresponding \(\varLambda \)CDM value. In the case of \(R+GB\) gravity with scalar potential, we note that stable cosmological models are found for small values of the interaction parameter \(\eta \). As \(\eta \) is increased, the snap parameter shows a discontinuity at certain redshifts making the model unstable. Further, decreasing \(\alpha \) increases the allowed range of \(\eta \) values. So, the presence of the simple \(f(R)=R\) gravity with a scalar potential leads to a universe DE oscillations. The universe in the modified gravity scenario with a scalar field resembles closely the \(\varLambda \)CDM model near \(z=0\). The DE EoS parameter indicates a phantom type DE dominated universe. This is different from the result obtained in Paul et al. [103].

Fig. 1
figure 1

Solutions for the statefinder parameter \(\varOmega _{H}\) and scalar field \(\phi \) over reduced Planck mass with interaction considering \(\alpha =0.9\) and \(\beta =0.0004\) in presence of a scalar field \(V(\phi )\). Cosmological parameters are also plotted as functions of redshift z

Table 1 Cosmological parameter values at the present epoch for \(Q>0\), with \(\alpha =0.9\) and \(\eta =0.0004\)
Table 2 Cosmological parameter values at the present epoch for \(Q>0\), with different \(\eta \) and \(\alpha =0.9\)

Case-II: For \(\eta <0\) (i.e., \(Q<0\))

For \(Q<0\), i.e., the energy flow from the dark energy sector, one obtains similar behaviour as the previous case. For large negative values of \(\eta \) the jerk parameter however diverges near \(z=0\) thus making the model unstable. The DE oscillations are absent in this case too, and as a result, the statefinder parameters are also oscillation free. We plot the results in Fig. 3. In this case, the DE stays in the quintessence region. We note that stable cosmological models can be constructed in this case when the DE interacts only with the non-relativistic matter sector which was not possible in case of a three fluid interaction scenario [103].

Fig. 2
figure 2

Variation of dark energy variables, the effective EoS parameter \(w_{DE}^{eff}\) (Right) and Density parameter \(\varOmega _{DE}\) (Left) with interaction considering \(\alpha =0.9\) and the \(\beta =0.0004\)

Fig. 3
figure 3

Solutions for the statefinder parameter \(\varOmega _{H}\) and scalar field \(\phi \) over reduced Planck mass with interaction considering \(\alpha =0.9\) and \(\eta =-0.0006\) in presence of a scalar field \(V(\phi )\). Cosmological parameters are also plotted as functions of redshift z

4.2 Model-II

For the second model, simple forms of the scalar field coupling function \(\xi (\phi )\) and the potential \(V(\phi )\) are considered. The primordial GW speed puts a strict constraint on the forms of these functions [89], and here we consider a finite GW speed and a free scalar field. Thus, in absence of the scalar potential \((V(\phi )=0)\) the GB coupling term is considered as:

$$\begin{aligned} \xi (\phi )=e^{\frac{\phi }{M_{P}}}. \end{aligned}$$
(40)

The f(R) function is considered to be of the form:

$$\begin{aligned} f(R)=R+\Bigg (\frac{R}{M}\Bigg )^{2}-\lambda \Bigg (\frac{R}{3m_{s}^{2}}\Bigg )^{\delta } \end{aligned}$$
(41)

where, \(\lambda \) (dimensions of mass squared) and \(\delta \) are constants. Here M is approximately equal to \(M=1.5\times 10^{-5}\Big (\frac{50}{N}\Big )M_{P}\), with N being the number of e-foldings and the exponent \(\delta \) is positive in the interval \(0<\delta <1\).

This functional form of f(R) is considered here as it can give a reasonable description of the inflationary epoch as well as the late time era [89, 103]. The model is also well known for producing dark energy oscillations in the high redshift regions. The \(R^{2}\) term dominates the dynamical evolution in the early epoch, when R is large and controls the inflationary behaviour, whereas the \(R^{\delta }\) term dominates during the present epoch with \(R\rightarrow 0\) for \(\delta <1\). The presence of the scalar field further alters the dynamics of the evolving universe.

In the literature, cosmological models with this functional form of f(R) have been studied earlier. The dynamics of evolution of the late universe is studied by Odintsov et al. in presence of string theory motivated axion like particles and in the presence of a scalar field coupled GB term [89, 92,93,94]. It is found that although Gauss–Bonnet terms alone can produce oscillation free dark energy era, in presence of f(R) gravity one cannot avoid DE oscillations in the high redshift domain indicating that f(R) gravity dominates over the GB term [104]. Motivated by this result, Paul et al. [103] studied the late-time evolution of the universe in the f(R) gravity with GB terms, considering interacting three fluids model. In the model, the role of interaction that sets in among the fluid components are investigated. A linear interaction was considered and they found that even with interactions among the fluid components the DE oscillations still exist in the high redshift domain. They found that as the strength of the interaction is increased the DE oscillations smooths out but it leads to singularities in the statefinder parameters at some particular redshifts. Thus, singularity free stable cosmological models cannot be realized without DE oscillations for the specific f(R) gravity under consideration [103].

In the present work, a scalar field is considered with a non-linear interaction between the cosmic fluid components to examine the role of interaction on the late-time evolutionary features of the universe. The role of such an exponential interaction between the dark sectors has been studied in the literature in a GR framework [83]. Different observational data have been used to constrain the strength of interaction and it is found that the model is in agreement with the observations for small values of the parameter \(\eta \). At the background level, the cosmological model is found to resemble the \(\varLambda \)CDM model with a slight deviation under small perturbation when CMB temperature anisotropy is considered. We probe here the exponential interaction between the non-relativistic matter sector and the DE sector in a \(f(R)+GB\) gravity framework to study late universe in the presence of interaction.

We consider a set of values of the model parameters \(\lambda =118.895\times 10^{-67}~\text {eV}^{2}\), \(\delta =10^{-2}\) and \(N=60\) e-folding which lead to a physically consistent cosmology. The current value of the Hubble parameter is taken from the Planck data which is, \(H_{0}=67.4~\hbox {km}/\hbox {s}/\hbox {Mpc}\) [102], which when converted in the unit of eV becomes \(H_{0}=1.37187\times 10^{-33}~\hbox {eV}.\) Equations (15) and (16) are analyzed numerically considering suitable initial conditions for a range of redshifts that describe the last stages of the matter domination epoch up to the present time, i.e., \([z_{i},z_{f}]=[0,10]\). The initial conditions are considered to be [89],

$$\begin{aligned}{} & {} \varOmega _{H} {\Big |}_{(z=10)}=\frac{\lambda }{33m_{s}^{2}}\Bigg (1+\tilde{\gamma }(1+z_{f})\Bigg ),\nonumber \\{} & {} \frac{d\varOmega _{H}}{dz}{\Big |}_{(z=10)}= \tilde{\gamma } \left( \frac{\lambda }{33m_{s}^{2}} \right) ,\nonumber \\{} & {} \phi {\Big |}_{(z=10)}=10^{-16} M_{P},\quad \frac{d\phi }{dz} {\Big |}_{(z=10)} =-10^{-17}M_{P}, \end{aligned}$$
(42)

which gives a viable description of the present observed universe. The parameter \(\tilde{\gamma }\) is a dimensionless entity that acts as a free parameter. The initial conditions assumed here, play an important role in the dynamical evolution of the universe. The nature of the evolution of the cosmological parameters depend on the initial conditions through \(\tilde{\gamma }\) which will be discussed in the following. We consider \(\tilde{\gamma }=10^{-3}\) for the rest of the manuscript as it yields a reasonable phenomenological behaviour of the cosmological parameters, however, it can assume higher values also in principle. The accurate forms for the initial conditions may however be obtained considering some cosmographic approach which is beyond the scope of the present paper and will be tackled elsewhere. We consider two different scenarios where the energy flows from the non-relativistic matter sector to the dark energy sector and vice versa.

Case-I: For  \(\eta >0\) (i.e., \(Q>0\))

For the first case, we consider \(\eta >0\) (\(Q>0\)) i.e. the energy flow from the non-relativistic matter sector to the other two fluids. The system of Eqs. (15), (16) and (37) are analyzed numerically considering suitable values of the model parameters. We plot the variation of different cosmological parameters with the redshift z in Fig. 4 for a specific choice of \(\alpha \) and \(\eta \). From Fig. 4a it is evident that for the chosen values of the model parameters one cannot nullify the DE oscillations for \(z\ge 3\) in the interacting \(f(R)+f({\mathcal {G}})\) gravity. The scalar field is found to be free from oscillations and increases as the universe enters the DE dominated epoch as shown in Fig. 4b. The variation of the deceleration parameter (q), jerk parameter (j), snap parameter (s) and Om(z) parameter with the redshift z are shown in Fig. 4c–f. For \(\eta =0.006\) and \(\alpha =0.9\), the oscillating nature prevails at higher redshifts. However, the oscillations smooths out considerably near the present epoch \((z=0)\). The deceleration parameter shows a flip in sign indicating a transition from a decelerated phase of expansion to an accelerated phase of expansion of the present universe. The transition redshift (redshift at which the universe enters the accelerated phase of expansion) depends on the type of interaction and the initial conditions which will be discussed in the following. The statefinder pair j and s approach their corresponding \(\varLambda \)CDM values (\(j=1\), \(s=0\)) at the present epoch. The Om(z) parameter shows a clear distinction between the present model (blue, solid) and the \(\varLambda \)CDM (black, dot dashed) [102]. Even at very low redshifts this distinction is pretty evident as seen from Fig. 4f. We have compared the present values of different cosmological parameters obtained from our model with the observed results in Table 2.

Fig. 4
figure 4

The density parameter \(\varOmega _{H}\) and scalar field \(\phi \) over reduced Planck mass for the f(R) gravity with interaction considering \(\eta =0.006\) and \(\alpha =0.9\). Other cosmological parameters are also plotted as functions of redshift parameter z

In Fig. 5 we plot the evolution of the effective DE EoS parameter (\(w_{DE}^{eff}\)) and the DE density parameter \((\varOmega _{DE})\). Both of these parameters exhibit oscillating nature at high redshifts. We note from Fig. 5 that for high redshifts \((z\sim 10)\), the effective DE EoS parameter shows oscillations which is an indication of the transfer of energy from one sector of matter to the others. At the present epoch, the oscillations die out reaching a stable configuration with a negative EoS parameter indicating the existence of exotic matter obtained from the transformation mechanism in a modified gravity scenario with interacting fluids.

The oscillating behaviour of the cosmological parameters is a direct consequence of the dominance of the f(R) gravity part over the Gauss–Bonnet terms. However, the interaction between the fluids plays a crucial role in this case. We note that as the interaction strength is increased beyond a certain point the DE oscillations cease to exist. For \(\alpha =0.9\), oscillations vanish around \(\eta =0.38\). However, in this case, the statefinder parameter s shows a discontinuous behaviour at a certain redshift which is not desirable for a stable cosmological model. This behaviour is shown in Fig. 6. Thus one can estimate the range of the strength of interaction leading to a stable cosmological model. In this work, we consider three different \(\alpha \) values and determined the range of \(\eta \) numerically for a stable cosmological model.

Fig. 5
figure 5

Variation of dark energy variables, the effective EoS parameter \(w_{DE}^{eff}\) (right) and Density parameter \(\varOmega _{DE}\) (left) with interaction considering \(\eta =0.006\) and \(\alpha =0.9\)

Fig. 6
figure 6

Solutions for the density parameter \(\varOmega _{H}\) and scalar field \(\phi \) over reduced Planck mass for the f(R) gravity with interaction considering \(\alpha =0.9\) and \(\eta =0.38\). Cosmological parameters are also plotted as functions of redshift parameter z

Fig. 7
figure 7

Solutions for the density parameter \(\varOmega _{H}\) and the deceleration parameter q for the f(R) gravity with interaction considering \(\eta =0.006\) and \(\alpha =0.9\). The red curves correspond to \(\tilde{\gamma }=10^{-3}\) and the blue curves correspond to \(\tilde{\gamma }=0.5\)

Fig. 8
figure 8

Evolution of the density parameter \(\varOmega _{H}\) and scalar field \(\phi \) for the f(R) gravity with GB terms and interacting fluids taking \(\alpha =0.9\) and \(\eta =-0.006\). Cosmological parameters are also plotted as functions of redshift z

Fig. 9
figure 9

Variation of dark energy variables, the effective EoS parameter \(w_{DE}^{eff}\) (right) and Density parameter \(\varOmega _{DE}\) (left) with interaction considering \(\alpha =0.9\) and \(\eta =-0.006\)

In Fig. 7 we consider two different \(\tilde{\gamma }\) values namely, \(\tilde{\gamma }=10^{-3}\) and \(\tilde{\gamma }=0.5\) to study the dependence of initial conditions on the DE oscillations. We plot the density parameter \(\varOmega _{H}\) and the deceleration parameter q for the \(\tilde{\gamma }\) values considered. We note that the DE oscillations are more pronounced for \(\tilde{\gamma }=10^{-3}\). However, the present behavior of these parameters become independent of the initial conditions. The transition redshift also changes with the choice of \(\tilde{\gamma }\).

Case-II: For  \(\eta <0\) (i.e., \(Q<0\))

For \(Q<0\), the energy flows from the DE sector. In a similar way to the earlier case, we analyze the system of equations numerically. The results are shown in Fig. 8. The parameter \(\varOmega _{H}\) is again found to be oscillating in the past, and thereafter at the present epoch, the oscillations die out attaining a constant value. The behaviour of the scalar field is similar to the previous case where it gradually increases attaining a maximum at the present epoch. Thus we conclude that the behaviour of the scalar field is independent of the direction of energy flow. The evolution of the cosmological parameters are shown in Fig. 8c–f. The statefinder parameters in this case exhibit oscillations for higher redshifts \((z\sim 3)\) similar to the previous case. We plot the figures for \(\alpha =0.9\) and \(\eta =-0.006\). We note that for large negative values of the interaction strength \(\eta \) the DE oscillations vanish. However, as before, the cosmological parameters exhibit singularity at a certain redshift, thus making the model unstable.

The dark energy density parameter and the effective EoS parameter are plotted in Fig. 9. The effective EoS parameter is oscillating at high redshifts, but the oscillations damp down and the EoS parameter approaches the quintessence value. The difference between these two cases is that in the previous case the DE turns out to be in the phantom region at the present epoch, whereas for \(Q<0\) it stays in the quintessence region. For smaller \(\eta \) values the difference between the present day values of \(w_{DE}^{eff}\) for \(Q>0\) and \(Q<0\) is negligible, however, as \(\eta \) is increased within the permissible range, the difference becomes significant. We have estimated the present day values of the cosmological parameters for \(\eta =\pm 0.006\) and \(\eta =\pm 0.06\) in Tables 2 and 3. It is evident from these two tables that for larger \(\eta \) values one can distinguish between the two cases \(Q>0\) and \(Q<0\) by determining the type of DE present in the universe. We note that for higher redshifts there was a transformation between the phantom and quintessence type of DE in both cases. As the universe approached the present epoch \((z\sim 0)\), the oscillation gets damped significantly and a stable configuration is reached. For \(Q>0\), the nature of DE remains in the phantom domain whereas for \(Q<0\) it stays in the quintessence region.

Next, we study the effect of linear and exponential interaction on the dynamics of the evolution of the universe. For \(\alpha =1\), the interaction reduces to a linear form. We compare the new density parameter \(\varOmega _{H}\), the deceleration parameter q, and the effective EoS parameter \(w_{DE}^{eff}\) in both cases, and the results are plotted in Fig. 10. From the figure, we note that for the exponential interaction with higher order terms, the DE oscillations are less prominent, however, in both the interaction types \(\varOmega _{H}\) behave similarly in the present epoch. The universe transits into an accelerating phase faster when exponential interaction is taken up. Both the interactions indicate the presence of phantom type DE at the present universe with \(Q>0\) whereas they stay in the quintessence region for \(Q<0\). Thus one can conclude that the direction of energy flow determines the type of DE in the present universe rather than the type of interaction.

We further perform a comparison of the scenarios with and without interactions between the cosmic fluid components. In Fig. 11, the parameters \(\varOmega _{H}\), q and \(w_{DE}^{eff}\) are plotted with redshift z in the presence and absence of interactions among the cosmic fluid components. From the figure, we note that the oscillating nature of the DE variables persists even without interaction, and for \(\eta >0\), the amplitude of DE oscillations is greater than the non-interacting scenario which lies between the \(\eta >0\) and \(\eta <0\) case. The transition redshift also shows a similar behaviour where the universe transits from a decelerating phase to an accelerating phase earlier in the case of \(\eta <0\). The transition for the non-interacting case is slower compared to the \(\eta <0\) case but faster than the \(\eta >0\) scenario. The plot of the effective DE EoS parameter clearly indicates that for the non-interacting scenario the effective EoS parameter stays close to \(-1\) resembling the \(\varLambda \)CDM model. Thus the coupled fluid model alters the dynamics of evolution of the universe but, it cannot change the nature of evolution of the DE variables which continue to oscillate even in presence of interaction. This in turn indicates that the phenomenology of the late universe is mostly governed by the f(R) gravity.

We have compared the present day values of the cosmological parameters for both the interaction types and the values are tabulated in Table 4. We note that the difference between these values are much less compared to the \(\varLambda \)CDM model or a cosmological model without interacting fluids. Thus f(R) modified gravity dominates over the Gauss–Bonnet terms as we observe oscillation of dark energy in the late time universe in the presence of interaction between the fluids. The interacting cosmic fluids play an important role in determining the evolutionary pattern of the universe. The existence of oscillation in the density parameter \(\varOmega _{H}\) for \(z\ge 4\) imposes an upper bound on the strength of interaction \(\eta \) for a given \(\alpha \). Beyond this bound, discontinuities can appear in the cosmological parameters at a given redshift in the late time universe. Paul et al. recently studied the effect of linear interaction in a modified f(R) gravity framework with GB terms and they observed that for a stable cosmological model, DE oscillations cannot be suppressed even with interacting fluids [103]. From the above analysis, it is evident that even with an exponential type of interaction between the cosmic fluid components, one cannot nullify the DE oscillations in the late universe. The allowed range of \(\eta \) for different \(\alpha \) values are displayed in Table 5.

Table 3 Cosmological parameter values at the present epoch for \(Q<0\), with different \(\eta \) and \(\alpha =0.9\)

In Fig. 12a, b, the evolutions of different cosmological parameters are shown as well as their mutual dependences. The parametric representation of Om(z) and j(z) is plotted in Fig. 12a for different sets of model parameter \(\eta \) and \(\alpha \). From this figure it can be seen that for each chosen sets of model parameters, the plot exhibits an attractor like nature and evolves toward a stable point near \(j(z)\approx 0\) (but different values of Om(z)). The corresponding nature of the deceleration parameter q(z) can be observed in Fig. 12b, where the evolutions of q(z), j(z) and Om(z) are simultaneously plotted in 3d parametric space. From Fig. 12b it can be observed that q(z) oscillates with z at higher redshifted era. However as two other parameters j(z) and Om(z) move toward stable points, the oscillating nature of q(z) diminishes and the value of q(z) start decreasing rapidly.

Fig. 10
figure 10

Variation of dark energy variables, \(\varOmega _{H}\) (left), deceleration parameter q (middle) and the effective EoS parameter \(w_{DE}^{eff}\) (right) with exponential interaction (blue) and with linear interaction (red) considering \(\eta =0.09\) and \(\alpha =0.1\)

Fig. 11
figure 11

Variation of dark energy variables, \(\varOmega _{H}\) (left), deceleration parameter q (right) and the effective EoS parameter \(w_{DE}^{eff}\) (middle) with and without interaction. The red curve corresponds to the non-interacting scenario and the blue and black curves correspond to \(\eta =\pm 0.09\) and \(\alpha =0.9\) respectively

Finally, the velocity of the primordial gravitational waves can be calculated for both the model, which is given by [105,106,107]:

$$\begin{aligned} c_{T}^{2}=1-\frac{Q_{f}}{2Q_{t}} \end{aligned}$$
(43)

where, \(Q_{f}=16(\ddot{\xi }-H\dot{\xi })\) and \(Q_{t}=M_{P}^{2}-8\dot{\xi }H\). The gravitational wave speed can assume arbitrary values depending on the scalar field coupling function \(\xi (\phi )\). However, despite being arbitrary, its value is close to unity as \(Q_{f}<<Q_{t}\). The variation of the GW speed with the redshift parameter is plotted in Fig. 13 for a given interaction strength considering both models. It is evident from the figure that in both cases the GW wave speed is close to unity. For the second model we consider \(\alpha =0.9\) and \(\eta =0.006\), the value of \(Q_{f}\) is of the order \(Q_{f}\sim 10^{-82}\) whereas \(Q_{t}\sim 10^{-29}\) and hence, the ratio is very close to zero. This leads to a GW speed close to unity which is consistent with the GW170817 event. From the expression of \(Q_{f}\), one can see that as \(Q_{f}\rightarrow 0\), \(\ddot{\xi }=H\dot{\xi }\). Thus, the GB coupling parameter is important and the choice of the scalar coupling function to the GB terms is not arbitrary.

Table 4 Cosmological parameter values at the present epoch for \(Q<0\), with exponential and linear interaction
Table 5 Constraints on the interaction parameter\(\eta \) for different fluid interactions
Fig. 12
figure 12

a Evolution of q(z) and j(z) for different values of \(\eta \) and \(\alpha \) in the case of model I. b Parametric representation of q(z), j(z) and Om(z) for different chosen sets of model parameters \(\eta \) and \(\alpha \) in the case of model I

Fig. 13
figure 13

Variation of the gravitational wave speed with redshift parameter z for model I with \(\alpha =0.9\) and \(\eta =0.0006\) and model II with \(\alpha =0.9\) and \(\eta =0.006\)

Fig. 14
figure 14

a Comparison of model I with Union 2.1 supernova data while the model parameters chosen at \(\eta =0.006\), \(\alpha =0.9\). b \(\chi ^2\) representation of model I in \(\eta -\alpha \) parameter plane using Union 2.1 supernova data. In this plot the while dashed line corresponds to the case of \(\eta =0\)

5 Observational viability

We compare our model with UNION 2.1 data [108]. The UNION 2.1 data contains the information of 580 type Ia (Sn1a) Supernovae, in the form of distance modulus \(\mu _{\textrm{obs}}\) of individual supernova along with their error bounds \(\sigma _{\mu }\) and the redshift z. The distance modulus \(\mu \) is related to the luminosity distance as,

$$\begin{aligned} \mu =m - M=5 \log D_L+\mu _0, \end{aligned}$$
(44)

where m, M are the apparent and absolute magnitudes of the Supernovae respectively, and \(\mu _0=5\log \left( \frac{H_0^{-1}}{M_{pc}}\right) +2 5\) is a nuisance parameter which is marginalized. Distance modulus \(D_L\) for an object placed at redshift z is given by,

$$\begin{aligned} D_L(z)=(1+z) \int _0^z\frac{H_0dz'}{H(z')}. \end{aligned}$$
(45)

Now, in order to compare our calculated distance modulus \(\mu _{\textrm{th}}\) with the observed distance modulus \(\mu _{\textrm{obs}}\), another parameter \(\chi ^2_{SN}\) is introduced, which represents the mean square deviation from the observed data. The parameter \(\chi ^2_{SN}\) can be defined as,

$$\begin{aligned} \chi _{SN}^2(\eta ,\alpha )=\sum _{i=1}^{580} \frac{\left( \mu _{\textrm{th}}(z_i,\mu _0,\eta ,\alpha )-\mu _{\textrm{obs}}(z_i)\right) ^2}{\sigma _\mu (z_i)^2}. \end{aligned}$$
(46)

However, to get rid of \(\mu _0\), one can redefine \(\chi ^2_{SN}\) as [109, 110],

$$\begin{aligned} \chi _{SN}^2(\theta )=\chi ^2_A-\frac{\chi ^2_B}{\chi ^2_C}. \end{aligned}$$
(47)

where \(\chi ^2_A(\eta ,\alpha )\), \(\chi ^2_B(\eta ,\alpha )\) and \(\chi ^2_C(\eta ,\alpha )\) are given by

$$\begin{aligned} \chi ^2_A(\eta ,\alpha )= & {} \sum _{i=1}^{580} \frac{\left( \mu _{\textrm{th}}(z_i,\mu _0,\eta ,\alpha )-\mu _{\textrm{obs}}(z_i)\right) ^2}{\sigma _\mu (z_i)^2}, \end{aligned}$$
(48)
$$\begin{aligned} \chi ^2_B(\eta ,\alpha )= & {} \sum _{i=1}^{580} \frac{\mu _{\textrm{th}}(z_i,\mu _0,\eta ,\alpha )-\mu _{\textrm{obs}}(z_i)}{\sigma _\mu (z_i)^2},\end{aligned}$$
(49)
$$\begin{aligned} \chi ^2_C(\eta ,\alpha )= & {} \sum _{i=1}^{580} \frac{1}{\sigma _\mu (z_i)^2}. \end{aligned}$$
(50)
Fig. 15
figure 15

Variation of distance modulus with redshit z for different chosen values of \(\eta \) and \(\alpha \). In this figure, the distance modulus \((\mu )\) is parametrized as \(\mu _/\mu _{\eta =0},\) where \(\mu _{\eta =0}\) is distance modulus where the effect of fluid interaction is not considered

From Fig. 14a, it can be seen that the model fits well with the Union 2.1 supernova data, where the model parameters are chosen at \(\eta =0.006\), \(\alpha =0.9\). The variation of \(\chi ^2_{SN}\) for different model parameter \(\eta \) and \(\alpha \) are graphically represented in Fig. 14b. In this figure (Fig. 14b) it is observed that, the parameters values near the dark blue region at higher \(\alpha \) and \(\eta \) fit the best with observational data. From this plot one can conclude that the model is not observationally viable in the region \([\alpha \approx 1, |\eta | \ge 0.5]\). In Fig. 14b, the white dashed line represents the case of \(\eta =0\). It can be seen that, at \(\eta =0\), the variation of \(\chi ^2\) value and hence the same distance modulus with \(\alpha \) vanishes. This particular case \((\eta =0)\) denotes the condition, where the effect of fluid interaction is absent (Fig. 15).

6 Summary and conclusions

In this paper, we present late time cosmological models in f(R) modified gravity with coupled Gauss–Bonnet terms. The background cosmic fluid is assumed to be composed of three different components, namely, the non-relativistic matter section which includes CDM also, relativistic matter components as well as dark energy. We consider an interacting two fluid scenario, where the non-relativistic matter section interacts with the dark energy. The relativistic particles do not take part in the interaction [89]. The strength of interaction between the cosmic fluid components plays an important role in determining the late time evolutionary dynamics of the universe. In this work we have considered an exponential form of interaction as it is the simplest generalization of the linear form, to study the effect of higher order terms on the background dynamics of the universe. For a specific choice of model parameters, the interaction effectively reduces to a linear form and thus, the effect of these two interactions on the cosmological parameters can be compared.

We have considered two different forms of the gravitational action as: (I) the Einstein–Hilbert form of action \(f(R)=R\) with GB terms coupled with a scalar field in a self interacting potential, and (II) \(f(R)=R+\Big (\frac{R}{M}\Big )^{2}-\lambda \Big (\frac{R}{3m_{s}^{2}}\Big )^{\delta }\) with GB terms coupled in the presence of a dilaton field. The numerical analysis of our models indicates that for a suitable choice of model parameters, the accelerating universe is accommodated naturally. Different functional forms of interactions are considered to study the role of interactions on the late time phenomenology.

For the Einstein gravity \((f(R)=R)\) with GB terms coupled to a scalar field in a potential \(V(\phi )\) we have obtained cosmological evolution in presence of interaction Q. The scalar field coupling function \(\xi (\phi )\) and the potential \(V(\phi )\) are chosen keeping in mind the GW speed constraint condition [89]. We consider two different interacting scenarios (\(\eta >0\) and \(\eta <0\)) and study the dynamics of evolution of the late universe. We note that in both cases the DE oscillations are absent. For small values of the interaction parameter \(\eta \), and \(\eta >0\), stable cosmological models can be obtained in this case. The EoS parameter remains constant throughout, deviating only slightly from the corresponding \(\varLambda \)CDM value. A similar behaviour can be observed for \(\eta <0\) when energy flows from the dark energy sector to the non-relativistic matter sector. We can thus conclude that for the Einstein gravity DE oscillations smooth out and the model closely corresponds to the standard model near \(z\sim 0\).

For the second model we consider the f(R) modified gravity with additional \(R^{2}\) and \(R^{\delta }\) terms where \(\delta <1\), is a small perturbative term. Such a functional form can accommodate the early inflation as well as the late time acceleration [108]. In the present work we consider a free scalar field \((V(\phi )=0)\) and study the evolution of the universe for two different interaction scenarios. The form of the GB coupling function is chosen in such a way as to satisfy the constraint on the GW speed [99]. Two different cases have been considered, as before, depending on the sign of the interaction coupling parameter \(\eta \). For \(\eta >0\), we find that for high redshifts, the parameter \(\varOmega _{H}\) oscillates rapidly, though the oscillation gradually subsides as the universe enters the present epoch. Similar behaviour is observed for the other cosmological parameters, as well. The universe enters the accelerated phase of expansion near \(z\sim 2\). The model approaches the \(\varLambda \)CDM limit near \(z\sim 0\). The presence of the exponential interaction makes the DE oscillations more prominent in this case. One interesting thing to note here is that the model is permitted for small values of \(\eta \) (\(\eta \sim 0\)) which was also obtained for a GR background using MCMC simulations [83]. For the specific f(R) model under consideration, one cannot get rid of DE oscillations for high redshifts even with exponential interaction between non-relativistic matter and dark energy.

The role of the parameter \(\eta \) is significant since the interaction strength cannot be increased indefinitely. There exists an upper limit of \(\eta \) beyond which stable cosmological models cannot be constructed. The evolutionary behaviour of the cosmological parameters is affected by the choice of initial conditions. The initial conditions can be chosen in such a way that the model becomes consistent with the PLANCK 2018 results [102]. The initial conditions also play a crucial role in determining the transition redshift. For \(\eta <0\), similar behaviour is observed regarding the cosmological parameters. One major difference between these two interaction scenarios is evident through the present day values of the effective DE EoS parameter. For \(\eta >0\) the EoS parameter indicates the presence of phantom DE, whereas for \(\eta <0\) the DE is of quintessence type at the present epoch. The difference is evident for large values of \(\eta \) within the permissible range. The model corresponds to the standard \(\varLambda \)CDM model at the present epoch up to a certain limit, however the difference between these two scenarios is evident from the plots of the Om(z) parameter. The range of allowed interaction strength \(\eta \) has been estimated. For a specific \(\alpha \), stable singularity free cosmological models cannot be constructed beyond these specific \(\eta \) values.

Finally, we have compared our theoretical model with the observed data of type Ia supernovae (UNION 2.1 data). For the \(f(R)=R+\Big (\frac{R}{M}\Big )^{2}-\lambda \Big (\frac{R}{3m_{s}^{2}}\Big )^{\delta }\) gravity with scalar field coupled GB terms, the model fits well with the Union 2.1 supernova data for \(\eta =0.006\) and \(\alpha =0.9\) validating the choice of interaction parameters. For a general choice of the parameters \(\eta \) and \(\alpha \), we find that the model is not observationally viable in the region \([\alpha \approx 1, |\eta | \ge 0.5]\).

To conclude, in the \(f(R)=R+\Big (\frac{R}{M}\Big )^{2}-\lambda \Big (\frac{R}{3m_{s}^{2}}\Big )^{\delta }\) gravity with GB term coupled with a free scalar field, cosmological models are permitted with oscillating statefinder parameters in the late time universe. The oscillations however smooth out considerably as the universe enters the present accelerating phase. The modified form of f(R) has been studied with and without interactions among the cosmic fluid components in the literature, and DE oscillations exist for high redshifts even with GB terms and interacting fluid scenario [103]. In the present work, we have studied the late time phenomenology of the universe considering a two fluid interacting scenario with an exponential interaction form. We have shown that the oscillating nature of DE persists even with exponential interaction. The oscillations however disappear if one increases the strength of interaction \(\eta \) up to a certain point for a fixed \(\alpha \). From our analysis it is further evident that the Gauss–Bonnet term plays a somewhat sub-dominant role in the late time era as compared to the f(R) gravity. Moreover, the constrained nature of the scalar field coupling functions ensures that the GW wave speed calculated from the model agrees with the observations [99, 103].