1 Introduction

Modified gravity [1, 2] is one of the two main directions that one can follow in order to obtain an improved description of the Universe evolution, both concerning the early (inflation) and late (dark-energy) accelerated phases, as well as concerning the possible observational tensions [3]. In such theories one constructs modifications and extensions of General Relativity which present extra degrees of freedom capable of inducing corrections at the cosmological behavior, both at the background and perturbation level.

There are many ways to construct gravitational modifications. In the simplest ones one starts from the Einstein-Hilbert Lagrangian and adds new terms, resulting to f(R) gravity [4], to f(G) gravity [5], to f(P) gravity [6], to Lovelock gravity [7], to Horndeski/Galileon scalar–tensor theories [8, 9] etc. Alternatively, one may start from the torsion-based formulation of gravity and modify it accordingly, resulting to f(T) gravity [10, 11], \(f(T,T_{G})\) gravity [12], f(TB) gravity [13], scalar-torsion theories [14] etc.

One different class of gravitational modifications arises when one starts from the equivalent formulation of gravity based on non-metricity. Initiated by Nester and Yo [15], based on an affine connection with vanishing curvature and torsion but metric-incompatibility, it was recently extended to f(Q) theory [16]. f(Q) gravity contains general relativity as a particular limit, and has the advantage of possessing second-order field equations. Hence, its cosmological application has attracted the interest of the literature [17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,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]. Nevertheless, all of these works focus on spatially-flat Friedmann–Lemaître–Robertson–Walker (FLRW) geometry, in which case the coincident gauge implies that the affine connection field equations can be ignored and thus f(Q) cosmology coincides with f(T) cosmology at the background level [69].

In this work we are interested in investigating f(Q) cosmology in non-flat Universe, in order to reveal possible novel features, having in mind that non-flat geometry [70], apart from being potentially interesting [71,72,73,74,75,76,77,78,79,80,81], might be one way to alleviate cosmological tensions [82]. The manuscript is organized as follows: In Sect. 2 we provide the basic mathematical formalism of symmetric teleparallel and f(Q) gravity. Then, in Sect. 3 we perform a detailed dynamical-system analysis, extracting the general cosmological features, both for a general f(Q) function as well as for a specific power-law example. Finally, in Sect. 4 we summarize our results.

2 Symmetric teleparallel and f(Q) gravity

In this section we briefly review symmetric teleparallel formulation of gravity and its f(Q) extension. In such a formalism one introduces a general affine connection \(\Gamma ^\alpha _{\,\,\, \beta \gamma }\), defined by \( \Gamma ^\lambda {}_{\mu \nu } = \mathring{\Gamma }^\lambda {}_{\mu \nu }+L^\lambda {}_{\mu \nu }, \) where \(\mathring{\Gamma }^\lambda {}_{\mu \nu }\) is the Levi-Civita connection and the disformation tensor is given by

$$\begin{aligned} L^\lambda {}_{\mu \nu } = \frac{1}{2} (Q^\lambda {}_{\mu \nu } - Q_\mu {}^\lambda {}_\nu - Q_\nu {}^\lambda {}_\mu ) , \end{aligned}$$
(1)

with the non-metricity tensor given as

$$\begin{aligned} Q_{\lambda \mu \nu } = \nabla _\lambda g_{\mu \nu } . \end{aligned}$$
(2)

Additionally, one can define the non-metricity scalar as

$$\begin{aligned} Q= & {} Q_{\lambda \mu \nu }P^{\lambda \mu \nu }= \frac{1}{4}(-Q_{\lambda \mu \nu }Q^{\lambda \mu \nu } + 2Q_{\lambda \mu \nu }Q^{\mu \lambda \nu } \nonumber \\{} & {} +Q_\lambda Q^\lambda -2Q_\lambda {\tilde{Q}}^\lambda ), \end{aligned}$$
(3)

with \( Q_{\lambda }=Q_{\lambda \mu \nu }g^{\mu \nu }\) and \( \tilde{Q}_{\nu }=Q_{\lambda \mu \nu }g^{\lambda \mu }\). Hence, using Q as a Lagrangian gives rise to the same equations with general relativity.

Based on the symmetric teleparallel framework, one can proceed in constructing gravitational modifications, such as f(Q) gravity [16], characterized by the action

