We study the collapse of a self-gravitating Bose-Einstein condensate with attractive self-interaction. Equilibrium states in which the gravitational attraction and the attraction due to the self-interaction are counterbalanced by the quantum pressure (Heisenberg's uncertainty principle) exist only below a maximum mass ${M}_{\mathrm{max}}=1.012\ensuremath{\hbar}/\sqrt{Gm|{a}_{s}|}$ where
as<0 is the scattering length of the bosons and
m is their mass [P. H. Chavanis, Phys. Rev. D 84, 043531 (2011)]. For
M>Mmax the system is expected to collapse and form a black hole. We study the collapse dynamics by making a Gaussian ansatz for the wave function and reducing the problem to the study of the motion of a particle in an effective potential. We find that the collapse time scales as $(M/{M}_{\mathrm{max}}\ensuremath{-}1{)}^{\ensuremath{-}1/4}$ for $M\ensuremath{\rightarrow}{M}_{\mathrm{max}}^{+}$ and as ${M}^{\ensuremath{-}1/2}$ for $M\ensuremath{\gg}{M}_{\mathrm{max}}$. Other analytical results are given above and below the critical point corresponding to a saddle-node bifurcation. We apply our results to QCD axions with mass $m={10}^{\ensuremath{-}4}\text{ }\text{ }\mathrm{eV}/{c}^{2}$ and scattering length ${a}_{s}=\ensuremath{-}5.8\ifmmode\times\else\texttimes\fi{}{10}^{\ensuremath{-}53}\text{ }\text{ }\mathrm{m}$ for which ${M}_{\mathrm{max}}=6.5\ifmmode\times\else\texttimes\fi{}{10}^{\ensuremath{-}14}{M}_{\ensuremath{\bigodot}}$ and $R=3.3\ifmmode\times\else\texttimes\fi{}{10}^{\ensuremath{-}4}{R}_{\ensuremath{\bigodot}}$. We confirm our previous claim that bosons with attractive self-interaction, such as QCD axions, may form low mass stars (axion stars or dark matter stars) but cannot form dark matter halos of relevant mass and size. These mini axion stars could be the constituents of dark matter. They can collapse into mini black holes of mass $\ensuremath{\sim}{10}^{\ensuremath{-}14}{M}_{\ensuremath{\bigodot}}$ in a few hours. In that case, dark matter halos would be made of mini black holes. We also apply our results to ultralight axions with mass $m=1.93\ifmmode\times\else\texttimes\fi{}{10}^{\ensuremath{-}20}\text{ }\text{ }\mathrm{eV}/{c}^{2}$ and scattering length ${a}_{s}=\ensuremath{-}8.29\ifmmode\times\else\texttimes\fi{}{10}^{\ensuremath{-}60}\text{ }\text{ }\mathrm{fm}$ for which ${M}_{\mathrm{max}}=0.39\ifmmode\times\else\texttimes\fi{}1{0}^{6}{M}_{\ensuremath{\bigodot}}$ and
R=33 pc. These ultralight axions could cluster into dark matter halos. Axionic dark matter halos with attractive self-interaction can collapse into supermassive black holes of mass $\ensuremath{\sim}1{0}^{6}{M}_{\ensuremath{\bigodot}}$ (similar to those reported at the center of galaxies) in about one million years. We point out the limitations of the Gaussian ansatz to describe the late stages of the collapse dynamics. We also mention the possibility that, instead of forming a black hole, the collapse may be accompanied by a burst or relativistic axions (bosenova) leading to a cycle of collapses and explosions as observed for nongravitational Bose-Einstein condensates with attractive self-interaction.
We find a matter-wave solution of Bose-Einstein condensates trapped in a harmonic-oscillator potential and subjected to a homogeneous gravitational field, by means of the extended tanhfunction method. This solution has as special cases the bright and dark solitons. We investigate the dynamics and the kinematics of these solutions, and the role of gravity is sketched. It is shown that these solutions can be generated and manipulated by controlling the s-wave scattering length, without changing the strengths of the magnetic and gravitational fields.