1 Introduction

While current astronomical observations favour the standard cosmological model [1], the \(\varLambda \)CDM model plays only the role an effective theory of the Universe which offers rather the description of the current properties of the Universe than its explanations. The origin of properties of the current Universe we should find in the very early Universe. In this context a very simple inflation model was proposed by Starobinsky in 1980 [2]. This model attracted attention of cosmologists because it can explain some troubles of the \(\varLambda \)CDM model in a very simple way. Moreover, this evolutionary scenario is generic and emerged in cosmology in different contexts [1]. In this model, the inflationary scenario of the Universe is driven by the higher quadratic term in the action which takes the form \(S=\int \sqrt{-g}\left( R+\frac{R^2}{6M^2}\right) {\mathrm {d}}^4 x\).

This model [3, 4] predicts that the slow roll parameters \(n_s=1-\frac{2}{N}\) and \(r=\frac{12}{N^2}\) where \(N=50\sim 60\) is the number of e-folds before the end of inflation, are in good agreement with Planck 2015 data [1].

On the other hand, from the viewpoint of the complete quantum theory of gravity, higher order corrections \(\alpha '=1/M_s^2\) to the Einstein–Hilbert action are always expected i.e.

$$\begin{aligned} S= & {} \int \sqrt{-g}(R+c_2 \alpha ' R^2\nonumber \\&+\sum _{i=3}c_i\alpha '^{i-1}R^i\nonumber \\&+\text { other higher derivative terms}){\mathrm {d}}^4 x, \end{aligned}$$
(1)

where \(c_i\) are the dimensionless couplings.

The higher derivative terms in the action may also originate from supergravity [5, 6].

The problem of inflation in polynomial f(R) cosmology was investigated in the metric formalism in [7], where the spectral index and tensor-to-scalar ratio were calculated in the f(R) inflation model.

In this paper we will phenomenologically investigate the inflation model with a polynomial form of the potential in the Palatini formalism in the Einstein frame [8, 9]. For simplicity we truncate a Taylor series on the term \(R^3\).

In the present paper we consider cosmological models of modified gravity which are the polynomial extensions of the Starobinsky model because our aim is to study how tuned is this model and in consequence its prediction—inflation. However, we must remember that the exact form of the function f(R) can be different from such a choice. In particular the adding of negative powers in a f(R) series is also very interesting [10]. The treating of the relation f(R) in the form of a series with respect to R guarantees that it is simple enough to handle it easily in the study of physical effects of modified gravity [11]. On the other hand, the introduction of negative powers of R may lead to instabilities [12].

Therefore, it is interesting to investigate some stable isotropic cosmological models describing both inflation and present acceleration in f(R) gravity. In this context the idea of quintessential cosmology seems to be interesting [10, 13]. In the metric approach a more complicated, non-polynomial form of the function f(R) is required at low curvature [14].

The main aim of the paper is to investigate how rigid the Starobinsky model of inflation is and if it can be disturbed by switching higher order terms. Therefore, our study is motivated by a stability investigation. If the Starobinsky model is stable it is in some sense generic. The standard Starobinsky model of inflation is formulated in the background of a metric formulation of f(R) modified gravity. In this paper we formulate f(R) theory in the Palatini formalism which gives us an equation of motion in the form of a second order equation. The inflation similarly to the Starobinsky approach is obtained after transition to the Einstein frame. We obtain the form of the potential for the scalar field in the covariant form directly parameterized by the Ricci scalar in the Palatini formulation.

We investigate how the shape of the potential changes under changing of the parameter which measures the fraction of the higher order term in the assumed f(R) formula.

In modern cosmology, the Starobinsky model of inflation plays a crucial role [2]. This model of the cosmic inflation is considered as a source of the inflaton field—higher curvature corrections with respect to the Ricci scalar R in the Einstein–Hilbert action of gravity of the type \(R^2.\)

The Starobinsky model seems to be distinguished among different alternative models of inflation in predicting a low value of the scalar-to-tensor ratio r; namely, it predicts that \(r\sim 12/N^2\), where N is the number of e-foldings during inflation [15].

The Starobinsky model is also favoured by experimental results [1, 16,17,18,19] which give an upper bound on r around the value of 0.1. What it is important from the observational point of view the Starobinsky model is the model with the highest Bayesian evidence [17]. It is characteristic that the other types of models which also fit the data are actually equivalent to the Starobinsky model during inflation [15].

From the methodological point of view it is important that the Starobinsky model can be embedded in different domains of fundamental physics. The situation is in some sense similar to what happens in mathematics, where an important theorem has many references to it in different areas of mathematics. Here, one can distinguish embedding into the supergravity [20, 21] and embedding into the superstring theory [22,23,24,25,26].

In our paper we consider a new embedding of the Starobinsky model into cosmology of Palatini gravity. The emergence of inflation will be demonstrated as an endogenous dynamical effect in the Palatini formulation of gravity applied to FRW cosmology.

2 Cosmological equations for the polynomial \(f({\hat{R}})\) theory in the Palatini formalism in the Einstein frame

In the Palatini formalism, the gravity action for \(f(\hat{R})\) gravity has the following form:

$$\begin{aligned} S=S_{\text {g}}+S_{\text {m}}=\frac{1}{2}\int \sqrt{-g}f(\hat{R}) {\mathrm {d}}^4 x+S_{\text {m}}, \end{aligned}$$
(2)

where \({\hat{R}}\) is the generalized Ricci scalar \({\hat{R}}=g^{\mu \nu }{\hat{R}}_{\mu \nu }({\hat{\varGamma }})\) in the Palatini formalism [27, 28]. In this approach the torsionless connection \({\hat{\varGamma }}\) is treated as a variable independent of the spacetime metric \(g_{\mu \nu }\) and it is used to construct the Riemann and Ricci tensor.

Let \(f''({\hat{R}}) \ne 0 \). In this case, the action (2) has the equivalent form [11, 29, 30]

$$\begin{aligned} S(g_{\mu \nu }, \varGamma ^\lambda _{\rho \sigma }, \chi )= & {} \frac{1}{2}\int {\mathrm {d}}^4x\sqrt{-g}\Bigg (f^\prime (\chi )({\hat{R}}-\chi ) \nonumber \\&+ f(\chi ) \Bigg ) + S_m(g_{\mu \nu },\psi ) . \end{aligned}$$
(3)

We introduce a scalar field \(\varPhi =f'(\chi )\), where \(\chi ={\hat{R}}\). Then the action (3) is given by the following form:

$$\begin{aligned} S(g_{\mu \nu }, \varGamma ^\lambda _{\rho \sigma },\varPhi )= & {} \frac{1}{2}\int \mathrm {d}^4x\sqrt{-g}\left( \varPhi {\hat{R}} - U(\varPhi ) \right) \nonumber \\&+ S_m(g_{\mu \nu },\psi ), \end{aligned}$$
(4)

where the potential \(U(\varPhi )\) is defined as

$$\begin{aligned} U_f(\varPhi )\equiv U(\varPhi )=\chi (\varPhi )\varPhi -f(\chi (\varPhi )) \end{aligned}$$
(5)

with \(\varPhi = \frac{{\mathrm {d}} f(\chi )}{{\mathrm {d}}\chi }\) and \({\hat{R}}\equiv \chi = \frac{{\mathrm {d}} U(\varPhi )}{{\mathrm {d}}\varPhi }\).

The equations of motion are obtained after the Palatini variation of the action (4),

$$\begin{aligned}&\varPhi \left( {\hat{R}}_{\mu \nu } - \frac{1}{2} g_{\mu \nu } {\hat{R}} \right) + \frac{1}{2} g_{\mu \nu } U(\varPhi ) - T_{\mu \nu } = 0, \end{aligned}$$
(6a)
$$\begin{aligned}&{\hat{\nabla }}_\lambda (\sqrt{-g}\varPhi g^{\mu \nu })=0, \end{aligned}$$
(6b)
$$\begin{aligned}&{\hat{R}} - U'(\varPhi ) =0. \end{aligned}$$
(6c)

From Eq. (6b) we see that a metric connection \({\hat{\varGamma }}\) is a new (conformally related) metric \({\bar{g}}_{\mu \nu }=\varPhi g_{\mu \nu }\); thus \({\hat{R}}_{\mu \nu }={\bar{R}}_{\mu \nu }, {\bar{R}}= {\bar{g}}^{\mu \nu }{\bar{R}}_{\mu \nu }=\varPhi ^{-1} {\hat{R}}\) and \({\bar{g}}_{\mu \nu }{\bar{R}}=\ g_{\mu \nu }{\hat{R}}\). We can obtain from the g-trace of Eq. (6a) a new structural equation,

$$\begin{aligned} 2U(\varPhi )-U'(\varPhi )\varPhi =T. \end{aligned}$$
(7)

Let \({\bar{U}}(\phi )=U(\phi )/\varPhi ^2\), \({\bar{T}}_{\mu \nu }=\varPhi ^{-1}T_{\mu \nu }\). Then Eq. (6a) and (6c) can be rewritten in the following form:

$$\begin{aligned}&{\bar{R}}_{\mu \nu } - \frac{1}{2} {\bar{g}}_{\mu \nu } {\bar{R}} = {\bar{T}}_{\mu \nu }- \frac{1}{2} {\bar{g}}_{\mu \nu } {\bar{U}}(\varPhi ), \end{aligned}$$
(8)
$$\begin{aligned}&\varPhi {\bar{R}} - (\varPhi ^2\,{\bar{U}}(\varPhi ))' =0, \end{aligned}$$
(9)

and we get the following structural equation:

$$\begin{aligned} \varPhi \,{\bar{U}}'(\varPhi ) + {\bar{T}} = 0. \end{aligned}$$
(10)

In this case the action for the metric \({\bar{g}}_{\mu \nu }\) and the scalar field \(\varPhi \) has the following form in the Einstein frame:

$$\begin{aligned} S({\bar{g}}_{\mu \nu },\varPhi )= & {} \frac{1}{2}\int \mathrm {d}^4x\sqrt{-{\bar{g}}}\left( {\bar{R}}- {\bar{U}}(\varPhi ) \right) \nonumber \\&+ S_m(\varPhi ^{-1}{\bar{g}}_{\mu \nu },\psi ) \end{aligned}$$
(11)

with a non-minimal coupling between \(\varPhi \) and \({\bar{g}}_{\mu \nu }\),

$$\begin{aligned} {\bar{T}}^{\mu \nu }= & {} -\frac{2}{\sqrt{-{\bar{g}}}} \frac{\delta }{\delta {\bar{g}}_{\mu \nu }}S_m = ({\bar{\rho }}+\bar{p})\bar{u}^{\mu }\bar{u}^{\nu }+ \bar{p}{\bar{g}}^{\mu \nu }\nonumber \\= & {} \varPhi ^{-3}T^{\mu \nu }~, \end{aligned}$$
(12)

\(\bar{u}^\mu =\varPhi ^{- \frac{1}{2}}u^\mu \), \({\bar{\rho }}=\varPhi ^{-2}\rho ,\ \bar{p}=\varPhi ^{-2}p\), \({\bar{T}}_{\mu \nu }= \varPhi ^{-1}T_{\mu \nu }, \ {\bar{T}}= \varPhi ^{-2} T\) (see e.g. [30, 31]).

We take the metric \({\bar{g}}_{\mu \nu }\) in the standard form of the FRW metric,

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

where \({\mathrm {d}}{\bar{t}}=\varPhi (t)^{\frac{1}{2}}\, {\mathrm {d}}t\) and a new scale factor \(\bar{a}({\bar{t}})=\varPhi (\bar{t})^{\frac{1}{2}}a({\bar{t}})\). We assume the cosmological equations for the barotropic matter in the following form:

$$\begin{aligned} 3{\bar{H}}^2= & {} 3\left( \frac{{\dot{\bar{a}}}}{\bar{a}}\right) ^2 ={\bar{\rho }}_\varPhi + {\bar{\rho }}_\text {m}+\varLambda , \quad 6\frac{{\ddot{\bar{a}}}}{\bar{a}}\nonumber \\= & {} 2{\bar{\rho }}_\varPhi -\bar{\rho }_\text {m}(1+3w) \end{aligned}$$
(14)

where

$$\begin{aligned} {\bar{\rho }}_\varPhi ={\frac{1}{2}}{\bar{U}}(\varPhi ),\quad \bar{\rho }_{\text {m}}=\rho _0\bar{a}^{-3(1+w)}\varPhi ^{\frac{1}{2}(3w-1)} \end{aligned}$$
(15)

and \(w=\bar{p}_{\text {m}} / {\bar{\rho }}_{\text {m}}= p_{\text {m}} / \rho _{\text {m}}\). The conservation equation has the following form:

$$\begin{aligned} \dot{\bar{\rho }}_{\text {m}}+3{\bar{H}}\bar{\rho }_{\text {m}}(1+w)=-\dot{\bar{\rho }}_\varPhi . \end{aligned}$$
(16)

In this paper, we consider the Palatini model, \(f(\hat{R})=\sum \nolimits _{i=1}^n \gamma _i \hat{R}^i\), in the Einstein frame, where \(\gamma _1=1\). In this case, the potential \({\bar{U}}\) is given by the following formula:

$$\begin{aligned} {\bar{U}}({\hat{R}})=2{\bar{\rho }}_\varPhi ({\hat{R}})=\frac{\sum \nolimits _{i=1}^n (i-1)\gamma _i \hat{R}^i}{\left( \sum \nolimits _{i=1}^n i\gamma _i \hat{R}^{i-1}\right) ^2} \end{aligned}$$
(17)

and the scalar field \(\varPhi \) has the following form:

$$\begin{aligned} \varPhi ({\hat{R}})=\frac{{\mathrm {d}}f({\hat{R}})}{{\mathrm {d}}{\hat{R}}}=\sum _{i=1}^n i\gamma _i \hat{R}^{i-1}. \end{aligned}$$
(18)

3 Inflation in \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2+\delta {\hat{R}}^3\) theory in the Palatini formalism in the Einstein frame

Let \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2+\delta {\hat{R}}^3\). For this case

