1 Introduction

Inflation [1,2,3,4,5,6,7] is the period of exponential expansion of the universe in the first few instants when it was born. It was first introduced in the 1980s to resolve the problems of the standard Big Bang cosmology like the horizon problem and the flatness or the fine-tuning problem. Not only did it help in resolving these problems, it also provided a mechanism for generating the primordial fluctuations which might have resulted into the large scale structure of the universe that we see today [8,9,10,11,12,13,14]. One other prediction was the scale-invariance of the primordial power spectrum of cosmological fluctuations which has been confirmed in the observation of the cosmic microwave background (CMB) anisotropies [15,16,17]. Though inflation provides an excellent description of the early universe, different alternative models have been proposed based on bouncing cosmology [18, 19] which attempt to provide a viable non-singular description of the universe [20]. One such model is of matter-dominated collapsing universe [21, 22] which is succeeded by the non-singular bounce and can act as an alternative to inflation while also explaining the scale-invariance of the primordial power spectrum [23, 23,24,25,26]. Though no one can exclude the possibility of a cyclic evolution of the universe, it is much easier to work and to understand the theory of inflation starting from Big Bang imagining a point-sized universe with an infinite density and temperature with all the fundamental interactions unified by a yet unknown framework.

One of the popular models of the inflation is the Starobinsky model [1] which has an additional \(R^2\) term in the Einstein–Hilbert action in a pure gravity scenario and is in agreement with the observations in regards to its inflationary spectrum. For other modified gravity models, one can look into [27,28,29,30,31,32]. In such models, the scalar degree of freedom (inflaton) arises as the effective scalar degree of freedom induced from the gravity and one can recast the action \(\int \textrm{d}^4 x \sqrt{-g}f(R)\) as a scalar-tensor theory with a non-minimal coupling of the aforementioned effective scalar degree of freedom with the Ricci scalar. But this entire analysis works best in the metric formulation of General Relativity (GR). There is another formulation in GR which is widely popular and is known as Palatini formalism which treats the space-time connections as an independent variable [33,34,35,36] while this not the case for the metric approach. Even though both approaches lead to the same equations for the Einstein–Hilbert action, for modified gravity models and the models where the fields are non-minimally coupled to gravity, this statement is not valid. Here, both these formalisms present different physical scenarios. The Starobinsky model, falling under the general category of the f(R) gravity theories, when studied in the Palatini formalism, leads to no inflationary solutions due to the absence of an additional propagating degrees of freedom which is there if we study the system via the metric approach. Hence to study the inflation in Palatini formalism, a scalar field needs to be added to the action and the first such case was studied in [37] where the non-minimal coupling of the scalar field was considered. Since then, many studies have been done considering different inflationary potentials, reheating, post-inflationary phases, preheating and dark matter using \(R^2\) term in the action [38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]. For more detailed review on Palatini formalism, one can look at [75].

Usually, a scalar field, called as ‘inflaton’ drives the exponential expansion of the universe during the inflationary period with the help of an approximately flat potential. This inflaton field slowly rolls down the potential till the minimum is reached thus ending the inflation. This scenario is called slow-roll inflation and one can look at [3, 6, 7, 45, 76] for more details. There are other inflationary solutions as well where this slow-roll condition can be ignored. The ‘ultra slow roll inflation’ [77,78,79,80] is one such scenario in which the curvature perturbation are not frozen at the super Hubble scales thus leading to non-Gaussianities and a more generalized version of that is known as ‘constant-roll inflation’ [81,82,83,84,85,86,87,88] which consider the rate of acceleration and velocity of the inflaton field as constant. Even though the constant roll models seem to be close to the slow roll ones but these models help us in calculating the slow roll parameters more precisely. Also, another important prediction of the constant roll inflation is the presence of larger non-Gaussianities [80, 89] in the bispectrum than the ones predicted by the ultra-slow roll case.

