1 Introduction

The accelerated expansion of the Universe represents an important fundamental question in modern physics. The solution to this question can offer new insights for the gravitational theory, leading to a golden era for the cosmological context, opening various directions in modern physics. The phenomenon behind the accelerated expansion of the Universe represents an enigma, having different implications to the development of science and technology. This phenomenon has been studied intensively in the past two decades, being supported by various different observational analyses [1,2,3,4,5,6,7,8].

The modified gravity theories [9,10,11,12,13] represent an attempt of correcting the basic \(\Lambda CDM\) model, a theoretical approach which aims towards a more complete framework capable of solving different inconsistencies [14,15,16,17,18,19] of the present cosmological scenarios. These theories are based on specific modifications or replacements of the Einstein–Hilbert action, leading to a dynamical evolution of the dark energy equation of state. The main aim of these theories is to explain the known evolution of the Universe from early times to the present days. Within these theories a particular direction has been established recently which include higher order terms in the corresponding action, a specific model which further replaces or complements the basic gravitational theory based on the Einstein–Hilbert action [20].

The higher order gravities [20] represent an alternative approach in the modified gravity theories, capable of explaining various aspects and effects for the gravitational interaction. In this framework the Einsteinian cubic gravity was proposed [21], a specific theory based on specific contractions of the Riemann tensor in the third order. After this direction has emerged, various authors have investigated different properties of the Einsteinian cubic gravity or in similar approaches, analyzing the black-holes solutions [22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]. Moreover, for this scenario, the wormholes properties have been addressed in [40, 41]. In general the cubic gravity term is expected to have a considerable influence especially at early times during the inflationary epoch [42]. The effects due to the cubic term in the inflationary epoch have been studied intensively in the last years [42,43,44,45,46]. In Ref. [47] the authors have investigated the inflationary epoch by including a scalar field in a cubic gravity theory, showing the viability of such an epoch in this scenario. The basic aspects for thermodynamics in the case of a generic cubic-quartic gravity have been investigated recently [48]. The fundamental properties of the anisotropic instabilities in the cubic gravity have been also analyzed [49]. In this regard, it has been shown that in the Einsteinian cubic extension various specific pathological instabilities might emerge. Recently, in Ref. [50] various pathological aspects have been analyzed in the case of Einsteinian cubic gravity and generalised quasi-topological gravity models.

The extended cubic gravity based on the third order contractions of the Riemann tensor has been proposed recently [51], a theory which further corrects the Einstein–Hilbert action with a generic functional f(P) which encodes specific effects due to the topological invariant P. In this case the topological invariant P is based on some specific contractions of the Riemann tensor [51]. The dynamical features for the generalized extended cubic gravity have been addressed in [52], by taking into account two possible configurations for the cubic term which corrects the Einstein–Hilbert action. An alternative proposal has been analyzed in [53] for the Einsteinian cubic gravity, a specific theory which also includes a cosmological constant. The inclusion of the cubic invariant into possible theories which are embedding scalar fields has been investigated in [54], considering a specific coupling for the quintessence or phantom models. Furthermore, different studies have considered a holographic approach for the Einsteinian cubic gravity [55, 56]. Recently, the Starobinsky’s model of inflation has been corrected by adding a cubic component [57]. The authors have investigated the slow-roll regime and discussed the possibility of validation, taking into consideration the scalar and tensor perturbations.

In the present paper we shall further generalise the cubic extension of the Einstein–Hilbert action [51] by including viable effects from the curvature. Hence, in this approach we shall add to the Einstein–Hilbert action the functional \(\tilde{f}(R,P)\), a generalization which takes into account possible geometrical effects due to the curvature and the inclusion of the cubic invariant. In this case the physical features corresponding to the present model shall be investigated by considering specific methods associated to the dynamical system analysis [58]. This methods have been considered in many cosmological scenarios, representing important analytical tools in the study of physical systems [58].

The plan of the present paper is the following. In Sect. 2 we shall describe the action for the current cosmological model, taking into account a simple decomposition for the generic extension \(\tilde{f}(R,P)\). After writing the action, we shall present the associated modified Friedmann relations, obtained by the variation of the action with respect to the inverse metric. Then, in Sect. 3 we adopt the specific power-law parameterization \(\tilde{f}(R,P)=f_0 R^n+g_0 P^m\) with \(f_0, g_0\) and nm as constant parameters. For this specific model we propose the special form of the auxiliary variables, considering the dynamical system analysis in the case of the power-law parameterization. In Sect. 4 we analyze the exponential decomposition \(\tilde{f(R, P)}=f_0 e^{n R}+ g_0 e ^{m P}\), with \(f_0, g_0, n, m\) constant parameters. After we describe the main features of the phase space for the two models we present a short summary and the final concluding remarks in Sect. 5.

2 The action and the field equations

In the present study we shall propose a new cosmological model which is described by the following action:

$$\begin{aligned} S=S_m+\int d^4x \sqrt{- \tilde{g}} \Bigg ( \frac{R}{2}+\tilde{f}(R,P)\Bigg ). \end{aligned}$$
(1)

We note that the Einstein–Hilbert action is further extended by adding a generic functional \(\tilde{f}(R,P)\) which depends on the scalar curvature R and an additional term P which encodes specific cubic contractions of the Riemann tensor [21]. In this expression, \(\tilde{g}\) represents the determinant of the metric, while \(S_m\) is the action corresponding to the matter sector. Notice that in our action (1) the radiation component is neglected since we are interested in late-time dynamics. The additional term P embedded here has the following decomposition [21, 51]:

