1 Introduction

One proposal to solve the flatness and the horizon problems of our universe, that differs from the inflationary scenario [1], is the cyclic cosmological model [2]. In the cyclic model, the universe undergoes an endless series of cycles of expansion and contraction, and the cosmic energy density and cosmic temperature remain finitely defined at any transition between expanding and contracting phases of the universe.

In the theory of general relativity cyclic universes can be constructed in the presence of a ghost field [3]. Ghost fields are exotic matter sources with negative energy density and also can have a parameter for the equation of state \(w_{f}\) \(=p/\rho \) for pressure p and density \(\rho ,\) such that \(w_{f}<-1\). There are various applications of ghost fields in classical and quantum cosmology [4,5,6,7] and it is interesting to note that the stability of Einstein static universes changes in the presence of a ghost field. More specifically, in [8] it was found that there exact solutions which describe an oscillation around an Einstein static solution for a closed Friedmann–Lemaître–Robertson–Walker universe (FLRW) when a radiation-ghost field (\(w_{f}=1/3,\rho <0\)) exists. More recently, the behaviour of cyclic mixmaster universes was studied in [9, 10] in the presence of ghost fields.

In this work, we study the existence of ghost fields in inhomogeneous dust universes [11] by assuming a “silent universe” [12] with dust and a radiation-like ghost matter source. More specifically, we focus on the existence and stability of Szekeres-like cyclic universes. Szekeres universes [13, 14] describe exact inhomogeneous solutions in general relativity which does not admit any isometry [15]. These exact solutions are categorized in two large families of spacetimes, the inhomogeneous Kantowski–Sachs solutions and the inhomogeneous FLRW solutions. Various applications of the Szekeres universes can be found in [16,17,18,19,20,21,22]. A detailed analysis of the conservation laws and the dynamics of the Szekeres system was performed recently in [23, 24]. The results of [23] were applied in [25] to quantize the Szekeres system for the first time.

A generalization of the Szekeres solutions in the presence of a cosmological constant was presented in [26]; while the inclusion of a fluid source with heat flow in Szekeres universes was made in [27]. Recently, the case of the Szekeres inhomogeneous dust model with a homogeneous scalar field was studied in [28]. In [28] it was found that there exists only one family of solutions which describe inhomogeneous universes and they generalise the FLRW family. By contrast, the Szekeres family of solutions of Kantowski–Sachs type describe spatially homogeneous universes when the ghost field is added to the dust.

In the following, we consider the Szekeres system with a dust fluid and a homogeneous ghost matter source with constant parameter for the equation of state. We solve the gravitational field equations analytically and we find that the two families of solutions are those of homogeneous Kantowski–Sachs and inhomogeneous FLRW spacetimes. These results are similar to that of the Szekeres model with a homogeneous scalar field [28]. For the inhomogeneous FLRW-like solution we are able to write the solution in a closed form. More specifically, we find again that for a closed FLRW-like universe there exists a periodic solution around a static universe. Furthermore, from the stability analysis we find that all the solutions in which the expansion rate \(\theta \) changes sign are unstable. We perform that analysis by studying the field equations in dimensionless variables different from those of the H-normalization [12].

The plan of the paper is as follows. In Sect. 2 we define our cosmological model which is that of the Szekeres metric with a homogeneous and isotropic ghost field with constant parameter for the equation of state. The requirement of homogeneity for the ghost field provides a first constraint on the unknown functions in the line element for the geometry of the universe. In Sect. 3 we present the two families of spacetimes which describe the solutions of the field equations. The stability of the cyclic solutions is presented in Sect. 4. Finally, in Sect. 5 we discuss our results and we draw our conclusions.

2 Szekeres universes with dust and an isotropic ghost field

In the context of general relativity we consider the action integral of the field equations to be

$$\begin{aligned} S=\int d^{4}x\sqrt{-g}R+\int d^{4}x\sqrt{-g}L_{m}+\int d^{4}x\sqrt{-g} L_{g},\nonumber \\ \end{aligned}$$
(1)

where \(L_{m}\) is the Lagrangian density of a pressureless fluid term and \(L_{G}\) describes an isotropic and homogeneous ghost ideal gas.

The Einstein field equations are