In this paper, we are exploring the constant roll inflation via Palatini formalism when the Einstein–Hilbert action has an additional \(R^2\) term non-minimally coupled with a scalar field where R is Ricci scalar. We begin by first finding the scalar field equation for action given in [90] in Sect. 2. Then we proceed to find slow roll parameters in Sect. 3 using the constant-roll condition. In Sect. 3.1, we find that the inflaton field for the model under consideration has a non-attractor type solution and fine-tuning of the model parameters is required to match the results with the observation, then we plot our results obtained for the spectral index \((n_s)\) and tensor-to-scalar ratio (r) and do a comparison with the Planck data [17]. Finally, we conclude with Sect. 4 and summarize our findings with the future direction.

2 \(R^2\) coupled gravity in the Palatini formalism

We start with the following action [90],

$$\begin{aligned} S= & {} \int \textrm{d}^4 x \sqrt{-g} \left[ \frac{1}{2}f(R,\phi ) - \frac{1}{2}g^{\mu \nu } \partial _{\mu } \phi \partial _{\nu } \phi - V(\phi ) \right] ,\nonumber \\ \end{aligned}$$
(2.1)

where \(g_{a b}\) and g are the metric and its determinant respectively, \(f(R,\phi )=G(\phi )(R+\alpha R^2)\) [91] and \(\alpha \) is constant. Here R is the Ricci scalar, which is defined as \(R=g^{a b} R^{c}_{a b c}(\Gamma , \partial \Gamma )\) in the Palatini formalism and we assumed the Planck mass to be 1. This action (2.1) can be equivalently expressed in terms of an auxiliary field \(\chi \) as,

