1 Introduction

In relativistic field theory, there are basically two types of solitons. They are called topological and non-topological solitons. Here we will consider the non-topological one which is called boson stars when coupled to gravity. Boson stars arise in field theories with unbroken continuous symmetry. They carry a non-vanishing Noether charge that is globally conserved. These solitons are localized, stable and regular solutions of the nonlinear field equations. The study of boson stars in higher dimensions in Anti-de Sitter (AdS) space-time has been considered by many authors in recent years [13, 18, 28, 29]. One of the main motivations of the analysis of Einstein’s equations with scalar field coupled to gravity in the presence of negative cosmological constant may shed new light on generic properties of particle-like solutions in asymptotically AdS space-time. On the other hand, the study of theories gravity coupled with scalar field attracted much interest by the discovery of Higgs boson which was announced by the ATLAS and CMS collaborations in July 2012 [6]. This discovery confirms the conjecture put forward in the 1960’s and proves the existence of scalar field in nature.

Another example of non-topological solitons are Q-balls and they also have been discussed extensively by many authors [17, 19]. Supersymmetric Q-balls and boson stars have been studied in [25, 26]. Boson stars can be constructed making Q-balls self-gravitating. Within the Standard model the supersymmetric Q-balls have been considered as possible candidates for baryonic dark matter [23, 32, 33]. The detectability and gravitational redshift for boson stars with a self-interaction was discussed in [34]. There have been also a lot of investigations concerned with soliton and black hole solutions in AdS in Einstein–Gauss–Bonnet gravity [7,8,9,10, 12, 14] and in pure Einstein gravity [11, 15, 16, 21, 22, 24].

In this paper, we study the Gauss–Bonnet boson stars in asymptotically flat and AdS space–time. We construct the solutions numerically using COLSYS [3, 4] (Fortran ODE solver package). We describe the dependence of the mass M, charge Q and radius R of the boson stars on the model parameters such as the Gauss–Bonnet coupling \(\alpha \), the cosmological constant \(\Lambda \) and the gravitational constant \(\kappa \). Previously, this subject has been studied in flat space-time in [28], but for positive \(\alpha \). Here we pay our attention to the negative case of this coupling parameter and also extended it studying in AdS space-time.

The paper is organized as follows: in Sect. 2, we introduce the basic model for boson star and derive the field equations using appropriate boundary conditions. Next, in Sect. 3, we present and discuss our numerical results for different values of model parameters. And finally, in Sect. 4, some concluding remarks are given.

Throughout the paper, we use a space-like signature as \((-, +, +, +)\) and a system of units \(c=1\).

2 The model

In this section we construct asymptotically flat and anti-de Sitter (AdS) boson stars in \((4+1)\)-dimensional Gauss–Bonnet gravity. We consider standard Einstein–Gauss–Bonnet theory minimally coupled to a complex valued and self-interacting scalar field. The action for boson star model in five-dimensional anti-de Sitter space-time in Gauss–Bonnet gravity reads:

$$\begin{aligned} S=\int {\mathrm{d}}^5x \sqrt{-g} (R-2\Lambda + \alpha (R^{MNKL}R_{MNKL} -4 R^{MN} R_{MN} + R^2) + 16\pi G_5 {\mathcal {L}}_{{\mathrm{matter}}}), \end{aligned}$$
(1)

where \(\Lambda =-6/\ell ^2\) is the cosmological constant, \(\alpha \) is the Gauss–Bonnet coupling and \(G_5\) is Newton’s constant in 5 dimensions. \({\mathcal {L}}_{{\mathrm{matter}}}\) is the matter Lagrangian for the complex scalar field \(\psi \) and reads :

$$\begin{aligned} {\mathcal {L}}_{{\mathrm{matter}}}= - (\partial _{\mu } \psi )^{*} (\partial ^{\mu } \psi )-U(\psi ), \end{aligned}$$
(2)

where \(U(\psi )\) is the scalar field potential that arises in gauge-mediated supersymmetric breaking in the Minimal Supersymmetric extension of the Standard Model (MSSM) and it is given by the expression