$$\begin{aligned} G_{\mu \nu }=T_{\mu \nu }^{\left( m\right) }+T_{\mu \nu }^{\left( g\right) } \end{aligned}$$
(2)

in which

$$\begin{aligned} T^{\mu \nu \left( m\right) }= & {} -\frac{1}{2\sqrt{-g}}\frac{\partial \left( \sqrt{-g}L_{m}\right) }{\partial g_{\mu \nu }}~~\text {and }T^{\mu \nu \left( g\right) }\nonumber \\= & {} -\frac{1}{2\sqrt{-g}}\frac{\partial \left( \sqrt{-g}L_{g}\right) }{\partial g_{\mu \nu }}. \end{aligned}$$
(3)

where the Bianchi identity gives \(\left( T^{\mu \nu \left( m\right) } +T^{\mu \nu \left( g\right) }\right) _{;\nu }=0\). Furthermore, by assuming that the two matter sources (dust and ghost field) are minimally coupled, we end up with two separate conservation equations:

$$\begin{aligned} \left( T^{\mu \nu \left( m\right) }\right) _{;\nu }=0~,~\left( T^{\mu \nu \left( g\right) }\right) _{;\nu }=0. \end{aligned}$$
(4)

For the background metric, we consider the following line element introduced by Szekeres [13]:

$$\begin{aligned} ds^{2}=-dt^{2}+e^{2A}dr^{2}+e^{2B}\left( dy^{2}+dz^{2}\right) , \end{aligned}$$
(5)

where functions of \(A=A\left( t,r,y,z\right) \) and \(B=B\left( t,r,y,z\right) \) are solutions of the Einstein’s field equations (2).

In terms of \(1+3\) decomposition for the fluid sources we have

$$\begin{aligned} T_{\mu \nu }^{\left( m\right) }= & {} \rho _{m}\left( t,r,y,z\right) u_{\mu }u_{\nu }~\ ,\nonumber \\ T_{\mu \nu }^{\left( g\right) }= & {} \rho _{g}\left( t\right) u_{\mu }u_{\nu }+p_{g}\left( t\right) h_{\mu \nu }, \end{aligned}$$
(6)

where \(u^{\mu }=\delta _{t}^{\mu }\) is the comoving 4-velocity and \(h_{\mu \nu }=g_{\mu \nu }+u_{\mu }u_{\nu }\) is the projective tensor, \(\rho _{m}\) is the inhomogeneous dust density, and for the homogeneous ghost field we set \(p_{g}\left( t\right) =\left( \gamma -1\right) \rho _{g}\left( t\right) .\)Both fluids share the same 4-velocity.

By substituting (6) into (4), we find

$$\begin{aligned}&\frac{\partial \rho _{m}\left( t,r,y,z\right) }{\partial t}+\left( \frac{\partial A\left( t,r,y,z\right) }{\partial t}\right. \nonumber \\&\quad \left. +2\frac{\partial B\left( t,r,y,z\right) }{\partial t}\right) \rho _{m}\left( t,r,y,z\right) =0, \end{aligned}$$
(7)
$$\begin{aligned}&\frac{\partial \rho _{g}\left( t\right) }{\partial t}+\gamma \left( \frac{\partial A\left( t,r,y,z\right) }{\partial t}+2\frac{\partial B\left( t,r,y,z\right) }{\partial t}\right) \rho _{g}\left( t\right) =0 \nonumber \\ \end{aligned}$$
(8)

which implies [28]:

$$\begin{aligned} \exp ( A( t,r,y,z) )= & {} a(t) \exp ( F( r,y,z) -2B( t,r,y,z) ) . \nonumber \\ \end{aligned}$$
(9)

We proceed now with the presentation of the possible solutions for the Einstein field equations (2).

Fig. 1
figure 1

Numerical simulation of the total volume, \(V\left( t\right) \), volume expansion rate, \(\theta \left( t\right) \), and shear anisotropy scalar, \(\sigma \left( t\right) ,\) for the graviational equations when \(\gamma =\frac{4}{3}\), \(\left| \rho _{g0}\right| >\rho _{m0}\) and \(K=0\), which corresponds to a Bianchi I universe

3 Analytic cyclic solutions