$$\begin{aligned} P= & {} \beta _1 R_{\mu \quad \nu }^{\quad \rho \quad \sigma }R_{ \rho \quad \sigma }^{\quad \gamma \quad \delta }R_{\gamma \quad \delta }^{\quad \mu \quad \nu }\nonumber \\&+\beta _2 R_{\mu \nu }^{\rho \sigma }R_{\rho \sigma }^{\gamma \delta }R_{\gamma \delta }^{\mu \nu } \nonumber \\&+\beta _3 R^{\sigma \gamma }R_{\mu \nu \rho \sigma }R_{\quad \quad \gamma }^{\mu \nu \rho }+\beta _4 R R_{\mu \nu \rho \sigma }R^{\mu \nu \rho \sigma }\nonumber \\&+\beta _5 R_{\mu \nu \rho \sigma }R^{\mu \rho }R^{\nu \sigma } \nonumber \\&+\beta _6 R_{\mu }^{\nu }R_{\nu }^{\rho }R_{\rho }^{\mu }+\beta _7 R_{\mu \nu }R^{\mu \nu }R+\beta _8 R^3, \end{aligned}$$
(2)

encoding specific effects due to the cubic contractions of the Riemann tensor. In this formula the \(\beta _i (i=1,8)\) components are constant parameters. In what follows we shall consider the case of a Robertson–Walker metric:

$$\begin{aligned} ds^2=-dt^2+a^2(t) \delta _{ju}dx^j dx^u, \end{aligned}$$
(3)

where a(t) represents the corresponding scale factor, and t the specific cosmic time. In this case the Hubble parameter will be denoted with \(H=\frac{1}{a} \frac{da}{dt}\). Note that in our approach we have set the spatial curvature index to zero, a specific value which is compatible with various astrophysical observations. Next, we shall consider the following specific relations between the constant parameters \(\beta _i, i=1,8\) [21, 51],

$$\begin{aligned} \beta _7= & {} \frac{1}{12}\big [3\beta _1-24\beta _2-16\beta _3-48\beta _4-5\beta _5-9\beta _6\big ], \end{aligned}$$
(4)
$$\begin{aligned} \beta _8= & {} \frac{1}{72}\big [-6\beta _1+36\beta _2+22\beta _3+64\beta _4+3\beta _5+9\beta _6\big ], \nonumber \\ \end{aligned}$$
(5)
$$\begin{aligned} \beta _6= & {} 4\beta _2+2\beta _3+8\beta _4+\beta _5, \end{aligned}$$
(6)
$$\begin{aligned} {\bar{\beta }}= & {} (-\beta _1+4\beta _2+2\beta _3+8\beta _4). \end{aligned}$$
(7)

In this specific case the cubic term is equal to the following expression [51],

$$\begin{aligned} P=6{\bar{\beta }}H^4 (2H^2+3{\dot{H}}), \end{aligned}$$
(8)

describing a topological invariant in the four dimensional space-time.

Furthermore, we shall implement the following decomposition for the specific extension of the Einstein–Hilbert action, by considering

$$\begin{aligned} \tilde{f}(R,P)=f(R)+g(P). \end{aligned}$$
(9)

In the previous formula we shall encode the effects due to the curvature couplings in the f(R) part [59], while the cubic couplings are embedded into the behavior of the g(P) functional. The scalar curvature in the case of the Robertson–Walker metric (3) is equal to

$$\begin{aligned} R=6(2 H^2+{\dot{H}}). \end{aligned}$$
(10)

For the matter component, which is assimilated into the dark matter sector, the energy–momentum tensor is defined as:

$$\begin{aligned} T_{\mu \nu }^{(m)}=-\frac{2}{\sqrt{-g}}\frac{\delta S_m}{\delta g^{\mu \nu }}. \end{aligned}$$
(11)

If we take into account the Robertson–Walker metric (3), we have the following representation for the matter energy–momentum tensor:

$$\begin{aligned} T_{\nu }^{\mu (m)}=diag[-\rho _m, +p_m, +p_m, +p_m], \end{aligned}$$
(12)

with \(\rho _m\) the density and \(p_m\) the pressure, connected through a barotropic equation of state

$$\begin{aligned} w_m=\frac{p_m}{\rho _m}, \end{aligned}$$
(13)

where \(w_m\) is a constant parameter which describes the properties of the dark matter component. For simplicity we shall consider the dust case where \(w_m=0\). This implies that the the matter component can be regarded as a pressure-less gas which is not too dense.

If we consider the variation of the action (1) with respect to the inverse metric \(g^{\mu \nu }\), for the previous mentioned decomposition (9), we obtain the following modified Friedmann relations:

$$\begin{aligned} 3 H^2=\rho _m+\rho _f+\rho _g, \end{aligned}$$
(14)
$$\begin{aligned} -2 {\dot{H}}-3 H^2=p_m+p_f+p_g. \end{aligned}$$
(15)

The densities \(\rho _f, \rho _g\) and pressures \(p_f, p_g\) have the following expressions [51]:

$$\begin{aligned} \rho _f= & {} -f(R)-6 H^2 \frac{df(R)}{dR}+R \frac{df(R)}{dR}-6 H {\dot{R}} \frac{d^2 f(R)}{dR^2}, \nonumber \\ \end{aligned}$$
(16)
$$\begin{aligned} \rho _g= & {} -g(P)-18 \beta H^4 \Big (H \frac{\partial }{\partial t} - H^2-{\dot{H}}\Big ) \frac{dg(P)}{dP}, \end{aligned}$$
(17)
$$\begin{aligned} p_f= & {} 4 \frac{df(R)}{dR} {\dot{H}}+2 \partial _t^2 \Bigg ( \frac{df(R)}{dR}\Bigg ) -2 H \partial _t \Bigg ( \frac{df(R)}{dR}\Bigg )\nonumber \\&- \frac{df(R)}{dR} R+f(R)+6 H \partial _t \Bigg ( \frac{df(R)}{dR}\Bigg )+6 \frac{df(R)}{dR} H^2, \nonumber \\ \end{aligned}$$
(18)
$$\begin{aligned} p_g= & {} g(P)+6 \beta H^3 \Big (H \partial _t^2+2(H^2+2 {\dot{H}})\nonumber \\&\times \partial _t-3 H^3-5 H {\dot{H}} \Big ) \frac{dg(P)}{dP} . \end{aligned}$$
(19)

For the present cosmological model the dark energy is encoded into the curvature and cubic couplings, having a geometrical nature. From the definitions of the energy densities and pressures, we note that the current scenario satisfies the continuity equation for the matter and dark energy sector. In the above equations \(\partial _t\) and the dot \(\dot{}\) defines the partial derivative with respect to the cosmic time, while \(\partial _t^2\) represents the double time derivative.

In the case where \(f(R)=0\) the present action (1) describes the so-called cubic extension of gravity, proposed in Ref. [51] and studied in the recent years. Furthermore, by considering \(g(P)=0\), we obtain a particular extension of the Einstein–Hilbert action which encodes specific effects due to the curvature, the modified f(R) theory of gravity [59, 60]. This framework has been studied into the past years and represents a viable extension, one of the most studied directions in the scalar tensor theories of gravity [60,61,62,63].

3 The power law decomposition

In this section we shall analyze the physical features of the present cosmological model by adopting the dynamical system analysis, an important method specific to physical systems. We shall consider that the \(\tilde{f}(R,P)\) functional is decomposed into a direct sum based on a power-law behavior, i.e. \(\tilde{f}(R,P)=f_0 R^n+g_0 P^m\). For this specific model we shall assume that \(f_0, g_0\) and nm are constant parameters. In what follows we shall introduce the following auxiliary dimension-less variables:

$$\begin{aligned}&s=\frac{\rho _m}{3 H^2 \left( 1+2 \frac{df(R)}{dR}\right) }, \end{aligned}$$
(20)
$$\begin{aligned}&x_1=\frac{f(R)}{3 H^2 \left( 1+2 \frac{df(R)}{dR}\right) }, \end{aligned}$$
(21)
$$\begin{aligned}&x_2=\frac{R \frac{df(R)}{dR}}{3 H^2 \left( 1+2 \frac{df(R)}{dR}\right) }, \end{aligned}$$
(22)
$$\begin{aligned}&x_3=\frac{2 {\dot{R}} \frac{d^2 f(R)}{d R^2}}{H (1+2 \frac{df(R)}{dR})}, \end{aligned}$$
(23)
$$\begin{aligned}&z=\frac{R}{H^2}, \end{aligned}$$
(24)
$$\begin{aligned}&y_1=\frac{g(P)}{3 H^2 \left( 1+2 \frac{df(R)}{dR}\right) }, \end{aligned}$$
(25)
$$\begin{aligned}&y_2=\frac{6 \beta H^3 \frac{\partial }{\partial t}(\frac{dg(P)}{dP})}{1+2 \frac{df(R)}{dR}}. \end{aligned}$$
(26)

At this point we note that the choice of the dimension-less variables is not unique. This specific choice is motivated by the form of the first modified Friedmann relation, the constraint equation. If we take into account that \(f(R)=f_0 R^n\) with \(f_0, n\) constant parameters, then we obtain an additional relation between \(x_2\) and \(x_1\) variable, \(x_2=n x_1\). In this case the dynamical system becomes a six dimensional system with the associated variables \([s, x_1, x_3, z, y_1, y_2]\). Here the first auxiliary variable s is associated to the matter component, acting as an effective density parameter influenced only by the Hubble parameter and the first variation of the scalar curvature coupling, embedded into the f(R) function. Taking into account the existence conditions specific to f(R) gravity theories, we have: \(s \ge 0\). The second auxiliary variable which is independent, the \(x_1\) term, is associated with the specific form of the scalar curvature coupling, embedded into the f(R) function. Next, the z variable is connected to the specific value of the scalar curvature R, balanced by the square of the Hubble parameter. Finally, the \(y_1\) variable is associated to the effects due to the cubic component, while in \(y_2\) we notice the influence from the variation of the P invariant term.

We can define the effective equation of state for the present cosmological system,

$$\begin{aligned} w_{eff}=\frac{p_m+p_f+p_g}{\rho _m+\rho _f+\rho _g}=-1-\frac{2}{3}\frac{{\dot{H}}}{H^2}. \end{aligned}$$
(27)

The effective or total equation of state is connected to the value of the z variable since

$$\begin{aligned} \frac{{\dot{H}}}{H^2}=\frac{z-12}{6}. \end{aligned}$$
(28)

This relation appears due to the value of the scalar curvature, valid for the present metric. Taking into account the previous definitions for the auxiliary variables we can rewrite the Friedmann constraint equations as the following expression, reducing the dimensionality of the dynamical system by determining the s variable,

$$\begin{aligned} s=m y_1 \left( -\frac{2}{z-8}-1\right) -(n-1) x_1+x_3+y_1+y_2+1.\nonumber \\ \end{aligned}$$
(29)

The next step for the dynamical system analysis method assumes the transformation from the cosmic time t to N, where \(N=log(a)\). In this case we shall obtain an autonomous system of ordinary differential equations described in the following relations:

$$\begin{aligned} \frac{dx_1}{dN}= & {} \frac{x_3 z}{6 (n-1)}-\frac{x_1 z}{3}-x_3 x_1+4 x_1, \end{aligned}$$
(30)
$$\begin{aligned} \frac{dx_3}{dN}= & {} \frac{6 (n-1) n x_1 {\ddot{R}}}{z^2 H^4}\nonumber \\&+\frac{1}{6} x_3^2 \left( \frac{(n-2) z}{(n-1) n x_1}-6\right) +x_3 \left( 2-\frac{z}{6}\right) , \end{aligned}$$
(31)
$$\begin{aligned} \frac{dz}{dN}= & {} \frac{x_3 z^2}{6 (n-1) n x_1}-\frac{z^2}{3}+4 z, \end{aligned}$$
(32)
$$\begin{aligned} \frac{dy_1}{dN}= & {} \frac{y_2 z}{6 (m-1)}-\frac{4 y_2}{3 (m-1)}-x_3 y_1-\frac{y_1 z}{3}+4 y_1, \end{aligned}$$
(33)
$$\begin{aligned} \frac{dy_2}{dN}= & {} \frac{1}{6} \left( \frac{12 (m-1) m y_1 {\ddot{P}}}{\beta (z-8)^2 H^8}\right. \nonumber \\&\left. +\frac{(m-2) y_2^2 (z-8)}{(m-1) m y_1}+3 y_2 \left( -2 x_3+z-12\right) \right) .\nonumber \\ \end{aligned}$$
(34)

In the dynamical system determined by the equations (30)–(34) we notice that we have two components which have to be determined, \(\frac{{\ddot{R}}}{H^4}\) and \(\frac{{\ddot{P}}}{H^8}\). These components are determined by considering the acceleration equation (15) with the specific expressions for the scalar curvature and the P invariant term, expressed into the relations (10) and (8). Hence, the acceleration equation can be rewritten in terms of the auxiliary variables in the following way:

$$\begin{aligned} H^2-\frac{H^2 z}{3}= & {} -\frac{2 m^2 y_1 z {\ddot{P}}}{\beta H^6 (z-8)^2 \left( 6 n x_1-z\right) }\nonumber \\&+\frac{2 m y_1 z {\ddot{P}}}{\beta H^6 (z-8)^2 \left( 6 n x_1-z\right) }\nonumber \\&+\frac{H^2 y_2^2 z^2}{3 (m-1) m y_1 \left( 6 n x_1-z\right) }+\frac{5 H^2 m y_1 z^2}{(z-8) \left( 6 n x_1-z\right) } \nonumber \\&-\frac{H^2 y_2^2 z^2}{6 (m-1) y_1 \left( 6 n x_1-z\right) }\nonumber \\&+\frac{4 H^2 y_2^2 z}{3 (m-1) y_1 \left( 6 n x_1-z\right) }-\frac{42 H^2 m y_1 z}{(z-8) \left( 6 n x_1-z\right) }\nonumber \\&-\frac{8 H^2 y_2^2 z}{3 (m-1) m y_1 \left( 6 n x_1-z\right) }-\frac{6 n^2 x_1{\ddot{R}}}{H^2 z \left( 6 n x_1-z\right) } \nonumber \\&+\frac{6 n x_1 {\ddot{R}}}{H^2 z \left( 6 n x_1-z\right) }\nonumber \\&-\frac{2 H^2 y_2 z^2}{3 \left( 6 n x_1-z\right) }-\frac{3 H^2 y_1 z^2}{(z-8) \left( 6 n x_1-z\right) }\nonumber \\&+\frac{24 H^2 y_1 z}{(z-8) \left( 6 n x_1-z\right) }+\frac{6 H^2 y_2 z}{6 n x_1-z}\nonumber \\&+\frac{H^2 x_3^2 z^2}{3 (n-1) n x_1 \left( 6 n x_1-z\right) } \nonumber \\&-\frac{H^2 x_3^2 z^2}{6 (n-1) x_1 \left( 6 n x_1-z\right) }\nonumber \\&+\frac{6 H^2 n x_1}{6 n x_1-z}+\frac{H^2 n x_1 z}{6 n x_1-z}\nonumber \\&-\frac{3 H^2 x_1 z}{6 n x_1-z}-\frac{2 H^2 x_3 z}{6 n x_1-z}. \end{aligned}$$
(35)

Another relation between \({\ddot{R}}\) and \({\ddot{P}}\) is determined by considering the specific expressions for these invariants in the case of the Robertson–Walker metric. Taking into account the previous mentioned considerations, we obtain:

$$\begin{aligned} {\ddot{P}}= & {} 1728 \beta H^8-\frac{640 \beta H^8 y_2}{m^2 y_1-m y_1}+\frac{\beta H^8 y_2 z^3}{m^2 y_1-m y_1}\nonumber \\&-\frac{26 \beta H^8 y_2 z^2}{m^2 y_1-m y_1}+\frac{224 \beta H^8 y_2 z}{m^2 y_1-m y_1}\nonumber \\&+\frac{2 \beta H^8 x_3 z^2}{n x_1-n^2 x_1}-3 \beta H^8 z^3+84 \beta H^8 z^2 \nonumber \\&-720 \beta H^8 z+3 \beta H^4 {\ddot{R}}. \end{aligned}$$
(36)
Fig. 1
figure 1

The fourth eigenvalue for the first cosmological solution A in the case where \(x_1=1\)

Fig. 2
figure 2

The fifth eigenvalue for the first cosmological solution A in the case where \(x_1=1\)