$$\begin{aligned} U(\psi ) = {\left\{ \begin{array}{ll} m^2\vert \psi \vert ^2 &{} \text {if } \vert \psi \vert \le \sigma \\ m^2\sigma ^2 =\text {const.} &{} \text {if } \vert \psi \vert >\sigma , \end{array}\right. } \end{aligned}$$
(3)

where \(\sigma \) corresponds to the scale below which super-symmetry is broken, while m denotes the scalar boson mass. This potential is not differentiable at \(\vert \psi \vert =\sigma \). Therefore the following approximation of the above potential has been suggested [20]:

$$\begin{aligned} U(\psi )=m^2\sigma ^2 \left( 1-\exp \left( -\frac{\vert \psi \vert ^2}{\sigma ^2}\right) \right) . \end{aligned}$$
(4)

For simplicity we develop this potential into a series and keep the terms only up to 6th order in \(\psi \)

$$\begin{aligned} U(\psi )=m^2 \vert \psi \vert ^2-\frac{m^2 \vert \psi \vert ^4}{2 \sigma ^2} +\frac{m^2 \vert \psi \vert ^6}{6 \sigma ^4}+O\left( \vert \psi \vert ^8\right) . \end{aligned}$$
(5)

Using the variation principle we can derive the gravity and Klein–Gordon equations as follows:

$$\begin{aligned}&G_{MN} + \frac{\alpha }{2} H_{MN}=8\pi G_5 T_{MN} ,\end{aligned}$$
(6)
$$\begin{aligned}&\left( \square - \frac{\partial U}{\partial \vert \psi \vert ^2} \right) \psi =0, \end{aligned}$$
(7)

where the tensor \(H_{MN}\) is given by

$$\begin{aligned} H_{MN}= & {} 2\left( R_{M ABC}R_{N}^{ABC} - 2 R_{M A N B}R^{AB} - 2 R_{M A}R^{A}_{N} + R R_{MN}\right) \nonumber \\&- \frac{1}{2} g_{MN} \left( R^2 - 4 R_{AB}R^{AB} + R_{ABCD} R^{ABCD}\right) ,\quad M,N,A,B,C=0,1,2,3,4 , \end{aligned}$$
(8)

and \(T_{MN}\) is the energy–momentum tensor

$$\begin{aligned} T_{MN}= & {} g_{MN} {{{\mathcal {L}}}} - 2\frac{\partial {{{\mathcal {L}}}}}{\partial g^{MN}} \nonumber \\= & {} - g_{MN} \left[ \frac{1}{2} g^{KL} \left( \partial _{K} \psi ^* \partial _{L} \psi + \partial _{L} \psi ^* \partial _{K} \psi \right) + U(\psi )\right] +\partial _{M} \psi ^* \partial _{N} \psi + \partial _{N}\psi ^* \partial _{M} \psi . \end{aligned}$$
(9)

Since the matter Lagrangian is invariant under the global U(1) transformation the system posses the locally conserved Noether current \(j^{M}\) and the globally conserved Noether charge Q. The symmetry for this transformation is given by

$$\begin{aligned} \psi \rightarrow \psi {\mathrm{e}}^{i\chi }, \end{aligned}$$
(10)

with a conserved current:

$$\begin{aligned} j^{M} = -\frac{i}{2} \left( \psi ^* \partial ^{M} \psi - \psi \partial ^{M} \psi ^*\right) , \end{aligned}$$
(11)

and a conserved charge, namely, the number of scalar particles:

$$\begin{aligned} Q= \int {\mathrm{d}}^{4} x \sqrt{-g} j^0 . \end{aligned}$$
(12)

2.1 Ansatz, field equations and boundary conditions

We choose the following Ansatz for the metric:

$$\begin{aligned} {\mathrm{d}}s^2 = - N A^2 {\mathrm{d}}t^2 + \frac{1}{N} {\mathrm{d}}r^2 + r^2 \left( {\mathrm{d}}\theta ^2 + \sin ^2\theta {\mathrm{d}}\varphi ^2 + \sin ^2\theta \sin ^2\varphi {\mathrm{d}}\chi ^2\right) , \end{aligned}$$
(13)

where N and A are functions of r only. We further choose

$$\begin{aligned} N(r)=1-\frac{2n(r)}{r^{2}} -\frac{\Lambda }{6} r^2 , \end{aligned}$$
(14)

such that \(n(\infty )\) will determine the gravitational mass of the solution at infinity. For the scalar field, we choose the following stationary Ansatz

$$\begin{aligned} \psi (r,t)=\phi (r) {\mathrm{e}}^{i\omega t} , \end{aligned}$$
(15)

where \(\omega \) is the internal frequency and \(\phi \) is function of r only.

Imposing the Ansatz (13) and (15) into the field equations (6), (7) we can derive the equations of motion as follows:

$$\begin{aligned} A'(r)= & {} \frac{2 \kappa r^3 \left( A^2 N^2 \phi '^2+\omega ^2 \phi ^2\right) }{3 A N^2 \left( r^2+2 \alpha (1 - N)\right) } \end{aligned}$$
(16)
$$\begin{aligned} N'(r)= & {} 2 r\left( \frac{1 -\frac{\Lambda r^2}{3} -N }{r^2+2\alpha (1-N)}\right) -\frac{2}{3}\frac{\kappa r^3}{N A^2} \left( \frac{\omega ^2 \phi ^2+ A^2 N U(\phi ) + N^2 A^2 \phi '^2}{r^2+2\alpha (1-N)} \right) \end{aligned}$$
(17)
$$\begin{aligned} \phi ''(r)= & {} - \left( \frac{3}{r} + \frac{A'}{A} + \frac{N'}{N} \right) \phi ' - \left( \frac{\omega ^2 }{N^2 A^2} - \frac{1}{2 \phi N} \frac{\partial U(\phi )}{\partial \phi } \right) \phi . \end{aligned}$$
(18)