Szekeres spacetimes correspond to two families, the Kantowski–Sachs family with \(\frac{\partial B}{\partial r}=0\) and the FLRW family in which \(\frac{\partial B}{\partial r}\ne 0\). While in the Szekeres system the two spacetimes are inhomogeneous and do not admit any isometry, in [28] it was found that, if an isotropic scalar field is added to the dust source then the Kantowski–Sachs family of solutions must be spatially homogeneous, while an extra constraint on the functional form of the spacetime appears for the inhomogeneous FLRW family. In a similar way, the same two families of solutions are determined for the model considered here.

In particular, for the homogeneous Kantowski–Sachs family, the line element (5) simplifies to

$$\begin{aligned} ds^{2}= & {} -dt^{2}+a^{2}\left( t\right) dr^{2}\nonumber \\&+b^{2}\left( t\right) \frac{\left( dy^{2}+dz^{2}\right) }{\left( c_{1}\left( \left( y-y_{0}\right) ^{2}+\left( z-z_{0}\right) ^{2}\right) +c_{2}\right) ^{2} }, \end{aligned}$$
(10)

with \(c_{1},c_{2}\) constants, while the gravitational field equations reduce to those of the Kantowski–Sachs spacetime with two homogeneous perfect fluids [29] whose solution gives the evolution of the scale factorsFootnote 1 a(t) and b(t). Moreover, the spatial curvature K of the 2-dimensional line element \(ds_{( 2) }^{2}=( c_{1}( ( y-y_{0}) ^{2}+( z-z_{0}) ^{2}) +c_{2}) ^{-2} ( dy^{2}+dz^{2} ) \) is calculated to beFootnote 2 \(K=8c_{1}c_{2}\).

The nonlinearity of the field equations prevents us from finding closed-form solutions. However, for \(K=0\) (or in the limit in which\(~\frac{K}{b^{2} }\rightarrow 0\)) under the transformation \(a=u\left( \tau \right) v^{3}\left( \tau \right) \)\(b=v^{3}\left( \tau \right) ,~dt=ab^{2}d\tau \) the gravitational field equations lead to

$$\begin{aligned} u\left( \tau \right) =u_{0}e^{u_{1}\tau }, \end{aligned}$$
(11)

while \(v\left( \tau \right) \) satisfies the two equations

$$\begin{aligned}&\frac{6u_{1}}{v^{2}}\frac{d}{d\tau }\left( v^{2}\right) +\frac{27}{v^{2} }\left( \frac{dv}{d\tau }\right) ^{2}\nonumber \\&\quad =-\left( \rho _{g0}v^{6}e^{\frac{2}{3}u_{1}\tau }+\rho _{m0}v^{9}e^{u_{1}\tau }\right) , \end{aligned}$$
(12)

and

$$\begin{aligned}&\frac{1}{v^{2}}\left( \frac{dv}{d\tau }\right) ^{2}-\frac{1}{\ \nu } \frac{d^{2}v}{dt^{2}}+\frac{2}{3}\rho _{g0}v^{6}e^{\frac{2}{3}u_{1}\tau } +\rho _{m0}v^{9}e^{u_{1}\tau }=0,\nonumber \\ \end{aligned}$$
(13)

where we have assumed \(\gamma =\frac{4}{3}\)for the ghost field. When we perform the coordinate transformation, \(v\left( \tau \right) =e^{-\frac{u_{1}}{9}\tau }V\left( \tau \right) \), the second-order differential equation (13) is simplified to

$$\begin{aligned} \frac{d^{2}V}{d\tau ^{2}}=\frac{1}{V}\left( \frac{dV}{d\tau }\right) ^{2}+\frac{2\rho _{g0}V^{8}+\rho _{m0}V^{11}}{18V} \end{aligned}$$
(14)

which does not admit any periodic solutions. More specifically, it admits the unique critical point, for \(\rho _{g0}<0\)\(V_{c}=\left( \frac{2\left| \rho _{g0}\right| }{r_{0}}\right) ^{\frac{1}{3}}\), which is a source point and describes an Einstein static universe. Now, in the case where \(u_{1}=0\), we have \(a\left( \tau \right) =v\left( \tau \right) \) so the Bianchi I spacetime reduces to the spatially flat homogeneous FLRW universe.

In Fig. 1 the qualitative time-evolution of the volume \(V\left( t\right) \), the expansion rate \(\theta \left( t\right) ,\) and the shear \(\sigma \left( t\right) \) are presented following a numerical simulation of the field equations for \(K=0\), and \(\left| \rho _{g0}\right| >\rho _{m0}\).