$$\begin{aligned} {\bar{U}}({\hat{R}})=\frac{{\hat{R}}^2(\gamma +2\delta {\hat{R}})}{\left( 1+2\gamma {\hat{R}}+3\delta {\hat{R}}^2\right) ^2} \end{aligned}$$
(19)

and

$$\begin{aligned} \varPhi =1+2\gamma {\hat{R}}+3\delta {\hat{R}}^2. \end{aligned}$$
(20)

For this parameterization, we can obtain, from the structural equation (10), a parameterization of \({\bar{\rho }}_\text {m}\) with respect to \({\hat{R}}\),

$$\begin{aligned} {\bar{\rho }}_\text {m}({\hat{R}})=\frac{{\hat{R}}-\delta {\hat{R}}^3}{\left( 1+2\gamma {\hat{R}}+3\delta {\hat{R}}^2\right) ^2}-4\varLambda . \end{aligned}$$
(21)

In consequence, the Friedmann equation is given by the following equation:

$$\begin{aligned} 3{\bar{H}}^2= & {} {\bar{\rho }}_\text {m}({\hat{R}})+\frac{{\bar{U}}({\hat{R}})}{2}+\varLambda \nonumber \\= & {} \frac{{\hat{R}}(2+\gamma {\hat{R}})}{2\left( 1+2\gamma {\hat{R}}+3\delta {\hat{R}}^2\right) ^2}-3\varLambda . \end{aligned}$$
(22)