Here the prime denotes the derivative with respect to r. These equations possess the following scaling symmetries:

$$\begin{aligned}&r\rightarrow \frac{r}{m},\quad \phi \rightarrow \sigma \phi ,\quad \omega \rightarrow m\omega , \nonumber \\&\Lambda \rightarrow m^{2} \Lambda ,\quad n\rightarrow n/m^{2} ,\quad \alpha \rightarrow \alpha /\sqrt{m} \end{aligned}$$
(19)

and the equations depend only on the dimensionless coupling constants \(\Lambda \), \(\alpha \) and

$$\begin{aligned} \kappa =8\pi G_{5}\sigma ^2=8\pi \frac{\sigma ^{2}}{M^{2}_{{\mathrm{pl}}}} \end{aligned}$$
(20)

where \(M_{{\mathrm{pl}}}\) is the Planck mass.

To solve these equations, we have to set the appropriate boundary conditions at the origin \(r=0\) and as well as at infinity. At the origin, we require the regularity conditions

$$\begin{aligned} \phi '(0)=0,\quad n(0)=0, \end{aligned}$$
(21)

and at infinity

$$\begin{aligned} \phi (\infty )=0,\quad A(\infty )=1 . \end{aligned}$$
(22)

Since above system does not have any analytic solution we solve it numerically.

Fig. 1
figure 1

We give the mass M as function of \(\omega \) for different values of \(\alpha \): a \(\kappa = 0.0015\); b \(\kappa = 0.0065\); c \(\kappa = 0.02\); d \(\kappa = 0.05\). Here \(\Lambda = 0\)

Fig. 2
figure 2

The charge Q as function of \(\omega \) for different values of \(\alpha \): a \(\kappa = 0.0015\); b \(\kappa = 0.0065\); c \(\kappa = 0.02\); d \(\kappa = 0.05\). Here \(\Lambda = 0\)

Fig. 3
figure 3

The radius R as function of \(\omega \) for different values of \(\alpha \): a \(\kappa = 0.0015\); b \(\kappa = 0.0065\); c \(\kappa = 0.02\); d \(\kappa = 0.05\). Here \(\Lambda = 0\)

Fig. 4
figure 4

\(\phi (0)\) as function of \(\omega \) for different values of \(\alpha \): a \(\kappa = 0.0015\); b \(\kappa = 0.0065\); c \(\kappa = 0.02\); d \(\kappa = 0.05\). Here \(\Lambda = 0\)

Fig. 5
figure 5

Mass–radius relation: M as function of R for different values of \(\alpha \): a \(\kappa = 0.0015\); b \(\kappa = 0.0065\). Here \(\Lambda = 0\)