In the following section we find that solutions with volume expansion turning points, where \(\theta \left( t_{0}\right) =0\) , exist for \(K<0,\) but for different values of the barotropic parameter \(\gamma \).

The second family of the Szekeres solutions is that of the inhomogeneous FLRW-like spacetimes, where the line element is given by the expression [28]

$$\begin{aligned} ds^{2}= & {} -dt^{2}+a^{2}\left( t\right) \left( \left( \frac{\partial C\left( r,y,z\right) }{\partial r}\right) ^{2}dr^{2}\right. \nonumber \\&\left. +\,e^{2C\left( r,y,z\right) }\left( dy^{2}+dz^{2}\right) \right) . \end{aligned}$$
(15)

The spatial function \(C\left( r,y,z\right) ~\)is given by the expression

$$\begin{aligned} C\left( r,y,z\right)= & {} -\ln \left( \gamma _{1}\left( r\right) \left( \left( y-\gamma _{2}\left( r\right) \right) ^{2}+\left( z-\gamma _{3}\left( r\right) \right) ^{2}\right) \right. \nonumber \\&\left. +\,\gamma _{4}\left( r\right) \right) , \end{aligned}$$
(16)

where two of the four arbitrary functions, \(\gamma _{1}\left( r\right) \rightarrow \gamma _{4}\left( r\right) ,\) are related to the spatial curvature, K, by

$$\begin{aligned} K=8\gamma _{1}\left( r\right) \gamma _{4}\left( r\right) . \end{aligned}$$
(17)

It is important to mention here that K is a constant and not a function of r as it is in the case of the Szekeres spacetimes. This difference arises because of the existence of the second (homogeneous ghost) fluid source. Moreover, the evolution of scale factor, \(a\left( t\right) ,\) is described by Friedmann’s equations with two homogeneous perfect fluids; its general analytic solution is expressed in terms of elliptic integrals.

However, in the particular case for which \(\rho _{g}\) describes a radiation ghost field, i.e., \(\gamma =\frac{4}{3}\), the exact form of the scale factor is given by the following simple expression [8, 9]

$$\begin{aligned} a\left( \tau \right) =\frac{\rho _{m0}}{6k}+\sqrt{\left( \frac{\rho _{m0}}{6k}\right) ^{2}-\frac{\left| \rho _{g0}\right| }{3k}}\sin \left( \sqrt{K}\tau \right) ~\text {for}~K\ne 0, \nonumber \\ \end{aligned}$$
(18)

or by

$$\begin{aligned} a\left( \tau \right) =\frac{\left| \rho _{g0}\right| }{\rho _{m0} }+\frac{\rho _{m0}}{12}\tau ^{2}~\text {for }K=0, \end{aligned}$$
(19)

where \(\tau \) is the conformal time defined by \(dt=a\left( \tau \right) d\tau \). The scale factor in \(K=0\) solution increases towards a power law, with a minimum as \(\tau \rightarrow 0\) at \(a\left( 0\right) =\) \(\frac{\left| \rho _{g0}\right| }{\rho _{m0}}\). For zero spatial curvature the scale factor has a minimum at \(a_{\min }^{\left( k=0\right) }=\frac{\left| \rho _{g0}\right| }{\rho _{m0}}\). For positive spatial curvature, (\(K=1\)), the solution (18) is real when \(\left( \rho _{m0}\right) ^{2}>12\left| \rho _{g0}\right| \) and it is also a periodic solution with minimum and maximum of \(a(\tau \)) and a(t) at

$$\begin{aligned} a_{\min }^{\left( k=1\right) }= & {} \frac{1}{6}\left( \rho _{m0}-\sqrt{\rho _{m0}^{2}-12\left| \rho _{g0}\right| }\right) , \nonumber \\ a_{\max }^{\left( k=1\right) }= & {} \frac{1}{6}\left( \rho _{m0}+\sqrt{\rho _{m0}^{2}-12\left| \rho _{g0}\right| }\right) , \end{aligned}$$
(20)

and the scale factor can be written as [8]

