1 Introduction

Inflation is the leading paradigm for the origin of structure formation in an initially isotropic and homogeneous universe [1]. It was originally proposed as an attempt to evade the fine-tunings of the standard cosmological model by theorizing a period of accelerating expansion in the very early universe [2,3,4,5,6,7,8]. Despite the simplicity of this idea, the non-linear nature of scalar-field equations makes the quest for analytical solutions impossible; without further simplifications we have to rely entirely on numerical tools. Although efficient numerical codes have been developed during the last decade, for instance the publicly available codes [9,10,11,12,13], (approximate) analytical solutions are desirable for a number of reasons: if inflation solves the fine-tuning problems by utilizing an attractor mechanism, then this should be shown analytically rather than numerically in a case-by-case analysis. In addition, for multiple fields calculation of non-Gaussianities and other higher order correlators is computationally demanding and therefore simple analytical expressions may provide more insight on how to better search for viable models.

The only single-field examples in the literature that admit general analytical expressions are the exponential [14,15,16,17,18,19] and trigonometric hyperbolic potentials [20, 21]. It has been shown in Refs. [22, 23] that these potentials respect the symmetries of the mini-superspace metric (spanned by the scale factor and the field) leading to an integrable system [24, 25]. Similarly, general multi-field solutions have been constructed for two non-interacting scalar fields in a flat field-space, where one is massless and the other has an exponential potential [15, 26], and for hyperbolic trigonometric potentials in a hyperbolic field-space manifold [27,28,29]. Specifically, in Refs. [27, 30] it was shown that completely integrable two-field systems require a field-manifold of constant curvature, hence the flat and hyperbolic cases. Apart from the previous solutions, more have been derived, e.g. late-time scaling solutionsFootnote 1 [32,33,34,35,36,37] and particular exact solutions using the superpotential method [38,39,40,41,42,43,44,45].

The aim of this work is the derivation of general solutions for an arbitrary number of fields. These solutions can be used to derive estimates for the transition time (or field displacement) from arbitrary initial states to inflation, or alternatively they can be used to demonstrate non-linear convergence towards the slow-roll solutions.

The paper is organized as follows: in Sect. 2 we derive the general solution for a product-exponential potential. In Sect. 3 we provide analytical estimates for the duration of the passage from an arbitrary initial state towards inflation. In Sect. 4 we continue the investigation of general solutions in the presence of a fluid. Finally, in Sect. 5 we summarize our main results.