$$\begin{aligned} S{} & {} = \int \textrm{d}^4 x \sqrt{-g} \left[ \frac{1}{2} f(\chi ,\phi ) + \frac{1}{2}\ f'(\chi ,\phi ) (R - \chi ) \right. \nonumber \\{} & {} \quad \left. - \frac{1}{2} g^{\mu \nu } \partial _\mu \phi \partial _\nu \phi - V(\phi ) \right] \, \end{aligned}$$
(2.2)

where \(f'(\chi ,\phi )=\frac{\partial f(\chi ,\phi )}{\partial \chi }\), satisfying \(\chi =R\) on-shell. Thus we can rewrite Eq. (2.2) as,

$$\begin{aligned} S{} & {} = \int \textrm{d}^4 x \sqrt{-g} \nonumber \\{} & {} \quad \times \left[ \frac{1}{2} f'(\chi ,\phi ) R - W(\chi ,\phi )- \frac{1}{2} g^{\mu \nu } \partial _\mu \phi \partial _\nu \phi - V(\phi ) \right] \nonumber \\ \end{aligned}$$
(2.3)

where \(W(\chi ,\phi )= \frac{1}{2}\chi f'(\chi ,\phi ) - \frac{1}{2} f(\chi ,\phi )\). Now using the conformal transformation

$$\begin{aligned} g_{\mu \nu } \rightarrow f'(\chi ,\phi ) g_{\mu \nu } \, \end{aligned}$$
(2.4)

action (2.3) can be written in Einstein frame as

$$\begin{aligned} S{} & {} = \int \textrm{d}^4 x \sqrt{-g} \left[ \frac{1}{2} R -\frac{1}{2}\frac{ \partial _\mu \phi \partial ^\mu \phi }{f'(\chi ,\phi )}- \frac{W(\chi ,\phi )+V(\phi )}{f'(\chi ,\phi )^2} \right] .\nonumber \\ \end{aligned}$$
(2.5)

Now defining a new potential \({{\hat{V}}}(\chi ,\phi )\) as

$$\begin{aligned} {{\hat{V}}}(\chi ,\phi )\equiv \frac{W(\chi ,\phi )+V(\phi )}{f'(\chi ,\phi )^2}, \end{aligned}$$
(2.6)

and by using \(f(R,\phi ) = G(\phi )(R+\alpha R^2)\), the above equation can be written as

$$\begin{aligned} {{\hat{V}}}(\chi ,\phi ){} & {} = \frac{1}{f'(\chi ,\phi )^2} \nonumber \\{} & {} \quad \times \left[ \frac{1}{8 \alpha G(\phi )}[f'(\chi ,\phi )-G(\phi )]^2 +V(\phi )\right] .\nonumber \\ \end{aligned}$$
(2.7)

Now varying the action (2.5) with respect \(\chi \), we get

$$\begin{aligned} f'(\chi ,\phi _{})= \frac{8\alpha V(\phi ) + G(\phi )}{1- 2\alpha \partial _\mu \phi \partial ^\mu \phi }. \end{aligned}$$
(2.8)

Inserting Eq. (2.8) into Eq. (2.7), \(\chi \) could be eliminated. And then substituting Eq. (2.7) into Eq. (2.5) and simplifying, we obtain

$$\begin{aligned} S= & {} \int \,d^4x \sqrt{-g} \left[ \frac{R}{2}-\frac{1}{2}\frac{1}{(8\alpha V+G)} \partial ^{\mu }{\phi }\partial _{\mu }{\phi }\right. \nonumber \\{} & {} \left. +\frac{\alpha }{2}\frac{1}{(8\alpha V+G)} (\partial ^{\mu }{\phi }\partial _{\mu }{\phi })^2 -\frac{V}{G(8\alpha V+G)}\right] , \end{aligned}$$
(2.9)

with the effective Lagrangian [41]

$$\begin{aligned} {\mathcal {L}}(\phi ,X)\equiv A(\phi )X+B(\phi )X^2-U(\phi ), \end{aligned}$$
(2.10)

where

$$\begin{aligned}{} & {} X \equiv \frac{(\nabla {\phi })^2}{2} and \nonumber \\{} & {} \quad {\left\{ \begin{array}{ll} A(\phi ) \equiv \frac{1}{G(\phi )+8 \alpha V(\phi )} = \frac{1}{G(\phi )}\left( 1+8\alpha \frac{V(\phi )}{G(\phi )}\right) ^{-1}, \\ B(\phi ) \equiv \frac{2 \alpha }{G(\phi )+8 \alpha V(\phi )}=\frac{2\alpha }{G(\phi )}\left( 1+8\alpha \frac{V(\phi )}{G(\phi )}\right) ^{-1}, \\ U(\phi ) \equiv \frac{V(\phi )}{G(\phi ) (G(\phi )+8 \alpha V(\phi ))}=\frac{V(\phi )}{G(\phi )^2}\left( 1+8\alpha \frac{V(\phi )}{G(\phi )}\right) ^{-1} \end{array}\right. }.\nonumber \\ \end{aligned}$$
(2.11)

Here \({\mathcal {L}}\) contains up to quartic kinetic terms with field-depended coefficients, which belong to k-inflation models and \(U(\phi )\) is the effective potential. By varying the action with respect to metric \(g_{\mu \nu }\), the energy momentum tensor of the source field \(\phi \) is written as,

$$\begin{aligned} T_{\mu \nu }= & {} -\frac{2}{\sqrt{-g}}\frac{\delta S}{\delta g^{\mu \nu }}=-(A+2BX)\nabla _{\mu }\phi \nabla _{\nu } \phi \nonumber \\{} & {} + g_{\mu \nu } (A X + 2BX -U). \end{aligned}$$
(2.12)

Our choice of the background metric is a spatially flat FLRW metric, also the scalar field \(\phi \) to be spatially homogeneous, which depends only on time \(\phi (t)\). Thus we can get the energy density and pressure from the energy-momentum tensor as

$$\begin{aligned}{} & {} \rho =T_{0 0}=AX+3BX^2+U \end{aligned}$$
(2.13)
$$\begin{aligned}{} & {} p=T_{i i}=AX+BX^2-U. \end{aligned}$$
(2.14)

Einsteins’ equations of motion are

$$\begin{aligned}{} & {} 3H^2=\rho \end{aligned}$$
(2.15)
$$\begin{aligned}{} & {} {{\dot{\rho }}}+3H(\rho +p)=0 \end{aligned}$$
(2.16)

where dot represents the derivative with respect to the cosmic time and H is the Hubble parameter. Using Eqs. (2.15) and (2.16), we get

$$\begin{aligned} 2{\dot{H}}+3H^2=-p. \end{aligned}$$
(2.17)

This leads us to the scalar field equation

$$\begin{aligned} \ddot{\phi }(A+6BX)+3H{\dot{\phi }}(A+2BX)-A'X-3B'X^2-U'=0\nonumber \\ \end{aligned}$$
(2.18)

where prime denotes the derivative with respect to \(\phi \).

3 Constant roll inflation

The inflaton field \(\phi \) is the only degree of freedom that we have in this model. We assume that the field \(\phi \) satisfies the constant roll condition as

$$\begin{aligned} \ddot{\phi }=\beta H{{\dot{\phi }}}, \end{aligned}$$
(3.1)

and leads to a solution of the constant roll type for the equation of motion of the inflaton field (2.18). Here \(\beta \) is the constant roll parameter and Eq. (3.1) can also represent the slow roll condition since \(\ddot{\phi }\simeq 0\) for the case of \(\beta \ll 1\). We also assume that the field \(\phi \) satisfies \(\frac{{{{\dot{\phi }}}}^2}{2}\ll U(\phi )\) during the initial phase of the inflation. For that phase, we are defining slow roll parameters as [92],

$$\begin{aligned} \epsilon _{1}=-\frac{\dot{H}}{H^2},\quad \epsilon _{2}=-\frac{\ddot{\phi }}{H{{\dot{\phi }}}},\quad \epsilon _{3}=\frac{\dot{F}}{2HF},\quad \epsilon _{4}=\frac{\dot{E}}{2HE}\nonumber \\ \end{aligned}$$
(3.2)

where

$$\begin{aligned} F=\frac{\partial {\mathcal {L}}}{\partial R}, \quad E=-\frac{F}{2X}\left( X\frac{\partial {\mathcal {L}}}{\partial X}+2X^2{\frac{\partial ^2 {\mathcal {L}}}{\partial X^2}}\right) . \end{aligned}$$
(3.3)

As we can see, constant roll condition fixes \(\epsilon _2 = -\beta \). And we are working in Einstein frame where \(F=\frac{1}{2}\), from which we get \(\epsilon _3=0\). We may express observable quantities like the scalar spectral index \(n_{s}\) and the tensor to scalar ratio r in terms of the slow roll parameters as [76, 93, 94]

$$\begin{aligned}{} & {} n_{s}=1-2\frac{(2\epsilon _{1}-\epsilon _{2}-\epsilon _{3}+\epsilon _{4})}{1-\epsilon _{1}} \end{aligned}$$
(3.4)
$$\begin{aligned}{} & {} r=4 |\epsilon _{1}| C_{s} \end{aligned}$$
(3.5)

where \(C_{s}\) is the speed of sound wave of primordial perturbations, expressed by

$$\begin{aligned} C_{s}^2=\frac{{\mathcal {L}}_{X}}{{\mathcal {L}}_{X}+2X{\mathcal {L}}_{XX}} =\frac{A-B{{{\dot{\phi }}}}^2}{A-3B{{{\dot{\phi }}}}^2}, \end{aligned}$$
(3.6)

which follows, \(0<C_s^2<1\). The scalar power spectrum up to first order in slow-roll parameters is expressed as [5],

$$\begin{aligned} P_{s} \approx \frac{H^2}{8\pi ^2 \epsilon _{1}}, \end{aligned}$$
(3.7)

Inserting constant roll condition into Eq. (2.18) and we obtain

$$\begin{aligned} 4H{\dot{\phi }}A(\beta +3)-12H {\dot{\phi }}^3 B(\beta +1)+A'{\dot{\phi }}^2-3B'{\dot{\phi }}^4-4U'=0\nonumber \\ \end{aligned}$$
(3.8)

Using Eqs. (2.13) and (2.15), we obtain an approximate result of H upto second order in terms of \({\dot{\phi }}^2/2U\) as

$$\begin{aligned} H= & {} \sqrt{\frac{U}{3}\left( 1-A\left( \frac{{\dot{\phi }}^2}{2U}\right) +3BU\left( \frac{{\dot{\phi }}^2}{2U}\right) ^2\right) }\nonumber \\\approx & {} \sqrt{\frac{U}{3}}\left( 1-\frac{A}{2}\left( \frac{{\dot{\phi }}^2}{2U}\right) +\frac{1}{2}\left( 3BU-\frac{A^2}{4}\right) \left( \frac{{\dot{\phi }}^2}{2U}\right) ^2\right) \end{aligned}$$
(3.9)

Next, we substitute this approximated result of H into Eq. (3.8), we get

$$\begin{aligned} \frac{1}{2}A'{\dot{\phi }}^2+(\beta +3)A\sqrt{\frac{U}{3}{\dot{\phi }}}-U'=0, \end{aligned}$$
(3.10)

keeping only terms up to \(O\left( {\dot{\phi }}^2\right) \) as higher power terms are negligible. Now the Eq. (3.10) is a quadratic equation of \({\dot{\phi }}\), and the solutions of this equation are:

$$\begin{aligned} {\dot{\phi }} ={\left\{ \begin{array}{ll} \frac{-\sqrt{2 A' U'+\frac{1}{3} (\beta +3)^2 A^2 U}-(\beta +3) A \sqrt{\frac{U}{3}}}{A'}, \\ \frac{\sqrt{2 A' U'+\frac{1}{3} (\beta +3)^2 A^2 U}-(\beta +3) A \sqrt{\frac{U}{3}}}{A'} \end{array}\right. } \end{aligned}$$
(3.11)

Here, the first solution leads us to an unsolvable set of equations hence we proceed further with the calculation for the second solution of \({\dot{\phi }}\), which is given by

$$\begin{aligned} {\dot{\phi }}= \frac{\sqrt{2 A' U'+\frac{1}{3} (\beta +3)^2 A^2 U}-(\beta +3) A \sqrt{\frac{U}{3}}}{A'}. \end{aligned}$$
(3.12)

This equation can be solved by using Eq. (2.11) with the choice of potential and coupling function. As we can see, the scalar spectral index, tensor-to-scalar ratio and the scalar power spectrum, are all just the functions of the slow roll parameters as expressed in Eqs. (3.4), (3.5) and (3.7). So first we need to solve the slow roll parameters from the Eq. (3.2). By using the relations (2.11), the general expression (3.2) can be simplified as

$$\begin{aligned}{} & {} \epsilon _{1}=\frac{3 X A+6 X^2 B}{X A+3 X^2 B+U}=\frac{6 \gamma \left( \gamma {{{\dot{\phi }}}}^4 \epsilon -4 \delta {{{\dot{\phi }}}}^2\right) }{16 \delta ^2 \phi +\gamma {{{\dot{\phi }}}}^2 \left( 3 \gamma {{{\dot{\phi }}}}^2 \epsilon -8 \delta \right) }\nonumber \\ \end{aligned}$$
(3.13)
$$\begin{aligned}{} & {} \epsilon _{2}=-\beta \end{aligned}$$
(3.14)
$$\begin{aligned}{} & {} \epsilon _{3}=0 \end{aligned}$$
(3.15)
$$\begin{aligned} \epsilon _{4}&= \frac{\sqrt{3}}{2} \frac{{\dot{\phi }}(A'+6B'X)+12\beta BHX}{(A+6BX)\sqrt{AX+3BX^2+U}} \nonumber \\&= \frac{\gamma {\dot{\phi }} \left( 3 \beta {\dot{\phi }} \epsilon \sqrt{\phi } \sqrt{\epsilon \phi +1} \sqrt{16 \delta ^2 \phi +\gamma {\dot{\phi }}^2 \left( 3 \gamma {\dot{\phi }}^2 \epsilon -8 \delta \right) }+4 \sqrt{3} \sqrt{\delta } \epsilon \phi \left( 4 \delta -3 \gamma {\dot{\phi }}^2 \epsilon \right) +2 \sqrt{3} \sqrt{\delta } \left( 4 \delta -3 \gamma {\dot{\phi }}^2 \epsilon \right) \right) }{\sqrt{\phi } \sqrt{\epsilon \phi +1} \left( 3 \gamma {\dot{\phi }}^2 \epsilon -4 \delta \right) \sqrt{16 \delta ^2 \phi +\gamma {\dot{\phi }}^2 \left( 3 \gamma {\dot{\phi }}^2 \epsilon -8 \delta \right) }}, \end{aligned}$$
(3.16)

similarly, the speed of sound wave of primordial perturbations can be obtained from (3.6) as

$$\begin{aligned} C_s^2=\frac{A-B{{{\dot{\phi }}}}^2}{A-3B{{{\dot{\phi }}}}^2} = \frac{\gamma {{\dot{\phi }}}^2 \left( \gamma {{\dot{\phi }}}^2 \epsilon -8 \delta \right) -16 \delta ^2 \phi (t)}{\gamma {{\dot{\phi }}}^2 \left( \gamma \left( {{\dot{\phi }}}^2-8\right) \epsilon -8 \delta \right) -16 \delta ^2 \phi (t)}\nonumber \\ \end{aligned}$$
(3.17)

and scalar power spectrum from the Eq. (3.7)

$$\begin{aligned} P_{s}\approx & {} \frac{H^2}{8\pi ^2 \epsilon _{1}}=\frac{1}{72\pi ^2}\frac{(AX+3BX^2+U)^2}{AX+2BX^2}\nonumber \\= & {} \frac{\left( 16 \delta ^2 \phi +\gamma {\dot{\phi }} ^2 \left( 3 \gamma {\dot{\phi }} ^2 \epsilon -8 \delta \right) \right) ^2}{2304 \pi ^2 \gamma ^3 \delta {\dot{\phi }} ^2 \phi (\epsilon \phi +1) \left( \gamma {\dot{\phi }} ^2 \epsilon -4 \delta \right) }. \end{aligned}$$
(3.18)

Here all the slow roll parameters, speed of sound wave and the scalar power spectrum are the function of \({\dot{\phi }}\), which can be solved by using Eq. (3.12) for our choice the potential \(V(\phi )\) and coupling function \(G(\phi )\). Then, this \({\dot{\phi }}\) can be substituted back to these expressions of \(\epsilon \)’s, \(C_s\) and \(P_s\).

Fig. 1
figure 1

Phase-space portrayal of the inflation field showing the non-attractor type behavior

Fig. 2
figure 2

\(\gamma = 2.5\times 10^5\)

Fig. 3
figure 3

\(\gamma = 2.5\times 10^5\)

Fig. 4
figure 4

\(\gamma = 3.5\times 10^5\)

Fig. 5
figure 5

\(\gamma = 3.5\times 10^5\)

Fig. 6
figure 6

\(\gamma = 4.5\times 10^5\)

Fig. 7
figure 7

\(\gamma = 4.5\times 10^5\)

Fig. 8
figure 8

\(\gamma = 5.5\times 10^5\)

Fig. 9
figure 9

\(\gamma = 5.5\times 10^5\)

3.1 Results

For analytical simplicity and to obtain a closed set of equations leading to viable results, we choose the potential \(V(\phi )\) and coupling function \(G(\phi )\) of the following form

$$\begin{aligned} V(\phi )= \delta \phi ^2, \quad G(\phi )=\gamma \phi , \end{aligned}$$
(3.19)

even though there are other choices for the potentials as given in [90]. Such type of power law potentials for the ‘constant-roll’ case are also explored in detail in [92] but not in the Palatini formalism. Also, we assume \(\epsilon =\frac{8\alpha \delta }{\gamma } \ll 1\) in the effective potential term Eq. (2.11), \(8 \alpha \frac{V(\phi )}{G(\phi )} = 8 \alpha \frac{\delta }{\gamma } \phi \).

By using Eqs. (3.19) and (2.11), we get the solution of Eq. (3.12) in the power series of \(\epsilon \),

$$\begin{aligned} {\dot{\phi }}=-\gamma \epsilon \phi ^2 \left( \frac{\sqrt{3} (\beta +3) \sqrt{\delta }}{2 \gamma ^2}-\frac{\sqrt{3} \sqrt{\delta } \left( -2 \gamma +\beta ^2 \phi +6 \beta \phi +9 \phi \right) }{2 (\beta +3) \gamma ^2 \phi }\right) .\nonumber \\ \end{aligned}$$
(3.20)

Here we ignored the higher power of \(\epsilon \) as they are very small since \(\epsilon \ll 1\). As a result of the preceding analysis, we get the solution for \({\dot{\phi }}[\phi ]\), depending on \(\phi \) and this can be inserted into all the expressions of the slow roll parameters and the number of e-folds.

To study the phase space behavior of the inflaton field \(\phi \) under the assumption Eq. (3.1), we use Eq. (3.20) and obtain Fig. 1 for \({\dot{\phi }}\) vs. \(\phi \). It is found that the solution is not an attractor and fine-tuning of the parameters is required to match the results with the observations. All the parameters \(\beta \), \(\delta \) and \(\gamma \) take the values within the regime mentioned above.

The number of e-folds can be calculated from the time when a mode k crosses the horizon until inflation ends and is written as

$$\begin{aligned} N=\int _{\phi _{k}}^{\phi _{f}} \frac{H}{{\dot{\phi }}} \,d{\phi }={\frac{1}{\sqrt{3}}}{\int _{\phi _{k}}^{\phi _{f}} \frac{\sqrt{X A+3 X^2 B+U }}{{\dot{\phi }}} \,d{\phi }}, \end{aligned}$$
(3.21)

where \(\phi _{k}\) and \( \phi _{f}\) are the values of inflaton field \(\phi \) at the horizon crossing and at the end of the inflation, respectively. Since \(\phi _{k}\gg \phi _{f}\) during the inflation, we get approximated result of the above equation,

$$\begin{aligned} N\approx -\frac{\left( \frac{2 (\beta +3)^2}{\gamma \epsilon }+3\right) \log (\phi _f/\phi _k)}{6 (\beta +3)}, \end{aligned}$$
(3.22)

then \(\phi _{k}\) can be obtained as

$$\begin{aligned} \phi _{k}\approx \phi _{f} \cdot e^{\frac{6 (\beta +3) \gamma N \epsilon }{2 (\beta +3)^2+3 \gamma \epsilon }}. \end{aligned}$$
(3.23)

We can find the field value \(\phi _{f}\) at the end of the inflation by demanding the condition \(\epsilon _{1}(\phi _{f})=1\). Up to first order in \(\epsilon \), we get

$$\begin{aligned} \phi _f= \frac{1}{\epsilon } \end{aligned}$$
(3.24)

This is value of field \(\phi \) at end of the inflation depending on \(\epsilon \) and we know \(\epsilon ={8\alpha \delta }/{\gamma }\). By putting the value of \(\phi _f\) and N (range of 50–70) into Eq. (3.23), the value of \(\phi _k\) can be obtained. Putting this value into Eqs. (3.13), (3.14), (3.15) and (3.16), the slow roll parameters can be calculated in terms of N, \(\beta \) and coupling parameters.

$$\begin{aligned} \epsilon _{1}= & {} -\frac{9 \gamma \epsilon }{8 (\beta +3)^2} +\frac{27 \gamma ^2 \epsilon ^2 (16 \beta N+48 N+31)}{128 (\beta +3)^4} \end{aligned}$$
(3.25)
$$\begin{aligned} \epsilon _{2}= & {} -\beta \end{aligned}$$
(3.26)
$$\begin{aligned} \epsilon _{3}= & {} 0 \end{aligned}$$
(3.27)
$$\begin{aligned} \epsilon _{4}= & {} \frac{9 \epsilon \left( -\beta \gamma +2 \sqrt{2} \beta \gamma +6 \sqrt{2} \gamma \right) }{16 (\beta +3)^2}\nonumber \\{} & {} \quad +\frac{9 \epsilon ^2 \left( 87 \beta \gamma ^2+2 \sqrt{2} (\beta +3) \gamma (-45 \gamma -28 \beta \gamma N-84 \gamma N)\right) }{256 (\beta +3)^4}.\nonumber \\ \end{aligned}$$
(3.28)

Finally, the scalar spectral index and the tensor-to-scalar ratio are obtained by substituting Eqs. (3.25)–(3.28) into Eqs. (3.4) and (3.5)

$$\begin{aligned} r= & {} 4 \left( 1-\frac{3 \gamma ^2 \epsilon ^2}{16 \left( (\beta +3)^2 \delta \right) }+\frac{9 \gamma ^3 \epsilon ^3 (8 \beta N+24 N+17)}{128 (\beta +3)^4 \delta }\right) \nonumber \\{} & {} \times \Bigg | \frac{27 (16 \beta N+48 N+31) \gamma ^2 \epsilon ^2}{128 (\beta +3)^4}-\frac{9 \gamma \epsilon }{8 (\beta +3)^2}\Bigg | \end{aligned}$$
(3.29)
$$\begin{aligned} n_{s}= & {} 1-2 \beta -\frac{9 (3 \beta +4) \gamma \epsilon }{8 (\beta +3)^2}-\frac{9 \gamma \epsilon }{2 \sqrt{2} (\beta +3)} \nonumber \\{} & {} +\frac{63 \gamma ^2 \epsilon ^2 (4 (\beta +3) N+9)}{32 \sqrt{2} (\beta +3)^3} \nonumber \\ {}{} & {} -\frac{27 \gamma ^2 \epsilon ^2 \left( 109 \beta +32 \left( \beta ^2+5 \beta +6\right) N+148\right) }{128 (\beta +3)^4} \end{aligned}$$
(3.30)

and speed of sound is given by

$$\begin{aligned} C_s=\left( 1-\frac{3 \gamma ^2 \epsilon ^2}{16 \left( (\beta +3)^2 \delta \right) }+\frac{9 \gamma ^3 \epsilon ^3 (8 \beta N+24 N+17)}{128 (\beta +3)^4 \delta }\right) \nonumber \\ \end{aligned}$$
(3.31)

which shall follow the condition,

$$\begin{aligned} 0< C_s <1 . \end{aligned}$$
(3.32)

Now, to match our results with the observations, we choose \(\epsilon =10^{-7}\) with \(0.006<\beta <0.018\) and the number of e-folds(N) from 50 to 70 satisfying \(\epsilon =8\frac{\alpha \delta }{\gamma }\ll 1\) condition. For this parameter regime, Eq. (3.32) implies \(\delta \) must be much greater than \(10^{-5}\) and hence we choose \(\delta =1\). With the fixed values of \(\epsilon \) and \(\delta \), the only remaining parameters are N, \(\beta \) and \(\gamma \). Then in Fig. 2, we fix \(\gamma =2.5\times 10^{5}\) while varying \(\beta \) and N within the allowed range and plot r vs \(n_s\) results using Eqs. (3.30) and (3.29). Here, we also notice that as we vary N from 50 to 70, the value of r increases while increasing \(\beta \) lead to a smaller value of \(n_s\). Then in Fig. 3, we overlap our analytical results over Planck 2018 data and show that the results are well in agreement with the observation. Following the same procedure as Fig. 2, we make Figs. 4, 6, 8 and 10 for different values of \(\gamma \) as shown. Accordingly, all these figures are then overlapped just like Fig. 3 over the Planck data as shown in Figs. 5, 7, 9 and 11. With this comparison with the observation, we find that an increased value of \(\gamma \) lead to mismatching with the observations thus constraining this parameter as well.

Fig. 10
figure 10

\(\gamma = 7\times 10^5\)

Fig. 11
figure 11

\(\gamma = 7\times 10^5\)

4 Conclusion

In this paper, we have investigated the possibility of constant-roll in the modified gravity theory using Palatini formalism with action containing non-minimal coupling of R and \(R^2\) with a scalar field. This formalism helps us in translating \(R^2\) coupling term into a higher-order kinetic term with a new potential making it an equivalent scalar-tensor theory in the Einstein frame. Then we proceeded to find the equation of motion for the scalar field within this frame and using the constant roll condition, we were able to solve the field equation and find the slow roll parameters. Then we defined our potential for the theory and worked out the expressions for tensor-to-scalar ratio and spectral index. The inflaton field having the non-attractor type behavior lead to fine-tuning of the model parameters. Within the parameter regime under consideration, our results are in complete agreement with the Planck 2018 data and the results with the inclusion of comparison with Planck data are shown in the Figs. 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10, thus making constant roll a viable scenario for further research in this model. Most agreed values of \(n_s\) and r are obtained in the first case. In future, we plan to study the possibility of reheating [95] and the production of primordial black hole [96] within the Palatini formalism for this model.