$$\begin{aligned} a^{\left( k=1\right) }\left( \tau \right)= & {} \frac{1}{2}\left[ \left( a_{\max }^{\left( k=1\right) }+a_{\min }^{\left( k=1\right) }\right) \right. \nonumber \\&+\left. \left( a_{\max }^{\left( k=1\right) }-a_{\min }^{\left( k=1\right) }\right) \sin \left( \tau \right) \right] \end{aligned}$$
(21)

so we can see that the scale factor oscillates around the static solution \(a^{\left( k=1\right) }\left( 0\right) =\left( a_{\max }^{\left( k=1\right) }+a_{\min }^{\left( k=1\right) }\right) \) with arbitrary amplitude. Hence these solutions show the stability of the Einstein static universe to these bounded oscillations but they only occur when a ghost field is present.

Note that the quantities \(a_{\max }^{\left( k=1\right) }\) and \(a_{\min }^{\left( k=1\right) }\) are not spatially varying because they depend on the constant quantities \(\rho _{m0}\) and \(\left| \rho _{g0}\right| \).

Finally, for \(K=-1\), solution (18) is real if and only if \(\rho _{m0}<12\left| \rho _{g0}\right| \) and the scale factor then simplifies to

$$\begin{aligned} a\left( \tau \right) =\frac{\rho _{m0}}{6}+\sqrt{\frac{\left| \rho _{g0}\right| }{3}-\left( \frac{\rho _{m0}}{6}\right) ^{2}}\sinh \left( \tau \right) , \end{aligned}$$
(22)

which increases exponentially as \(\tau \rightarrow \infty \).

We continue our analysis by studying the stability of these particular solutions with emphasis on the cyclic solutions.

4 Stability of the cyclic solutions

We have seen that the addition of the ghost field to the Szekeres universes can create new cyclic solutions, or solutions in which the volume expansion rate, \(\theta \left( t\right) ,\) can go to zero and change sign. In this section we perform a dynamical analysis of the kinematic quantities for the gravitational field equations. Here, the solutions with \(\theta =0\) appear and we are able to study their stability.

Fig. 2
figure 2

Phase-space diagram for the dynamical system (31)–(35) in the \(\omega _{m}-h\) surface and for three different values of \(\beta \)\(\gamma =\frac{4}{3}\) and \(\omega _{g},\) as given by the point \(P_{1}\) The middle figure is for \(\beta =0\), the left figure for \(\beta <0\) and the right figure for \(\beta >0\)

In terms of the kinematic quantities \(\theta ,~\sigma ,~{\mathcal {E}}\)\(\rho _{m}\) andFootnote 3 \(\rho _{g},\) the Szekeres field equations (2) are expressed as follows [30, 31]

$$\begin{aligned}&\frac{d\rho _{m}}{dt}+\theta \rho =0, \end{aligned}$$
(23)
$$\begin{aligned}&\frac{d\rho _{g}}{dt}+\gamma \rho _{g}\theta =0 \end{aligned}$$
(24)
$$\begin{aligned}&\frac{d\theta }{dt}+\frac{\theta ^{2}}{3}+6\sigma ^{2}+\frac{1}{2}\rho _{m} +\frac{\left( 3\gamma -2\right) }{2}\rho _{\gamma } =0, \end{aligned}$$
(25)
$$\begin{aligned}&\frac{d\sigma }{dt}-\sigma ^{2}+\frac{2}{3}\theta \sigma +{\mathcal {E}} =0, \end{aligned}$$
(26)
$$\begin{aligned}&\frac{d{\mathcal {E}}}{dt}+3{\mathcal {E}}\sigma +\theta {\mathcal {E}}+\left( \frac{1}{2}\rho _{m}+\frac{\gamma }{2}\rho _{g}\right) \sigma =0, \end{aligned}$$
(27)
$$\begin{aligned}&\frac{\theta ^{2}}{3}-3\sigma ^{2}+\frac{^{\left( 3\right) }R}{2}-\rho _{m}-\rho _{g}=0, \end{aligned}$$
(28)

where \(^{\left( 3\right) }R\) denotes the curvature of the three-dimensional hypersurfaces.

We proceed by choosing the new dimensionless variables [32], \(\omega _{m},\omega _{r}\) and \(\omega _{R}\) defined via

