1 Introduction

According to recent astrophysical observations like Supernovae Ia [1, 2], large-scale structure [3, 4] with the baryon acoustic oscillations [5], cosmic microwave background radiation [6,7,8], and weak lensing [9], the current evolution expansion of the universe is accelerating. As suggested by observations Universe is flat, homogeneous, isotropic, and corresponds to Friedman–Robertson–Walker spacetime. The current status of the universe motivated the research community to go beyond Einstein’s general relativity (GR) to explore the candidates responsible for it. In GR, the addition of cosmological constant in field equations helps us to understand the unknown form of energy, but it faces some issues such as the fine-tuning problem, coincidence problem; its effects are only observed at cosmological scales instead of Planck scales [10]. Therefore, several alternative modified theories of gravity have been introduced to address the issues with GR in the literature.

At the present time, we have two known procedures to explain the late-time cosmic acceleration. One is the introduction of the so-called dark energy (DE) with negative pressure in Einstein’s general theory of relativity [11]. After the discovery of late-time cosmic acceleration, numerous DE models have been proposed, such as phantom [12], quintessence [13], k-essence [14], f-essence [15] as well as tachyon [16]. The other is the modification of theories of gravity on large distances. During the last years, it has been tested that modified theories of gravity are quite successful in the description of the early time like inflation and late-time acceleration like dark energy of our Universe.

In the last few years, modified theories of gravity have been proposed as extensions of Einstein’s general relativity theory. Their main motivation is to explain the latest astrophysical data on dark energy and dark matter. The investigations of general relativity at small scales have already given important results, but its study at large scales is challenging because recent observational data will provide important information on the validity of these modified theories of gravity. In particular, f(R) gravity, f(T) gravity extensively studied as geometrical description of gravity.

In f(R) theories of gravity, the scalar curvature R in the Einstein–Hilbert action is changed to an arbitrary function f(R) and described by a Levi–Civita connection [17]. This connection describes a spacetime with zero torsion and nonmetricity but with nonvanishing curvature. The f(T) gravity is a generalization of the teleparallel equivalent of general relativity (TEGR), where T is the torsion scalar made up of the Weitzenbock connection in which a spacetime describes with zero curvature and nonmetricity but with nonvanishing torsion [18].

Recently, authors [19, 20] proposed symmetric teleparallel gravity (STG) or f(Q) theory of gravity based on nonmetricity scalar Q. This is a new geometric interpretation of spacetime in affine connection, where curvature and torsion vanish. There are several mathematical and physical reasons which motivate the consideration of nonmetricity in the context of gravitational theories. For instance, nonmetricity scalar is assuming as a measure for the violation of local Lorentz invariance, which has been attracting some interest. In [21], cosmological applications in STG are explored and dynamical system method is investigated. Possibility of constructing conformal theories of gravity in the STG examined in [22]. Authors [23, 24] studied the propagation velocity of the gravitational waves around Minkowski spacetime and their potential polarizations in a general class of STG. Moreover, in [24], authors have investigated the possibility of GWs exactly for STG and their modifications with two extensions of STG, namely the perturbed versions of the generalized irreducible decomposition of the STG which emerges from nonmetricity scalar Q as well as the other natural generalization of the theory, namely f(Q) gravity. They found that polarization modes turn out to be identical to those of GR. This means that GW polarization tests cannot distinguish between GR and f(Q) theories of gravity, while the linear irreducible form of STG theory does produce distinct results that would emerge in GW observations. Also, the authors investigated GWs in theories with a nonminimal coupling between f(Q) and a scalar field. Additionally, authors examined GW in the extension of STG such as f(QB) gravity, where the Q nonmetricity scalar and B boundary term. Cosmographic parameters in f(Q) gravity are analyzed in [25]. In [26], the traversable wormhole geometries in f(Q) gravity are studied and geometries for three different cases are constructed.

In order to give characteristics that describe some realistic matter distribution, certain conditions must be imposed on the energy-momentum tensor known as energy conditions originating from Raychaudhuri equations with the requirement that energy density is positive. The energy conditions as null (NEC), weak (WEC), dominant (DEC), and strong (SEC) energy conditions are the four fundamental conditions that are often required in the proofs of various important theorems about black holes, such as the laws of black hole thermodynamics in the general theory of relativity. These conditions have investigated in various modified theories of gravity such as [27,28,29,30,31,32,33,34].