As a reminder, the Hubble function in the Einstein frame \({\bar{H}}\) is defined by Eq. (14) and the generalized Ricci scalar in the Palatini formalism is \({\hat{R}}=g^{\mu \nu }{\hat{R}}_{\mu \nu }({\hat{\varGamma }})\).

In this model inflation appears when matter \({\bar{\rho }}_\text {m}\) is negligible with comparison to \({\bar{\rho }}_\phi \).

In the statistical analysis the slow roll parameters are helpful in the estimation of the model parameter in the inflation period [1]. These parameters are defined as

$$\begin{aligned} \epsilon =-\frac{\dot{H}}{H^2} \quad \text {and} \quad \eta =2\epsilon -\frac{\dot{\epsilon }}{2H\epsilon }. \end{aligned}$$
(23)

In our model the slow roll parameters have the following form in the case when \(\delta =0\):

$$\begin{aligned} \epsilon= & {} \frac{3}{2}\frac{\hat{R}-4\varLambda (1+2\gamma \hat{R})^2}{\hat{R}+\frac{\gamma }{2}\hat{R}^2-3\varLambda (1+2\gamma \hat{R})^2}, \end{aligned}$$
(24)
$$\begin{aligned} \eta= & {} 5+\frac{3}{2(\gamma \hat{R}-1)}+\frac{\hat{R}(1+2\gamma \hat{R})}{6\varLambda (1+2\gamma \hat{R})^2-\hat{R}(2+\gamma \hat{R})}.\nonumber \\ \end{aligned}$$
(25)