$$\begin{aligned} \rho _{m}= & {} \frac{1}{3}\omega _{m}\left( 1+\theta ^{2}\right) ~,~\rho _{r} =\frac{1}{3}\omega _{r}\left( 1+\theta ^{2}\right) ~,\nonumber \\ {}^{\left( 3\right) }R= & {} \frac{2}{3}\omega _{R}\left( 1+\theta ^{2}\right) \end{aligned}$$
(29)

and \(\beta ,{\mathcal {E}}\) and h by

$$\begin{aligned} ~\sigma= & {} \frac{1}{\sqrt{3}}\beta \sqrt{1+\theta ^{2}}~,~\varepsilon =\frac{1}{3}{\mathcal {E}}\left( 1+\theta ^{2}\right) ,\nonumber \\ h^{2}= & {} \left( \frac{\theta }{\sqrt{1+\theta ^{2}}}\right) ^{2}, \end{aligned}$$
(30)

so the gravitational field equations become an autonomous system:

$$\begin{aligned} \frac{d\omega _{m}}{d\zeta }= & {} \frac{1}{3}h\omega _{m}\left( 2h^{2}+12\beta ^{2}+\omega _{m}+2\omega _{g}-3\right) , \end{aligned}$$
(31)
$$\begin{aligned} \frac{d\omega _{r}}{d\zeta }= & {} \frac{1}{3}h\omega _{r}\left( 2h^{2}+12\beta ^{2}+\omega _{m}+2\omega _{g}-3\gamma \right) , \end{aligned}$$
(32)
$$\begin{aligned} \frac{d\beta }{d\zeta }= & {} \frac{1}{6\sqrt{3}}\left[ \beta \left( 6\beta +\sqrt{3}h\left( 2h^{2}-4\right. \right. \right. \nonumber \\&\left. \left. \left. +12\beta ^{2}+\omega _{m}+2\omega _{g}\right) \right) -6\varepsilon \right] , \end{aligned}$$
(33)
$$\begin{aligned} \frac{d\varepsilon }{d\zeta }= & {} \frac{1}{6}\left[ 4h^{3}\varepsilon +2h\varepsilon \left( 12\beta ^{2}+\omega _{m}+2\omega _{g}-3\right) \right. \nonumber \\&\left. -\sqrt{3}\beta \left( 6\varepsilon +\omega _{m}+\omega _{g}\right) \right] , \end{aligned}$$
(34)
$$\begin{aligned} \frac{dh}{d\zeta }= & {} \frac{1}{6}\left( h^{2}-1\right) \left( 2h^{2} +12\beta ^{2}+\omega _{m}+2\omega _{g}\right) , \end{aligned}$$
(35)

and there is a first integral

$$\begin{aligned} \omega _{R}=\omega _{m}+\omega _{g}+3\beta ^{2}-h^{2}, \end{aligned}$$
(36)

where the new time variable, \(\zeta \), is defined as \(dt=\left( \sqrt{1+\theta ^{2}}\right) d\zeta .\)

Fig. 3
figure 3

Phase-space diagram for the dynamical system (31)–(35) on the \(\omega _{g}-h\) surface,  for \(\gamma =\frac{4}{3}\), \(\omega _{m}=12\frac{\left( \gamma -1\right) }{2-\gamma }\beta ^{2}\) and for three different values of \(\beta \). The middle figure is for \(\beta =0\), the left figure for \(\beta <0\) and the right figure for \(\beta >0.\)

Fig. 4
figure 4

Phase-space diagram for the dynamical system (31)–(35) on the \(\varepsilon -h\) surface, for \(\gamma =\frac{4}{3}\)\(\left( \omega _{m},\omega _{g}\right) =\left( 12\frac{\left( \gamma -1\right) }{2-\gamma }\beta ^{2},-\frac{6\beta ^{2}}{2-\gamma }\right) ~\)and for three different values of \(\beta \). The middle figure is for \(\beta =0\), the left figure for \(\beta <0\) and the right figure for \(\beta >0.\)

Fig. 5
figure 5

Phase-space diagram for the dynamical system (31)–(35) on the \(\beta -\varepsilon \) surface,  for \(\gamma =\frac{4}{3} \)\(\left( \omega _{m},\omega _{g}\right) =\left( 12\frac{\left( \gamma -1\right) }{2-\gamma }\beta ^{2},-\frac{6\beta ^{2}}{2-\gamma }\right) \) and for three different values of h around the \(h\left( P_{1}\right) =0\) value