Conventions: dots (\(\dot{}\)) and primes (\('\)) indicate derivatives with respect to the cosmic time and number of e-folds respectively; Greek letters refer to spacetime indices while Latin ones to field-space indices; the spacetime metric has the mostly plus signature \((-,+,+,+)\); we assume the Einstein’s convention for repeated indices; N is the e-folding number and \(\mathcal {N}\) denotes the number of fields.

2 The general analytical solution

2.1 Earlier works

Simple models of the early and late universe assume an action with minimal derivative couplings and canonical kinetic terms

$$\begin{aligned} S = \int \,\mathrm {d}^4 x \sqrt{-g} \left( \frac{\kappa }{2} R - \frac{1}{2} \delta _{ij} \partial _{\mu } \phi ^i \partial ^{\mu } \phi ^j -V \right) \, , \end{aligned}$$
(1)

where the Latin indices label the number of fields, running from 1 to \(\mathcal {N}\), and \(\kappa =8\pi G/c^2\) (we will set \(\kappa =1\) from now on). Variation of the action with an FLRW ansatz for the metric

$$\begin{aligned} \,\mathrm {d}s^2 = -\,\mathrm {d}t^2 + a(t)^2 \,\mathrm {d}\mathbf {x} \cdot \,\mathrm {d}\mathbf {x} \, , \end{aligned}$$
(2)

yields the two linearly independent Einstein’s equations for the unknown metric function a(t) (one evolution equation and one constraint) and the generalized Klein-Gordon equations for the scalar fields \(\phi _i(t)\). This system of equations can be be written in compact form with the definition of the Hubble parameter \(H= \,\mathrm {d}(\ln a) / \,\mathrm {d}t\)

$$\begin{aligned}&3H^2 = \frac{1}{2}\delta _{ij}{\dot{\phi }}_i{\dot{\phi }}_j + V \, , \end{aligned}$$
(3)
$$\begin{aligned}&{\dot{H}} = - \frac{1}{2}\delta _{ij}{\dot{\phi }}_i{\dot{\phi }}_j \, , \end{aligned}$$
(4)
$$\begin{aligned}&\ddot{\phi }_i + 3H {\dot{\phi }}_i + V_{,i} =0 \, . \end{aligned}$$
(5)

The latter \(1+\mathcal {N}\) equations form a non-linear system for the unknown functions \(\phi (t)\) and a(t) (or H(t)) which is in general unsolvable for an arbitrary potential function. In the cosmic time parameterization the ODE (5) becomes separable for a constant potential, which describes a de Sitter universe.

In Ref. [15] the general solution for a two-field model consisting of one massless and one self-interacting field with an exponential potential, \(V(\phi ,\psi ) = V_0 e^{p\phi }\), was first constructed. Using the conservation of canonical momentum the problem was shown to be equivalent to a single exponential potential and stiff matter. Equation (4) becomes

$$\begin{aligned} {\dot{H}} = -{1 \over 2}{\dot{\phi }}^2 - {1 \over 2}{c_0 \over a^6} \, . \end{aligned}$$
(6)

and in combination with Eq. (3) provides the solution for a. It is worth noticing that the same solution holds for an arbitrary number of additional massless fields, whose influence can be absorbed in the definition of the constant \(c_0\). In the presence of a non-zero gradient for the second field this method can not be applied (at least without serious modification).Footnote 2

In the following we adopt a different method that allows the derivation of the general solution of a product-exponential potential, i.e.

$$\begin{aligned} V= V_0 e^{\lambda _i \phi _i} \, , \end{aligned}$$
(7)

for some constant numbers \(\lambda _i\) and without assuming \(\mathcal {N}-1\) of them to be zero.Footnote 3

2.2 Integrability of the product-exponential potential

For \(\mathcal {N}\) canonically normalized fields switching to the e-folding number, defined from \(N \equiv \ln a = \int H \,\mathrm {d}t\), the Klein-Gordon system of Eq. (5) can be written in first order form as

$$\begin{aligned} \phi _i'&= v_i \, , \end{aligned}$$
(8)
$$\begin{aligned} v_i'&= - \left( 3 - {1 \over 2}v_k v_k\right) \left( v_i + p_i \right) \, , \end{aligned}$$
(9)

where we defined \(p_i \equiv (\ln V)_{,i}\). The velocities in terms of the number of e-folds are related to the slow-roll parameter \(\varepsilon \) as

$$\begin{aligned} \varepsilon = {1 \over 2} v_i v_i \, . \end{aligned}$$
(10)

In this formulation it becomes clear that the logarithmic derivatives of the potential (and not the gradients \(V_{,i}\)) determine the evolution of \(\varepsilon \). For the product-exponential potential of Eq. (7) \(p_i\)’s are constant and Eq. (9) decouple from Eq. (8), so one can study the reduced system. Even though Eq. (9) remain coupled through the term \({1 \over 2}v_k v_k\), the system is fully integrable as there exist integrals of motion which enable us to further reduce the dynamical variables of the problem. These can be found by dividing Eq. (9) for two fields e.g. i and j

$$\begin{aligned} {\,\mathrm {d}v_i \over \,\mathrm {d}v_j} = {v_i + p_i \over v_j + p_j} \Rightarrow v_i = A_i (v_j + p_j) - p_i \, , \end{aligned}$$
(11)

where we absorbed the initial conditions dependence in the definition of

$$\begin{aligned} A_i \equiv {v_{i,0} + p_i \over v_{j,0} + p_j} \, . \end{aligned}$$
(12)

For \(\mathcal {N}=2\) and \(p_i=0\) this integral of motion is identical to Eq. (10) of Ref. [15]. Note that these integrals of motion make sense if the initial conditions for the two fields are not chosen exactly on the critical points of (9). If for instance \(v_{k,0}=-p_k\) then the unique solution for that field is \(v_{k}(N)=-p_k\) and hence it is not dynamical. Discarding this equation one then solves the reduced system of \(\mathcal {N}-1\) equations.

2.3 Asymptotic behaviour

Before deriving the solution we will study the asymptotic behaviour for \(N\rightarrow \infty \). The system of Eq. (9) with constant \(p_i\) have the following set of critical points:

  1. 1.

    Power-law (or scaling) solution

    $$\begin{aligned} v_i = - p_i \, , \end{aligned}$$
    (13)

    where the ratio of kinetic to potential energy becomes constant. This critical point exists for \(p_i p_i <6\) and the critical value for \(\varepsilon \) is \(1/2 p_i p_i\).

  2. 2.

    Kinetic energy domination, i.e.

    $$\begin{aligned} K\equiv {1 \over 2} {\dot{\phi }}_i {\dot{\phi }}_i \gg V \, , \end{aligned}$$
    (14)

    where the kinetic energy of the fields dominate their potential energy. The critical value for \(\varepsilon \) is 3, which defines an \(\mathcal {N}\)-dimensional hypersphere and, hence, it is a collection of critical points.

The stability of these critical points trivially follows after linearization of the system around the critical points. For the scaling solution, translating the critical point to the origin by defining

$$\begin{aligned} x_i \equiv v_i+p_i \, , \end{aligned}$$
(15)

then the linearized equation of motion reads

$$\begin{aligned} x_i' = - \left( 3 - {1 \over 2} p_ip_i \right) x_i \, , \end{aligned}$$
(16)

and hence we find negative eigenvalues when the condition \(p_ip_i <6\) is satisfied. We observe that whenever this critical point exists it is also stable.

Regarding kinetic domination, the set of Eq. (9) is not very useful because more than one realizations can give \(\varepsilon =3\). This also implies that critical points are not isolated and one has to apply more sophisticated methods to infer stability. For this reason, we will use the evolution equation for the slow-roll parameter which is found by contracting Eq. (9) with \(v_i\)

$$\begin{aligned} \varepsilon ' = -(3-\varepsilon )(2\varepsilon + p_iv_i) \, . \end{aligned}$$
(17)

Defining a new variable

$$\begin{aligned} x \equiv \varepsilon -3 \, , \end{aligned}$$
(18)

the linearized equation for x becomes

$$\begin{aligned} x' = x ( 6 + p_i v_i) \, , \end{aligned}$$
(19)

and hence stable realizations of kinetic domination require

$$\begin{aligned} 6 + p_i v_i<0 \, . \end{aligned}$$
(20)

We can view the second term as the dot product of the vector \(p_i\) and the vector \(r_i\equiv v_i/\sqrt{6}\), which denotes a point on the \(\mathcal {N}\)-dimensional hypersphere defined from \(v_i v_i=6\). The condition (20) can be written as

$$\begin{aligned} \left( \sqrt{6}+ \mathbf {p}\cdot \mathbf {r}\right) <0 \, , \end{aligned}$$
(21)

and since \(|\mathbf {r}|=1\), the previous inequality implies that

$$\begin{aligned} p_i p_i >6 \, , \end{aligned}$$
(22)

is necessary and sufficient condition for kinetic domination to be stable. The points of stable kinetic domination should satisfy the inequality (21).

Considering \(N \rightarrow -N\), i.e. moving backwards in time, the stability of these critical points is reversed. An important note is in order: because eigenvalues for stable solutions are strictly negative numbers, the flow towards the critical point is monotonic; this means that the velocities for individual fields would never cross their critical value when they approach it from higher or lower values. This observation will be used later in Sect. 2.5.

2.4 Derivation of the solution

Having expressed all velocities in terms of e.g. the reference field \(v_1\) then in principle we can solve the equation of motion for \(v_1\) and obtain the relation \(v_1(N)\) and then using the integrals of motion we can find the expression for the rest fields. However, we find it more instructive to work with \(\varepsilon \) as it is a central variable in inflation and dark energy models and, as we will show later, it better highlights the behaviour of the solution. Therefore, in the following we will express all velocities in terms of the slow-roll parameter. Using the integrals of motion in the expression of the slow-roll parameter

$$\begin{aligned} 2\varepsilon = v_i v_i = \sum _{i=1}^{\mathcal {N}} (A_i (v_1 + p_1) - p_i)^2 \, , \end{aligned}$$
(23)

provides a quadratic equation for \(v_1\)

$$\begin{aligned} \begin{aligned} {\varvec{A}}^2 v_1^2 + 2 ({\varvec{A}}^2 p_1 - A_i p_i) v_1 + {\varvec{A}}^2 p_1^2- 2 p_1 A_i p_i \\ + p^2 -2 \varepsilon =0 \, , \end{aligned} \end{aligned}$$
(24)

where we defined \({\varvec{A}}^2\equiv A_i A_i\) and \(p^2 \equiv p_ip_i\). The two solutions are

$$\begin{aligned} v_{1,\pm } = {A_i p_i \over {\varvec{A}}^2} - p_1 \pm {1 \over {\varvec{A}}^2} \sqrt{ {\varvec{A}}^2 (2\varepsilon - p^2) + (A_i p_i )^2 } \, . \end{aligned}$$
(25)

At this point we are unaware which root is the correct one and we need to compare this expression with another one; contracting Eq. (11) with \(A_i\) yields

$$\begin{aligned} v_1 = {A_i p_i \over {\varvec{A}}^2 } - p_1 + {A_i v_i \over {\varvec{A}}^2 } \, , \end{aligned}$$
(26)

and, hence, the last term of Eq. (25) is equal to

$$\begin{aligned} \pm \sqrt{ {\varvec{A}}^2 (2\varepsilon - p^2) + (A_i p_i )^2 } = A_i v_i \, . \end{aligned}$$
(27)

Thus, the sign of \(A_iv_i\) determines which root is the correct one and the relation of \(v_1\) in terms of \(\varepsilon \) is

$$\begin{aligned} v_{1} (\varepsilon ) = {A_i p_i \over {\varvec{A}}^2} - p_1 + s {1 \over {\varvec{A}}^2} \sqrt{ {\varvec{A}}^2 (2\varepsilon - p^2) + (A_i p_i )^2 } \, ,\nonumber \\ \end{aligned}$$
(28)

where

$$\begin{aligned} s \equiv \mathop {\mathrm {sgn}}(A_i v_{i}) \, . \end{aligned}$$
(29)

Using this expression all velocities are written in terms of the slow-roll parameter and the differential equation of \(\varepsilon \)

$$\begin{aligned} \varepsilon ' = -(3 -\varepsilon ) \left[ 2\varepsilon + p_i A_i ( v_1(\varepsilon ) +p_1) - p^2 \right] \, , \end{aligned}$$
(30)

becomes separable. Note, however, that we are able to find the analytical solution of the inverse function \(N(\varepsilon )\)

$$\begin{aligned}&N(\varepsilon ) (6-p^2) \nonumber \\&\quad = - 2 \ln \left( {A_i p_i + s \sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon - p^2 ) } \over A_i p_i + s \sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon _0 -p^2 ) }} \right) \nonumber \\&\qquad + {s\cdot 2 A_i p_i \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)} } \nonumber \\&\qquad \times \left[ \mathop {\mathrm {tanh^{-1}}}\left( {\sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon -p^2 ) } \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)}} \right) \right. \nonumber \\&\qquad \left. - \mathop {\mathrm {tanh^{-1}}}\left( {\sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon _0 -p^2 ) } \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)}} \right) \right] \nonumber \\&\qquad + \ln \left( {3 - \varepsilon \over 3 - \varepsilon _0 }\right) \, . \end{aligned}$$
(31)

