1 Introduction

Magnetic fields are present in all the Universe and they are a common feature of various astrophysical objects at different scales. Fields with strengths of \(\mu \hbox {G}\) are commonly observed in spiral galaxies and in the intra-cluster medium of clusters of galaxies. Usually magnetic fields in galaxies are observed indirectly as radio waves coming from stars with frequencies around 10 GHz. These radio-waves are produced as synchrotron radiation by high energy electrons traveling across galactic magnetic fields [1]. From decades a host of techniques have been used to detect them and large efforts have been invested to understand their origin and evolution along the cosmic history. A large set of works suggest that they affect galaxy formation and cluster dynamics.

The origin of large-scale magnetic fields remains as an open problem and a matter of active discussion and research. A host of scenarios and mechanisms have been proposed in order to explain how the seeds of magnetic fields in galaxies were generated at the primitive stages in the cosmic history and their fate in the later epochs of structure formation. Among the best accepted ideas we distinguish the following: (i) Primitive magnetic fields were produced in galaxies between recombination and the start of galaxy formation. According to the prevailing picture proposed by Harrison in the 1970’s [2], swirls in the primordial baryon-photon plasma – right before irrotational curvature perturbations start to domi-nate – could be the seed of large-scale magnetic field which would have been enhanced at later times via dynamo mechanisms. However, the amplification of this primeval fields up to orders of \(\mu \)G via this sort of mechanisms last larger times than a galaxy lifetimes in order to be reconciled with observations.

(ii) Another more modern possibility is that magnetic fields were indeed a primordial seed arising during the era of pre-recombination due to a more fundamental mechanism such as inflation [1].

This work proposes an alternative mechanism to generate magnetic fields in galaxies. The idea is to start with the following Lagrangian

$$\begin{aligned} \mathscr {L}= & {} (\nabla _{\mu } \varPhi +iq A_{\mu }\varPhi )(\nabla ^{\mu }\varPhi ^* -iq A^{\mu }\varPhi ^*)-\frac{m^2}{2}\varPhi ^*\varPhi \nonumber \\&-q^2A_{\mu \nu } A^{\mu \nu }-e^2B_{\mu \nu }B^{\mu \nu }-Q^2A_{\mu \nu }B^{\mu \nu }, \end{aligned}$$
(1)

where \(A_{\mu \nu }=A_{\mu ,\nu }-A_{\nu ,\mu }\) is the Faraday tensor for the electromagnetic part of the scalar field and \(B_{\mu \nu }=B_{\mu ,\nu }-B_{\nu ,\mu }\) is the normal Faraday tensor. The charges q and Q correspond to unknown coupling constants, the first one is the electromagnetic charge of the scalar field and the second one is the coupling between the electromagnetic part of the scalar field and the real electromagnetic one. While e is the charge of the electron. In terms of the corresponding electric and magnetic fields, the electromagnetic part of (1) reads as

$$\begin{aligned}&-q^2(\mathbf {B}_A\cdot \mathbf {B}_A+\mathbf {E}_A\cdot \mathbf {E}_A) -e^2(\mathbf {B}_B\cdot \mathbf {B}_B+\mathbf {E}_B\cdot \mathbf {E}_B)\nonumber \\&\quad -Q^2(\mathbf {B}_A\cdot \mathbf {B}_B+\mathbf {E}_A\cdot \mathbf {E}_B), \end{aligned}$$
(2)

where \(\mathbf {B}_A\) and \(\mathbf {E}_A\) respectively are the magnetic \(\mathbf {B}_A=\nabla \times \mathbf {A}\) and the electric fields \(\mathbf {E}_A=-\mathbf {A}_{,t}-\nabla A_0\) of \(A_\mu \), being \(A_\mu =(A_0,\mathbf {A}_A)\) and analogously \(\mathbf {B}_B\) and \(\mathbf {E}_B\) are the corresponding fields for \(B_\mu \).

Thus, the idea is that the scalar field is the ultra-light dark matter of the Universe that does not have any interaction or it is too weak with the rest of the matter. But it is charged and its electromagnetic field interacts with the normal one via a dark photon. This excitation of the normal electromagnetic field is reflected in the normal world as an effective magnetic field in galaxies. In other words, magnetic fields in galaxies arise due to the charged ultra-light dark matter which generates virtual dark photons. What we see in galaxies is the result of the interaction of the excitation of the electromagnetic scalar field into the normal electromagnetic field. The scalar field dark matter is decoupled from the rest of the matter but it is indirect coupled through the weak interactions between the virtual dark photon coming from the charged scalar fields and the real photons.

In this model, haloes of galaxies are macroscopic condensates of Bose–Einstein (BEC) made of hipo-charged bosons with a mass \(\sim 10^{-22}\) eV whose density of particles in the Newtonian limit can be described in terms of classical scalar fields. Various studies have shown that the energy at which the condensation of these objects occurs is \(\sim \) TeV at very early age of the universe [3,4,5]. In contrast to the standard cosmological magnetic seed generation mechanisms mentioned above, within this scenario, the appearance of a macroscopic electromagnetic fields is prompt as an inherent fundamental property of the bosonic system.

Ultra-light scalar dark matter is a strong and well studied alternative to the cold dark matter (CDM) paradigm. It has been shown that these ultra-light bosons are able to form Bose–Einstein condensates (BEC) at cosmological scales which make up galaxy haloes [6]. Pioneer systematic studies of this model were firstly carried out by Matos, Guzmán and Ureña [7, 8] and also by Ji [9] and Sin [10]; and rediscovered later on being dubbed with different names such as: fuzzy DM [11], wave DM [12] or Bose–Einstein condensate DM [13] (see also [7, 10, 12, 14,15,16,17] and more recently [18]) stressed the relevance of this model among the most viable candidates of dark matter.