Fig. 6
figure 6

Phase-space diagram for the dynamical system (31)–(35) in the \(\omega _{g}-h\) surface for \(\gamma =\frac{4}{3}\)\(\beta =0~\)and for three different values of \(\omega _{m}\)

Fig. 7
figure 7

Phase-space diagram for the dynamical system (31)–(35) in the \(\omega _{m}-h\) surface, for \(\gamma =\frac{4}{3} \)\(\beta =0~\)and for three different values of \(\omega _{g}\)

Fig. 8
figure 8

Phase-space diagram for the dynamical system (31)–(35) in the \(~\beta -h\) surface for \(\gamma =\frac{4}{3}\)\(\omega _{m}=-2\omega _{r},~\omega _{r}<-\frac{1}{2}~\)and for three different values of \(\varepsilon \)

This normalization of the variables differs from the usual H-normalization [30, 33] because now it is possible to determine critical points also in the surface where \(\theta =0\), where \(h=0\). Furthermore, parameters \(\omega _{m}\)\(\omega _{g}\) and \(\omega _{R}\) are related to the familiar energy-density parameters \(\Omega _{m},~\Omega _{g}\) and \(\Omega _{R}\) as follows:

$$\begin{aligned} \omega _{m}=\Omega _{m}h^{2}~,~\omega _{g}=\Omega _{g}h^{2}~~\text {and } \omega _{r}=\Omega _{R~}h^{2}~. \end{aligned}$$
(37)

We are interested in the critical points for the system (31)–(35) when \(\theta \) is zero. They can be easily computed:

$$\begin{aligned}&P_{1}:\left( h,\beta ,\varepsilon ,\omega _{m},\omega _{g}\right) \nonumber \\&\quad =\left( 0,\beta ,\beta ^{2},12\frac{\left( \gamma -1\right) }{2-\gamma }\beta ^{2} ,-\frac{6\beta ^{2}}{2-\gamma }\right) \end{aligned}$$
(38)

and

$$\begin{aligned} P_{2}:\left( h,\beta ,\varepsilon ,\omega _{m},\omega _{g}\right) =\left( 0,0,0,\omega _{m},-\frac{\omega _{m}}{2}\right) . \end{aligned}$$
(39)

These points \(P_{1}~\)and \(P_{2}\) describe Einstein static universes.

However, in addition to those two critical points there is a family of critical points where \(h^{2}=1\). These correspond to the Szekeres universes when \(\omega _{g}=0\) and to the Szekeres-Szafron universes [14] when \(\omega _{m}=0\). Moreover, we find that there is no critical point where \(\omega _{m}\omega _{g}\ne 0\).

Now we discuss the stability and the physical parameters of the points \(P_{1}\) and \(P_{2}\).

a. At point \(P_{1}~\)the anisotropic parameter \(\beta ~\) is not a constraint, which means that \(P_{1}\) describes a surface of critical points on the phase-space. Since \(\beta \) is unconstrained, point \(P_{1}\) can describe solutions in the Kantowski–Sachs family and in the FLRW-like family. From the algebraic equation (36), we can derive the parameter \(\omega _{R}\), namely,

$$\begin{aligned} \omega _{R}=\frac{9\beta ^{2}}{2-\gamma }\left( \gamma -\frac{4}{3}\right) . \end{aligned}$$
(40)