At this step we can note that the dynamical system of differential equations (30)–(34) is completely autonomous and closed, ready for the dynamical system analysis. For the present model we have obtained two critical points, determined by setting the right hand side of the autonomous equations (30)–(34) to zero.

The first cosmological solution represents a critical line located at the following coordinates:

$$\begin{aligned} A= & {} \Big [x_1, x_3=0, z=12, \nonumber \\y_1= & {} -\frac{2 \left( n x_1-x_1-1\right) }{3 m-2}, y_2=0 \Big ]. \end{aligned}$$
(37)

For this critical line we note that the nm parameters are influencing the location in the phase space structure. This critical line is characterized by an indefinite value of the \(x_1\) variable which encodes effects due to the scalar curvature coupling. Moreover, the value of the z variable is constant, without any influence from the constant parameters. From a physical point of view this solution describes a de-Sitter epoch where the effective equation of state mimics a cosmological constant,

$$\begin{aligned} w_{eff}=-1. \end{aligned}$$
(38)

In this case the value of the s variable is zero, describing a possible late time stage of the Universe. Hence, this solution can be regarded as a geometrical de-Sitter epoch, with the physical effects encoded into the specific form of the f(R) and g(P) functions which are correcting the Einstein–Hilbert action. From a dynamical perspective this solution is always saddle, due to the specific form of the obtained eigenvalues:

$$\begin{aligned} \Big [0, 4, -3, \Big (C_1 \Big )^{-1} \Big (\sqrt{C_2}{+}C_3\Big ), \Big (C_1 \Big )^{-1} \Big (-\sqrt{C_2}{+}C_3\Big ) \Big ],\nonumber \\ \end{aligned}$$
(39)

with the following expressions:

$$\begin{aligned} C_1= & {} 2 (m-1) (3 m-2) (n-1) n x_1 \left( (n-1) x_1 \right. \nonumber \\&\times \left. \left( 18 m^2-3 m (n+6)+2 n\right) -18 (m-1) m\right) ,\end{aligned}$$
(40)
$$\begin{aligned} C_2= & {} (2-3 m)^2 (m-1)^2 (n-1)^2 n^2 x_1^2 ((n-1) x_1 \nonumber \\&\times (25 (2-3 m) n+6 m (75 m-59))\nonumber \\&-450 (m-1) m-64) ((n-1) x_1 (18 m^2-3 m (n+6)+2 n)\nonumber \\&-18 (m-1) m), \end{aligned}$$
(41)
$$\begin{aligned} C_3= & {} 3 (m-1) (3 m-2) (n-1) n x_1 \left( (n-1) x_1\right. \nonumber \\&\times \left. (3 m (-6 m+n+6)-2n)+18 (m-1) m\right) . \end{aligned}$$
(42)

For this solution we have displayed in Figs. 1 and 2 the specific real values of the fourth and fifth eigenvalues, by setting the value of the \(x_1\) variable. At this point, we note that the n and m parameters are only influencing the spiral behavior in the phase space. In this case a spiral trajectory is obtained if the corresponding eigenvalues contain imaginary values. For the A solution a spiral behavior is obtained if the \(C_2\) component represents a complex number.

The second cosmological solution is located at the following coordinates:

$$\begin{aligned} B= & {} \Bigg [ x_1=\frac{2 (3 m-4 n)}{n (5 m-4 n)}, x_3=-\frac{8 (m n-m)}{5 m-4 n}, z=\frac{12 (3 m-4 n)}{5 m-4 n}, \nonumber \\ y_1= & {} \frac{2 (m+4 n) (m (8 n-15)+12 n) (m (n (8 n-7)-6)-4 (n-2) n)}{3 n (5 m-4 n) \left( 16 \left( 4 m^3-7 m+2\right) n^2+5 (5 m-2) m^2-8 (m (14 m-19)+4) m n\right) }, \nonumber \\ y_2= & {} \frac{8 (m-1) m (m (8 n-15)+12 n) (m (n (8 n-7)-6)-4 (n-2) n)}{(5 m-4 n) \left( 16 \left( 4 m^3-7 m+2\right) n^2+5 (5 m-2) m^2-8 (m (14 m-19)+4) m n\right) } \Bigg ].\qquad \qquad \end{aligned}$$
(43)

The effective equations of state presents a sensitivity to the values of the n and m parameters,

$$\begin{aligned} w_{eff}=\frac{12 n-7 m}{3 (5 m-4 n)}. \end{aligned}$$
(44)

In Fig. 3 we have displayed the graphical representation of the value of the effective equation of state as a function of the n and m parameters. These parameters are encoding the effects due to the curvature and the cubic invariant term, respectively. At this critical point the value of the s variable is the following:

$$\begin{aligned} s=\frac{8 m \left( -3 m^2 \left( 8 n^2-7 n-6\right) +m n \left( 8 n^2+5 n-30\right) -4 (n-2) n^2\right) }{3 n \left( m^3 \left( 64 n^2-112 n+25\right) +2 m^2 (76 n-5)-16 m n (7 n+2)+32 n^2\right) }. \end{aligned}$$
(45)

The values of the s variable for the second cosmological solution B is displayed in Figs. 4 and 5. We note that in this figure we have displayed only the [0, 1] interval. As previously stated, the s component is associated to an effective matter density variable which has to be positive from a physical point of view. Hence, we have displayed in Figs. 4 and 5 some possible non-exclusive intervals where the B solution is physically viable.

Furthermore, for the dynamical analysis we have obtained the following eigenvalues:

$$\begin{aligned} \left[ \frac{8 m (n-1)}{5 m-4 n}, E_2, E_3, E_4, E_5\right] . \end{aligned}$$
(46)