When the initial velocities of every field, except for \(v_1\), take their critical value \(v_{j,0}=-p_j\), then these fields are non-dynamical giving \(A_i=0\) and one obtains the single-field solution.

The field displacement as a function of the slow-roll parameter can be obtained from Eq. (30) after a time redefinition \(N \rightarrow \phi _j\)

$$\begin{aligned} {\,\mathrm {d}\varepsilon \over \,\mathrm {d}\phi _{(j)}} v_{(j)} = - (3 -\varepsilon ) \left[ 2\varepsilon + p_i A_i ( v_1(\varepsilon ) +p_1) - p^2 \right] \, ,\nonumber \\ \end{aligned}$$
(32)

where no sum in j is implied. This equation is separable and as previously the inverse function \(\phi _j(\varepsilon )\) can be integrated with solution

$$\begin{aligned}&\Delta \phi _j (\varepsilon ) (6-p^2) \nonumber \\&\quad = 2 p_j \ln \left( {A_i p_i + s \sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon - p^2 ) } \over A_i p_i + s \sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon _0 -p^2 ) }} \right) \nonumber \\&\qquad - p_j \ln \left( {3 - \varepsilon \over 3 - \varepsilon _0 }\right) - {s\cdot 2 \left( A_j (6-p^2) + (A_i p_i) p_j \right) \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)} } \nonumber \\&\qquad \left[ \mathop {\mathrm {tanh^{-1}}}\left( {\sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon -p^2 ) } \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)}} \right) \right. \nonumber \\&\left. \qquad - \mathop {\mathrm {tanh^{-1}}}\left( {\sqrt{ (A_i p_i)^2 + {\varvec{A}}^2 ( 2\varepsilon _0 -p^2 ) } \over \sqrt{(A_i p_i)^2 + {\varvec{A}}^2 (6- p^2)}} \right) \right] . \end{aligned}$$
(33)