The cosmological regime of this model was firstly studied in [6, 19] where it was found that if the ultra-light bosons have a mass \(m \sim 10^{-22}\) eV/c\(^2\), then the matter power spectrum presents a natural cut-off which suppresses the small-scale structure formation of haloes with masses \(M < 10^8 M_\odot \) [see also 1. The same mass of the ultra-light boson has been constrained from several cosmological and astrophysical observations, for example, from the galaxy UV-luminosity function and reionization data [22], from the high-redshift luminosity function of galaxies [23], from Lyman-\(\alpha \) observations [24,25,26,27], taking into account a self-interaction into the SF potential [28]. However, nowadays there is not a full agreement on the exact estimation of ultra-light-boson’s mass. However, in this work we use \(m \sim 10^{-22}\) eV/c\(^2\) which provides a structure formation description that fairly agrees with observations.

One important feature of this SFDM model is that it forms structure in the same way as the CDM model at lineal cosmological scales [29, 30]. In [31] it was shown that in this model with such mass, the gravitational collapse of the scalar field forms stable objects with masses of the order of a galactic halo. In a series of papers it was shown that SFDM forms haloes of galaxies with core density profiles [32,33,34,35,36]. Numerical simulations of formation of galaxies were performed in [37] and [38], where the process of formation of spiral arms of a galaxy was naturally obtained. Furthermore, the self-interacting scalar field with \(\phi ^4\) potential was firstly studied in [39]. The SFDM at finite temperature was firstly setup in [40, 41], and it was also shown that galaxy’s satellites are stable around haloes of SFDM [42]. More features of the SFDM were analyzed further, for example, lensing was studied in [43] and other systematic studies of the scalar field dark matter were performed by [17] and more recently by [44].

It is important to highlight that the different models of the SFDM like the Fuzzy DM or the Wave DM are exactly the same as the SFDM. It seems that the cosmology is weak sensible to the scalar field potential. The only difference appears in details, like in the cosh potential, where the MPS has a sort of knee in its profile (see [45]). In SFDM, the scalar field at very early stages of the universe remains almost constant until its wave-length was smaller than the size of the horizon, at such point it underwent a phase transition and started to roll down a new minimum where the scalar behaves as dark energy. At the condensation temperature close to zero, the scalar reaches the new vacuum and it starts oscillating around it and behaves as dust. For ultra-light masses this temperature could be \(T_c\sim \hbox {TeV}\) [46]. Such symmetry breaking process is usually interpreted as a Bose–Einstein condensation transition of a system of bosons being clumped by gravity. As such, the order parameter of the phase transition corresponds to the occupation number of bosons in the ground state which, at the Newtonian limit, is governed by the Gross–Pitaevskii–Poisson (GPP) system. Solutions of such equations represent the macroscopic wave-function of the whole system which consists in the sum of wave functions of individual particles which are identical and therefore scales as the number of particles. We assume that within some range of applicability, the relativistic version of the GPP equation is the Klein–Gordon equation according to [5]. Specifically, the classical field solutions of the KG equation describe the order parameter of a system of bosons in the relativistic regime.

Given that this model provides one of the strongest dark matter candidates together with unresolved question about the origin of magnetic fields at large scales, we believe that the mechanism proposed in this work must be thoroughly studied, being this work a very first step in such task.

Now let us describe the mathematical framework behind the model. Usually charged bosons can be described mathematically as modes of a canonical complex scalar field with local U(1) symmetry where a vector field mediates an electromagnetic interaction with coupling q. Such a system is governed by the Maxwell–Klein–Gordon Lagrangian. But as we described above, this electromagnetic field acts as a dark photon and interacts only with the normal electromagnetic field, creating an excitation into it. The resulted electromagnetic field is effectively an excitation into the normal one, that we propose is just what we see as the magnetic field of the galaxies. The resulting U(1) electromagnetic four-vector field is also responsible for the electromagnetic interactions between baryons. An intriguing question about these charged bosons is whether the theory is safe from massive production of particles via indirect scattering processes. It is essential to make such a safety check on any candidate of dark matter in order to be consistent with observations at large scales that clearly suggest that dark matter is non (or at least weak) interacting. It is not difficult to notice that SFDM is safe of such a catastrophe because even at large energies – below MeV though – the amplitude of the scattering process involving incoming bosonic particle-antiparticle into an electron-positron pairs mediated by quantum fluctuations of the photon, is suppressed by a \(1/M_h^2\) factor where \(M_h^2\) is the mass of the heavy fermions (confined quarks inside protons and neutrons) making up baryons. The previous can be clearly realized by inspecting the amplitude at tree level in the perturbative expansion of such a process in the simplest theory where heavy fermions are minimally coupled to photons or alternatively using an effective quantum field theory approach. The theory is also safe of a scattering catastrophe via the t-channel through the massless photon exchange thanks to the crossing symmetry of the \(\mathscr {M}\) matrix. These decays should happen before the \(e^-e^+\) annihilation in order to keep cSFDM cool at the early universe.

On the other hand, as we have already mentioned, CMB only puts constrains in the mass of the scalar field, this should be bigger than \(10^{-25}\) eV [22]. In [22] and [20] it was shown that from the cosmological point of view the mass can have a big range of values and fulfill the CMB and Mass Power Spectrum (MPS) constrains. Nevertheless, the rotation curves in galaxies constrains the mass to be \(10^{-23}- 10^{-21}\) eV . This is the reason we believe that the CMB and the MPS wouldn’t give further constrains to the charge we found but we think that the rotation curves of galaxies could give a stronger constrain to the charge of the scalar field. And this is exactly one of the main results of this work: in order to preserve the predictions at astrophysical scales such as the stellar rotation curves in galaxies, the electromagnetic coupling of SFDM bosons is strongly restricted to very low values.

Now, the main problem solved in this work is the following: if a galactic halo is made by a condensate of charged bosonic modes of the scalar field, it is reasonable to expect that the number density of particles is affected by the presence of an electromagnetic field in the galaxy. This change in the density should be reflected on rotation curves of stars and gas in the galaxy.

The first part of this work is devoted to investigate whether cSFDM can predict rotation curves of a galaxy and at the same time to give magnetic fields with strengths at the microgauss level. Secondly, we constrain the electromagnetic coupling of bosons by requiring that the theoretical rotation curves to lay within the \(1-\sigma \) confidence region of rotation curves of the F563 galaxy. We chose this galaxy due to its morphology and low brightness that make it a good candidate of a “pure dark matter system”. It is worth to emphasize that we found a constraint for the charge of DM by considering the whole amount of DM is made of charged dark matter and with a mass of \(10^{-22}\) eV. Therefore this result is added to the bounds of the charge of dark matter previously found for a quite different range of masses (around GeV) in works like [47,48,49,50,51,52,53].

This paper is organized as follows, in Sect. 2 we present the model of dark matter made of charged ultra-light bosons laying in a newtonian space-time which is surrounded by a thermal bath. In Sect. 3 we present the mathematical setup describing the system which corresponds to the Maxwell–Klein–Gordon system. We carry out an harmonic decomposition either of the density distribution of dark matter and electric field and we set an azimuthal symmetric ansatz for the average macroscopic total magnetic potential. In Sect. 4 we construct the specific model for the haloes of cSFDM and the set of equations to be solved numerical for our further analysis. Within this section we make a qualitative analysis of our solutions in order to understand the type of solutions of magnetic fields. In Sect. 5 we estimate the parameters of the density profile of the pivotal neutral model used to fit the rotation curves of F563. In Sect. 6, by using the Fisher matrix estimator of errors, we derive bounds for the coupling of the scalar and magnetic fields such that the predicted rotation curves are not discriminated at \(1\sigma \) level given the data resolution. Finally we summarize and layout our results and conclusions in Sect. 7.

2 Dark matter as a complex scalar field

In this section we present the general classical field equations describing our scalar charged dark matter model. By now we don’t specify the geometry of space-time, later at the next section we will justify that a Minkowski geometry is a good approximation for the purposes of this work. The charged scalar modes making up the dark matter haloes can be mathematically described by a complex scalar field with local U(1) symmetry which introduces Abelian gauge fields which play the role of a mediating particle of the electromagnetic interaction between charged bosonic modes. In (2) we see that the magnetic field of the scalar field \(\varPhi \) induces a real magnetic field \(\mathbf {B}_B\), because of the interaction of \(\mathbf {B}_A\cdot \mathbf {B}_B\). In this work we want to see whether the contribution of the scalar field dark matter is altered because of the magnetic field \(\mathbf {B}_A\). Thus, the effective corresponding Lagrangian we want to study here is given by

$$\begin{aligned} \mathscr {L}= & {} (\nabla _{\mu } \varPhi +i A_{\mu }\varPhi )(\nabla ^{\mu }\varPhi ^*-i A^{\mu }\varPhi ^*)\nonumber \\&-\frac{m^2}{2}\varPhi ^*\varPhi -\frac{1}{4\hat{\mu }_0}A_{\mu \nu }A^{\mu \nu }. \end{aligned}$$
(3)

This Lagrangian has units of \(\text {distance}^{-4}\), fields in it have units of distance\(^{-1}\) and they have been defined from the canonical ones as follows: \(\varPhi \rightarrow \varPhi /\hbar c\) and \(A_\mu \rightarrow q A_\mu /\hbar \). Besides, the parameter \(\hat{\mu }_0\equiv 4q^2c\mu _0/\hbar \) is dimensionless and quantifies the charge of individual bosons given by q.

The kinetic term for the electromagnetic fields in (3) effectively involves the excitation given by the interaction of the dark photon of the scalar field with the normal photon.The excitation into the normal photon depends on the unknown constant Q. Nevertheless, we will suppose that the induced real magnetic field is of the same order of magnitude of the scalar field one. Furthermore, observe that the charge q is not necessarily related with the electron charge, it can be any value. In this work we will give some constrains of q under the previous hypothesis.

For now we assume a non-self-interacting field. In the context of SFDM it also encodes the process of condensation of BEC at the very early universe. However, once dark matter haloes have formed by condensation, an effective mass term suffices to account for the galactic dynamics.

In this model, the condensation takes place first and then the virialization. The reason is that if the bosons are excited they can not collapse and forme stable objects, the bosons behave as a classical gas when they are excited. The hypothesis is that the dark matter, the boson gas, is in thermal equilibrium from the beginning, as the universe expand the gas cools down till the condensate temperature, the primordial fluctuations act and collapse the frozen gas into haloes of galaxies. For a boson with this mass the critical condensate temperature is very high, therefore the DM haloes in this model form very early, by condensation, not by hierarchy as in the CDM model.

3 Maxwell–Klein–Gordon system

In general, the dynamics of a scalar field is governed by the Klein–Gordon–Maxwell (EKGM) equations in a fixed curved space-time arisen from the Lagrangian  (3) with the potential

$$\begin{aligned}&\left( \nabla ^{\mu }+i A^{\mu }\right) \left( \nabla _{\mu }+i A_{\mu }\right) \varPhi -m^2\varPhi =0. \end{aligned}$$
(4)
$$\begin{aligned}&\nabla _{\nu }A^{\mu \nu }=-4\hat{\mu }_0j^{\mu } \end{aligned}$$
(5)

where the conserved current of charged bosons is defined as

$$\begin{aligned} j^{\mu }=i\left[ \varPhi ^*(\nabla ^{\mu }\varPhi +i A^{\mu }\varPhi ) -\varPhi (\nabla ^{\mu }\varPhi ^*-i A^{\mu }\varPhi ^*\right) ], \end{aligned}$$
(6)

and hence satisfies

$$\begin{aligned} \nabla _{\mu }j^{\mu }=0. \end{aligned}$$
(7)

Equation (4) can be expanded to

$$\begin{aligned} \nabla ^{\mu }\nabla _{\mu }\varPhi +i (\nabla ^\mu A_\mu )\varPhi + 2iA^\mu \nabla _\mu \varPhi - A^\mu A_\mu \varPhi -m^2\varPhi =0. \end{aligned}$$
(8)

Notice that electromagnetic and scalar fields are coupled, even in absence of the gravitational field which for a galaxy is actually very small. Besides, the coupling between scalar and electromagnetic fields is controlled by the \(\hat{\mu }_0\) dimensionless parameter and the strength of the electromagnetic fields (quantified by the initial conditions for \(A_\mu \) as we shall see later). Because the scalar field makes up dark matter, therefore it must interact very weakly with all types of fields including with these “dark” photons. Thus it is expected that \(\hat{\mu }_0<<1\). On the other hand, it can be noticed in Eq. (8) that electromagnetic fields could greatly affect the scalar solution used to model galaxy haloes. The goal of this work is to quantify the maximum charge of the boson allowed such that the gravitational strength of dark matter remains unchanged, given the resolution of data of rotation curves used to measure it. Since the multi-state neutral solution provides good fits for these rotation curves, from the beginning we can expect the charge to be small and the electromagnetic fields as well. By such physical argument, it is reasonable to treat the non-linear terms in the KG equation involving electromagnetic fields as perturbations.

3.1 Multipolar decomposition in the Newtonian limit

It has been shown that after condensation, in the weak field regime, solutions of the Schrödinger-Poisson system are asymptomatically stationary and homogeneous likewise the gravitational potential [54]. Therefore, in the Newtonian limit we can assume that the space-time metric has spherical symmetry and is given by

$$\begin{aligned} ds^2=-f(r)\,dt^2+\frac{dr^2}{f(r)}+r^2(d\theta ^2+\sin ^2(\theta )d\varphi ^2), \end{aligned}$$
(9)

where f is the gravitational field given by \(f=e^{-2U/c^2}\sim 1-2U/c^2\), being U the Newtonian potential. Because, we are dealing with a non self-interacting field and we assume that the effects of the EM coupling are small as explain previously, the solutions of the KG equations are going to be quite close to those for a neutral scalar except for perturbations due to the small non-linearities. A neutral scalar solution governed by KG can be written as

$$\begin{aligned} \varPhi =\varPhi _0\mathscr {R}(r)Y_N^M(\theta ,\varphi )e^{-i\omega t}, \end{aligned}$$
(10)

where \(Y_N^M(\theta ,\varphi )\) are the spherical harmonics and \(\varPhi _0\) is a real constant with units \(\text {distance}^{-1}\). Also, we impose an specific form of the EM four-vector which is compatible with the Lorentz gauge condition, given by

$$\begin{aligned} A_{\mu }=(A_0(r),0,0, A_{\varphi }(r,\theta )). \end{aligned}$$
(11)

Now let us to plug the above relations into the Klein–Gordon Eq. (4) for a non self-interacting scalar field, its radial component \(\mathscr {R}\) is governed by the following ordinary differential equation

$$\begin{aligned}&\frac{1}{r^2}\left( r^2f\mathscr {R}_{,r}\right) _{,r} -\frac{N(N+1)}{r^2}\mathscr {R}+\frac{(\omega -A_0)^2}{f}\mathscr {R}\nonumber \\&\quad -\frac{A_{\varphi }(A_\varphi +2M)}{r^2\sin \theta ^2}\mathscr {R} +k^2\mathscr {R}=0. \end{aligned}$$
(12)

Given the weakness of gravity produced by galactic haloes, in this work we assume that the space-time metric is not importantly deformed and then we can approximate \(f \sim 1\) in our equations. Therefore the \(\mathscr {R}\) in flat space-time in spherical coordinates reduces to

$$\begin{aligned}&(r^2\mathscr {R}')'\nonumber \\&\quad +\left[ k^2{-}\frac{N(N+1)}{r^2}{-}2\omega A_0 -\frac{2MA_{\varphi }}{r\sin \theta }{+}A_0^2 -\frac{A_\varphi ^2}{r^2\sin \theta ^2}\right] \nonumber \\&\qquad r^2\mathscr {R}=0 \end{aligned}$$
(13)

where we define the wave-number of the scalar k as \(k^2 \equiv \hat{\omega }^2-\hat{m}^2_{\varPhi }\) and \(\hat{\omega } =\omega /c\). The electromagnetic fields generated by the system of charged bosons are governed by the Maxwell equations given by (5) which are sourced by \(\varPhi \) through the current given as (6). These equations reduce to the following form after plugging Eqs. (10) and (11) in (5)

$$\begin{aligned} -\nabla ^2 A_0= & {} -4\hat{\mu }_0j_0, \end{aligned}$$
(14)
$$\begin{aligned} -\nabla ^2 A_k +g^{kk}\partial _k \partial _\phi A_\phi= & {} -4\hat{\mu }_0j_k,\nonumber \\ k= & {} \{r,\theta ,\varphi \}. \end{aligned}$$
(15)

Clearly the temporal and azimuthal components of the current \(j_0\) and \(j_\phi \) are non-trivial sources of the Maxwell equations since their corresponding \(A_\mu \) are non-vanishing. Notice that because \(A_r=0\) and the radial component of \(\varPhi \) is real then \(j_r=0\). However, meanwhile \(M>1\) the polar component of the four-current will be non-vanishing even if \(A_\theta =0\). Since we are studying the simplest case for electromagnetic fields generated by a charged scalar field, (11) is setup such that \(A_\phi \) does not depend on \(\varphi \) and hence \(M=0\). Consequently, either \(j_\theta \) and the last term on the left of (15) vanish. Then the only non-trivial components of the Maxwell equations are:

$$\begin{aligned} \nabla ^2A_0= & {} -8 \hat{\mu }_0|\varPhi |^2(\hat{\omega }+A_0), \end{aligned}$$
(16)
$$\begin{aligned} \nabla ^2A_\varphi= & {} -8 \hat{\mu }_0|\varPhi |^2A_\varphi . \end{aligned}$$
(17)

The previous equations written in spherical coordinates become:

$$\begin{aligned}&\frac{1}{r^2}\frac{\partial }{\partial r} \left( r^2\frac{\partial A_0}{\partial r}\right) + 8\hat{\mu }_0|\varPhi |^2(\omega +A_0)=0, \end{aligned}$$
(18)
$$\begin{aligned}&\frac{1}{r^2}\frac{\partial }{\partial r} \left( r^2\frac{\partial A_\varphi }{\partial r}\right) +\frac{1}{r^2\sin \theta }\frac{\partial }{\partial \theta } \left( \sin \theta \frac{\partial A_\varphi }{\partial \theta }\right) \nonumber \\&\quad +8\hat{\mu }_0|\varPhi |^2A_\varphi =0. \end{aligned}$$
(19)

In the next section, solutions of the last system are going to be used to model galactic haloes made of charged bosons which generate magnetic fields of order of \(\mu G\). For that purpose we use a specific setup of symmetries and boundary conditions for the system according to the physical situation considered.

4 A model of dark matter as charged-bosons

Let us recall what the main questions of this work are: how strong may be the electromagnetic interaction between charged bosons such that the model can reproduce the observed rotation curves in a given galaxy? Is it possible to predict observations of kinematics of the visible components of galaxies (rotation curves) and the magnetic fields at the same time? And consequently, how sensitive are the rotation curves to the electromagnetic interactions between bosons? What bound for the charge of the bosons is allowed such that this conditions are satisfied?

In order to start looking for an answer, we shall construct a simple model that will allow us to investigate the viability of this scenario. In that direction, we shall use the system of the previous section to model the density profiles of galactic haloes made of charged bosons and the magnetic fields they trigger. The values of the parameters, symmetries and boundary conditions of the system can be reduced according to the phenomenological setup and that is our goal in this section.

As mentioned above, because the KGM equations have small non-linear terms and hence the harmonic decomposition of the scalar solution is valid. According to this, here we present two types of solutions of the KGM equations: (1) First, a spherically symmetric complex scalar field coupled to electromagnetic fields decomposed as a magnetic vector potential with constant azimuthal direction and as an homogeneous electric potential. (2) Secondly, a complex scalar field with axial symmetry described by the dipole of the harmonic decomposition and the same setup for EM fields than the first case. We consider this second case in order to account for rotating haloes that could give rise to whirls in the boson gas able to produce an effective non-vanishing magnetic dipole in galaxies.

4.1 Angular decomposition of the EM potentials by phenomenological setup

An important question regarding this model to be answered beyond this work is: Is there a possible mechanism to form microscopic dipoles within a stationary spherical charged scalar configuration? In principle, the simplest setup would be to choose by hand an spherical density configuration and a dipole for the magnetic potential (the first order term in multipole expansion of the magnetic field). However for sake of mathematical consistency, it is expectable that the scalar and EM fields have common spatial symmetry.

On the other hand, an interesting physical scenario that may provide a way to set boundary and initial conditions for the magnetic potential is the following: vortices are shown to exist inside rotating BECs, therefore if the bosons are charged then it comes naturally that they are able to produce magnetic dipoles. This scenario provides a natural way to physically implement magnetic dipoles in a stationary scalar configuration, however an important requirement is to have a rotating halo and therefore, strictly speaking spherical haloes do not allow this mechanism. As we shall show in further sections, bounds on the EM coupling q are independent on whether we use a spherical solution of the first multi-polar moment. Nonetheless, it is worth to take both cases into consideration in order to verify that using the simplest spherical symmetric haloes approach is a valid approximation when studying gravitational effects and the perturbative effects of possible galactic dark EM fields. Let us make the following field-redefinition accordingly to the previous arguments:

$$\begin{aligned} A_0= & {} \frac{\phi }{r}, \end{aligned}$$
(20)
$$\begin{aligned} A_\varphi= & {} S(r) Y_{10}(\theta ), \end{aligned}$$
(21)

after plugging the previous definitions into the field-equations they read:

$$\begin{aligned}&\left( r^2 \mathscr {R}'\right) '\!{+}\!\left( \frac{N(N+1)}{r^2}{+}k^2 \!{+}\!S^2\cos ^2\theta {-}\frac{\phi ^2}{r^2}-2\hat{\omega }\frac{\phi }{r}\right) {\mathscr {R}}=0, \nonumber \\&\phi ''+8\hat{\mu }_0\varPhi _0^2R^2(\hat{\omega }r + \phi )=0,\nonumber \\&(r^2S')+\left( -2+ 8\hat{\mu }_0\varPhi _0^2R^2r^2\right) S=0. \end{aligned}$$
(22)

Next we are going to solve this system numerically for the two cases described at the beginning of this subsection. For that purpose we wrote our own code in python using an equivalent version of the system above but using fully dimensionless variables and parameters for better numerical performance.

4.2 Solutions of the Maxwell–Klein–Gordon system

Now let us study qualitatively the behavior of the solutions of (22) for some regimes of the space of parameters. Afterwards we are going to focus in a range of them suitable for modeling galactic haloes and their magnetic fields. Let us recall once more that the effects of the EM fields are small in order to respect the rotation curves, therefore the neutral model where they are absent is going to play the role of a pivot or fiducial model with respect to which changes due to EM fields are going to be compared.

4.2.1 Behavior of the EM potentials along the galactic plane

In this section we aim to study the qualitative behavior of the magnetic potentials generated by the charged bosonic particles for different regimes of parameters. Typically the magnitude of electrostatic potential is subdominant – by a huge gap in orders of magnitude – in comparison to the magnetic potential, then we are going to ignore it from now on. In addition, solutions for the spherical neutral halo have the following form \(\mathscr {R}\sim \sin (kr)/r\), therefore by plugging it into (22) (only by now, later we shall use the exact solution arisen from the coupled system) we arrive to the following equation for the magnetic potential. By changing \(S\rightarrow S/r\) we would have

$$\begin{aligned}&S''+f_1(x;\alpha )S=0,\nonumber \\&f_1(x;\alpha )\equiv 8\alpha \sin (x)^2-2,\nonumber \\&\alpha \equiv \hat{\mu }_0\varPhi _0^2. \end{aligned}$$
(23)

where double dots denote second derivative with respect to \(x=kr=r/r_s\). The point where the sign of \(f_1\) flips corresponds to a turnover point from which the solutions start to oscillate after being growing monotonically.

Figure 1 shows that for small \(\alpha \), \(f_1(x;\alpha )\) is negative and its corresponding solution for the magnetic potential is monotonical for small radii. In contrast, modes with large \(\alpha \) have a more complex evolution at the centre and decay for larger radii. Let us notice from (23) that \(\alpha \) corresponds to a simultaneous measure of the EM coupling of the scalar and the central density of the halo, therefore even for small values of the charge, haloes with sufficiently high central density might give rise to large \(\alpha \).

Fig. 1
figure 1

\(f_1(r;\alpha )\) (top) along the galactic disc for different values of \(\alpha \) and their corresponding S solution (bottom). Notice that small values of \(\alpha \) give rise to negative \(f_1\) which correspond to monotonic solutions while solutions with large \(\alpha \) have a more complex oscillatory behavior

4.2.2 Initial conditions for magnetic fields

Boundary conditions of fields in (22) should be setup in correspondence to the physical features of the system to be modeled. For example, they should depend upon the charge in order to turn the EM-fields off whenever the bosons are charged. Also, EM fields should decay asymptotically. A simple boundary condition is an effective dipole formed by a charge unit with velocity \(\mathbf {v}\) moving around a circle with radius \(r_0\). In this case the magnetic moment would be

$$\begin{aligned} \varvec{\mu } = \frac{q}{2} (\mathbf {r}_0 \times \mathbf {v}) =\frac{qr_0v}{2}\hat{\mathbf {r}}\times \hat{\mathbf {v}}. \end{aligned}$$
(24)

The corresponding magnetic vector potential is given as

$$\begin{aligned} \mathbf {S}_0 = \frac{\mu _0}{4\pi r_0^2}\varvec{\mu } \times \hat{\mathbf {r}}. \end{aligned}$$
(25)

Assuming that \(\hat{\mathbf {v}}= \hat{\varvec{\varphi }}\) then

$$\begin{aligned} \mathbf {S}_0=\frac{\mu _0qv}{8\pi r_0} \varvec{\hat{\varphi }}. \end{aligned}$$
(26)

Now, in order to have a dimensionless initial condition let us multiply the last equation by \(q/k\hbar \) to obtain

$$\begin{aligned} \hat{\mathbf {S}}_0 = \frac{\hat{\mu }_0}{32\pi }\frac{v}{c} \frac{1}{kr_0}\hat{\varvec{\varphi }}=\hat{S}_0\hat{\varvec{\varphi }}. \end{aligned}$$
(27)

Our numerical results turn to be not too sensitive to the magnitude of the initial \(\hat{S}_0\) however, the previous setting of boundary conditions is important in order to realize how S depends on the electromagnetic coupling q. On the other hand, initial conditions for the derivative of S will determine the order of magnitude of the magnetic field at the end, thus initial conditions for the dimensionless variable used here is given by:

$$\begin{aligned}&S_0'= \frac{\,\,e\,r_s^2}{\hbar }(\beta \mu G), \end{aligned}$$
(28)

where \(\beta \) is a fitting parameter which determines the order of magnitude of the magnetic field at the galactic centre and its decaying rate along the disc. In this work we fix it to \(\beta =10^{-30}\) in order to produce magnetic fields running within \(1-10\,\mu G\).

4.3 Rotation curves and magnetic fields from complex SFDM solutions

In this subsection we show the method to compute astrophysical observables involved in our study in terms of the solutions of the KGM system presented in previous sections.

$$\begin{aligned} \frac{4\pi \,G\rho }{c^2}=\varPhi \varPhi ^*=\frac{\bar{\rho }}{k^2} \mathscr {R}^2, \end{aligned}$$
(29)

where \(\varPhi ^*\) corresponds to the complex conjugate of the scalar field \(\varPhi \). For convenience, we set the relation above between the density factor \(4\pi G/c^2\) and the scalar field in order to have units of \(1/distance^2\). Equivalently, in units where \(4\pi G=1\) and \(c=1\), \(\rho =|\varPhi |^2\) barely. We also have defined the central value density as \(\bar{\rho }\). Boundary conditions on the radial scalar solution need to be established at this point. The monopole scalar solution for neutral bosons – that is when EM are absent – which has been typically used to fit rotation curves within this model [40] has the form \(R\sim \sin (kr)/r\), where k is an integration constant to be fixed by boundary conditions. Given that such function is periodic, there is a radius \(r'\) where the density distribution vanishes \(\rho (r')=0\), this happens if \(\{k_jr'=j\pi \}_{j=1,2,...}\). In this way it is realized the existence of excited states making up the whole solution as a specific superposition of them to be fixed by observations owing that Eq. (13) (with \(A_\varphi =A_0=0\)) is lineal allows us to form haloes by superposition of excited states as follows

$$\begin{aligned} \phi _{neutral}= \sum _i \phi _{i0} \frac{\sin (k_ir)}{k_ir}. \end{aligned}$$
(30)

It is worth to point out that because the previous form of the solution has a physical interpretation: in the ideal case, solutions of the GPP or SP systems are supposed to describe perfect BECs with temperature quite close to zero and the system of bosons would condensate to a single macroscopic wave function and all the bosonic excitations would lay in the ground state described by the single ground state solution with no spatial nodes [40]. However, moving one step beyond such idealization, because the system is surrounded by a thermal bath therefore it is expected that excited states arise. By virtue of the smallness of EM fields involved in the KGM system above, we assume that the scalar solutions are equal to those of the neutral scalar plus small perturbations and therefore we fix the boundary conditions in the same way.

In order to compute mass contribution from the density distribution of each multi-state, we should integrate its corresponding density distribution over all space at a fixed time as follows

$$\begin{aligned} M_i(r)= \frac{\bar{\rho }_i}{ k_i^2}\int _0^r{\mathscr {R}_i(r')^2}r'^2dr'. \end{aligned}$$
(31)

The total mass of the halo corresponds to the sum of all the contributions as follows

$$\begin{aligned} M_T(r)=\sum _{i}M_i(r). \end{aligned}$$
(32)

In the Newtonian regime, the outer movement of stars in a galaxy is mainly governed by geometry of the potential well produced by the halo, though there are sub-dominant effects coming from stellar and gas dynamics deforming the dominant well potential, for the purposes of this work we let them out of consideration. Therefore, by using the virial relations we can infer that the magnitude of the rotation velocity of stars can be computed as follows

$$\begin{aligned} V^2=\frac{M_T(r)}{2\pi r}. \end{aligned}$$
(33)

Let us recall here that we are not using international units until now, however, later on after numerically computing these normalized rotation curves and magnetic fields we shall transform our quantities to those units in order to compare with observations. We compute the magnetic field by taking the curl of  (21) and we get:

$$\begin{aligned} \mathbf {B}_A=\sum \nabla \times (A^i_{\varphi }\hat{\varvec{\varphi }}) =B_r\hat{\mathbf {r}}+B_{\theta }\hat{\varvec{\theta }}, \end{aligned}$$
(34)

whose components are given as

$$\begin{aligned} B_r= & {} \sum _i \cos (2\theta )\frac{S_i}{r\sin \theta }, \end{aligned}$$
(35)
$$\begin{aligned} B_{\theta }= & {} -\sum _i{\left( \frac{S_i}{r}+S'_i\right) \cos \theta }, \end{aligned}$$
(36)

where we are adding up contributions to the magnetic fields arisen from all multi-states required to fit the rotation curves. Notice that either \(B_r\) and hence \(|\mathbf {B}_A|\) diverge at \(\theta =n \pi \) with n being an integer and at the galactic centre. In what follows we shall compute observables in the galactic disk plane at \(\theta =\pi /2\).

5 Characterizing the density profile of the pivot dark matter halo

In this section we determine the density profiles of the scalar field configurations with different spatial symmetries, that is, the monopole and the dipole (recall that the first one is intended to model a rotating halo and the second is the simplest approximation), we estimate the parameters of an halo whose density profile is describe up to three multi-states, with that purpose we fitted the rotation curves of a low-surface-bright galaxy with spheroidal morphology, which is the ideal type of galaxy to test gravitational effects of dark matter onto the stellar kinematics since effects of baryons are presumably sub-dominant and therefore the minimum disc hypothesis is valid.

By using measurements of the rotation curves of galaxy F563 made by [55], we sampled the space of parameters of the mentioned fiducial models by using our own Monte-Carlo-Markov-Chain code via the Hastings–Metropolis algorithm. The set of parameters considered in our analysis are given by the characteristic size of the halo \(r'\) corresponding to the size of the first spatial oscillation of the ground state and the central density of each multi-state \(\bar{\rho }_i\,\, i=1,2,3.\)

As mentioned above, this model will play the role of a pivot or reference model and the following estimates will lead to a zero-order rotation curves against which rotation curves arisen from charged haloes are going to be compared in order to set bounds on the charge of the bosons in the next section.

Resulting marginalized posteriors of the parameters are shown in Figs. 2 and 3. Distributions for the second multi-state are omitted since it turns out to be needless to fit the rotations curves. Best-fitting parameters for each instance are summarized in Table 1.

Fig. 2
figure 2

Marginalized posterior distributions for the parameters characterizing the halo derived from the monopole of the neutral scalar field

Fig. 3
figure 3

Marginalized posterior distributions for the parameters characterizing the halo derived from the dipole of the neutral scalar field

Table 1 Estimates for the parameters of the multi-states yielding to the density profiles of dark matter with dipole and monopole spatial distributions respectively

An interesting outcome from these results is that haloes produced by spherical solutions are smaller than those arisen from dipole solutions. Since multi-state solutions are denser for the dipole scalar than the monopole ones. These fact should be taken into account when one is aiming to carefully describe the shape and dynamics of SFDM haloes, since arbitrarily chosen spatial symmetries of the scalar configuration could lead to different results. As we shall see in the next section, the spatial symmetry of the scalar field importantly affects the upper bounds to the charge q, in the case of the monopole larger values of q are allowed than for the dipole solution. An explanation for this in physical terms is that the dipole solution holds orbital angular momentum which has a contribution to the magnetic field and hence, in order to reproduce the rotation curves the charge must be cut down.

6 Bounds of the boson charge from F563-V2 rotation curves data

6.1 The method

Our main goal now is to estimate the order of magnitude of the charge of the boson q such that predictions of the rotation curves remain inside the error bars of rotation curves (\(1\sigma \) of confidence level) and at the same time the resulting magnetic fields lay in a range of micro-Gauss. In other words, the question here is: what is the maximum allowed value of q, such that the corresponding theoretical curves lay inside the \(1-\sigma \) resolution of rotation curves data? Since stellar rotation curves in galaxies provide a measurement of the Newtonian gravitational potential well produced by DM, the cutoff q provides limit from which the gravitational interaction remains ”flawless” owing to EM interaction between bosons, as far as data is able to resolve. In other words it quantifies the extent in which the strength of the bosonic electromagnetic coupling affects the number density, and consequently the rotation curves of stars and gas traveling along the potential well detectable so far for the instance of F563.

Figure 4 shows theoretical rotation curves arisen either from monopolar and dipolar scalar solutions corresponding to F563 for different values of q laying well inside the \(1 \sigma \) confidence region of data.

In addition, the magnitude of the total magnetic fields produced by the system of bosons run from \(1-10\mu \hbox {G}\) at the galactic plane. Although these magnetic fields decay within radii of few parsecs in the galactic disc, notice from the first equation in system (22) that the coupling to S vanishes at \(\theta =\pi /2\) and hence the module of the magnetic fields is expected to take its minimal values at the disc. We also verified this numerically. Therefore larger values of the magnetic fields would be measured in regions off the galactic plane for larger regions.

We estimated the bounds on the charge of the bosons q by using the Fisher matrix technique [56, 57] which enables one to estimate errors in terms of variations of theoretical predictions with respect to the theoretical parameters and the observational errors. Consider the theoretical predictions of a set of observables \({\varOmega }_k\) within a parametrized set of models by a set of parameters \(P_i\). An estimator of the covariance matrix of such quantity around the fiducial model with parameters \(P_{0i}\) is given by the inverse of the Fisher matrix whose components are computed as

$$\begin{aligned} \mathscr {F}_{ij}= \sum _{a}\frac{1}{\sigma _a^2} \frac{\partial \varOmega _a }{\partial P_i} \frac{\partial \varOmega _a}{\partial P_j}, \end{aligned}$$
(37)

where \(\sigma _a\) is the observational Gaussian error associated to \(\varOmega _a\). In our case, the observables are different data points of the rotation curves and the fiducial model is given by those of the pivot model and \(q=0\). Thus, according to this method, an estimation for the error of q would be given by

$$\begin{aligned} \sigma _q=\left[ \sum _i \frac{1}{\sigma _{V_i}^2} \frac{\varDelta V(r_i)}{\varDelta q}\frac{\varDelta V(r_i)}{\varDelta q}\right] ^{-1/2}, \end{aligned}$$
(38)

where \(\frac{\varDelta V(r_i)}{\varDelta q}\) are computed using the coupling values q which push the rotation curves to the \(1\sigma \) limit and \(\sigma _{V_i}\) is the corresponding error bar of the ith point. The resulting estimates of q corresponding to different sorts of scalar configurations are summarized in Table 2.

Fig. 4
figure 4

Rotation curves derived from the coupled system of scalar and EM field equations. Upper panel show rotation curves derived from the monopole solution while the lower panel corresponds to the dipolar scalar configuration. Parameters characterizing the density profile of dark matter are those of the pivot neutral model and the value of the charge as indicated in plot labels

Notice that the theoretical rotation curves decrease as the charge increases. A qualitative explanation for this to happen is the following: as the charge of bosons increases, they repel from each other producing a decrease in the density described by \(|\varPhi |^2\). The rotation curves of low-surface-bright galaxies are signatures of the depth of the gravitational potential well of dark matter mainly, therefore, if the density of dark matter decreases it is expectable that the rotation curves do as well.

7 Discussion and conclusions

In this work we consider the hypothesis that dark matter haloes are BEC made of charged bosons with mass around \(10^{-22}\) eV modeled as classical scalar field configurations which are able to explain not only the rotation curves and the shape of the galaxies but furthermore galactic magnetic fields arisen from them.

At first approximation, we show that when the classical coupling constant between the scalar and electromagnetic fields takes tiny values lower than \(\sim 10^{-13}\) times the charge of the electron, by holding specific boundary conditions, the scalar configuration produces magnetic fields at the galactic centre with magnitude of \(\sim \mu \hbox {G}\) like those typically observed in galaxies.

In general, the scalar and electromagnetic field equations are coupled, as a consequence their solutions used here to model the density profiles of charged boson haloes might able to alter the rotation curves of galaxies in comparison to those arisen from neutral configurations. However for bosons holding charge values below the bound derived here, both predictions of the rotation curves are indistinguishable by data since they remain inside the \(1\sigma \) confidence region. Of course, this result may change for other galaxies and more precise data in the future, nevertheless we probe the extent of sensitivity of data to the charge parameter and furthermore we show that it is possible that cSFDM is able to produce primordial magnetic fields \(\sim \mu \hbox {G}\). Also, further research will be needed in order to determine whether other phenomena comes out from this sort of dark matter and other constraints for this coupling are to be imposed by testing predictions of other cosmological and astrophysical observables.

Table 2 Bounds of the charge of the bosons required to the rotation curves to lay inside the 1\(\sigma \) confidence region of F563 data

In order to model such dark matter haloes we used the classical system of KGM coupled equations with local U(1) symmetry providing a minimal coupling between the EM fields and the scalar current. We carried out an harmonic decomposition of our variables given the symmetries of our physical system and that the system of equations hold small non-linear terms involving weak EM fields. We study the simplest spatial distributions of density profiles of the scalar field, that is, spherical and dipole configurations. Dipole-like solutions are physically interesting in order to take into account rotating scalar configurations that are able to produce magnetic fields as a non vanishing macroscopic dipole as a boundary condition arising due to vorticity phenomena in the halo. According to a qualitative analysis of the equation governing the magnetic potential, cuspy scalar fields at the centre and large magnitudes of the boson charge can give rise to complex behavior of the magnetic potential while small values of these quantities turn into monotonic solutions. We solved numerically the KGM system by setting, as boundary condition, the central magnetic potential as that of a magnetic dipole formed by spinning bosons around a fixed circle, by now we fitted the size of such circle in order to obtain magnetic field around \(\mu \hbox {G}\). Further research about vorticity phenomena within cSFDM model will provide information in order to better set these boundary conditions in the future.

Afterwards we took, as a case of study, the F563 galaxy with spherical morphology and low-superficial-brightness which are desirable features of a dark-matter dominated system. We took density profiles corresponding to neutral scalar solution as pivot or fiducial models in order to fit the rotation curves F563 and compare them to those arising from cSFDM models in order to derive a bound q for the charge of the bosons such that the rotation curves start to be indistinguishable provided the data. We estimate this error by using the Fisher matrix method. Spherical and dipolar scalar configurations lead to different rotation curves and the bound of q for the former is larger than the latter for one order of magnitude.

The main conclusion of this work is therefore, that in the case of galaxy F563, a spherical(dipolar) dark matter halo made of cSFDM bosons with charge \(\sim 10^{-13} e(\sim 10^{-14}e)\) is able to generate \(\mu \hbox {G}\) magnetic fields and at the same time to predict the observed rotation curves.