One alternative theory for inflation is the bouncing cosmology in general. This theory constructed as following: scale factor reaches a minimum but finite value in inflationary scenario. Also the bouncing universe assuming as a new idea, suggested to resolve the singularity problem in big bang cosmology. In this interpretation, the initial phase of the universe transfers to a late-time accelerated expansion phase in which point the Hubble parameter, H(t), transits from \(H(t)<0\) to \(H(t)>0\), and also in bounce point, we have \(H(t)=0\). In the literature, an increasing number of works concerning potential viable bouncing cosmologies have been examined. Different types of bounce like ekpyrosis bounce and superbounce have also been attracting interest in modified theories framework. For instance in the literature with seminal works in which bounce scenarios were explored for f(R), f(T) and f(G) gravity theories [35,36,37] and (for a recent review, see [38]). Recently, one of the interesting work was done by Bajardi et al. [39] in the framework of f(Q) gravity used the reduction method to constraint the functional form of f(Q) and explore the bouncing cosmological models. In this work, we are aiming to explore the cosmological bouncing scenarios in symmetric teleparallel gravity (i.e., f(Q) gravity).

This manuscript is organized as follows: in Sect. 2, we briefly discuss the gravitational formalism for f(Q) gravity. In Sect. 3, we present the energy conditions. Then, we discuss different types of bouncing scenarios and also about a particular bouncing solution, which we have used for further study in Sect. 4. In Sect. 5, we explore two bouncing models with their energy conditions. We adopt the perturbation analysis to examine the stability of bouncing scenarios in Sect. 6. Finally, we conclude with our outcomes in Sect. 7.

2 Motion equations in f(Q) gravity

Let us consider the action for f(Q) gravity given by [20]

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

where f(Q) is a general function of the Q, \({\mathcal {L}}_m\) is the matter Lagrangian density and g is the determinant of the metric \(g_{\mu \nu }\).

The nonmetricity tensor and its traces are such that

$$\begin{aligned} Q_{\gamma \mu \nu }= & {} \nabla _{\gamma }g_{\mu \nu }, \end{aligned}$$
(2)
$$\begin{aligned} Q_{\gamma }= & {} {{Q_{\gamma }}^{\mu }}_{\mu }, \quad {\widetilde{Q}}_{\gamma }={Q^{\mu }}_{\gamma \mu }. \end{aligned}$$
(3)

Moreover, the superpotential as a function of nonmetricity tensor is given by

$$\begin{aligned} 4{P^{\gamma }}_{\mu \nu }=-{Q^{\gamma }}_{\mu \nu }+ 2Q_{({\mu ^{^{\gamma }}}{\nu })}-Q^{\gamma }g_{\mu \nu }-{\widetilde{Q}}^{\gamma } g_{\mu \nu }-\delta ^{\gamma }_{{(\gamma ^{^{Q}}}\nu )}, \end{aligned}$$
(4)

where the trace of nonmetricity tensor [20] has the form

$$\begin{aligned} Q=-Q_{\gamma \mu \nu }P^{\gamma \mu \nu }. \end{aligned}$$
(5)

Another relevant ingredient for our approach is the energy-momentum tensor for the matter, whose definition is

$$\begin{aligned} T_{\mu \nu }=-\frac{2}{\sqrt{-g}}\frac{\delta (\sqrt{-g}{\mathcal {L}}_m)}{\delta g^{\mu \nu }}. \end{aligned}$$
(6)

Taking the variation of action (1) with respect to metric tensor, one can find the field equations

$$\begin{aligned} \frac{2}{\sqrt{-g}}\nabla _{\gamma }\left( \sqrt{-g}f_Q {P^{\gamma }}_{\mu \nu }\right) +\frac{1}{2}g_{\mu \nu }f +f_Q\left( P_{\mu \gamma i}{Q_{\nu }}^{\gamma i}-2Q_{\gamma i \mu }{P^{\gamma i}}_{\nu } \right) =-T_{\mu \nu }, \end{aligned}$$
(7)

where \(f_Q=\frac{\mathrm{d}f}{\mathrm{d}Q}\). Besides, we can also take the variation of (1) with respect to the connection, yielding to