Hence, the final geometry of the solution at \(P_{1}~\)depends upon the equation of state parameter,\(\gamma \), for the ghost field, \(\rho _{g}\). If we assume that \(\beta \ne 0\), then for \(\gamma =\frac{4}{3}\) the solution at point \(P_{1}\) describes a Bianchi I spacetime, for \(\gamma >\frac{4}{3}\), the geometry is that of Bianchi III, while, when \(\gamma <\frac{4}{3},\) it follows that \(\omega _{R}<0\), which means that the \(^{\left( 3\right) }R<0\) and the solution at point \(P_{1}\) describes a Kantowski–Sachs universe. Furthermore, at the special limit where \(\beta =0\), \(P_{1}\) describes the Minkowski spacetime. We study the stability of the solution at \(P_{1}\) in the four-dimensional subspace \(\left\{ \beta ,\varepsilon ,\omega _{m},\omega _{g}\right\} \) when \(h\rightarrow 0\). We find that there exists an eigenvalue, positive real-valued, for the matrix which defines the linearized system. Therefore, the solution at \(P_{1}\) is unstable in the 4-dimensional subspace \(\left\{ \beta ,\varepsilon ,\omega _{m},\omega _{g}\right\} \) and consequently also in the 5-dimensional space in which the dynamical system evolves. Two-dimensional phase-space diagrams are presented in Figs. 2, 3, 4 and 5, from which it is clear that \(P_{1}\) describes an unstable Einstein static solution. Moreover, from the phase-space diagrams we observe that unstable oscillatory behaviours exist around \(P_{1}.\) The figures are for \(\gamma =\frac{4}{3}\), Figs. 2 and 3 are in the surface \(\omega _{m}-h\)\(\omega _{g}-h\), respectively, Fig. 4 is in the surface \(\beta -\varepsilon \) and vectors in Fig. 5 are on the surface \(\beta -h\).

b. The solution at point \(P_{2}\) describes an isotropic static universe because \(\beta =\varepsilon =0\), and more specifically it is the inhomogeneous FLRW space with positive spatial curvature, i.e., \(\omega _{R}=-\omega _{g}\). We remark that \(P_{2}\), like point \(P_{1}\), is actually a surface – a family of solutions where \(\omega _{m}=-2\omega _{g}\) but with \(\omega _{R}=\frac{\omega _{m}}{2}\), which means that the spatial 3-curvature is positive. In order to study the stability of the solution we calculate the eigenvalues of the linearized system and they are

$$\begin{aligned} e_{1}=0~,~e_{2}^{\pm }=\pm \sqrt{\frac{\gamma \omega _{g}}{3}}~,~e_{3}^{\pm } =\pm \sqrt{\frac{\left( 2-\gamma \right) \left( -\omega _{g}\right) }{6}}\,. \end{aligned}$$

Hence, there exists always a positive eigenvalue and so we can infer that the solution at \(P_{2}\) is unstable. However, one of the eigenvalues has nonzero imaginary part (because \(\omega _{m}=-2\omega _{g}\)) which means that periodic behaviour exists. In particular the imaginary eigenvalues are in the \(\omega _{g}-h\) surface, and indeed periodic behaviour is observed in Fig. 6. This means that small perturbations around \(P_{2}\) in the \(\omega _{g}-h\) surface give a behaviour similar to that of the solution (21). In Figs. 7 and 8 the phase-space diagrams in the \(\omega _{m}-h\) and \(\beta -h\) surfaces are presented, respectively.

5 Conclusions

We have considered the Szekeres dust universe with an additional homogeneous and isotropic ghost field. The equation of state parameter for the ghost field was assumed to be \(p_{g}=\left( \gamma -1\right) \rho _{g}\) and \(\rho _{g}<0\). We were able to simplify the gravitational field equations and determine the existence of two possible families of solutions. Unlike in the absence of the ghost field, the first family of solutions describes spatially homogeneous Kantowski–Sachs universes, while the second family of solutions describes inhomogeneous FLRW-like universes. The specific forms of the spacetimes are similar to those determined in the case of an homogeneous scalar field and dust in the Szekeres metrics [28]. However, the existence of the ghost field produces new possible behaviours for the scale factors of these universes. Specifically, it is possible to have Einstein-static solutions in the Kantowski–Sachs family while a cyclic solution was found analytically for the FLRW-like family of spacetimes.

By studying the critical points of the gravitational field equations expressed in terms of the kinematic quantities we have found two points which describe Einstein static solutions, points \(P_{1}\) and \(P_{2}\), which are sources. More specifically, \(P_{1}\) and \(P_{2}\) actually describe surfaces in the dynamical phase-space: \(P_{1}\) exists for both of the families while \(P_{2}\) describes an Einstein static solution in the FLRW family of solutions. While the Einstein solutions are unstable, from the numerical simulations it is easy to observe that for specific initial conditions around the critical points cyclic behaviour appears which is agreement with the cyclic solution determined analytically. These are the first studies, via exact solutions, of inhomogeneous oscillating universes. We have not introduced dissipative processes but entropy production could be introduced in order to study the evolution of cycle size and length as the universe evolves through successive maxima [9, 10, 34, 35].