From the Planck observations, we know the limits at a 2-\(\sigma \) level of the values of the scalar spectral index \(n_\text {s}\) and the tensor-to-scalar ratio r (\(n_\text {s}=0.9667\pm 0.0040\) and \(r<0.113\) [1]). The relations between the scalar spectral index and the tensor-to-scalar ratio and the slow roll parameters are the following:

$$\begin{aligned} n_\text {s}-1=-6\epsilon +2\eta \quad \text {and} \quad r=16\epsilon . \end{aligned}$$
(26)

Because the slow roll parameters \(\epsilon \) and \(\eta \) cannot be treated as constant parameters in our model (see Figs. 1 and 2), we cannot use these parameters to find the restriction on the parameter \(\gamma \) from astronomical observations [1].

For example, if we assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\) [1], then we get \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}<\gamma <3.285\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\), \(0<\varOmega _{\text {m}} = \frac{{\bar{\rho }}_\text {m}}{3{\bar{H}}^2}<0.0047\) and \(\varOmega _{\varPhi } = \frac{{\bar{\rho }}_\varPhi }{3{\bar{H}}^2}\approx 0.50\). But this value of the parameter \(\gamma \) is too large for explaining the present evolution of the Universe. In consequence, the slow roll parameters are useless in the estimation of the parameter \(\gamma \).

The slow roll parameter approximation is more restrictive than the constant roll condition [32, 33]. The constant roll condition has the following form:

$$\begin{aligned} \beta =\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}} = \text {const}. \end{aligned}$$
(27)

When \(\beta \ll 1\) then we get the slow roll approximation.

In our case \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) is given by

$$\begin{aligned} \frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}= & {} 4-240\gamma \varLambda +\frac{2}{1-24\gamma \varLambda }-192\gamma ^2 \varLambda {\hat{R}}\nonumber \\&+\frac{9(36\gamma \varLambda -1)}{(\gamma {\hat{R}}-1)^2}\nonumber \\&+\frac{12\varLambda +3(8\gamma \varLambda -1){\hat{R}}}{(24\gamma \varLambda -1)\left( 6\varLambda +{\hat{R}}(24\gamma \varLambda -2+\gamma (24\gamma \varLambda -1){\hat{R}})\right) },\nonumber \\ \end{aligned}$$
(28)

when \(\delta =0\). \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) is not constant (see Fig. 3) at all times, but beyond the logistic-like type transition it can be well approximated by a constant value. At this intermediate interval the effects of matter do not become negligible. The constant roll inflation approximation is approximately valid beyond a short time during which the effects of matter stay very important (in consequence of the interaction between matter and dark energy).

Figure 1 presents the evolution of \(\epsilon \) with respect to the cosmological time \({\bar{t}}\). We can see that \(\epsilon \) is not a constant function when matter is not negligible (see Fig. 4).

Fig. 1
figure 1

The diagram presents the evolution of \(\epsilon \) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds. The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). Note that \(\epsilon \) is not a constant function when matter is not negligible (see Fig. 4)

Figure 2 demonstrates the evolution of \(\eta \) with respect to the cosmological time \({\bar{t}}\). Note that \(\eta \) is not a constant function when matter is not negligible (see Fig. 4). The characteristic attribute of the function \(\eta \) is the shape of the logistic-like function.

Fig. 2
figure 2

The evolution of \(\eta \) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds. The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). Note that \(\eta \) is not a constant function when matter is not negligible (see Fig. 4). It is interesting that the function \(\eta \) is of logistic-like function type

Figure 3 presents the evolution of \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) with respect to the cosmological time \({\bar{t}}\). It is important that \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) is not a constant function when matter is not negligible (see Fig. 4). It is interesting that the \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) function is of the logistic-like function type.

Note that \(\beta =\frac{{\mathrm {d}}\ln {\dot{\varPhi }}}{{\mathrm {d}}\ln a}=\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) measures the elasticity of \({\dot{\varPhi }}\) with respect to the scale factor. When \(\beta \) is constant then

$$\begin{aligned} {\dot{\varPhi }} \propto a^\beta . \end{aligned}$$
(29)

Therefore, if \(\beta \) is positive then \({\dot{\varPhi }}\) is a growing function of the scale factor. In the opposite case (\(\beta <0\)) \({\dot{\varPhi }}\) is an increasing function of the scale factor and goes to zero for large values of the scale factor.

Fig. 3
figure 3

The diagram presents the evolution of \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds. The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). Note that \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) is not a constant function when matter is not negligible (see Fig. 4). It is interesting that \(\frac{{\ddot{\varPhi }}}{{\bar{H}}{\dot{\varPhi }}}\) function is of the logistic-like function type

The slow roll approximation is achieved in our model when matter is negligible. Of course, the constant roll condition is respected automatically.

The evolution of matter in the inflation period can be divided into four phases. The first phase is when matter is negligible and the density of \({\bar{\rho }}_\text {m}\) increases by the interaction with the potential \({\bar{\rho }}_\varPhi \). The second phase is when the matter cannot be negligible and its density still increases. In this phase the injection of matter is the most effective. After achieving of the maximum of the density of \({\bar{\rho }}_\text {m}\) the third phase appears. In this phase matter still cannot be negligible but its density decreases. The last phase is when matter density decreases and is negligible.

The evolution of matter in the inflation period is presented in Fig. 4. We see all four phases of the evolution of matter. The maximum is achieved when

$$\begin{aligned} {\hat{R}}=\frac{1}{2\gamma }. \end{aligned}$$
(30)

In the maximum, the value of \({\bar{\rho }}_\text {m}\) is equal to \(\frac{1}{8 \gamma }-4\varLambda \).

Fig. 4
figure 4

The diagram presents the evolution of \({\bar{\rho }}_\text {m}\) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds and \({\bar{\rho }}_\text {m}\) is expressed in \(\frac{\text {km}^2}{\text {s}^2 \text {Mpc}^2}\). The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). Note that the maximum of this function is achieved when \({\hat{R}}=\frac{1}{2\gamma }\)

Fig. 5
figure 5