$$\begin{aligned} \nabla _{\mu }\nabla _{\gamma }\left( \sqrt{-g}f_Q {P^{\gamma }}_{\mu \nu }\right) =0. \end{aligned}$$
(8)

Here, we are going to consider the standard Friedmann–Lemaître–Robertson–Walker (FLRW) line element, which is explicit written as

$$\begin{aligned} ds^2=-dt^2+a^2(t)\delta _{\mu \nu }dx^{\mu }dx^{\nu }, \end{aligned}$$
(9)

where a(t) is the scale factor of the Universe. The previous line element enables us to write the trace of the nonmetricity tensor as

$$\begin{aligned} Q=6H^2. \end{aligned}$$

Now, let us take the energy-momentum tensor for a perfect fluid, or

$$\begin{aligned} T_{\mu \nu }=(p+\rho )u_{\mu }u_{\nu }+pg_{\mu \nu }, \end{aligned}$$
(10)

where p represents the pressure and \(\rho \) represents the energy density. Therefore, by substituting (9) and (10) in (7), one can find

$$\begin{aligned} 3H^2= & {} \frac{1}{2f_Q}\left( -\rho +\frac{f}{2}\right) , \end{aligned}$$
(11)
$$\begin{aligned}&{\dot{H}}+3H^2+\frac{{\dot{f}}_Q}{f_Q}H=\frac{1}{2f_Q}\left( p+\frac{f}{2}\right) , \end{aligned}$$
(12)

as the modified Friedmann equations for f(Q) gravity. Here, dot \((^.)\) represents one derivative with respect to time. The modified Friedmann equations enable us to write the density and the pressure for the Universe as

$$\begin{aligned} \rho= & {} \frac{f}{2}-6H^2f_Q, \end{aligned}$$
(13)
$$\begin{aligned} p= & {} \left( {\dot{H}}+3H^2+\frac{{\dot{f}}_Q}{f_Q}H\right) 2f_Q-\frac{f}{2}. \end{aligned}$$
(14)

In analogy with GR, we can rewrite Eqs. (11) and (12) as

$$\begin{aligned} 3H^2= & {} -\frac{1}{2}{\tilde{\rho }}, \end{aligned}$$
(15)
$$\begin{aligned} {\dot{H}}+3H^2= & {} \frac{{\tilde{p}}}{2}. \end{aligned}$$
(16)

where

$$\begin{aligned} {\tilde{\rho }}= & {} \frac{1}{f_Q}\left( \rho -\frac{f}{2}\right) , \end{aligned}$$
(17)
$$\begin{aligned} {\tilde{p}}= & {} -2\,\frac{{\dot{f}}_Q}{f_Q}\,H+\frac{1}{f_Q}\,\left( p+\frac{f}{2}\right) . \end{aligned}$$
(18)

The previous equations are going to be components of a modified energy-momentum tensor \({\tilde{T}}_{\,\mu \nu }\), embedding the dependence on the trace of the nonmetricity tensor.

3 Energy conditions

The energy conditions (ECs) are the essential tools to understand the geodesics of the Universe. Such conditions can be derived from the well-known Raychaudhury equations, whose forms are [40,41,42]

$$\begin{aligned} \frac{\mathrm{d}\theta }{\mathrm{d}\tau }= & {} -\frac{1}{3}\theta ^2-\sigma _{\mu \nu }\sigma ^{\mu \nu }+\omega _{\mu \nu }\omega ^{\mu \nu }-R_{\mu \nu }u^{\mu }u^{\nu }, \end{aligned}$$
(19)
$$\begin{aligned} \frac{\mathrm{d}\theta }{\mathrm{d}\tau }= & {} -\frac{1}{2}\theta ^2-\sigma _{\mu \nu }\sigma ^{\mu \nu }+\omega _{\mu \nu }\omega ^{\mu \nu }-R_{\mu \nu }n^{\mu }n^{\nu }, \end{aligned}$$
(20)

where \(\theta \) is the expansion factor, \(n^{\mu }\) is the null vector, and \(\sigma ^{\mu \nu }\) and \(\omega _{\mu \nu }\) are, respectively, the shear and the rotation associated with the vector field \(u^{\mu }\). For attractive gravity, equations (24) and (25) satisfy the following conditions