With the expressions (31) and (33) we have fully determined the solution \(\{ a,\phi _j\}\) in terms of \(\varepsilon \).

2.5 Analysis of the solution

The solution (31) elegantly captures the past or future asymptotic behaviour of the Klein–Gordon equations. Here one has to distinguish between two cases, depending on the sign of s relative to \(A_i p_i\).

  1. 1.

    When \(s\cdot (A_i p_i)>0\), the second and fourth terms diverge to minus infinity for \(\varepsilon \rightarrow 3\), proving that kinetic energy domination is the past attractor.

  2. 2.

    When \(s \cdot (A_i p_i)<0\), there are two more subcases:

    1. (a)

      \(p^2<6\). The first term diverges as \(\varepsilon \rightarrow 1/2 p^2\) and the scaling solution is the future attractor.

    2. (b)

      \(p^2>6\). The scaling solution does not exist and kinetic domination is the future attractor.

The previous analysis indicates that if initial conditions belong to case 1 then s should change to \(-s\) in order for the system to reach one of the critical points described in case 2.

Now we will briefly explain how one can use the full expression (31), while (33) can be treated similarly. We follow the following steps:

  1. 1.

    For given initial conditions \(\{ v_{i,0}\} \) we calculate s and the slow-roll parameter \(\varepsilon _0\). Depending on the sign of s we choose the appropriate branch in Eq. (31). For the specified initial conditions the solution will then be given as a function of \(\varepsilon _0\) and s: \( N= N(s,\varepsilon _0,\varepsilon )\).

  2. 2.

    We calculate the value of \(\varepsilon \) for which s changes. This would happen for a specific value of \(\varepsilon = \varepsilon _*\), found by setting Eq. (27) to zero:

    $$\begin{aligned} \varepsilon _* = {1 \over 2}p^2 - {(A_i p_i )^2 \over 2 {\varvec{A}}^2} \, . \end{aligned}$$
    (34)

    Although this value always exists (due to the Schwarz inequality \((A_i p_i)^2 \le A^2 p^2\)), it may not be relevant for the assumed set of initial conditions. This is because the system may relax at one of its critical points before crossing this value.

  3. 3.

    Next, we compare the sign of \(A_ip_i\) with s. If \(s =\mathop {\mathrm {sgn}}{(A_ip_i)}\) then we move to step 4 and otherwise to step 5.

  4. 4.

    For this set of initial conditions the full solution will consist of both branches, namely

    $$\begin{aligned}&N(\varepsilon ,\varepsilon _*,s)\, , ~~\text {for}~~\varepsilon \in (\varepsilon _*,3) \, , \end{aligned}$$
    (35)
    $$\begin{aligned}&N(\varepsilon ,\varepsilon _*,-s)\, , ~~\text {for}~~\varepsilon \in (\varepsilon _*,\varepsilon _{\mathrm{cr}}) \, . \end{aligned}$$
    (36)

    where \(\varepsilon _{\mathrm{cr}}\) corresponds to the logarithmic divergence of the solution. Of course, we know from the asymptotic analysis that the divergence corresponds to one of the two types of critical points, that is either kinetic domination or the scaling solution.

  5. 5.

    In this case we have to compare \(\varepsilon _*\) with \(\varepsilon _{\mathrm{cr}}\), that corresponds to the logarithmic divergence of the solution. If \(\varepsilon _*<\varepsilon _{\mathrm{cr}}<\varepsilon _0\) then \(\varepsilon \) would never reach \(\varepsilon _*\) and the solution is

    $$\begin{aligned}&N(\varepsilon ,\varepsilon _{0},s)\, , ~~\text {for}~~\varepsilon \in (\varepsilon _{\mathrm{cr}},3) \, . \end{aligned}$$
    (37)

    In any other case the solution is

    $$\begin{aligned}&N(\varepsilon ,\varepsilon _*,s)\, , ~~\text {for}~~\varepsilon \in (\varepsilon _*,\varepsilon _{\mathrm{cr}}) \, , \end{aligned}$$
    (38)
    $$\begin{aligned}&N(\varepsilon ,\varepsilon _*,-s)\, , ~~\text {for}~~\varepsilon \in (\varepsilon _*,3) \, . \end{aligned}$$
    (39)