$$\begin{aligned} S = \frac{1}{2\kappa }\int f(Q) \sqrt{-g}\,d^4 x +\int {\mathcal {L}}_M \sqrt{-g}\,d^4 x, \end{aligned}$$
(4)

where we have added the matter Lagrangian for completeness, corresponding to an energy-momentum tensor of a perfect fluid \( T^{m}_{\mu \nu }=(p+\rho )u_\mu u_\nu +pg_{\mu \nu }\), with p and \(\rho \) the pressure and energy density respectively. Variation of the action with respect to the metric leads to the field equations

$$\begin{aligned}{} & {} \frac{2}{\sqrt{-g}} \nabla _\lambda (\sqrt{-g}FP^\lambda {}_{\mu \nu }) -\frac{1}{2}f g_{\mu \nu } \nonumber \\{} & {} \quad + F(P_{\nu \rho \sigma } Q_\mu {}^{\rho \sigma } -2P_{\rho \sigma \mu }Q^{\rho \sigma }{}_\nu ) = \kappa T^{m}_{\mu \nu }, \end{aligned}$$
(5)

where the superpotential \(P^\lambda {}_{\mu \nu }\) is given by

$$\begin{aligned} P^\lambda {}_{\mu \nu } = \frac{1}{4} \left( -2 L^\lambda {}_{\mu \nu } + Q^\lambda g_{\mu \nu } - {\tilde{Q}}^\lambda g_{\mu \nu } -\frac{1}{2} \delta ^\lambda _\mu Q_{\nu } - \frac{1}{2} \delta ^\lambda _\nu Q_{\mu } \right) ,\nonumber \\ \end{aligned}$$
(6)

and with \(F(Q)=df(Q)/dQ\). Note that the field equations (5) can be alternatively written as [83]

$$\begin{aligned} F \mathring{G}_{\mu \nu }+\frac{1}{2} g_{\mu \nu } (FQ-f) + 2F' P^\lambda {}_{\mu \nu } \mathring{\nabla }_\lambda Q = \kappa T^{m}_{\mu \nu }, \end{aligned}$$
(7)

where \(\mathring{G}_{\mu \nu } = \mathring{R}_{\mu \nu } - \frac{1}{2} g_{\mu \nu } \mathring{R}\), and all the expressions denoted with a \(\mathring{()}\) are calculated with respect to the Levi-Civita connection \(\mathring{\Gamma }^\lambda {}_{\mu \nu }\). Hence, we can re-write them as [22]

$$\begin{aligned} \mathring{G}_{\mu \nu }= \frac{\kappa }{F}T^{m}_{\mu \nu }+\kappa T^{\text {de}}_{\mu \nu }, \end{aligned}$$
(8)

having defined an effective dark-energy sector of geometrical origin as