$$\begin{aligned} R_{\mu \nu }u^{\mu }u^{\nu }\ge 0, \end{aligned}$$
(21)
$$\begin{aligned} R_{\mu \nu }n^{\mu }n^{\nu }\ge 0. \end{aligned}$$
(22)

Therefore, if we are working with a perfect fluid matter distribution, the energy conditions recovered from standard GR are

  • Strong energy conditions (SEC) if \({\tilde{\rho }}+3{\tilde{p}}\ge 0\,\);

  • Weak energy conditions (WEC) if \({\tilde{\rho }}\ge 0, {\tilde{\rho }}+{\tilde{p}}\ge 0\,\);

  • Null energy condition (NEC) if \({\tilde{\rho }}+{\tilde{p}}\ge 0\,\);

  • Dominant energy conditions (DEC) if \({\tilde{\rho }}\ge 0, |{\tilde{p}}|\le \rho \,\).

Taking Eqs. (17) and (18) into WEC, NEC and DEC constraints, we are able to prove that

  • Weak energy conditions (WEC) if \(\rho \ge 0, \rho +p\ge 0\,\);

  • Null energy condition (NEC) if \(\rho +p\ge 0\,\);

  • Dominant energy conditions (DEC) if \(\rho \ge 0, |p|\le \rho \,\).

corroborating with the work from Capozziello et al. [43] and Mandal et al. [32]. In the case of SEC condition, we yield to the constraint

$$\begin{aligned} \rho +3\,p-6\,{\dot{f}}_Q\,H+f \ge 0. \end{aligned}$$
(23)

4 Bouncing solution

The singularity problem in the standard model of cosmology and inflection theory is debatable for a long time since it was not clear if this particular state was an inherent trace of the universe or just a consequence of the high degree of symmetry the model [44]. However, for this issue, finite singularity might give us some answers. Regarding this, an extensive study was done by the researchers based on some of the bouncing scenarios such as

  1. (I)

    Symmetric bounce This type of solution was first introduced by [45] to generate non-singular bouncing. This bouncing model needs to satisfy the other cosmological behaviors; otherwise, it suffers the problems related to the Hubble horizon. And, the cosmological parameters obey the following behaviors; for t tends to \(\infty \), scale factor, Hubble parameter, energy density, and pressure diverges.

  2. (II)

    Super-bounce This type of model is used to construct a universe that collapses at a point \(t_b\) (bouncing point) and re-birth through a Big Bang without a singularity [46, 47]. The cosmological parameters may follow the following; for t tends to \(t_b\), the scale factor is constant, Hubble parameter, energy density, and pressure diverge.

  3. (III)

    Oscillatory cosmology This type of model describes the cyclic universe, i.e., it continues its expansion and contraction after a specific interval of time [44]. Here are certain rules; for t tends to \(kt_b (k\in {\mathbb {Z}}-{0})\), scale factor tends to constant, Hubble parameter, energy density, and pressure diverse.

  4. (IV)

    Matter bounce This type of model was studied during the early stage evolution of the universe and derived from loop quantum cosmology [48, 49]. For t tends to \(t_b\), scale factor, Hubble parameter, energy density, and pressure are finite.

  5. (V)

    Past/future singularities and Little Rip cosmology This type of model deals with the universe’s past and future singularities problem. It is generally specified into four categories: big-rip, little-rip, sudden, and big-freeze singularities [50].

In this work, we are looking to discuss some bouncing cosmological models in a nobel modified theory of gravity called f(Q) gravity. To proceed further, we have considered the cosmic scale factor a(t) is given by [51]

$$\begin{aligned} a(t)=\left( \frac{b^2+t^2}{b^2+t_0^2}\right) ^{1/4}, \end{aligned}$$
(24)

where b is an arbitrary constant and \(t_0>0\).

Fig. 1
figure 1

Profile of scale factor a(t) for \(b=5\) and \(t_0=1\)

Fig. 2
figure 2

Profile of Hubble parameter H(t) for \(b=5\) and \(t_0=1\)

The profile of the bouncing solution and its derivative are shown in Figs. 1 and 2, respectively. From those profiles, one can see that the Hubble parameter lies in the negative range for \(t<0\) and in the positive range for \(t>0\). This result suggests that the universe transit from a contraction phase to an expansion phase. Moreover, for a nonzero scale factor at \(t=0\), its derivative reduces to zero. One can also see that the scale factor evolved symmetrically around the bouncing point in Fig. 1. Here, the standard units of H as km/s/Mpc and t as Gyr are considered.