In Fig. 1 we plot the analytical solution (31) for 50 fields, along with the numerical result, for a model with \(p_1=1,~p_2=0.5,~p_j=0.05\) \((j=3,\ldots ,50)\) for two different sets of initial conditions. In the first one we consider \(v_1=-1.5,~v_2=-1,~v_j=0.01\) yielding \(\varepsilon _0=1.685,~\varepsilon _*=0.552,~s=-1\) and \(\mathop {\mathrm {sgn}}(A_i p_i) =1\) and, thus, we are in step 5. Comparing \(\varepsilon _*\) with the asymptotic value \(1/2p_ip_i = 0.685\) we observe that \(\varepsilon _*<\varepsilon _{\mathrm{cr}}<\varepsilon _0\) and the analytical solution is given by (37). This is depicted with the pale blue line in Fig. 1; moreover, we observe that the solution extrapolates from kinetic domination to the scaling solution located at \(\varepsilon =0.685\), but it never crosses \(\varepsilon _*\). For our second set of initial conditions we consider \(v_1=1.5,~v_2=1,~v_j=0.01\) and so we find \(\varepsilon _0=1.685,~\varepsilon _*=0.007,~s=1\) and \(\mathop {\mathrm {sgn}}(A_i p_i) =1\) and we are in step 4. The solution consists of two branches, one with \(s=1\) defined in the interval \(\varepsilon \in (0.007,3)\) and another with \(s=-1\) defined in the interval \(\varepsilon \in (0.007,0.685)\). Again, the solution extrapolates from kinetic domination to the scaling solution crossing \(\varepsilon _*\).

Fig. 1
figure 1

Evolution for \(\mathcal {N}=50\) fields using the analytical solution (solid lines) versus the solution obtained with numerical integration (orange dashed lines). The solid lines extrapolate up to kinetic domination showing that is the past attractor

Finally, we provide some physical insight on the terms \(A_i v_i\) and \(A_i p_i\). Their physical significance becomes more apparent if we examine the single-field case where \(A_i=1\) and the two terms become simply \(v_1\) and \(p_1\). When e.g \(0<p_1<\sqrt{6}\) then the asymptotic value for \(v_1\) would be \(v_1=-p_1\). If the initial velocity \(v_1\) is positive then it first has to decrease to zero and then decrease further until it reaches the value \(-p_1\). Equation (28) becomes simply

$$\begin{aligned} v_{1} (\varepsilon ) = s \sqrt{ 2\varepsilon } \, , \end{aligned}$$
(40)

and when s becomes zero we need to switch to the other branch of the solution. For more fields the distinction between the two case is more complicated because all velocities are mixed through the \(A_iv_i\) terms.

3 From kinetic domination to accelerating expansion

3.1 How many e-folds before inflation?

For the product-exponential potential the existence of an analytical solution allows us to calculate the number of e-folds the system spends before it approaches the asymptotic solution. For accelerating solutions specifically, \(p_i\) should be chosen such that \(1/2p_ip_i<1\). If the system starts at a state with \(\varepsilon _0>1\), then the solution (31) provides the necessary number of e-folds before inflation begins.