The diagram presents the typical behaviour of the function \({\bar{U}}(\varPhi )\) for the case \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2\). The potential \({\bar{U}}(\varPhi )\) is expressed in \(\frac{\text {km}^2}{\text {s}^2 \text {Mpc}^2}\). Note that, for the large value of \(\varPhi \), the function \({\bar{U}}(\varPhi )\) has the plateau

In detail, the behaviour of the potential function \({\bar{U}}(\varPhi )\) depends on the form of \(f({\hat{R}})\). For the polynomial form of \(f({\hat{R}})\), there are two cases. In the first case \(f({\hat{R}})\) is in the form \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}} ^2\). The typical behaviour of the potential \({\bar{U}}(\varPhi )\) for \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2\) is present in Fig. 5. The characteristic attribute is a plateau for a large value of \(\varPhi \) like for the Starobinsky potential [2]. In this case the formula for the potential \({\bar{U}}(\varPhi )\) has the following form:

$$\begin{aligned} {\bar{U}}(\varPhi )=\gamma \left( \frac{\varPhi -1}{2\gamma \varPhi }\right) ^2. \end{aligned}$$
(31)

The second case is when \(f({\hat{R}})\) is of the form \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}} ^2 +\sum \nolimits _{i=2}^{n} \delta _i {\hat{R}}^{i+1}\). Then the potential \({\bar{U}}(\varPhi )\) has no plateau and decreases asymptotically to zero when \(\varPhi \) goes to infinity. This situation is presented in Fig. 6. The formula for the potential \({\bar{U}}(\varPhi )\) for \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}+\delta {\hat{R}}^2\) has the following form:

$$\begin{aligned}&{\bar{U}}(\varPhi )\nonumber \\&\quad =\frac{\left( \gamma -\sqrt{\gamma ^2+3\delta (\varPhi -1)}\right) ^2 \left( \gamma +2\sqrt{\gamma ^2+3\delta (\varPhi -1)}\right) }{27 \delta ^2\varPhi ^2}.\nonumber \\ \end{aligned}$$
(32)

In the context of inflation Ijjas et al. [34] pointed out the problem with the desired plateau in the behaviour of the potential of the scalar field. Such a choice seems to be unjustified because it requires that the power series expansion of potential U with respect to \(\varPhi \) is cancelled at a precise order in \(\varPhi \) to make the plateau appear.

In agreement with Ijjas et al. we obtain the plateau of the potential \({\bar{U}}(\varPhi )\) only when \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2\). For the higher order terms in the expansion of the \(f(\hat{R})\), i.e., \({\hat{R}}^3\) and higher, the potential monotically decreases to zero.

Now, we consider in detail inflation in the two above-mentioned cases with the potential expanded to second order and third order with respect to \(\varPhi \). In consequence, we study whether the plateau is necessary for the appearance of inflation in our model and whether inflation is possible for the model with a cut-off in a higher order (\({\hat{R}}^3\) and higher) expansion.

Fig. 6
figure 6

The diagram presents the typical behaviour of the function \({\bar{U}}(\varPhi )\) for the case \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}}^2+\delta {\hat{R}}^2\). The potential \({\bar{U}}(\varPhi )\) is expressed in \(\frac{\text {km}^2}{\text {s}^2 \text {Mpc}^2}\). Note that, for a large value of \(\varPhi \), the function \({\bar{U}}(\varPhi )\) decreases asymptotically to zero

In the inflation period when the matter is negligible, the Ricci scalar \({\hat{R}}\) is constant. The evolution of the Ricci scalar \({\hat{R}}\) is presented in Fig. 7. We can see three phases of the evolution of the Ricci scalar \({\hat{R}}\). The first phase is when matter is negligible and the density of \({\bar{\rho }}_\text {m}\) is increased by an interaction with the potential \({\bar{\rho }}_\varPhi \). Then the Ricci scalar \({\hat{R}}\) is constant and is described by the following formula when \(\delta =0\):

$$\begin{aligned} {\hat{R}}=\frac{1-16\gamma \varLambda +\sqrt{1-32\gamma \varLambda }}{32\gamma ^2 \varLambda }. \end{aligned}$$
(33)

The second phase is when the matter is not negligible. In this case, the Ricci scalar \({\hat{R}}\) decreases. The last phase is when matter density decreases and is negligible. Then the Ricci scalar \({\hat{R}}\) is constant and is equal to

$$\begin{aligned} {\hat{R}}=\frac{1-16\gamma \varLambda -\sqrt{1-32\gamma \varLambda }}{32\gamma ^2 \varLambda }, \end{aligned}$$
(34)

when \(\delta =0\). The function which describes the evolution of the Ricci scalar \({\hat{R}}\) has the shape of a logistic-like function.