Due to the complexity, at this point we have written only the expression for the first eigenvalue. The remaining eigenvalues have different complicated expressions and are not written in the manuscript. From the dynamical analysis we have observed that this point can be either stable, saddle or unstable. Hence, we have identified different regions associated to the previous mentioned features, displayed in Fig. 6. Lastly, for the B critical point, we have shown the viability of the analytical expressions obtained, by considering the numerical evolution in the phase space structure. The numerical evolution towards the B solution is displayed in Figs. 7 and 8. We note that from a physical point of view this solution can be associated to various cosmological features, explaining the accelerated expansion effect, as well as other different cosmological epochs in the evolution of the Universe. All of these can be achieved by fine-tuning the values of the n and m parameters.

4 The exponential decomposition

In this section we shall adopt a second parameterization which involves a specific exponential decomposition where \(\tilde{f(R, P)}=f(R)+g(P)=f_0 e^{n R}+ g_0 e^{m P}\), with\(f_0, g_0, n, m\) constant parameters. In this case we shall introduce the following auxiliary variables by analyzing the Friedmann constraint equation:

$$\begin{aligned} s=\frac{\rho _m}{3 H^2 (1+2 f'(R))}, \end{aligned}$$
(47)
$$\begin{aligned} x_1=\frac{f(R)}{3 H^2 (1+2 f'(R))}, \end{aligned}$$
(48)
$$\begin{aligned} x_2=\frac{R f(R)}{3 H^2 (1+2 f'(R))}, \end{aligned}$$
(49)
$$\begin{aligned} x_3=\frac{2 {\dot{R}} f''(R)}{H (1+2 f'(R))}, \end{aligned}$$
(50)
$$\begin{aligned} x_4=n H^2, \end{aligned}$$
(51)
$$\begin{aligned} z=\frac{R}{H^2}. \end{aligned}$$
(52)
Fig. 3
figure 3

The figure displays the value of the effective equation of state as a function of the two parameters n and m for the B critical point

Fig. 4
figure 4

The value of the s variable for the B critical point. For this figure we have displayed only the [0, 1] interval

Fig. 5
figure 5

The value of the s variable associated to the B critical point

Fig. 6
figure 6

The figure displays the regions in the space associated to n and m parameters for which the B critical point has the following dynamics: unstable (yellow), stable (blue), and saddle (red)

Fig. 7
figure 7

The evolution towards the B critical point in the \(x_1 O x_3\) plane in the case where \(n=0.5\), \(m=0.8\). The initial conditions have been fine-tuned. The B critical point appears as a yellow dot

Fig. 8
figure 8

The evolution towards the B critical point in the \(x_1 O y_2\) plane for various initial conditions

Fig. 9
figure 9

A possible region where the D solution appears to have a spiral behavior due to the imaginary values of the corresponding eigenvalues \((\beta =-2, x_4=1, y_1=-1)\)

Fig. 10
figure 10

A non-exclusive possible region where the F critical have a spiral behavior due to the imaginary values of the corresponding eigenvalues \((\beta =-1, x_1=1/2)\)

$$\begin{aligned} y_1=\frac{g(P)}{3 H^2 (1+2 f'(R))}, \end{aligned}$$
(53)
$$\begin{aligned} y_2=\frac{6 \beta H^3 \partial _t (g'(P))}{1+2 f'(R)}. \end{aligned}$$
(54)

If we take into account the exponential decomposition \(\tilde{f(R, P)}=f_0 e^{n R}+ g_0 e^{m P}\) the \(x_2\) variable becomes a dependent component, while the remaining independent variables are the following: \([s, x_1, x_3, x_4, z, y_1, y_2]\). Then, the Friedmann constraint equation (14) has the following form:

$$\begin{aligned} s= & {} -\frac{3 \beta m x_4^3 y_1 (z-6)}{n^3}+x_1 \nonumber \\&\times \left( 1-x_4 z\right) +x_3+y_1+y_2+1, \end{aligned}$$
(55)

reducing the dimension of the corresponding dynamical system with one unit. If we take into account a pressure-less matter fluid \((w_m=0)\), then the second modified Friedmann relation can be written as:

$$\begin{aligned}&\frac{1}{3} \left( \frac{12 x_4}{n}-\frac{x_4 z}{n}\right) -\frac{3 x_4}{n}\nonumber \\&\quad =-\frac{18 \beta m^2 x_4^3 y_1 {\ddot{P}}}{n^3 \left( 6 x_1 x_4-1\right) }-\frac{126 \beta m x_4^4 y_1}{n^4 \left( 6 x_1 x_4-1\right) }+\frac{15 \beta m x_4^4 y_1 z}{n^4 \left( 6 x_1 x_4-1\right) } \nonumber \\&\qquad -\frac{n^2 y_2^2}{18 \beta m x_4^2 \left( 6 x_1 x_4-1\right) y_1} -\frac{6 n x_1 x_4 {\ddot{R}}}{6 x_1 x_4-1} \nonumber \\&\qquad -\frac{2 x_4 y_2 z}{3 n \left( 6 x_1 x_4-1\right) }+\frac{6 x_4 y_2}{n \left( 6 x_1 x_4-1\right) } \nonumber \\&\qquad -\frac{3 x_4 y_1}{n \left( 6 x_1 x_4-1\right) }+\frac{x_1 x_4^2 z}{n \left( 6 x_1 x_4-1\right) }+\frac{6 x_1 x_4^2}{n \left( 6 x_1 x_4-1\right) } \nonumber \\&\qquad -\frac{3 x_1 x_4}{n \left( 6 x_1 x_4-1\right) }-\frac{2 x_3 x_4}{n \left( 6 x_1 x_4-1\right) }-\frac{x_3^2}{6 n x_1 \left( 6 x_1 x_4-1\right) }.\nonumber \\ \end{aligned}$$
(56)

In this case the final dynamical system obtained is described by the following differential equations:

$$\begin{aligned}&\frac{dx_1}{dN}=-\frac{x_1 z}{3}-x_3 x_1+4 x_1+\frac{x_3}{6 x_4}, \end{aligned}$$
(57)
$$\begin{aligned}&\frac{dx_3}{dN}=6 n^2 x_1 {\ddot{R}}+x_3 \left( 2-\frac{z}{6}\right) +x_3^2 \left( \frac{1}{6 x_1 x_4}-1\right) , \end{aligned}$$
(58)
$$\begin{aligned}&\frac{dx_4}{dN}=\frac{1}{3} x_4 (z-12), \end{aligned}$$
(59)
$$\begin{aligned}&\frac{dz}{dN}=\frac{x_3}{6 x_1 x_4^2}-\frac{z^2}{3}+4 z, \end{aligned}$$
(60)
$$\begin{aligned}&\frac{dy_1}{dN}=\frac{n^3 y_2}{18 \beta m x_4^3}-x_3 y_1-\frac{y_1 z}{3}+4 y_1, \end{aligned}$$
(61)
$$\begin{aligned}&\frac{dy_2}{dN}=\frac{18 \beta m^2 x_4^2 y_1 {\ddot{P}}}{n^2}+\frac{n^3 y_2^2}{18 \beta m x_4^3 y_1}-x_3 y_2+\frac{y_2 z}{2}-6 y_2. \end{aligned}$$
(62)

In order to close the dynamical system an additional relation between \({\ddot{R}}\) and \({\ddot{P}}\) is obtained, by differentiating the values specific to R and P components with respect to time. Considering the auxiliary variables, we obtain the following relation:

$$\begin{aligned} {\ddot{P}}= & {} -\frac{10 n^2 y_2}{9 \beta m^2 x_4^2 y_1}+\frac{n^2 y_2 z}{9 \beta m^2 x_4^2 y_1}+\frac{1728 \beta x_4^4}{n^4}-\frac{2 \beta x_3 x_4^2}{n^4 x_1}\nonumber \\&-\frac{3 \beta x_4^4 z^3}{n^4}+\frac{84 \beta x_4^4 z^2}{n^4}-\frac{720 \beta x_4^4 z}{n^4}+\frac{3 \beta x_4^2 {\ddot{R}}}{n^2}. \end{aligned}$$
(63)

At this point the second system of ordinary differential equations (57)–(62) is completely autonomous and can be analyzed using a dynamical system approach. In this case we have identified two critical points by analysing the right hand side of the (57)–(62) equations.

The first class of critical points is located at the following coordinates:

$$\begin{aligned} D{=}\left[ x_1{=} \frac{-18 \beta m x_4^3 y_1{+}n^3 y_1+n^3}{n^3 \left( 12 x_4-1\right) }, x_3=0,z=12,y_2=0\right] .\nonumber \\ \end{aligned}$$
(64)

The cosmological epoch associated to this class represents a de-Sitter era (\(w_{eff}=-1\)) where the geometrical dark energy component completely dominates in terms of density parameters (\(s=0\)). Moreover, we note that the auxiliary variables \(y_1\) and \(x_4\) have independent values. Furthermore, for this specific solution the values of the auxiliary variables \(y_1\) and \(x_4\) determine the location of the \(x_1\) coordinate. From a physical point of view, this solution represents a geometrical de-Sitter epoch where the values of n and m parameters are affecting the location in the phase space structure and the dynamical properties. The eigenvalues of this solution have the following representations if we set some of the independent variables (\(y_1=-1, x_4=1, \beta =-2\)):

$$\begin{aligned}&\left[ 0,0,-3,4,-\frac{594 m^2 n^3\pm \sqrt{2} \sqrt{m n^6 \left( 490050 m^3+84744 m^2 n^3+3775 m n^6+11 n^9\right) }+54 m n^6}{396 m^2 n^3+36 m n^6} \right] . \end{aligned}$$
(65)

From a dynamical point of view the D solution is always saddle with one positive eigenvalue and one negative eigenvalue. We also note that the first two eigenvalues are equal to zero, describing a non-hyperbolic solution. Hence, the values of the n and m coefficients are affecting the behavior in the phase space for the spiral properties of the corresponding trajectory. A non-exclusive region where the trajectory in the phase space is spiral due to the complex behavior of the last two eigenvalues in Eq. (65) is displayed in Fig. 9.

Lastly, the second class of critical points is located at the following coordinates:

$$\begin{aligned} F{=}\left[ x_3{=}0,x_4{=}\frac{1}{12},z{=}12,y_1=-\frac{96 n^3}{96 n^3-\beta m},y_2{=}0\right] .\nonumber \\ \end{aligned}$$
(66)

The cosmological epoch associated to this class represents also a de-Sitter era (\(w_{eff}=-1\)) where the geometrical dark energy component completely dominates in terms of density parameters (\(s=0\)). For this solution we note that the auxiliary variables \(x_1\) is independent. From a physical point of view, the F solution represents a geometrical de-Sitter epoch where the values of nm and \(\beta \) parameters are affecting the location in the phase space structure through the value of the \(y_1\) component. The eigenvalues of this solution are the following:

$$\begin{aligned} \Big [0,0,-3,4, \Xi _5, \Xi _6 \Big ]. \end{aligned}$$
(67)

For this solution the specific form of the last two eigenvalues \(\Xi _5, \Xi _6\) is not displayed due to the complicated form of the obtained relations. From a dynamical point of view, the E solution has a similar behavior to the previous one, describing a non-hyperbolic epoch always saddle where the de-Sitter dynamics appears from the curvature and cubic extensions. As in the previous point, the values of the n and m coefficients are affecting only the spiral properties of the phase space. In the Fig. 10 we have displayed a possible region characterized by a spiral behavior due to the imaginary values of the last eigenvalues \(\Xi _5\) and \(\Xi _6\).

5 Conclusions

In this paper we have extended the Einstein–Hilbert action by adding a generic term \(\tilde{f}(R,P))\) which depends on the scalar curvature R and the specific invariant P, based on different cubic contractions of the Riemann tensor. This action can be regarded as an attempt which corrects the \(\Lambda CDM\) model by encoding particular geometrical invariants, leading to possible interesting dynamical effects. In our approach we have first considered that the generic term \(\tilde{f}(R,P)\) can be written as a direct sum between the geometrical constituents, taking into account the power law decomposition, i.e. \(\tilde{f}(R,P) \rightarrow f_0 R^n+g_0 P^m\).

After we have obtained the specific modified Friedmann equations, the constraint and the acceleration equation, we have investigated the physical characteristics of the present cosmological model by considering an analytical approach based on the dynamical system analysis. Hence, we have introduced specific dimension-less variables, approximating the evolution of the cosmological model as an autonomous system of ordinary differential equations, applying the analytical methods associated to dynamical systems. In this regard, we have obtained the critical points specific to the present cosmological model, analyzing the location in the physical phase space and the viability of these solutions. For each critical point we have determined the associated eigenvalues, detecting the dynamical characteristics. In the case of the power law decomposition the present dynamical system has two critical points.

The first critical point represents a de-Sitter epoch, where the effective equation of state corresponds to a cosmological constant-like solution. Analyzing the eigenvalues corresponding to this critical point, we have noticed the this point cannot be stable or unstable, always representing a saddle solution, due to the existence of one eigenvalue with positive real part, and one eigenvalue with a negative real part. Moreover, due to the presence of one zero eigenvalue, we also note that this solution represents a non-hyperbolic equilibrium in the physical phase space.

The second critical point represents a cosmological era where the dynamical features depend on the specific values of the geometric couplings, the n and m parameters, encoding effects due to the curvature and the cubic gravity type parameterization. In this case the effective equation of state is sensitive to the values of the n and m parameters and can describe various epochs. Hence this solution can also be associated to a matter or radiation era for specific values of the n and m constant parameters. Moreover, it can describe also a quintessence or phantom-like epoch, explaining the super-acceleration scenario. Furthermore, it can also be associated to some cosmological solutions, stiff or super-stiff dynamics. For this solution the form of the eigenvalues depend on the specific values of the n and m parameters, describing a hyperbolic equilibrium. We have analyzed the second equilibrium point from a dynamical point of view, showing that in certain cases this solution can be stable, saddle, or unstable. Lastly, some specific solutions have been analyzed, determining the evolution and the viability of the analytical solutions.

In our study we have also considered an exponential decomposition \(\tilde{f}(R, P)\rightarrow f_0 e^{n R}+ g_0 e^{m P}\), with \(f_0, g_0, n, m\) constant parameters in Sect. 4. For this specific case we have analyzed the structure and properties of the corresponding phase space, revealing the cosmological solutions obtained. For the exponential model we have identified two cosmological de-Sitter epochs where the values of the n and m parameters are affecting the location in the phase space and the dynamical properties of the corresponding trajectories.

The present paper offers a generalization to the f(R) gravity theories, by embedding an invariant component denoted g(P), based on specific contractions of the Riemann tensor in the third order. In this way the f(R) gravity theory is extended, by including specific geometrical manifestations from the cubic component, offering a generalization to the basic Einstein–Hilbert action towards a more complete gravity theory. In the current manuscript the investigation is based on the usage of dynamical system analysis, an important tool in cosmology [59]. We mention here that in order to better discriminate between the effects due to the scalar curvature part and the cubic component, various reconstruction methods can in principle be applied [11] to the present model, obtaining possible constraints due to different dynamical behaviors. Another important aspect in the dynamical system analysis is related to the viability of the corresponding singularities at finite time. For the f(R) gravity theory the properties of the resulting singularities have been investigated in Ref. [63]. In principle, such an analysis can be applied for specific models of f(RP), obtaining possible constraints from the physical properties of the corresponding models.

We note that the present cosmological model can be also extended in various applications, by analyzing different specific models and solutions to the gravitational field equations, by considering effects due to the curvature and the cubic term. One particular extension is related to the inclusion of the Gauss–Bonnet topological invariant, leading to a more generic theory of gravity. A different approach is related to the study of the inflationary era, an epoch where this theory can have visible effects in the early times. Furthermore, one can consider different specific models for the \(\tilde{f}(R,P)\) gravity by taking into account possible parameterizations, as an exponential decomposition or more complex models which can include a cosmological constant. All of the previous mentioned questions and directions are open and left as possible future investigations.

Another important aspect in modified gravity theories is related to the study of various instabilities which can manifest. In the case of Einsteinian cubic gravity various studies [49, 50] have indicated that some pathological instabilities might emerge, leaving the corresponding theory unhealthy from a physical point of view. The gravitational theory studied at the background level in the present paper represents a generalised attempt based on non-linear cubic and curvature extensions for the Einstein–Hilbert action. To this regard, the current model have to be considered only as an effective theory and needs to be analyzed from this point of view. An expanded discussion on this issue is presented in a recent publication [57].