$$\begin{aligned} \kappa T^{\text {de}}_{\mu \nu }=\frac{1}{F}\left[ \frac{1}{2}g_{\mu \nu }(f-QF)-2F'\mathring{\nabla }_\lambda QP^\lambda _{\mu \nu }\right] , \end{aligned}$$
(9)

where a prime denotes differentiations with respect to the argument. Lastly, varying the action with respect to the affine connection, and assuming that the matter Lagrangian \({\mathcal {L}}_{M}\) does not depend on it, we obtain

$$\begin{aligned} \nabla _\mu \nabla _\nu (\sqrt{-g}F P^{\nu \mu }{}_\lambda )=0\,. \end{aligned}$$
(10)

Let us apply f(Q) gravity to a cosmological framework. As we mentioned in the Introduction, we consider a non-flat Friedmann–Lemaître–Robertson–Walker (FLRW) spacetime of the form

$$\begin{aligned} ds^2 = - d t^2 +a\left( t\right) ^{2}\left( \frac{dr^2}{1-kr^2} +r^2\textrm{d}\theta ^2+r^2\sin ^2\theta \textrm{d} \phi ^2\right) , \end{aligned}$$
(11)

where \(k=0,\,\pm 1\) denotes the spatial curvature. In this case, the non-trivial connection coefficients are given by [43, 84]

$$\begin{aligned} \Gamma ^t{}_{tt}&=-\frac{k+{\dot{\gamma }}}{\gamma }, \quad \Gamma ^t{}_{rr}=\frac{\gamma }{1-kr^2}, \quad \Gamma ^t{}_{\theta \theta }=\gamma r^2,\nonumber \\ \Gamma ^t{}_{\phi \phi }&=\gamma r^2\sin ^2\theta \nonumber \\ \Gamma ^r{}_{tr}&=-\frac{k}{\gamma }, \quad \Gamma ^r{}_{rr}=\frac{kr}{1-kr^2}, \quad \Gamma ^r{}_{\theta \theta }=-(1-kr^2)r,\nonumber \\ \Gamma ^r{}_{\phi \phi }&=-(1-kr^2)r\sin ^2\theta , \nonumber \\ \Gamma ^\theta {}_{t\theta }&=-\frac{k}{\gamma }, \quad \Gamma ^\theta {}_{r\theta }=\frac{1}{r}, \quad \Gamma ^\theta {}_{\phi \phi }=-\cos \theta \sin \theta , \nonumber \\ \Gamma ^\phi {}_{t\phi }&=-\frac{k}{\gamma }, \quad \Gamma ^\phi {}_{r\phi }=\frac{1}{r}, \quad \Gamma ^\phi {}_{\theta \phi }=\cot \theta , \end{aligned}$$
(12)

where \(\gamma (t)\) is a non-zero function of time. The corresponding non-metricity scalar Q can be calculated from (12) as [43, 84,85,86,87,88]

$$\begin{aligned} Q(t)=-3\left[ 2H^2+\left( \frac{3k}{\gamma }-\frac{\gamma }{a^2}\right) H-\frac{2k}{ a^2}-k\frac{\dot{\gamma }}{\gamma ^2}-\frac{\dot{\gamma }}{a^2}\right] .\nonumber \\ \end{aligned}$$
(13)

Therefore, inserting into the field equations (7) we obtain the modified Friedmann equations

$$\begin{aligned}&-\frac{1}{2}f-\left( 3H^2+3\frac{k}{a^2}-\frac{1}{2}Q\right) F\nonumber \\&\quad +\frac{3}{2}\dot{Q}\left( \frac{k}{\gamma }+\frac{\gamma }{a^2}\right) F'+\kappa \rho ^{m}=0 \end{aligned}$$
(14)
$$\begin{aligned}&\frac{1}{2}f+\left( 3H^2+2\dot{H}+\frac{k}{a^2}-\frac{1}{2}Q\right) F \nonumber \\&\quad +\dot{Q}\left( 2H+\frac{3}{2}\frac{k}{\gamma }-\frac{1}{2}\frac{\gamma }{a^2}\right) F'+\kappa p^{m}=0. \end{aligned}$$
(15)

3 Cosmological behavior

In this section we investigate in detail the cosmological evolution of a Universe governed by f(Q) gravity in non-flat geometry. In order to achieve that we perform a dynamical-system analysis [89, 90], which allows one to extract the global features of a cosmological scenario independently of the specific initial conditions [91,92,93,94,95,96,97]. Note that the dynamical-system analysis for f(Q) gravity has been performed in the literature [98,99,100,101,102], however it remains in the flat FLRW case, while as we will see in the following the inclusion of spatial curvature leads to novel qualitative features.

We start by defining dimensionless variables in order to re-write Eqs. (14)–(15) as an autonomous system. For simplicity we will focus on dust matter, namely we consider \(p^{m}=0\), while concerning the \(\gamma (t)\) form we assume the simple case \(\gamma (t)=\epsilon a(t)\) (analysis of the general case is straightforward, with the inclusion of an extra variable [102]). In particular, we have

$$\begin{aligned} x_1&=-\frac{f}{6H^{2}F},~~~x_2=\frac{Q}{6H^{2}},~~~x_3=\frac{{\dot{F}}}{HF}, ~~~x_4=\frac{1}{2Ha},\nonumber \\ \Omega ^{m}&=\frac{\kappa \rho ^{m}}{3H^{2}F},~~~~\Omega ^{k} =-\frac{k}{H^{2}a^{2}},\nonumber \\ r&=-\frac{QF}{f}=\frac{x_2}{x_1},~~~m=\frac{QF'}{F}, \end{aligned}$$
(16)

where \(\Omega ^{m}\) and \(\Omega ^{k}\) denote the contributions to the dark matter and the spatial curvature energy densities, and thus according to (9) the first Friedmann equation (14) is written as \(1=\Omega ^{m}+\Omega ^{k}+\Omega ^{de}\). The two parameters m and r parametrize the f(Q) form as a function m(r), while the variable \(x_4\) has been introduced in order to break the degeneracy between positive and negative H (since it is \(H^2\) that appears in the other variables).

Using the above dimensionless variables we result to the four-dimensional autonomous system

$$\begin{aligned} \frac{dx_1}{dN}&=-\frac{x_2x_3}{m}-x_1(x_3+3{\mathcal {A}}), \end{aligned}$$
(17)
$$\begin{aligned} \frac{dx_2}{dN}&=\frac{x_2x_3}{m}-3x_2{\mathcal {A}}, \end{aligned}$$
(18)
$$\begin{aligned} \frac{dx_3}{dN}&=-x_3\left( 3+x_3+\frac{3}{2}{\mathcal {A}}\right) , \end{aligned}$$
(19)
$$\begin{aligned} \frac{\Omega ^{k}}{dN}&=-\Omega ^{k}(2+3{\mathcal {A}}), \end{aligned}$$
(20)

with \({\mathcal {A}} \equiv \frac{2{\dot{H}}}{3\,H^{2}}=-1+x_1+x_2+\frac{x_3}{3}\left( \zeta x_4-2\right) +\frac{\Omega ^k}{3}\) and \(\zeta =-3\frac{k}{\epsilon }+\epsilon \), and where \(N=\ln a\). Hence, the total equation-of-state parameter is just \(w^{eff}=-1-2{\dot{H}}/{3H^2}=-1-{\mathcal {A}}\). Finally, we mention here that since \(r=x_2/x_1\), the condition \(dr/dN=rx_3\left( 1+\frac{1+r}{m}\right) =0\) implies that the critical points of the system (17)–(20) must satisfy either \(r=0\) (or equivalently \(x_2=0\)), or \(x_3=0\), or \(m(r)=-(1+r)\), while when the conditions \(x_1=0\), \(x_2=0\) and \(x_3\ne 0\) simultaneously hold the relation \(m(r)=-(1+r)\) must be considered.

3.1 General f(Q) form

We start by performing the analysis for a general f(Q) form, namely for a general m(r) function. As we will see, in this case the intersections of the curve m(r) with the line \(m=-r-1\) can play an important role in the way that the critical point corresponding to dark-matter dominated era connects to those exhibiting dark-energy domination.

In the general case the critical points of the system (17)–(20) are presented in Table 1. As can be seen, for a general f(Q) function there exist seven critical points, or curves of critical points, with different physical features. Note that all m and \(m'\) values must be calculated at probable intersections of m(r) with \(m=-r-1\), which happen at the roots \(r_i,~i=1,2,\ldots \).

Table 1 The critical points in the general f(Q) case, namely with general m(r). We have defined \(j_1=\frac{6 \left[ k (m-1)+(m+1) \epsilon ^2\right] }{m \left( 3 k-\epsilon ^2\right) }\), \(j_2=\frac{6 \left[ (m+1) \left( k-\epsilon ^2\right) m'+2 k m\right] }{m \left( 3 k-\epsilon ^2\right) }\), \(l_1=-\frac{3 \left( -\sqrt{33 k^2-30 k \epsilon ^2+\epsilon ^4}+k+\epsilon ^2\right) }{4 \left( k-\epsilon ^2\right) }\) and \(l_2=\frac{3 \left( \sqrt{33 k^2-30 k \epsilon ^2+\epsilon ^4}+k+\epsilon ^2\right) }{4 \left( \epsilon ^2-k\right) } \)

The physical properties of these critical points are the following:

  • Point \(P^{m}\): It corresponds to dark-matter (\(\Omega ^m=1\)) dominated era with total equation-of-state parameter \(w^{eff}=0\). Its eigenvalues imply that it is a saddle point and thus it can be the intermediate state of the Universe.

  • Point \(P^{k}\): It corresponds to a curvature-dominated era and it is a saddle point.

  • Curve of points \(P^{ds}\): It corresponds to a dark-energy dominated Universe (since \(\Omega ^m=\Omega ^k=0\) we have \(\Omega ^{de}=1\)), with \(w^{eff}=-1\), namely to the de Sitter solution. Although it has a zero eigenvalue, application of the center manifold theorem [89, 90] shows that this point is stable and thus it can attract the Universe at late times.

  • Point \(P^{1}\): This point exists only for non-flat geometry. It corresponds to a curvature-dominated solution if \(k=\pm \epsilon ^2\), and it is unstable for every values of m and \(m'\).

  • Point \(P^{2}\): This point is physical (i.e. having \(0\le \Omega ^m\le 1\)) only for \(k=1\) and for \(\epsilon ^2\le 1\). In this case \(\Omega ^m\) and \(\Omega ^{de}\) are both between 0 and 1 and thus this point can alleviate the coincidence problem. Additionally, it has \(-1\le w^{eff}\le -1/3\) and thus it corresponds to accelerated solution. The fact that it is unstable makes this point a good candidate for the description of inflation with a successful exit.

  • Point \(P^{3}\): This point is physical only for \(k=-1\) and for \(1\le \epsilon ^2\le 5/3\), in which case \(\Omega ^m\) and \(\Omega ^{de}\) are both between 0 and 1. It corresponds to super-acceleration and it is unstable.

  • Curve of points \(P^{4}\): The properties of this curve cannot be inferred without specifying m(r), namely the f(Q) form.

In summary, f(Q) cosmology in non-flat Universe exhibits the desired features of saddle matter-dominated era and stable late-time dark-energy era. However, apart from these, we obtain interesting features that arise solely from non-zero curvature, such as a point which can alleviate the coincidence problem, or a point that corresponds to a curvature-driven inflation which is unstable and thus it can easily acquire a successful inflation exit. Nevertheless, since some features cannot be extracted for the general f(Q) form, in the following subsection we examine a specific f(Q) case.

3.2 Application for \(f(Q)=\eta Q^{n}\)

Let us apply the above general analysis in the case \(f(Q)=\eta Q^{n}\). Such a choice, according to (16) corresponds to \(m=n-1=const.\) and \(r=-n=const.\), and thus \(x_2=rx_1\), which implies that variable \(x_2\) is not needed. We first examine the flat case and then we continue to \(k=\pm 1\).

3.2.1 \(k=0\)

In this case \(\Omega ^k\) is absent and we acquire a two-dimensional system, namely (17) and (19) with zero \(\Omega ^k\) terms. The corresponding physical critical points are shown in Table 2. As we can see, we obtain an unstable dark-matter dominated point, namely \(p^m\), as well as a stable dark-energy dominated de Sitter solution \(p^{de}\). However, for \(1\le m\le 2\) we obtain point \(p^{b}\), in which \(\Omega ^m\) and \(\Omega ^{de}\) are both between 0 and 1 and thus this point can alleviate the coincidence problem, while it has \(-3/5\le w^{eff}\le -1/3\). Note that this point for \(1\le m\) is unstable. In Fig. 1 we depict the critical points, using for convenience the new variables \(x\equiv X/\sqrt{1-X^2-Y^2}\) and \(y\equiv Y/\sqrt{1-X^2-Y^2}\) in order to compactify them.

Table 2 The critical points for the case \(f(Q)=\eta Q^{n}\), with \(k=0\)
Fig. 1
figure 1

The phase-space behavior in the specific case of \(f(Q)=\eta Q^{n}\) gravity, for \(k=0\). The Universe passes through the saddle matter-dominated point \(p^{m}\) at intermediate times, before it results to the dark-energy dominated de Sitter solution \(p^{ds}\)

3.2.2 \(k=-1\)

In the case of \(k\ne 0\) the system of dynamical equations contains (17), (19) and (20). The critical points are presented in Table 3. As can be seen there is the unstable dark-matter dominated point \(Q^{m}\), and the unstable curvature-dominated point \(Q^{k}\). Additionally, there exist a stable dark-energy dominated de Sitter solution \(Q^{ds}\). Moreover, similarly to points \(P^{4}\) in Table 1 and \(p^b\) in Table 2 above, there is a point \(Q^{3}\) in which \(\Omega ^m\) and \(\Omega ^{de}\) are both between 0 and 1 and thus this point can alleviate the coincidence problem.

Table 3 The critical points for the case \(f(Q)=\eta Q^{n}\), with \(k=\pm 1\)

In the presence of spatial curvature the two points \(Q^{1}\) and \(Q^{2}\) appear, too. \(Q^{1}\) corresponds to \(P^{2}\) of Table 1, and it is is physical only for \(k=1\) and for \(\epsilon ^2\le 1\). It has both \(\Omega ^m\) and \(\Omega ^{de}\) between 0 and 1 and thus this point can alleviate the coincidence problem. Additionally, it has \(-1\le w^{eff}\le -1/3\) and therefore it corresponds to accelerated solution. The fact that it is unstable makes this point a good candidate for the description of inflation. Furthermore, point \(Q^{2}\) corresponds to \(P^{1}\), namely it describes a curvature-dominated solution if \(k=\pm \epsilon ^2\), and it is unstable.

Fig. 2
figure 2

The phase-space behavior in the specific case of \(f(Q)=\eta Q^{n}\) gravity, for \(k=-1\). Left panel: for the choice \(\epsilon =0.1\) the system starts from the inflationary point \(Q^{1}\), then it passes close to the matter-dominated point \(Q^{m}\) and finally it results to the dark-energy dominated de Sitter solution \(Q^{ds}\). Right panel: for the choice \(\epsilon =1\) the system starts from the scaling point \(Q^{3}\) and it results to the dark-energy dominated de Sitter solution \(Q^{ds}\) without passing sufficiently close to the matter-dominated point \(Q^{m}\)

In order to present the above features in a more transparent way, we proceed to numerical investigation and in Fig. 2 we depict the corresponding phase-space behavior in the \(X_1-X_3\) plane. In the left panel the system starts from the inflationary point \(Q^{1}\), then it passes close to the matter-dominated point \(Q^{m}\) and finally it results to the dark-energy dominated de Sitter solution \(Q^{ds}\). As we can see, the role of spatial curvature is crucial in obtaining such a thermal history of the Universe. Moreover, for completeness, in the right panel of Fig. 2 we present a parameter-case in which the trajectories starting from \(Q^{3}\) do not approach \(Q^{m}\) efficiently.

Fig. 3
figure 3

The redshift evolution of the density parameters (left panel) and of the deceleration and equation-of-state parameters (right panel) in the specific case of \(f(Q)=\eta Q^{n}\) gravity, for \(k=-1\) and \(\epsilon =0.1\) We have set the initial conditions \(x_{1i}=-1.05\times 10^{-10}\), \(x_{3i}=-2.00013\) and \(\Omega ^{k}_{i}=5\times 10^{-7}\)

In the left panel of Fig. 3 we provide the redshift-evolution of the density parameters, while in the right panel we depict the evolution of the deceleration and total equation-of-state parameters (note that \(\ln (1+z)=-\ln a=-N\)). Interestingly enough, we observe a transition from the initial accelerated expansion stage, to the intermediate matter-dominated non-accelerating era, and then to the final accelerated expansion phase. Additionally, note that the spatial curvature density parameter grows when the domination of the matter and the dark energy phases is reversed.

Finally, in order to illustrate the behavior of the phase-space trajectories near the curvature-dominated points \(Q^{k}\) and \(Q^{2}\), we focus on the \(x_1=0\) plane. In upper panel of Fig. 4 we display \(Q^{m}\), \(Q^{k}\) and \(Q^{2}\) in the \(x_1=0\) plane for \(k=-1\). Note that in the \(x_1=0\) plane one cannot indicate the point \(Q^{ds}\) for which one acquires \(x_1=-1/m\). As we can see, for particular initial values the dark-matter dominated phase falls between two different epochs with considerable values of \(\Omega ^{k}\). In particular, the Universe evolves from an epoch with curvature domination to the dark-matter dominated era and then to another curvature-dominated epoch. The lower panels of Fig. 4 show the time evolution of the density parameters, and the deceleration and total equation-of-state parameters. As we can see, the transition \(Q^{2}\)-\(Q^{m}\)-\(Q^{k}\)-\(Q^{ds}\) is also possible for a particular set of the initial values.

3.2.3 \(k=+1\)

In the case of \(k=+1\) the system of dynamical equations (17), (19) and (20) exhibits the critical points presented in Table 3. In particular, one has points \(Q^{m}\) and \(Q^{ds}\), however in this case \(Q^{k}\) and \(Q^{1}\) are not physical. Point \(Q^{2}\) corresponds to a closed spatial curvature dominated era. Finally, \(Q^{3}\) exists, in which \(\Omega ^m\) and \(\Omega ^{de}\) are between 0 and 1 and thus it can alleviate the coincidence problem. In Fig. 5 we plot the phase-space trajectories in both \(\Omega ^{k}=0\) and \(x_1=0\) planes. As we can see, we cannot obtain any transition between \(Q^{m}\) and \(Q^{2}\)/\(Q^{3}\). Hence, we conclude that under positive spatial curvature we can only obtain the usual transition from matter to dark-energy dominated phases.

Fig. 4
figure 4

Upper panel: the phase-space behavior in the specific case of \(f(Q)=\eta Q^{n}\) gravity, in the \(x_1\)-plane, for \(k=-1\) and \(\epsilon =1\). The orange curve represents the transition from the curvature-dominated point \(Q^{2}\) to the matter-dominated point \(Q^{m}\) and then to the curvature-dominated solution \(Q^{k}\). Lower panels: the corresponding redshift evolution of the density parameters and of the deceleration and equation-of-state parameters. We have set the initial conditions \(x_{1i}=-1.5\times 10^{-7}\), \(x_{3i}=-2.1\) and \(\Omega ^{k}_{i}=0.9\), related to the black dot near \(Q^{2}\) in the upper panel

Fig. 5
figure 5

The phase-space behavior in the specific case of \(f(Q)=\eta Q^{n}\) gravity, for \(k=+1\), in the \(X_1-X_3\) plane (left panel) and in the \(Q^{k}-X_3\) plane (right panel). The unstable \(Q^{1}\) point stands in between \(Q^{m}\) and \(Q^{2}\)/\(Q^{3}\) and thus it blocks transitions between them, and hence we can only obtain the usual transition from matter to dark-energy dominated phases

4 Concluding remarks

In this manuscript we investigated the cosmological implications of f(Q) gravity, which is a modified theory of gravity based on non-metricity, in non-flat FLRW geometry. After presenting the relevant cosmological equations, we performed a detailed dynamical-system analysis in order to reveal the global features of the evolution, independently of the initial conditions.

Firstly, we performed the analysis keeping the f(Q) function completely arbitrary. As we showed, the cosmological scenario admits a dark-matter dominated point, which is saddle and thus it can be the intermediate state of the Universe, as well as dark-energy dominated de Sitter solution which is stable and thus it can attract the Universe at late times. However, the main result of the present work is that there are additional critical points and curves of critical points which exist solely due to curvature

In particular, we found that there are points which are curvature-dominated and correspond to accelerating expansion, and the fact that they are unstable makes them good candidates for the description of inflation. Additionally, there is a point in which the dark-matter and dark-energy density parameters are both between zero and one, and thus it can alleviate the coincidence problem. Finally, there is a saddle point which is completely dominated by curvature.

In order to provide a specific example, we applied our general analysis to the power-law case \(f(Q)=\eta Q^{n}\). In this specific model, the Universe exhibits the general features presented above, namely a saddle matter-dominated point and a late-time dark-energy dominated attractor. Furthermore, it has points that exist only in the non-flat case, which can alleviate the coincidence problem, as well as curvature-dominated accelerating unstable points that can describe the early-time inflationary epoch. In this case we performed a numerical investigation showing that the system in the open geometry case exhibits a transition from the initial accelerated expansion stage, to the intermediate matter-dominated non-accelerating era, and then to the final accelerated expansion phase, while the curvature density parameter exhibits a peak at intermediate times.

In summary, f(Q) cosmology in non-flat Universe exhibits the desired behavior known from the flat case, however it additionally exhibits qualitatively novel features that arise solely from non-zero curvature. This fact, alongside possible indications that non-zero curvature could alleviate the cosmological tensions, makes it both interesting and necessary to further investigate modified gravity, and in particular f(Q) gravity, in non-flat geometry.