For an arbitrary potential, one can ask a similar question; assuming that there exists an “asymptotic” state (in practice the slow-roll solution) and that the system begins with initial conditions close to kinetic domination, then how many e-folds are necessary before inflation starts? The exact duration for the passage from a state with \(\varepsilon >1\) to a state with \(\varepsilon <1\) requires the full analytical solution, which seems an impossible task. To make some progress, we can construct an estimate based on the previously derived solution (31). This relies on the observation that for small field displacements any continuous function \(p_i\) can be approximated by its constant part (the first term in the Taylor series) and this gives a first estimate on the total number of e-folds. However, since the value of \(p_i\) changes we do not know a priori which value to choose. In the following we will show that in general the minimum and maximum values of \(p_i\) give the minimum and maximum number of e-folds respectively. To prove this we will first derive some properties of the solutions for product-exponential potentials.

In Fig. 2 we plot the solution for three different exponential potentials (\(V_{p}\propto e^{p_i \phi _i}\) and \(V_{\lambda }\propto e^{\lambda _i \phi _i}\)) satisfying \(0<p_i<\lambda _i\) and for positive (upper plot) or negative (lower plot) initial velocities that are close to kinetic domination. In the first case, \(v_{(i)} p_{(i)} , v_{(i)} \lambda _{(i)}> 0\) holds for each i (with no sum implied), while in the second one \(v_{(i)} p_{(i)} , v_{(i)} \lambda _{(i)}<0 \). In the upper plot, \(\varepsilon \) first decreases until the value \(\varepsilon _*\) and then it increases again until it reaches its asymptotic value. During the decreasing period we observe that steeper gradients lead to faster decrease, whereas this behaviour is reversed once \(\varepsilon \) starts to increase. This makes sense physically because in the first case the Hubble friction cooperates with the gradient term (until the velocities change sign) and hence \(\varepsilon \) decreases faster for steeper gradients; similarly, when the velocities increase steeper gradients lead to larger terminal velocities and hence the system needs more time to reach those values. However, in both plots the system reaches its asymptotic state slower for steeper gradients.

Fig. 2
figure 2

Evolution of 3 product-exponential potentials with \((p_1,p_2)\) \(=(0.1,0.3)\), (0.5, 0.8), (0.6, 1.1) (blue, orange and black accordingly). Upper graph: initial velocities are \(v_{i,0}=1.6\). Lower graph: initial velocities are negative with \(v_{i,0}=-1.6\) (solid lines) or \(v_{i,0}=-0.1\) (dashed lines) indicating supercritical or subcritical initial values

In certain cases we can understand the previous behaviour analytically. For two different product-exponential potentials with \(0<|p_i| < |\lambda _i|\) we obtain \(0<|v_i p_i| < |v_i \lambda _i|\). When each velocity \(v_i\) has sign opposite to \(p_i,\lambda _i\) then

$$\begin{aligned} |p_i| < |\lambda _i| \Rightarrow v_i p_i > v_i \lambda _i \, , \end{aligned}$$
(41)

and we obtain the following inequality

$$\begin{aligned} (3-\varepsilon )(2\varepsilon + p_i v_i) > (3-\varepsilon ) (2\varepsilon + \lambda _i v_i) \, . \end{aligned}$$
(42)

Using equation (17) it is transformed into a differential inequality

$$\begin{aligned} {\,\mathrm {d}\varepsilon \over \,\mathrm {d}N}< {\,\mathrm {d}{\tilde{\varepsilon }} \over \,\mathrm {d}N} \Rightarrow \varepsilon (N)< {\tilde{\varepsilon }}(N) \, , \end{aligned}$$
(43)

where we solved the differential equations with equal initial conditions \(\varepsilon (N_0) = {\tilde{\varepsilon }}(N_0)\). In the opposite case where velocities have all the same sign with \(p_i,\lambda _i\) then the previous inequality is reversed. In order for this inequality to be satisfied \(\varepsilon \) should adjust the rate of change according to the magnitude of the gradients. This is exactly what is depicted e.g. in the lower plot of Fig. 2; we observe that for the three sets of exponents \(\varepsilon (N)\) follows the same inequalities and hence, schematically we have black> orange >blue.

A different way to view the previous is that for a given set of \(p_i\) we can find two different sets of exponents, e.g. \(\lambda _i\) and \(\kappa _i\), whose solutions bound the solution for \(p_i\) at all times. In the derivation of these relations the strict inequality between the different pairs of exponents is crucial; the condition on the norm of the gradient vector \(|\kappa |^2<|p|^2 < |\lambda |^2\) is not sufficient to provide a bound on \(\varepsilon \) at all times (see Fig. 2). The inequalities should instead be satisfied for each individual component. Moreover, we required that each velocity should have either the same sign as the corresponding gradient or opposite sign; if this is not satisfied this method may fail to provide definite inequalities for \(\varepsilon \). This property of the solutions can provide some conclusions about the evolution of more general potentials. For field-dependent \(p_i(\phi _j)\), we can estimate the number of e-folds by considering the minimum and maximum values for \(p_i(\phi _j)\) in some field interval \([\phi _{j,\mathrm min}, \phi _{j,\mathrm max}]\). Using these values we calculate \( N_{\mathrm{min}}\) and \(N_{\mathrm{max}}\) that correspond to the the solutions for product exponential potentials (\(e^{p_{i,\mathrm min}\phi _i}\) and \(e^{p_{i,\mathrm max}\phi _i}\) respectively) and then estimate the actual transitional time in the interval \(N\in (N_\mathrm{min},N_{\mathrm{max}})\).