Fig. 7
figure 7

The diagram presents the evolution of the Ricci scalar \({\hat{R}}\) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds and the Ricci scalar \({\hat{R}}\) is expressed in \(\frac{\text {km}^2}{\text {s}^2 \text {Mpc}^2}\). The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). The transition phase is of logistic-like behaviour and is strictly correlated with a peak of the matter density, as shown in Fig. 4

The evolution of \({\bar{\rho }}_\varPhi \), in the inflation period, similar qualitatively to the evolution of the Ricci scalar \({\hat{R}}\). We can find three phases. In the first phase, \({\bar{\rho }}_\varPhi \) is constant and is equal to

$$\begin{aligned} {\bar{\rho }}_\varPhi =\frac{1-16\gamma \varLambda +\sqrt{1-32\gamma \varLambda }}{16\gamma } \end{aligned}$$
(35)

and in the last phase when \({\bar{\rho }}_\varPhi \) is also constant,

$$\begin{aligned} {\bar{\rho }}_\varPhi =\frac{1-16\gamma \varLambda -\sqrt{1-32\gamma \varLambda }}{16\gamma } \end{aligned}$$
(36)

for \(\delta =0\). The difference between \({\bar{\rho }}_\varPhi \) in the first and in the last phase is equal to

$$\begin{aligned} \varDelta {\bar{\rho }}_\varPhi =\frac{\sqrt{1-32\gamma \varLambda }}{8\gamma }\approx \frac{1}{8\gamma }. \end{aligned}$$
(37)

The evolution of \({\bar{\rho }}_\varPhi \) is presented in Fig. 8. Our model predicts a phase of the early constant dark energy which is correlated with inflation [35, 36].

Fig. 8
figure 8