5 Cosmological models

In this section, we discuss the presumed bouncing solution through realistic cosmological models. To do that, we discussed two cosmological models by considering two different Lagrangian f(Q). For the first model, we discuss the model with linear Lagrangian, and for the second model, we assume a nonlinear Lagrangian f(Q). These models are discussed in the following sub-sections.

5.1 Model 1: \(f(Q)=\alpha Q\)

In this subsection, we consider a linear Lagrangian f(Q), i.e., \(f(Q)=\alpha Q\), where \(\alpha \) is an arbitrary constant. Studying this linear model helps us to compare the results with the fundamental theory of gravitational interaction. For this case, the energy-momentum components are reads as follows:

$$\begin{aligned} \rho= & {} -\frac{3 \alpha t^2}{4 \left( b^2+t^2\right) ^2} \end{aligned}$$
(25)
$$\begin{aligned} \mathbf{WEC}: \,\ \rho +p= & {} \frac{\alpha (b-t) (b+t)}{\left( b^2+t^2\right) ^2} \end{aligned}$$
(26)
$$\begin{aligned} \mathbf{DEC}: \,\ \rho -p= & {} -\frac{\alpha \left( 2 b^2+t^2\right) }{2 \left( b^2+t^2\right) ^2} \end{aligned}$$
(27)
$$\begin{aligned} \mathbf{SEC}: \,\ \rho +3\,p-6\,{\dot{f}}_Q\,H+f= & {} \frac{3 \alpha b^2}{\left( b^2+t^2\right) ^2} \end{aligned}$$
(28)

All of the above expression for energy conditions are depend on the model parameters. Nevertheless, one cannot chose the values of parameters randomly, which may violate the energy conditions. Moreover, we know that energy density \(\rho \) should be positive throughout the evolution of the universe. Therefore, using this condition \(\rho \ge 0\), we can constrain all the parameters used to discuss our models. Therefore, for first model, we have found that for \(\alpha < 0\), the energy density will be positive everywhere. The profiles of all energy conditions are shown in Fig. 3, for a particular value of \(\alpha \) from its bounded range. From that figure, one can see that the non-singular bounce happens at \(t=0\). The energy density contracted from past evolution to \(t=0\) and again expanded from that point. Besides, NEC and SEC violated near the bouncing point. Also, we have verified that the NEC and SEC are non-singular at the bouncing point, which removes the singularity issue with the early description and represents a non-singular bouncing universe. Moreover, this model shows the late-time acceleration of the universe.

Fig. 3
figure 3

Profiles of energy conditions w.r.t. cosmic time t for \(\alpha =-1.5\) and \(b=5\) (for model-1)

The equation of state parameter \(\omega \) for this model can be written as

$$\begin{aligned} \omega =\frac{p}{\rho }=-1-\frac{4 \left( b^2-t^2\right) }{3 t^2} \end{aligned}$$
(29)
Fig. 4
figure 4

Profile of equation of state parameter \(\omega \) w.r.t. cosmic time t for \(\alpha =-1.5\) and \(b=5\) (for model-1)

Fig. 5
figure 5

Profiles of energy conditions w.r.t. cosmic time t for \(m= -1.5, \,\ n=0.662 \) and \(b=5\) (for model-2)

5.2 Model 2: \(f(Q)= Q+m Q^n\)

Here, we have considered a nonlinear Lagrangian f(Q), i.e., \(f(Q)= Q+m Q^n\) to explore the evolution of the universe through a bouncing solution, where m and n are arbitrary constants. The energy-momentum components for the polynomial form of Lagrangian f(Q) are