Fig. 3
figure 3

Evolution of 2 product-exponential potentials with \((p_1,p_2)= (0.6,0.6)\) and \((\lambda _1,\lambda _2) = (0.01,0.9) \) (blue and green dashed accordingly) for negative supercritical velocities with the same \(\varepsilon _0\). Even though \(|p|^2<|\lambda |^2 \) the two lines cross

Fig. 4
figure 4

Estimation of \(\varepsilon \) for a quartic potential using two exponential potentials with \(p_{min}=4/\phi _0\) and \(p_{max}=4/\phi _*\) for negative velocities, \(\varepsilon _0=2.99\) and \(\phi _0=10 M_{pl}\)

As an illustrative example we will study quartic inflation \(V\sim \phi ^4/4\). We set the initial conditions to \(\phi _0=10\) and \(\varepsilon _0=2.99\). The field flows to the origin and in the interval \((0,\phi _0)\) the gradient \(p=4/\phi \) is a monotonically decreasing function; therefore, the minimum value for p would be given by \(p(\phi _0)\), whereas the maximum value corresponds to the value of \(\phi \) which gives \(\varepsilon (\phi _*)=1\). The latter value is unknown, as we do not know the full solution; in the following we will demonstrate how to estimate it. The value \(\phi _*\) would be the displacement one would find using the analytical solution (33) if the value \(p(\phi _*)\) was used for the gradient term

$$\begin{aligned} \phi _* = \phi _0 + \Delta \phi (\varepsilon =1,\varepsilon _0,p(\phi _*)) \, . \end{aligned}$$
(44)

Note that the previous is a transcendental equation for \(\phi _*\). Once this value is known, then \(p_{\mathrm{max}}=p(\phi _*)\) can be used in (31) to find the maximum number of e-folds. The precision of this estimate is portrayed in Fig. 4 and we can predict a priori the field displacement between 2.9 and 3.2 in units of \(M_{\mathrm{pl}}\), whereas the usual estimation resulting from considering kinetic domination with \(p=0\) gives \(\Delta \phi = 2.35 ~M_{\mathrm{pl}}\). This difference, although small, can potentially be important in the light of different conjectures which severely restrict the allowed superplankian field displacement, as well as the minimum value of p [46, 47]. Conversely, at a given point \(\phi _0\) one can constrain \(\varepsilon _0\) by the requirement of 50–60 e-folds of inflation and therefore estimate the “basin of attraction” of the initial conditions that provide sufficient inflation.

3.2 The gradient-flow approximation