Fig. 6
figure 6

We show the mass M, charge Q and \(\phi (0)\) as function of \(\omega \) for different values of \(\kappa \). Here \(\alpha = 0\) and \(\Lambda = 0\)

Fig. 7
figure 7

Mass–radius relation: M as function of R for different values of \(\kappa \). Here \(\alpha = 0\) and \(\Lambda = 0\)

Fig. 8
figure 8

\(\omega _{{\mathrm{min}}}\) and \(\omega _{{\mathrm{cr}}}\) as function of \(\alpha \) for two different values of \(\kappa \). Here \(\Lambda = 0\)

Fig. 9
figure 9

\(M-Q\), \(M-\omega \), \(Q-\omega \), \(R-\omega \), \(\phi (0)-\omega \) and \(M-R\) plots. Two squares correspond to the solution with equal mass. The circles correspond to the solutions at the different values of \(\phi (0)\). Here \(\Lambda = 0\)

Fig. 10
figure 10

The profiles of functions with equal mass as indicated with squares in Fig. 9. Here \(\Lambda = 0\)

Fig. 11
figure 11

Profiles of functions at the different values of \(\phi (0)\) as indicated with circles in Fig. 9. Here \(\Lambda = 0\)

Fig. 12
figure 12

Comparing the profiles of functions for the different values of \(\alpha \). Here \(\phi (0)=3.701\), \(\kappa =0.02\) and \(\Lambda = 0\)

Fig. 13
figure 13

The comparison of the mass M, charge Q, radius R and \(\phi (0)\) for different values of \(\alpha \). The red curve corresponds to the \(\alpha =0\) case while the blue and green lines correspond to \(\alpha >0\) and \(\alpha <0\) case, respectively. Here \(\kappa = 0.0065\) and \(\Lambda = 0\)

Fig. 14
figure 14

Mass–radius relation: M as function of R for different values of \(\alpha \). The red curve corresponds to the \(\alpha =0\) case while the blue and green lines correspond to \(\alpha >0\) and \(\alpha <0\) case, respectively. Here \(\kappa = 0.0065\) and \(\Lambda = 0\)

Fig. 15
figure 15

We give the mass M, the charge Q, \(\phi (0)\) as function of \(\omega \) for different values of \(\alpha \). Here \(\kappa =0.0015\) and \(\Lambda =-0.02\)

Fig. 16
figure 16

Mass–radius relation: M as function of R for different values of \(\alpha \). Here \(\kappa =0.0015\) and \(\Lambda =-0.02\)

Fig. 17
figure 17

We give the mass M, the charge Q, \(\phi (0)\) as function of \(\omega \) for different values of \(\alpha \). Here \(\kappa = 0.01\) and \(\Lambda = -0.02\)

Fig. 18
figure 18

Mass–radius relation: M as function of R for different values of \(\alpha \). Here \(\kappa = 0.01\) and \(\Lambda = - 0.02\)

2.2 Definition of mass, charge and radius

As shown before in [1, 2, 5, 27, 30, 31], we follow [28] and use the same definitions for the radius R, charge Q and mass M as follows:

$$\begin{aligned}&R=\frac{1}{Q}\int {\mathrm{d}}^4 x r \sqrt{-g} j^{0}= \frac{2 \pi ^2}{Q} \int \limits _0^{\infty } \mathrm{d} r \ r^{4} \frac{\omega \phi ^2}{AN} ,\end{aligned}$$
(23)
$$\begin{aligned}&Q=\int {\mathrm{d}}^4 x \sqrt{-g} j^{0}=2 \pi ^2 \int \limits _0^{\infty } \mathrm{d} r \ r^{3} \frac{\omega \phi ^2}{AN}. \end{aligned}$$
(24)

Since \(A\equiv 1\) and \(n \equiv 0\) when \(\kappa =0\), we can use the following definition of mass