$$\begin{aligned} \rho= & {} m \left( -2^{-n-1}\right) 3^n (2 n-1) \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^n\nonumber \\&-\frac{3 t^2}{4 \left( b^2+t^2\right) ^2} \end{aligned}$$
(30)
$$\begin{aligned} \mathbf{WEC}: \,\ \rho +p= & {} \frac{1}{3} (b-t) (b+t) \left( \frac{m 2^{1-n} 3^n n (2 n-1) \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^n}{t^2}\right. \nonumber \\&\left. +\frac{3}{\left( b^2+t^2\right) ^2}\right) \end{aligned}$$
(31)
$$\begin{aligned} \mathbf{DEC}: \,\ \rho -p= & {} \frac{m 2^{-n} 3^{n-1} (2 n-1) \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^n \left( (2 n-3) t^2-2 b^2 n\right) }{t^2}\nonumber \\&-\frac{2 b^2+t^2}{2 \left( b^2+t^2\right) ^2} \end{aligned}$$
(32)
$$\begin{aligned} \mathbf{SEC}: \,\ \rho +3\,p-6\,{\dot{f}}_Q\,H+f= & {} b^2 \left( \frac{m 2^{1-n} 3^n n \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^n}{t^2}+\frac{3}{\left( b^2+t^2\right) ^2}\right) . \end{aligned}$$
(33)

The equation of state parameter \(\omega \) for this model can be read as

$$\begin{aligned} \omega =\frac{p}{\rho }=\frac{2 m 3^n (2 n-1) t^2 \left( (4 n-3) t^2-4 b^2 n\right) \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^{n-1}+3\ 2^n t^2 \left( t^2-4 b^2\right) }{2 m 3^{n+1} (2 n-1) t^4 \left( \frac{t^2}{\left( b^2+t^2\right) ^2}\right) ^{n-1}+9\ 2^n t^4}\nonumber \\ \end{aligned}$$
(34)

Similarly, as we discussed in first model, all of the above expression for energy conditions depend on the model parameters. Nevertheless, one cannot chose the values of parameters randomly, which may violate the energy conditions. Therefore, for second model, we have found that for \(n\ge 0.5\) and \(m\le 0\), the energy density will be positive everywhere. The profiles of all energy conditions are shown in Fig. 5, for a particular value of \(m,\,\ n\) from their bounded ranges. From the profiles of ECs, we have observed that at the bouncing point \(t=0\), NEC and SEC have been violated. Also, the equation of state parameter represents the phantom phase (\(\omega <-1\)) near the bouncing point, as shown in Fig. 6. Moreover, in the literature, it is reported that our universe went through a rapid expansion phase immediately after its birth. Therefore, it may be the reason for showing our universe’s phantom behavior during its early evolution in Figs. 4 and 6.

Fig. 6
figure 6

Profile of equation of State parameter \(\omega \) w.r.t. cosmic time t for \(m= -1.5, n=0.662 \) and \(b=5\) (for model-2)

6 Perturbation analysis of Hubble parameter

In this section, we are interested in investigating the bouncing solution’s stability through perturbation analysis in the framework of f(Q) gravity. To do that, first, we have presumed a linear perturbation of the Hubble parameter as

$$\begin{aligned} H^{*}(t)=H(t)(1+\delta _n(t)), \end{aligned}$$
(35)

where \(H^{*}(t)\) is the perturbed Hubble parameter and \(\delta (t)\) is the perturbation term.

As we know, the conservation equation energy-matter perfect fluid reads [52]

$$\begin{aligned} {\dot{\rho }}+3H (\rho +3p)=0. \end{aligned}$$
(36)

Now, in the following, we will evaluate the value of perturbation term and check its behavior.

\({\underline{{{{\varvec{For\,model-1}}}: f(Q)=\alpha Q}}}\)

Now, using Eqs. (35), (11), (12) and \(f(Q)=\alpha Q\) in (36), we have calculated the following expression:

$$\begin{aligned} \frac{3 \alpha t \left( 4 t \left( b^2+t^2\right) \delta _n'(t)+(\delta _n(t)+1) \left( 4 b^2+3 t^2 \delta _n(t)-t^2\right) \right) }{4 \left( b^2+t^2\right) ^3}=0 \end{aligned}$$
(37)

Solving Eq. (37), we found the perturbation term \(\delta _n\) as

$$\begin{aligned} \delta _n(t)= \frac{4 \left( b^2+t^2\right) }{3 t \left( t-c_1\right) }-1, \end{aligned}$$
(38)

where \(c_1\) is the integration constant.

\({\underline{{{\varvec{For\,model-2}}}: f(Q)=Q+m Q^n}}\)

For this case, using Eqns. (35), (11), (12) and \(f(Q)=Q+m Q^n\) in (36), we have calculated the following expression:

$$\begin{aligned}&\frac{m 2^{1-n } 3^{n } (2 n -1) \left( b^2+t^2\right) ^2 \left( \frac{t^2 (\delta _n(t)+1)^2}{\left( b^2+t^2\right) ^2}\right) ^{n } \left( 4 n t \left( b^2+t^2\right) \delta _n'(t)+(\delta _n(t)+1) \left( 4 n b^2+3 t^2 \delta _n(t)+(3-4 n ) t^2\right) \right) }{4 t \left( b^2+t^2\right) ^3 (\delta _n(t)+1)}\nonumber \\&\quad +\frac{12 t^3 \left( b^2+t^2\right) (\delta _n(t)+1)^2 \delta _n'(t)+12 t^2 \left( b^2+t^2\right) (\delta _n(t)+1)^3+9 t^4 (\delta _n(t)+1)^4-24 t^4 (\delta _n5(t)+1)^3}{4 t \left( b^2+t^2\right) ^3 (\delta _n(t)+1)}=0\nonumber \\ \end{aligned}$$
(39)

The above equation is a nonlinear differential equation, and it is difficult to solve analytically. Therefore, the perturbation term \(\delta _n\) evaluated numerically and its behavior presented in Fig. 8.

Fig. 7
figure 7

Profile of perturbation term \(\delta _n\) w.r.t. cosmic time t with \(b=5\) for model-1

Fig. 8
figure 8

Profile of perturbation term \(\delta _n\) w.r.t. cosmic time t with \(m= -1.5, \,\ n=0.662 \) and \(b=5\) for model-2

In Figs. 7 and 8, profiles of the perturbation term \(\delta _n(t)\) shown for model-1 and model-2, respectively. From those profiles, we have concluded that the value of the perturbed term is very high at the bouncing point and later converges toward zero. From Fig. 2, it is observed that at \(t=0,\,\ H=0\). Therefore, the perturbation term \(\delta _n\) blows up, making the model highly unstable near the bounce. However, away from the bouncing region, the perturbations decay quickly, ensuring stability at late times. We also note that Figs.7 and 8 have valid solutions only for \(t >0\). For \(t <0\), the functions become imaginary.

7 Conclusion

In the last few decades, the singularity problem and inflationary problem questioned the researchers about the origin and evolution of the universe in the absence of sufficient observational data. Therefore, cosmologists follow an attractive approach, i.e., bouncing cosmology to deal with the inflationary paradigm, especially in the absence of initial conditions and the absence of initial singularities in the Big Bang model of the universe. In this regard, we have investigated the possibilities of reproducing some of the bouncing models in the newly proposed f(Q) gravity framework, where the nonmetricity term Q describes the gravitational interaction. As we know, the linear form of Lagrangian f(Q) mimics the dynamical equations and properties of general relativity (GR). So, for our first bouncing model, we have presumed a linear f(Q) form to retain the fundamental laws of GR. Furthermore, for the second model, we choose a nonlinear Lagrangian f(Q).

Moreover, modified gravity is an ideal platform to produce a new cosmological model in which the cosmological barriers are eliminated. In this work, we constructed the cosmological models in the framework of symmetric teleparallel of general relativity (STGR, which is an alternative description of gravity to GR) with FLRW spacetime and the presence of perfect fluid matter distribution. In addition, we presumed a bouncing solution to analyze our models.

In the first model, we first derived all the energy conditions and equation of state parameter (EoS) for linear Lagrangian. Besides we checked their profiles in Figs. 3 and 4. From the profile of EoS, we observed that near the bouncing point, it lies in the phantom region (\(\omega <-1\)). Also, NEC and SEC violated and evolved symmetrically near that point, as shown in Fig. 3. It is interesting to note that the SEC has been violated throughout the evolution of cosmic time, suggesting the late-time cosmic acceleration of the universe. Surprisingly, we have found the same kind of results for the nonlinear Lagrangian f(Q) (i.e., in model-2) as in model-1.

Finally, we have investigated the stability analysis of the bouncing solution through perturbation analysis. For this, we have considered a linearly perturbed Hubble parameter and used it in our formulation to find out the perturbation effect. The profiles of perturbation tern \(\delta _n(t)\) are shown in Figs. 7 and 8 for two models, respectively. From these graphs, one can see that the perturbation effect is more near the bouncing point, and later it reduces to zero. This result suggests that the models are more unstable near the bouncing point, and later it stabilized.