For potentials with slowly varying gradients (in some field interval) the two estimated values for \(\varepsilon \) will be very close. This implies that the system behaves closely to a product exponential with field-dependent exponents, which, nevertheless, satisfy \(p_i'\ll 1\). Moreover, the scaling relations for the velocities \(v_i \approx -p_i\) imply that \(\varepsilon \) varies slowly

$$\begin{aligned} \left( {1 \over 2 }p_ip_i \right) ' \approx - { V_{,k} V_{,i} V_{,ik} \over V^2} + (2 \varepsilon _V)^2 \, , \end{aligned}$$
(45)

and the two terms should be small. In the latter equation we recognise the conditions for the validity of the gradient-flow approximation [48,49,50,51,52,53]. Therefore, models that are approximated well by gradient flow lie at the intersection between de Sitter and scaling solutions. The reason why these models asymptote to a state with almost vanishing accelerations can be explained by the fact that they are small deformations of de Sitter-scaling models, which have identically zero accelerations; since they are not exactly product-exponentials, during their evolution they move adiabatically between asymptotic solutions of exponentials.Footnote 4 In this way, one can deduce the global convergence towards the slow-roll solution which can not be done using linearised analysis. As a final remark, the scaling relations fix the fields’ velocities, through \(v_i \approx -p_i\), but not their position. Therefore, under this type of approximation observables inherit an explicit dependence on (a subset of) initial conditions.

4 Generalizations

In addition to the scalar fields we will consider a non-interacting fluid with an equation of state \(P = w \rho \). The Klein-Gordon equations remain unchanged, while Eqs. (4) and (5) are modified

$$\begin{aligned} 3H^2&= \frac{1}{2} {\dot{\phi }}_i{\dot{\phi }}_i + V + \rho \, . \end{aligned}$$
(46)
$$\begin{aligned} {\dot{H}}&= - \frac{1}{2} {\dot{\phi }}_i{\dot{\phi }}_i -\frac{1}{2} (1 + w) \rho \, , \end{aligned}$$
(47)

and we obtain an additional equation, the conservation equation for the fluid,

$$\begin{aligned} {\dot{\rho }} + 3H (1 + w) \rho =0 \, . \end{aligned}$$
(48)

The slow-roll parameter is now given by

$$\begin{aligned} \varepsilon = \frac{1}{2} v_i v_i +{1 \over 2}(w+1) {\rho \over H^2} \, . \end{aligned}$$
(49)

Introducing a new variable \(z\equiv \rho /H^2\) and using

$$\begin{aligned} {V \over H^2} = 3 - \varepsilon + {1 \over 2} (w-1) z \, , \end{aligned}$$
(50)

the system of evolution equations can be written as

$$\begin{aligned}&v_i ' +(3-\varepsilon )(v_i + p_i) + {1 \over 2}(w-1)z p_i =0 \, , \end{aligned}$$
(51)
$$\begin{aligned}&z' + \left( 3+3w -2\varepsilon \right) z =0 \, . \end{aligned}$$
(52)

In this form one can immediately read off asymptotic solutions, generalizing the solutions for one field (see e.g. [55]):

  1. 1.

    scalar kinetic domination: \(z=0\), \(\varepsilon =3\). There exists an infinite number of field realizations describing kinetic domination, namely all points on the hypersphere satisfying \(v_iv_i=6\).

  2. 2.

    scalar potential domination: \(z=0\), \(v_i = -p_i\) with \(\varepsilon =1/2 p_i p_i\).

  3. 3.

    fluid domination: \(v_i = 0\), \(z=3\) with \(\varepsilon =3/2(1+w)\).

  4. 4.

    scaling solution: (at least one of) the fields and the fluid are non-zero with \(\varepsilon =3/2(1+w)\) (the expressions for \(v_i\) and z are more complicated but can be found by solving quadratic equations).

In the case of a fluid with \(w=1\)Footnote 5 equations simplify to

$$\begin{aligned}&v_i ' +(3-\varepsilon )(v_i + p_i) =0 \, , \end{aligned}$$
(53)
$$\begin{aligned}&z' + \left( 3 - \varepsilon \right) 2z =0 \, , \end{aligned}$$
(54)

and, hence, one obtains another integral of motion which can be used to express the fluid in terms of a reference field

$$\begin{aligned} z = {z_0 \over \left( v_{1,0 } + p \right) ^2 } \left( v_1 + p \right) ^2 \equiv {B \over 2} \left( v_1 + p \right) ^2 \, . \end{aligned}$$
(55)

Plugging back into the slow-roll parameter (49) we obtain

$$\begin{aligned} 2 \varepsilon = \sum _{i=1}^{\mathcal {N}} (A_i (v_1 + p_1) - p_i)^2 + B (v_1 + p_1)^2 \, , \end{aligned}$$
(56)

which has the same form as Eq. (24) after the substitution \(A^2 \rightarrow {\tilde{A}}^2 = A^2 +B \). Moreover, for \(w=1\) Eq. (17) remains unchanged and the general solution in terms of \(\varepsilon \) has exactly the same form (Eqs. (31) and (33)) modulo the substitution \(A^2 \rightarrow {\tilde{A}}^2\).

5 Summary and discussion

Scalar fields in cosmology have been extensively studied over the last decades mainly due to their applications in both the early and the late universe. To date, only a limited number of exact solutions exists in the literature. In this paper we derived the general solution for an interacting product-exponential potential, that has not been considered in earlier works, in terms of the slow-roll parameter \(\varepsilon \). In the latter form it better highlights properties of its critical points.

We argued how the solution becomes relevant in the derivation of estimates for the transitional time to inflation for models that follow the potential gradient flow. For the non-linear evolution towards the slow-roll solution, i.e. starting with arbitrarily large deformations, one needs the full solution. Since there is no general prescription on how to solve the Klein–Gordon equation, one can alternatively derive estimates for the time of this transition using the solution of exponential potentials. This method generalizes the existing estimates, as it does not assume kinetic domination or negligible potential gradients \(K\gg V,V_{,\phi }\) (that was considered in previous works, e.g. [57]). We showed that the actual transitional time will lie between two bounds that depend on magnitude of the potential gradient \((\ln V)_{,\phi }\). Besides providing more accurate results the method can be applied in multi-field models where linearized stability becomes obscure due to the coupling of fields’ perturbations.

It is worth noticing that the general solutions presented in this work can also describe multi-field domain walls. The correspondence between cosmological and domain wall solutions can be found e.g. in the Refs. [58,59,60,61]. The beta function is the analogue of the slow-roll parameter \(\varepsilon \) and hence the RG flow of multi-field domain walls with product exponential potentials can be found using the solutions (31) and (33) and the dictionary between cosmology and domain walls.

Finally, we considered the case of an extra non-interacting fluid. When the fluid obeys an equation of state \(w=1\) (stiff matter) another integral of motion exists which makes the problem again fully integrable with almost the same solution as before (more precisely with a minor substitution).Footnote 6 It would be interesting to investigate how this solution can be generalized for problems with non-trivial field manifolds.