$$\begin{aligned} M=-\int {\mathrm{d}}^4 x \sqrt{-g} T^{0}_{0} = 2 \pi ^{2} \int \limits _0^{\infty } \mathrm{d} r \ r^{3} A \ \left( N \phi '^2 + \frac{\omega ^2 \phi ^2}{N} + U(\phi )\right) , \end{aligned}$$
(25)

and for \(\kappa \ne 0\) case we can use the asymptotic behaviour of the metric function at infinity and the mass can be read off as

$$\begin{aligned} n(r\gg 1)= M + n_1 r^{-\Delta }+{\mathcal {O}}(r^{-\Delta })+\cdots , \end{aligned}$$
(26)

where \(M \simeq n(\infty )\) and \(n_{1}\) is a constant that depends on AdS radius \(\ell \).

3 Numerical results

The goal of the paper is to study the basic properties of the boson stars in the presence of negative Gauss–Bonnet coupling in 5-dimensional asymptotically flat and AdS space-time. Let us first start with a flat space-time.

Fig. 19
figure 19

We give the mass M, the charge Q, \(\phi (0)\) as function of \(\omega \) for different values of \(\kappa \). Here \(\alpha = 0\) and \(\Lambda = - 0.02\)

Fig. 20
figure 20

Mass–radius relation: M as function of R for different values of \(\kappa \). Here \(\alpha = 0\) and \(\Lambda = - 0.02\)

Fig. 21
figure 21

\(M-Q\), \(M-\omega \), \(Q-\omega \), \(R-\omega \), \(\phi (0)-\omega \) and \(M-R\) plots. Here \(\alpha = 0\), \(\kappa = 0.02\) and \(\Lambda = -1\)

Fig. 22
figure 22

\(\omega _{{\mathrm{min}}}\) and \(\omega _{{\mathrm{cr}}}\) as function of \(\alpha \) for \(\kappa = 0.01\) and \(\Lambda = - 0.02\)

Fig. 23
figure 23

The comparison of the mass M, charge Q, radius R and \(\phi (0)\) for different values of \(\Lambda \). Here \(\alpha =0\) and \(\kappa = 0.01\)

Fig. 24
figure 24

Mass–radius relation: M as function of R for different values of \(\Lambda \). Here \(\alpha =0\) and \(\kappa = 0.01\)

3.1 Flat space-time: \(\Lambda =0\)

In Figs. 1, 2, 3 and 4, we plot the mass M, charge Q, the radius R and \(\phi (0)\), respectively, as function of \(\omega \) for different values of Gauss–Bonnet coupling and \(\kappa \). For small negative values of \(\alpha \), we observe that the behaviour is similar to the standard Einstein gravity case if \(\kappa \) is large. We separate the existence of solutions into three regions. The 1st fundamental branch of solution exists up to \(\omega _{{\mathrm{min}}}\). After that point, there is a second branch which exists extending backwards in \(\omega \) up to a critical value \(\omega _{{\mathrm{cr}}}\) where a third branch of solutions with spiralling behaviour continues. For large negative values of \(\alpha \), this spiralling behaviour disappears. But it is very difficult to find the exact value for \(\alpha \) where the 3rd branch disappears. If one compare the 3rd and 2nd branches we can easily see from Figs. 1, 2 and 3 that the mass M, charge Q and radius R always take the higher values on the 3rd branch than the value of 2nd branch at \(\omega _{{\mathrm{cr}}}\). The values of the 2nd branch are lower than the values of the 1st branch at \(\omega _{{\mathrm{min}}}\). If we continue decreasing \(\alpha \) further the 2nd branch also disappears. As a result we end up only with one fundamental branch. In [28], they observed that for large enough positive \(\alpha \) the spiral unfolds. We also observed similar effect in Figs. 1a, 2a and 3a for the negative case if the values of \(\kappa \) and \(\alpha \) are small enough (say \(\kappa =0.0015\) and \(\alpha <-2.0\)). If we keep \(\kappa \) fixed and decrease \(\alpha \) further we again observe the spiralling behaviour for large negative values of \(\alpha \) (see Fig. 5). Similarly, fixing \(\alpha \) and increasing \(\kappa \) lead the solutions spiralling (see Figs. 6, 7).

We have also studied the behaviour of the scalar field function at the origin. It is plotted in Fig. 4. In this figure, we give the values of the scalar field function at the origin, \(\phi (0)\), as function of \(\omega \) for different values of \(\alpha \) and \(\kappa \). As shown from Fig. 4, we find that the range of values of \(\phi (0)\) is limited and the maximal value for \(\phi (0)\) decreases with decreasing \(\alpha \). In the positive \(\alpha \) case (see [28]) the \(\omega _{{\mathrm{min}}}\) decreases with increasing \(\alpha \) and \(\omega _{{\mathrm{cr}}}\) takes oscillating behaviour. But in the case when \(\alpha \) is negative, the values of \(\omega _{{\mathrm{min}}}\) increase with decreasing \(\alpha \) and \(\omega _{{\mathrm{cr}}}\) first decreases until some critical \(\alpha =\alpha _{{\mathrm{cr}}}\) and then it starts to increase further with decreasing \(\alpha \). It is shown more clearly in Fig. 8. At the critical point (the point which two solutions join) numerics become very difficult. In this point, the tip of the metric function N(r) at some \(r=r_{{\mathrm{cr}}}\) and as well the central value of the metric function A(0) seems to drop forward to zero. To understand the behaviour of these solutions in more detail we plotted the profiles of metric function in Figs. 9, 10 and 11. Our observations show that the value of metric function A(r) at the origin and the tip of the metric function N(r) decrease with increasing \(\phi (0)\) for fixed \(\alpha \) and \(\kappa \). Numerically, it is very difficult to reach \(A(0)=0\) and \(N(r_{{\mathrm{cr}}})=0\) limit which corresponds to \(\phi (0)\rightarrow \infty \). It would be interesting to see wether \(A(0) \equiv 0\) and \(N(r_{{\mathrm{cr}}})\equiv 0\) at the critical point. Since our numerical code does not converge near \(\phi (0)\rightarrow \infty \), we could not reach this point.

As we can see from Fig. 12, the minima of the metric function N(r) increases with decreasing \(\alpha \) for fixed value of \(\phi (0)\). Hence it takes opposite character for the metric function A(r). The value of metric function A(r) at the origin decreases with decreasing \(\alpha \).

The comparison of the M, Q, R as function of \(\omega \), and the mass–radius diagram for \(\alpha >0\) with \(\alpha <0\) case is presented respectively in Figs. 13 and 14. Our analysis show that any changes in \(\alpha \) and \(\kappa \) does not affect to maximal frequency and it is always \(\omega _{{\mathrm{max}}}=1\) for \(\Lambda =0\) case (see Figs. 6 and 13).

3.2 Anti-de Sitter space-time: \(\Lambda < 0\)

Now let us consider \(\Lambda \ne 0\) case. The analysis show that the general pattern of the solutions does not change extremely in this case. As shown in Figs. 15, 16, 17, 18, 19 and 20, the effect of \(\alpha \) and \(\kappa \) is same as \(\Lambda =0\) case. As increasing \(\kappa \) and decreasing \(\alpha \), the maximal mass \(M_{{\mathrm{max}}}\), maximal charge \(Q_{{\mathrm{max}}}\) and minimal frequency \(\omega _{{\mathrm{min}}}\) decrease. For small negative values of \(\alpha \), we observe that the behaviour is similar to the flat case if \(\kappa \) is large. Similarly as in the flat case, here we separate the existence of solutions into three regions (see Fig. 21). The 1st fundamental branch of solution exists up to \(\omega _{{\mathrm{min}}}\). After that point there is a second branch which exists extending backwards in \(\omega \) up to a critical value \(\omega _{{\mathrm{cr}}}\) where a third branch of solutions with spiralling behaviour continues. For large negative values of \(\alpha \) this spiralling behaviour disappears. If one compare the 3rd and 2nd branches, we can easily see from Fig. 17 that the mass M, charge Q and radius R always take the higher values on the 3rd branch than the value of 2nd branch at \(\omega _{{\mathrm{cr}}}\) when \(\kappa \) is large. But when \(\kappa \) is small enough we observe the opposite, the values of the 3nd branch are lower than the values of the 2nd branch at \(\omega _{{\mathrm{cr}}}\). If we continue decreasing \(\alpha \) further, 2nd branch also disappears. As a result we end up only with one fundamental branch. Similarly, as in the flat case, when \(\alpha \) is negative, the values of \(\omega _{{\mathrm{min}}}\) increase with decreasing \(\alpha \) and \(\omega _{{\mathrm{cr}}}\) first decreases until some critical \(\alpha =\alpha _{{\mathrm{cr}}}\) and then it starts to increase further with decreasing \(\alpha \). It is shown more clearly in Fig. 22 for \(\Lambda = - 0.02\) and \(\kappa = 0.01\).

Next we discuss the properties of solutions for different values of cosmological constant \(\Lambda \) for fixed Gauss–Bonnet coupling \(\alpha \) and the gravitational constant \(\kappa \). If one compare the maximal mass of boson stars for \(\Lambda <0\) with \(\Lambda =0\) case (see Figs. 23, 24), it is shown clearly from the figures that in the flat case it is always higher than AdS case. The same feature occurs for maximal charge \(Q_{{\mathrm{max}}}\) and maximal radius \(R_{{\mathrm{max}}}\). In the flat case, the maximal charge and the maximal radius is always bigger than the case in AdS.

Comparing the flat case with the AdS space time the small decrease of \(\Lambda \) lowers the maximal mass \(M_{{\mathrm{max}}}\) suddenly. These can be seen in Fig. 23a. But with decreasing \(\Lambda \), the maximal frequency \(\omega _{{\mathrm{max}}}\) increases being \(\omega _{{\mathrm{max}}}>1\).

4 Conclusion

In this paper, we have studied the properties of asymptotically flat and anti-de Sitter boson stars in five-dimensional Gauss–Bonnet gravity in more detail for different values of the cosmological constant \(\Lambda \), Gauss–Bonnet coupling \(\alpha \) and the gravitational constant \(\kappa \). First, we studied the flat case. In [28], the authors showed that the spiralling behaviour characteristic for boson stars is observed for \(\alpha =0\). But our analysis show that this is valid only if \(\kappa \) is large enough. We find that the spiralling behaviour disappears for small enough \(\kappa \) even when \(\alpha =0\). We also observed that the maximal mass M, the maximal charge Q and the maximal frequency is always larger in excited solutions than the ground solutions. Comparing the flat case with the AdS space time the small decrease of \(\Lambda \) lowers the maximal mass \(M_{{\mathrm{max}}}\), maximal charge \(Q_{{\mathrm{max}}}\) and minimal frequency \(\omega _{{\mathrm{min}}}\). On the basis of our numerical analysis, we can state:

  • the maximal mass \(M_{{\mathrm{max}}}\), the maximal charge \(Q_{{\mathrm{max}}}\), the maximal radius \(R_{{\mathrm{max}}}\) and the minimal radius \(R_{{\mathrm{min}}}\) of the boson star decreases with decreasing cosmological constant \(\Lambda \);

  • the minimal and the maximal internal frequency increases with decreasing cosmological constant \(\Lambda \);

  • the \(\omega _{{\mathrm{min}}}\) increases with decreasing Gauss–Bonnet coupling \(\alpha \) in both flat and AdS space-time;

  • the \(\omega _{{\mathrm{cr}}}\) decreases with decreasing Gauss–Bonnet coupling \(\alpha \) in both flat and AdS space-time;

  • the \(\omega _{{\mathrm{min}}}\) and \(\omega _{{\mathrm{cr}}}\) increases with increasing gravitation constant \(\kappa \);

  • the maximal mass \(M_{{\mathrm{max}}}\), the maximal charge \(Q_{{\mathrm{max}}}\), the maximal radius \(R_{{\mathrm{max}}}\) and the minimal radius \(R_{{\mathrm{min}}}\) decreases with increasing \(\kappa \) in both flat and AdS space-time.

It has been previously shown [25] that the boson star solutions exist only in a limited parameter range of \(\omega \). This parameter range depends on the choice of potential and the cosmological constant \(\Lambda \). In a flat space-time for our potential (5) it obeys \(\omega \in [0:1]\). However, we observed that the maximal frequency increases with decreasing \(\Lambda \) and it is always bigger than one (\(\omega _{{\mathrm{max}}}>1\)) in the AdS space-time. We find that changing the Gauss–Bonnet coupling \(\alpha \) or the gravitational constant \(\kappa \) does not make any influence on the maximal frequency \(\omega _{{\mathrm{max}}}\) in both flat and AdS space-time.