The diagram presents the evolution of \({\bar{\rho }}_\varPhi \) with respect to the cosmological time \({\bar{t}}\). The time is expressed in seconds and \({\bar{\rho }}_\varPhi \) is expressed in \(\frac{\text {km}^2}{\text {s}^2 \text {Mpc}^2}\). The value of the parameter \(\gamma \) is assumed as \(3.277\times 10^{-6}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We also assume that \(\frac{\varLambda }{3H_0^2}=0.6911\), where \(H_0=67.74\frac{\text {km}}{\text {s Mpc}}\). Note that \({\bar{\rho }}_\varPhi \) is not a constant function when matter is not negligible (see Fig. 4). It is interesting that the function \({\bar{\rho }}_\varPhi \) is of the logistic-like function type

When \(\delta =0\) the number of e-folds in the first phase is equal to

$$\begin{aligned} N=\frac{1}{4\sqrt{3}}\sqrt{\frac{1+\sqrt{1-32\gamma \varLambda }}{\gamma }}\left( {\bar{t}}_\text {fin}-{\bar{t}}_\text {ini}\right) \approx \frac{{\bar{t}}_\text {fin}-{\bar{t}}_\text {ini}}{4\sqrt{3\gamma }}, \end{aligned}$$
(38)

where \({\bar{t}}_\text {fin}\) is the time of the end of inflation and \({\bar{t}}_\text {ini}\) is the time of the beginning of inflation. In the last phase

$$\begin{aligned} N=\frac{1}{4\sqrt{3}}\sqrt{\frac{1-\sqrt{1-32\gamma \varLambda }}{\gamma }}\left( {\bar{t}}_\text {fin}-{\bar{t}}_\text {ini}\right) . \end{aligned}$$
(39)

Figures 9 and 10 present the number of e-folds in the first phase with respect to the parameters \(\gamma \) and \(\delta \). In our model, inflation appears only when \(\delta \ge 0\).

Fig. 9
figure 9

The diagram presents the relation between the number of e-folds N and the parameter \(\gamma \). The parameter \(\gamma \) is given in \(\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\). We assume that \(\delta =0\) and the inflation time is of order \(10^{-32}\text {s}\) [38]

Fig. 10
figure 10

The diagram presents the relation between the number of e-folds N and the parameter \(\delta \). The parameter \(\delta \) is given in \(\frac{\text {s}^4 \text {Mpc}^4}{\text {km}^4}\). We assume that \(\gamma =1.16\times 10^{-69}\frac{\text {s}^2 \text {Mpc}^2}{\text {km}^2}\) and the inflation time is of order \(10^{-32}\text {s}\) [38]

If we assume that the parameter \(\delta \) is equal to zero and \(N=50\)–60 [37] and the inflation time is of order \(10^{-32}\text {s}\) [38] then the parameter \(\gamma \) belongs to the interval \((1.16\times 10^{-69},\text { }1.67\times 10^{-69})\). In consequence, the present value of \(\frac{\bar{\rho }_\varPhi }{3 H_0^2}\) belongs to the interval \((3.41\times 10^{-61},\text { }4.90\times 10^{-61})\). This means that the running dark energy is negligible in the present epoch and does not influence the acceleration of the present Universe.

If the parameter \(\delta \ne 0\) the number of e-folds is modified. For the parameter \(\gamma \) belonging to the interval \((1.16\times 10^{-69},\text { }1.67\times 10^{-69})\), we get the number of e-folds \(N=50\)–60, when the value of \(\delta \) parameter belongs to the interval \((0,\text { }6.4\times 10^{-140})\).

4 Conclusions

We are looking for a cosmological model in which one can see both the early inflation and the late times acceleration phase of the expansion in a unique evolutional scenario. To this aim we study the cosmological model of polynomial f(R) gravity cut on the \(R^3\) term in the Palatini formalism in the Einstein frame. This model can be treated as an extension of the Starobinsky model which is formulated in the metric formalism. Our model is formulated in the Palatini formalism, but it possesses analogous features and its main advantage is simplicity. The model is reduced to the FRW model with matter and dark energy in the form of the homogeneous scalar field. Both energy densities of the matter and dark energy are determined by the Ricci scalar of the FRW metric. Therefore they are given in the covariant way. In the Einstein frame the energy density of the dark energy is fully determined by the potential of the scalar field. Because the density of dark energy is running, the interaction appears naturally between the matter and dark energy which can also be parametrized in a covariant way through the Ricci scalar. It is interesting that in our model it is possible to achieve some analytic formulae on the energy densities of dark energy and dark matter.

While the Hilbert–Einstein action and the f(R)-action can be related by a conformal transformation [39,40,41], the corresponding equations are connected by the same transformation. This fact shows that the Einstein frame and the Jordan frame are mathematically equivalent [42] but they could not be physically equivalent as pointed out in several papers (see e.g. [41, 43, 44]).

Our investigation confirms that theories equivalent mathematically on the classical level can be non-equivalent physically [45]. However, we observe in the context of our model that the Einstein frame is privileged in this sense that some strong singularities can be cured in the cosmological evolution [14]. A detailed discussion of the meaning of conformal transformations is in [46].

In our model, we have found that the plateau of the potential \({\bar{U}}(\varPhi )\) is not necessary for the appearance of inflation [34]. In the expansion of the function \(f({\hat{R}})\), the coefficient \(\delta \) of the term \({\hat{R}}^3\) affects the number of e-folds. The number of e-folds decreases for \(\delta > 0\) with respect to the number of e-folds obtained for the model with the \(f({\hat{R}})\) expansion cut off at a quadratic term. In our model, inflation appears only when \(\delta \ge 0\).

In the model if the matter is vanishing we obtain eternal inflation following the stationary solution \(H=\text {const}\). This result is valid for the function \(f({\hat{R}})\) given by the polynomial form \(f({\hat{R}})={\hat{R}}+\gamma {\hat{R}} ^2 +\sum \nolimits _{i=2}^{n} \delta _i {\hat{R}}^{i+1}\). Only for an infinitesimally small fraction of matter inflation take places. The early inflation is studied in detail in terms of slow roll parameters as well as using the conception of constant roll inflation. We calculate the constant roll parameter \(\beta =\frac{{\mathrm {d}}\ln {\dot{\varPhi }}}{{\mathrm {d}}\ln a}\), which measures the elasticity of \({\dot{\varPhi }}\) with respect to the scale factor. We have found the characteristic type of the behaviour of the parameter \(\beta \) following the logistic-like curve. One can distinguish four different phases in the time behaviour of the parameter \(\beta \). In the first phase, the effects of matter are negligible but due to the interaction with the dark energy sector, the energy density of matter grows. As inflation progresses, matter is created, it disturbs the inflation phenomenon at the point when matter cannot be neglected. In consequence the first phase of inflation becomes unstable and the second phase appears. During the second and third phase, the effects of matter are not negligible. Finally, the fourth phase is characterized by diminishing effects of matter and the constant value of the Ricci scalar (and in consequence the constant value of energy density). During this phase dark energy dominates and the Universe behaves following the standard cosmological \(\varLambda \)CDM model.

Because the slow roll parameters are inadequate to constrain the model parameter we have found a bound on the model parameter \(\gamma \) from the numbers of required N-folds. If we assume that \(N=50\)–60 [37] then the parameter \(\gamma \) belongs to the interval \((1.16\times 10^{-69},\text { }1.67\times 10^{-69})\). For this interval of the parameter \(\gamma \), we get the number of e-folds \(N=50\)–60, when the value of the \(\delta \) parameter belongs to the interval \((0,\text { }6.4\times 10^{-140})\).