1 Introduction

In 1915, Einstein put forth the groundbreaking theory of general relativity (GR) in the realm of physics, where he linked the gravitational field to the curvature of spacetime. Within this theory emerged the concept of black holes (BH), extraordinary celestial objects in the universe. Their existence was not observed directly but rather predicted based on the principles of general relativity. In 1916, Schwarzschild [1] became the first to solve the field equations of general relativity, resulting in a static spherically symmetric vacuum solution that described a non-rotating black hole with mass alone. Later, in 1963, Kerr derived a rotating, steady-state axisymmetric vacuum black hole solution [2]. However, within classical gravitational theory, a singularity exists inside the black hole [3,4,5,6].

On the other hand, the true nature of dark matter is one of the most profound mysteries in astrophysics and cosmology. The widely accepted \(\Lambda \) CDM model has been remarkably successful in explaining the dynamics of the large-scale Universe, suggesting that about 26.8\(\%\) of our Universe is composed of dark matter, making up a significant 85\(\%\) of its total mass [7]. In the early universe, the dark matter halo has been suggested as a potential factor in understanding this phenomenon [8, 9]. Although numerical simulations have been used to analyze the growth of black holes within dark matter halos over time, obtaining an analytical form for black holes surrounded by dark matter halo remains challenging. This difficulty arises from the unknown and uncertain behavior of dark matter particles when they interact with black holes.

The presence of a supermassive black hole at the center of a galaxy can significantly enhance the dark matter density, leading to a phenomenon called the “Spike” [10,11,12]. However, the Navarro-Frenk-White (NFW) density profile exhibits a “cusp” problem [13], which contradicts observations showing a rather flat density profile. Different dark matter models, such as scalar field dark matter, modified Newtonian dynamics dark matter, and warm dark matter, do not produce the “cusp” in small scales. It remains uncertain whether the “Spike” and “Cusp” manifest in the galactic center.

These challenges serve as motivation for our study, where we examine black holes (spherically symmetric and rotating) in dark matter halos under stationary conditions. By exploring the results obtained, we can investigate various dynamic processes occurring near the black hole, and the energy density of dark matter under relativistic conditions. This research seeks to shed light on the behavior of dark matter in the vicinity of black holes and provides insights into potential solutions for the observed discrepancies between theoretical predictions and observational data. One notable method for extending Schwarzschild-like black holes to Kerr-like black holes is the Newman-Janis (NJ) algorithm [14,15,16], which has proven to be highly suitable for this purpose. Additionally, reference [17] also contributes to the topic.

In 2019, the Event Horizon Telescope (EHT) released the first image of a black hole, capturing the shadow of the supermassive black hole M87 at the center of the Virgo elliptical galaxy [18]. Moreover, in 2022, EHT released an image of Sagittarius A*, the supermassive black hole at the center of the Milky Way [19]. The information revealed in these black hole photos has provided valuable insights into the shadow, jet, and accretion processes of black holes. As a result of these groundbreaking discoveries, the phenomenon of black hole shadows has attracted significant attention in the scientific literature. Numerous studies have been conducted to delve into this intriguing aspect [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119]. In Ref. [120] Tang and Xu presented a spacetime metric for a rotating short-hairy black hole, and studied the influence of short-hairy on the shadow of black holes. These studies have contributed significantly to our understanding of black hole properties and their impact on the surrounding environment. In our study, we will utilize the black hole shadow to gain valuable insights into the effects of pseudo-isothermal halo (PIH) profile [121] on a rotating black hole geometry. To achieve this, we will primarily rely on the formalism developed by Xu et al. [122, 123] to obtain the combined dark matter and black hole geometries. By employing these techniques, we aim to elucidate the impact of pseudo-isothermal halo profile on a rotating black hole, specifically in the context of their observable shadows. This investigation can contribute to a deeper understanding of the interaction between black holes and dark matter and may offer valuable clues for unraveling the enigmatic nature of dark matter through astrophysical observations.

In our research, we aim to explore the shadows of rotating black holes surrounded by dark matter and analyze their unique characteristics. By doing so, we hope to provide valuable insights and directions for the experimental detection of this particular spacetime configuration. This investigation will contribute to our understanding of black hole properties and enhance our ability to interpret the observations of black hole shadows in astrophysical contexts. This work is organized as follows. In Sect. 2, we give a pure dark matter spacetime metric by considering the pseudo-isothermal halo profile, and solve the Einstein field equations to obtain the spherically symmetric BH metric surrounded by the pseudo-isothermal halo. In Sect. 3 we derive the rotating black hole surrounded by the pseudo-isothermal halo profile derived by using the Newman-Janis method. In Sect. 4, we obtain the geodesic equation by solving the Hamilton-Jacobi equation in the rotating black hole. In Sect. 5, we present the shadow images of a rotating black hole and analyze the influence of spin and dark matter parameters on the shadow. Section 6 provides our main conclusion of this work.

2 Spherically symmetric BH metric surrounded by the PIH

In this work, we study the pseudo-isothermal halo profile [121]. The dark matter density profile reads

$$\begin{aligned} \rho _{PI}(r)=\rho _0\left[ 1+\left( \frac{r}{r_{\textrm{0}}}\right) ^2\right] ^{-1}. \end{aligned}$$
(2.1)

where \(\rho _0\) denotes the central halo density and \(r_0\) denotes the halo core radius. In order to obtain a spherically symmetric black hole surrounded by dark matter, we first need to calculate the mass distribution of the dark matter halo. According to the above dark matter halo profile, we can obtain the mass profile [124])

$$\begin{aligned} M_{\text{ PI } }&=4 \pi \int _0^r \rho _{\text{ PI }}\left( r^{\prime }\right) r^{\prime 2} d r^{\prime }\nonumber \\&=4 \pi \rho _0 r_0^2 \left[ r-r_0\arctan \left( \frac{r}{r_0}\right) \right] . \end{aligned}$$
(2.2)

In the spherically symmetric spacetime, we can find the tangential velocity of the test particle moving in the dark matter halo determined by the mass distribution of the dark matter halo. Therefore, we obtain the tangential velocity (in units \(G=1,c=1\))

$$\begin{aligned} V_{\text{ PI }}=\sqrt{\frac{M_{\text{ PI } }}{r}}=\sqrt{\frac{ 4\pi \rho _0 r_0^2 \left[ r-r_0\arctan \left( \frac{r}{r_0}\right) \right] }{r}}. \end{aligned}$$
(2.3)

The spherically symmetric spacetime line elements describing pure dark matter halo can be written as (using the method introduced in Ref. [124] and later used by Xu et al. in Ref.[122])

$$\begin{aligned} d s^2=-\mathcal {A}(r) d t^2+\mathcal {B}(r)^{-1} d r^2+r^2\left( d \theta ^2+\sin ^2 \theta d \phi ^2\right) , \end{aligned}$$
(2.4)

where the \(\mathcal {A}(r)\) represents the redshift functions, and \(\mathcal {B}(r)\) represents the shape functions. The tangential velocity is closely related to the redshift function \(\mathcal {A}(r)\) of the spacetime metric, which reads

$$\begin{aligned} V_{PI}^2=r \frac{d \ln \sqrt{\mathcal {A}(r)}}{d r} . \end{aligned}$$
(2.5)

It should be noted that in our work, we consider the case of \(\mathcal {A}(r)=\mathcal {B}(r)\). Substituting equation (2.3) into above equation, we can obtain the analytical expression of the redshift function and the shape function in the pure dark matter metric

$$\begin{aligned} \mathcal {A}_{PI}(r){} & {} =\mathcal {B}_{PI}(r)\nonumber \\{} & {} =\left( r_0^2+r^2\right) {}^{4 \pi \rho _0 r_0^2} \text {exp}\left[ \frac{8 \pi \rho _0 r_0^3 \arctan \left( \frac{r}{r_0}\right) }{r}\right] .\nonumber \\ \end{aligned}$$
(2.6)

Now, we will solve the Einstein field equations to obtain the spherically symmetric BH metric surrounded by the pseudo-isothermal halo. As proposed by Xu et al. [122], the Einstein field equation for the pure pseudo-isotherma dark matter spacetime need to be solved, which can be written as

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2} g_{\mu \nu } R=\kappa ^2 T_{\mu \nu }(\textrm{PIH}), \end{aligned}$$
(2.7)

where \(g_{\mu \nu }\) denotes the metric tensor of the pure pseudo-isothermal dark matter spacetime, \(R_{\mu \nu }\) and R denotes the Ricci tensor and Ricci scalar, respectively. The energy-momentum tensor of the pure pseudo-isothermal dark matter spacetime can be written as \(T^\nu {}_\mu =g^{\nu \sigma } T_{\mu \sigma }={\text {diag}}\left[ -\rho , p_r, p, p\right] \). Therefore, we can obtain

$$\begin{aligned} \begin{aligned}&\kappa ^2 T^t{}_t(\textrm{PIH})=\mathcal {B}_{PI}(r)\left( \frac{1}{r} \frac{\mathcal {B}_{PI}^{\prime }(r)}{\mathcal {B}_{PI}(r)}+\frac{1}{r^2}\right) -\frac{1}{r^2}, \\&\kappa ^2 T^r{}_r(\textrm{PIH})=\mathcal {B}_{PI}(r)\left( \frac{1}{r^2}+\frac{1}{r} \frac{\mathcal {A}_{PI}^{\prime }(r)}{\mathcal {A}_{PI}(r)}\right) -\frac{1}{r^2}, \\&\kappa ^2 T^\theta {}_\theta (\textrm{PIH})=\kappa ^2 T^\phi {}_\phi (\textrm{PIH})=\frac{1}{2} \mathcal {B}_{PI}(r)\\&\quad \times \left[ \frac{\mathcal {A}_{PI}^{\prime \prime }(r) \mathcal {A}_{PI}(r)-\mathcal {A}_{PI}^{\prime 2}(r)}{\mathcal {A}_{PI}^2(r)}+\frac{\mathcal {A}_{PI}^{\prime 2}(r)}{2 \mathcal {A}_{PI}^2(r)}\right. \\&\quad \left. +\frac{1}{r}\left( \frac{\mathcal {A}_{PI}^{\prime }(r)}{\mathcal {A}_{PI}(r)}+\frac{\mathcal {B}_{PI}^{\prime }(r)}{\mathcal {B}_{PI}(r)}\right) \right. \\&\quad \left. +\frac{\mathcal {A}_{PI}^{\prime }(r) \mathcal {B}_{PI}^{\prime }(r)}{2 \mathcal {A}_{PI}(r) \mathcal {B}_{PI}(r)}\right] . \end{aligned} \nonumber \\ \end{aligned}$$
(2.8)

If consider a black hole surrounded by the PIH, the energy-momentum tensor become \(T^\nu {}_\mu =T^\nu {}_\mu (\textrm{BH})+T^\nu {}_\mu (\textrm{PIH})\). According to GR, Schwarzschild black hole is an vacuum solution, which satisfies the condition \(T^\nu {}_\mu (\textrm{BH})=0\). If we consider a Schwarzschild-like BH surrounded by the PIH, we can only consider the energy-momentum tensor of the pure PIH. Therefore, we assume the black hole metric surrounded by the PIH has the following form

$$\begin{aligned} d s^2{} & {} =-[\mathcal {A}_{PI}(r)+X_1(r)] d t^2\nonumber \\{} & {} \quad +\frac{1}{\mathcal {B}_{PI}(r) +X_2(r)} d r^2+r^2\left( d \theta ^2+\sin ^2 \theta d \phi ^2\right) ,\nonumber \\ \end{aligned}$$
(2.9)

where \(\mathcal {A}_{PI}(r)\) and \(\mathcal {B}_{PI}(r)\) denote the metric coefficients of the pure PIH and the unknown functions \(X_1(r)\) and \(X_2(r)\) are determined by the black hole parameters and PIH parameters. As a consequence, the Einstein field equations can be cast in the form

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2} g_{\mu \nu } R=\kappa ^2\left[ T_{\mu \nu }(\textrm{BH})+T_{\mu \nu }(\textrm{PIH})\right] . \end{aligned}$$
(2.10)

Substituting the new black hole metric (2.9) into the above Einstein field equation, we can obtain

$$\begin{aligned}&\left[ \mathcal {B}_{PI}(r)+X_2(r)\right] \left[ \frac{1}{r^2}+\frac{1}{r} \frac{\mathcal {B}_{PI}^{\prime }(r)+X_2 ^{\prime }(r)}{\mathcal {B}_{PI}(r)+X_2(r)}\right] \nonumber \\&\quad =\mathcal {B}_{PI}(r)\left[ \frac{1}{r^2}+\frac{1}{r} \frac{\mathcal {B}_{PI}^{\prime }(r)}{\mathcal {B}_{PI}(r)}\right] , \end{aligned}$$
(2.11a)
$$\begin{aligned}&\left[ \mathcal {B}_{PI}(r)+X_2(r)\right] \left[ \frac{1}{r^2}+\frac{1}{r} \frac{\mathcal {A}_{PI}^{\prime }(r)+X_1 ^{\prime }(r)}{\mathcal {A}_{PI}(r)+X_1(r)}\right] \nonumber \\&\quad =\mathcal {B}_{PI}(r)\left[ \frac{1}{r^2}+\frac{1}{r} \frac{\mathcal {A}_{PI}^{\prime }(r)}{\mathcal {A}_{PI}(r)}\right] . \end{aligned}$$
(2.11b)

Using the Schwarzschild black hole as the boundary condition, we can obtain the analytical solution of the above two differential equations

$$\begin{aligned} X_2(r)&=-\frac{2 M}{r}, \nonumber \\ X_1(r)&=\exp \Bigg \{\int \frac{\mathcal {B}_{PI}(r)}{\mathcal {B}_{PI}(r)+X_2(r)}\left[ \frac{1}{r} +\frac{\mathcal {A}_{PI}^{\prime }(r)}{\mathcal {A}_{PI}(r)}\right] \nonumber \\&\qquad d r-\frac{1}{r} d r\Bigg \} -\mathcal {A}_{PI}(r). \end{aligned}$$
(2.12)

For the pseudo-isothermal halo, if \(\mathcal {A}_{PI}(r)=\mathcal {B}_{PI}(r)\), one can find that \(X_1(r)=X_2(r)=-2 M/ r\). The black hole surrounded by the pseudo-isothermal halo can be hence written as

$$\begin{aligned} d s^2=-Q_1(r) d t^2+\frac{1}{Q_2(r)}d r^2+\mathcal {R}(r)\left( d \theta ^2+\sin ^2 \theta d \phi ^2\right) , \end{aligned}$$
(2.13)

where \(\mathcal {R}(r)=r^2\), and \(Q_1=X_1(r)+\mathcal {A}_{PI}(r)=Q_2=X_2(r)+\mathcal {B}_{PI}(r)\), whose explicit expressions are

$$\begin{aligned} Q_1(r){} & {} =Q_2(r)\nonumber \\{} & {} =\left( r_0^2+r^2\right) {}^{4 \pi \rho _0 r_0^2} \text {exp}\left[ \frac{8 \pi \rho _0 r_0^3 \arctan \left( \frac{r}{r_0}\right) }{r}\right] \nonumber \\{} & {} \quad -\frac{2 M}{r}. \end{aligned}$$
(2.14)

3 Rotating black hole surrounded by the pseudo-isothermal halo

The black hole photos taken by EHT and the detection of gravitational wave events indicate that the black holes in the actual universe are Kerr-like black holes, i.e., they usually have spins. Therefore, we will introduce spin into the spherically symmetric black hole spacetime. To achieve this, we will use the Newman-Janis algorithm, which allows us to introduce the spin into the black hole surrounded by the pseudo-isothermal halo. In the NJ method, in order to obtain the spacetime metric of a rotating black hole surrounded by the pseudo-isothermal halo, it is necessary to transform the spherically symmetric metric from Boyer–Lindquist to Eddington–Finkelstein coordinates. The relationship between the Boyer–Lindquist coordinates \((t,r,\theta ,\phi )\) and the advanced null coordinate \((u,r,\theta ,\phi )\) is

$$\begin{aligned} \textrm{d} u=dt-dr_*=\textrm{d} t-\frac{\textrm{d} r}{Q_1(r)} . \end{aligned}$$
(3.1)

The contravariant metric tensor \(g^{\mu \nu }\) for a spherically symmetric metric can be given by the four basis vectors (\(l^\mu , n^\mu , m^\mu \), \(\bar{m}^\mu \))

$$\begin{aligned} g^{\mu \nu }=-l^\mu n^\nu -l^\nu n^\mu +m^\mu \bar{m}^\nu +m^\nu \bar{m}^\mu , \end{aligned}$$
(3.2)

where the four basis vectors satisfy the orthogonality conditions and the modulus of the basis vector is one, i.e.

$$\begin{aligned} \begin{aligned} l^\mu l_\mu&=n^\mu n_\mu =m^\mu m_\mu =\bar{m}^\mu \bar{m}_\mu =0, \\ l^\mu m_\mu&=l^\mu \bar{m}_\mu =n^\mu m_\mu =n^\mu \bar{m}_\mu =0, \\ -l^\mu n_\mu&=m^\mu \bar{m}_\mu =1 . \end{aligned} \end{aligned}$$
(3.3)

For the metric of a rotating black hole surrounded by the pseudo-isothermal halo, the basis vectors are

$$\begin{aligned} \begin{aligned} l^\mu&=\delta _r^\mu , \\ n^\mu&=\sqrt{\frac{Q_2(r)}{Q_1(r)}} \delta _\mu ^\mu -\frac{Q_1(r)}{2} \delta _r^\mu , \\ m^\mu&=\frac{1}{\sqrt{2} \mathcal {R}(r)} \delta _\theta ^\mu +\frac{i}{\sqrt{2\mathcal {R}(r)} \sin \theta } \delta _\phi ^\mu , \\ \bar{m}^\mu&=\frac{1}{\sqrt{2} \mathcal {R}(r)} \delta _\theta ^\mu -\frac{i}{\sqrt{2\mathcal {R}(r)} \sin \theta } \delta _\phi ^\mu . \end{aligned} \end{aligned}$$
(3.4)

According to the NJ method, the spacetime coordinates for different observers satisfy the following complex transformation

$$\begin{aligned} u \rightarrow u-i a \cos \theta , \quad r \rightarrow r-i a \cos \theta . \end{aligned}$$
(3.5)

Using this transformation, the metric coefficient will include spin, i.e., the metric coefficient becomes a function of \((r,\theta ,a)\). According to the above complex transformation, the metric functions become: \(Q_1(r) \rightarrow \mathcal {W}(r, \theta , a), Q_2(r) \rightarrow \mathcal {Z}(r, \theta , a)\) and \(\mathcal {R}(r) \rightarrow \Sigma (r, \theta , a)\). After considering this change, the null tetrad become

$$\begin{aligned} \begin{aligned} l^\mu&=\delta _r^\mu , \\ n^\mu&=\sqrt{\frac{\mathcal {Z}}{\mathcal {W}}} \delta _\mu ^\mu -\frac{\mathcal {Z}}{2} \delta _r^\mu , \\ m^\mu&=\frac{1}{\sqrt{2 \Sigma }}\left[ \delta _\theta ^\mu +i a \sin \theta \left( \delta _u^\mu -\delta _r^\mu \right) +\frac{i}{\sin \theta } \delta _\phi ^\mu \right] , \\ \bar{m}^\mu&=\frac{1}{\sqrt{2\Sigma }}\left[ \delta _\theta ^\mu -i a \sin \theta \left( \delta _u^\mu -\delta _r^\mu \right) -\frac{i}{\sin \theta } \delta _\phi ^\mu \right] . \end{aligned} \end{aligned}$$
(3.6)

Therefore, according to these null tetrads, the contravariant metric tensor of the rotating black hole surrounded by the pseudo-isothermal halo can be written as

$$\begin{aligned} g^{\mu \nu }=\left( \begin{array}{cccc} \frac{a^2 \sin ^2 \theta }{\Sigma } &{} -\sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}-\frac{a^2 \sin ^2 \theta }{\Sigma } &{} 0 &{} \frac{a}{\Sigma } \\ -\sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}-\frac{a^2 \sin ^2 \theta }{\Sigma } &{} \mathcal {Z}+\frac{a^2 \sin ^2 \theta }{\Sigma } &{} 0 &{} -\frac{a}{\Sigma } \\ 0 &{} 0 &{} \frac{1}{\Sigma } &{} 0 \\ \frac{a}{\Sigma } &{} -\frac{a}{\Sigma } &{} 0 &{} \frac{1}{\Sigma \sin ^2 \theta } \end{array}\right) . \end{aligned}$$
(3.7)

Moreover, the covariant non-zero metric tensor components are given by

$$\begin{aligned} \begin{aligned}&g_{u u}=-\mathcal {W}, \quad g_{u r}=-\sqrt{\frac{\mathcal {W}}{\mathcal {Z}}}, \\&g_{u \phi }=a\sin ^2 \theta \left( \mathcal {W}-\sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}\right) ,\\&g_{r \phi }=a \sin ^2 \theta \sqrt{\frac{\mathcal {W}}{\mathcal {Z}}} , \quad g_{\theta \theta }=\Sigma , \\&g_{\phi \phi }=\Sigma \sin ^2 \theta +a^2\left( 2 \sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}-\mathcal {\mathcal {W}}\right) \sin ^4 \theta . \end{aligned} \end{aligned}$$
(3.8)

Then, we can obtain the rotating black hole surrounded by the pseudo-isothermal halo in Eddington-Finkelstein coordinates

$$\begin{aligned} \begin{aligned} d s^2&= -\mathcal {W} d u^2-2 \sqrt{\frac{\mathcal {W}}{\mathcal {Z}}} d u d r\\&\quad +2 a \sin ^2 \theta \left( \mathcal {W}-\sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}\right) d u d \phi \\&\quad +2 a \sin ^2 \theta \sqrt{\frac{\mathcal {W}}{\mathcal {Z}}} d r d \phi +\Sigma d \theta ^2 \\&\quad +\left[ \Sigma \sin ^2 \theta +a^2\left( 2 \sqrt{\frac{\mathcal {Z}}{\mathcal {W}}}-\mathcal {\mathcal {W}}\right) \sin ^4 \theta \right] d \phi ^2. \end{aligned} \nonumber \\ \end{aligned}$$
(3.9)

One significant challenge in describing black holes is the presence of coordinate singularities, particularly at the event horizon. The Boyer–Lindquist coordinates are chosen to avoid singularities at the event horizon, making them regular there, which is crucial for understanding the physical properties of the black hole, especially when studying the behavior of objects and light near the horizon. Moreover, The Boyer–Lindquist coordinates are manifestly covariant under coordinate transformations, which means that the mathematical expressions for physical quantities maintain the same form regardless of the chosen coordinates. The number of non-zero off-diagonal components of the metric is minimal in Boyer–Lindquist coordinates [125]. Therefore, transforming the Eddington–Finkelstein coordinates back to Boyer–Lindquist coordinates is necessary. To this purpose, we use the following coordinate transformation

$$\begin{aligned} \textrm{d} u=\textrm{d} t+\mathcal {T}_1(r) \textrm{d} r, \quad \mathrm {~d} \phi =\textrm{d} \phi ^\prime +\mathcal {T}_2(r) \textrm{d} r, \end{aligned}$$
(3.10)

where the \(\mathcal {T}_1(r)\) and \(\mathcal {T}_2(r)\) take the form [126]

$$\begin{aligned} \mathcal {T}_1(r)=-\frac{\mathcal {U}(r)+a^2}{Q_1(r) Q_2(r)+a^2}, \quad \mathcal {T}_2(r)=-\frac{a}{Q_1(r) Q_2(r)+a^2}, \end{aligned}$$
(3.11)

with

$$\begin{aligned} \mathcal {U}(r)=\sqrt{\frac{Q_2(r)}{Q_1(r)}} \mathcal {R}(r), \end{aligned}$$
(3.12)

and

$$\begin{aligned} \mathcal {W}(r, \theta ){} & {} =\frac{\left[ Q_2(r) \mathcal {R}(r)+a^2 \cos ^2 \theta \right] \Sigma }{\left[ \mathcal {U}(r)+a^2 \cos ^2 \theta \right] ^2}, \nonumber \\ \mathcal {Z}(r, \theta ){} & {} =\frac{Q_2(r) \mathcal {R}(r)+a^2 \cos ^2 \theta }{\Sigma }. \end{aligned}$$
(3.13)

Therefore, the spacetime metric of the rotating black hole surrounded by the pseudo-isothermal halo can be given by

$$\begin{aligned} \begin{aligned} d s^2&= -\left( 1-\frac{r^2-\mathcal {A}_{PI}(r) r^2+2 M r}{\Sigma }\right) d t^2\\&\quad +\frac{\Sigma }{\Delta } d r^2-2 a \sin ^2 \theta \left( \frac{r^2-\mathcal {A}_{PI}(r)r^2+2 M r}{\Sigma }\right) d t d \phi \\&\quad +\Sigma d \theta ^2+\Bigg (\left( a^2+r^2\right) \sin ^2 \theta \\&\quad +\frac{a^2 \sin ^4 \theta \left( r^2-\mathcal {A}_{PI}(r) r^2+2 M r\right) }{\Sigma }\Bigg ) d \phi ^2, \end{aligned} \end{aligned}$$
(3.14)

where \(\Sigma \) and \(\Delta \) are defined by

$$\begin{aligned} \Sigma&=r^2+a^2 \cos ^2 \theta , \end{aligned}$$
(3.15a)
$$\begin{aligned} \Delta&=\left( r_0^2+r^2\right) {}^{4 \pi \rho _0 r_0^2} \text {exp}\left[ \frac{8 \pi \rho _0 r_0^3 \arctan \left( \frac{r}{r_0}\right) }{r}\right] \nonumber \\&\quad -2 M r+a^2. \end{aligned}$$
(3.15b)

For \(a=0\), the rotating black hole surrounded by the pseudo-isothermal halo degenerates into the non-rotating black hole surrounded by the pseudo-isothermal halo, while for \(\rho _0=0\), the rotating black hole surrounded by the pseudo-isothermal halo degenerates into the Kerr black hole. The Schwarzschild black hole metric is recovered for \(a=0,\rho _0=0\).

Fig. 1
figure 1

\(\Delta (r)\) as the function of r (see Eq. (3.15b)), with \(\rho _0=6.9 \times 10^6 M_{\odot } / k p c^3, r_0=91.2 \textrm{kpc}\). The three curves in the left panel correspond to the results of \(a=0.1\), \(a=0.3\) and \(a=0.5\), respectively. The three curves in the right panel correspond to the results of \(a=0.7\), \(a=0.9\) and \(a=1\), respectively

Fig. 2
figure 2

\(\Delta (r)\) as the function of r (see Eq. (3.15b)), with \(r_0=91.2 \textrm{kpc}\). From left to right and from top to bottom the values of a are \(a=0.1\), \(a=0.4\), \(a=0.7\) and \(a =0.9\) result, respectively. Here we study the effect of different dark matter densities on the event horizon. The green curve represents \(\rho _0=0M_{\odot } / k p c^3\), the black curve represents \(\rho _0=10M_{\odot } / k p c^3 \), the red curve represents \(\rho _0=1000M_{\odot } / k p c^3\), and the blue curve represents \(\rho _0=100{,}000M_{\odot } / k p c^3\)

The Kerr black hole in general relativity usually has two event horizons, the outer event horizon and the inner event horizon. For the rotating black hole surrounded by the pseudo-isothermal halo we obtained in the previous section, it is worth studying whether its event horizon is affected by dark matter. For a Kerr-like black hole, the event horizon is obtained by solving the equation \(\Delta (r)=0\). For the rotating black hole surrounded by the pseudo-isothermal halo, the event horizon is obtained by solving the following equation

$$\begin{aligned} \Delta (r){} & {} =\left( r_0^2+r^2\right) {}^{4 \pi \rho _0 r_0^2} \text {exp}\left[ \frac{8 \pi \rho _0 r_0^3 \arctan \left( \frac{r}{r_0}\right) }{r}\right] \nonumber \\{} & {} \quad -2 M r+a^2=0. \end{aligned}$$
(3.16)

For this equation, we cannot give an analytical solution, so we use numerical analysis to study the event horizon structure. In Figs. 1 and 2, we give \(\Delta (r)\) as the function of r. From Figs. 1 and 2, we can see that the rotating black hole surrounded by the pseudo-isothermal halo still has a inner event horizon and event horizon. From Fig. 1, one can find that as the spin parameter a increases, the interval between the inner event horizon and the outer event horizon becomes smaller and smaller, and the rotating dark matter black hole finally becomes an extreme black hole. In Fig. 2, the green curve represents \(\rho _0=0M_{\odot } / k p c^3\), the black curve represents \(\rho _0=10M_{\odot } / k p c^3 \), the red curve represents \(\rho _0=1000M_{\odot } / k p c^3\), and the blue curve represents \(\rho _0=100{,}000M_{\odot } / k p c^3\). From Fig. 2, one can see that the existence of dark matter has a tiny effect on the event horizon.

Fig. 3
figure 3

The shadow of the black hole as the spin parameter a varies. The left panel is the shadow of the Kerr black hole when the dark matter density \(\rho _0\) is zero. The right panel is the shadow of a rotating black hole surrounded by the pseudo-isothermal dark matter halo, where the parameters are set to \(M=1, \rho _0=6.9 \times 10^6 M_{\odot } / k p c^3, r_0=91.2\, \textrm{kpc}\). Moreover, the purple solid line is the shadow of the Schwarzschild black hole

4 Geodesics around the rotating black hole surrounded by the pseudo-isothermal dark matter halo

It is well known that there are two main situations for the motion of photons propagating in a gravitational background of a black hole: (i) photons with smaller impact parameters will fall into the black hole and cannot be detected; (ii) photons with impact parameter greater than a certain critical value, and they can be detected by the observer. In this section, we will study the geodesic equation of the rotating spacetime surrounded by the pseudo-isothermal dark matter halo. Our main concern is the Hamilton–Jacobi equation, which is defined as

$$\begin{aligned} \frac{\partial \mathcal {I}}{\partial \lambda }=-\mathcal {H}, \end{aligned}$$
(4.1)

where \(\mathcal {I}\) denotes the Jacobi action, and \(\lambda \) denotes the geodesic affine parameter. Furthermore, the Hamiltonian \(\mathcal {H}\) reads

$$\begin{aligned} \mathcal {H}=\frac{1}{2} g^{\mu \nu } \frac{\partial \mathcal {I}}{\partial x^\mu } \frac{\partial \mathcal {I}}{\partial x^\nu }\,. \end{aligned}$$
(4.2)

For the rotational black hole surrounded by the pseudo-isothermal halo, the Hamilton–Jacobi equation is given by

$$\begin{aligned} \frac{\partial \mathcal {I}}{\partial \lambda }=-\frac{1}{2} g^{\mu \nu } \frac{\partial \mathcal {I}}{\partial x^\mu } \frac{\partial \mathcal {I}}{\partial x^\nu }. \end{aligned}$$
(4.3)

By using the method of the separation of variables, the action \(\mathcal {I}\) assumes the form

$$\begin{aligned} \mathcal {I}=\frac{1}{2} \mu ^2 \lambda -E t+L \phi +S_r(r)+S_\theta (\theta ) \end{aligned}$$
(4.4)

where \(\mu \) is the mass of the particle. E and L are the conserved quantities in the motion of photons along the geodesic. Moreover, \(S_r(r)\) and \(S_\theta (\theta )\) denote the radial and angular functions, respectively. Substituting the action \(\mathcal {I}\) into Eq. (4.3), and using the functions \(\{S_r(r), S_\theta (\theta )\}\) and the conserved quantities \(\{E, L\}\), we obtain

$$\begin{aligned} \begin{aligned} \Sigma \frac{d t}{d \lambda }&=E\Bigg [\frac{\left( a^2+r^2\right) \left( a^2+r^2-a L/E\right) }{\Delta (r)}\\&\quad -a\left( a \sin ^2 \theta -L/E\right) \Bigg ] , \\ \Sigma \frac{d r}{d \lambda }&=\sqrt{R(r)}, \\ \Sigma \frac{d \theta }{d \lambda }&=\sqrt{\Theta (\theta )}, \\ \Sigma \frac{d \phi }{d \lambda }&=E\left[ \frac{a\left( a^2+r^2-a L/E \right) }{\Delta (r)}-\left( a-L/E \csc ^2 \theta \right) \right] , \end{aligned} \end{aligned}$$
(4.5)

where R(r) and \(\Theta (\theta )\) are defined as

$$\begin{aligned} \begin{aligned} R(r)&=\left[ E(r^2+a^2)-a L\right] ^2\\&\quad -\Delta (r)\left[ \mathcal {Q}+(aE-L)^2+\mu ^2r^2\right] ,\\ \Theta (\theta )&=\mathcal {Q}-a^2( \mu ^2-E^2)\cos ^2 \theta -L^2 \cot ^2 \theta , \end{aligned} \end{aligned}$$
(4.6)

and \(\mathcal {Q}\) represents the Carter constant [127], which is an integral constant introduced by Carter. The Eqs. (4.5) and (4.6) are complete time-like geodesics and null geodesics equations. When \(\mu =1\) they describe the motion of time-like particles, and when \(\mu =0\) they describe the motion of null particles. For the black hole shadow, we consider null geodesics, i.e. \(\mu =0\). Note that R(r) and \(\Theta (\theta )\) must be greater than 0, i.e.

$$\begin{aligned}{} & {} \frac{R(r)}{E^2}=[r^2+a^2-a \xi ]^2-\Delta (r)\left[ \eta +(\xi -a)^2\right] \ge 0,\nonumber \\ \end{aligned}$$
(4.7)
$$\begin{aligned}{} & {} \frac{\Theta (\theta )}{E^2}=\eta +(\xi -a)^2-\left( \frac{\xi }{\sin \theta }-a \sin \theta \right) ^2 \ge 0. \end{aligned}$$
(4.8)

where the impact parameters are defined as

$$\begin{aligned} \xi =L/E, \quad \eta =\mathcal {Q}/E^2. \end{aligned}$$
(4.9)

The condition satisfied by the stable motion orbit region of the photon is \(R^{\prime \prime }(r)>0\), and the condition satisfied by the unstable motion orbit region of the photon is \(R^{\prime \prime }(r)<0\). The critical orbit between the stable orbit and the unstable orbit satisfies the condition

$$\begin{aligned} \left. R(r)\right| _{r_{ph}}=0, \quad \left. \frac{\textrm{d} R(r)}{\textrm{d} r}\right| _{r_{ph}}=0, \end{aligned}$$
(4.10)

where \(r_{ph}\) denotes the radius of the photo-sphere. According to the above conditions, the critical impact parameters can be written as

$$\begin{aligned} \xi =\frac{a^2+r^2}{a}-\frac{4 r \left[ a^2+r^2 \mathcal {A}_{PI}(r)-2 M r\right] }{a \left[ r^2 \mathcal {A}_{PI}'(r)+2 r \mathcal {A}_{PI}(r)-2 M\right] }, \end{aligned}$$
(4.11)

and

$$\begin{aligned} \begin{aligned} \eta =\frac{r^5 \left[ 8 a^2 \mathcal {A}_{PI}'(r)+\left( 2 \mathcal {A}_{PI}(r)-r \mathcal {A}_{PI}'(r)\right) \left( r^2 \mathcal {A}_{PI}'(r)-2 r \mathcal {A}_{PI}(r)+12 M\right) \right] +4 M r^3 \left( 4 a^2-9 M r\right) }{a^2 \left[ r^2 \mathcal {A}_{PI}'(r)+2 r \mathcal {A}_{PI}(r)-2 M\right] ^2}, \end{aligned} \end{aligned}$$
(4.12)

where \(\mathcal {A}_{PI}(r)\) is given by the Eq. (2.6), and \(\mathcal {A}^{\prime }_{PI}(r)\) denotes the derivation \(\frac{d\mathcal {A}_{PI}(r)}{dr}\).

5 The shadow shape of rotating BH surrounded by the pseudo-isothermal halo

Through the research in the previous section we obtained the geodesics of photons, and based on these results we can calculate the motion of photons detected in a rotating black hole surrounded by the pseudo-isothermal halo for any observer. To draw shadow images, people usually use celestial coordinates (x and y), which is a two-dimensional coordinate system. For an observer at the position (\(r,\theta \)), the celestial coordinates are defined as [128, 129]

$$\begin{aligned} \begin{aligned} x&=\lim _{r \rightarrow \infty }\left( -r^2 \sin \theta \frac{d \phi }{d r}\right) ,\\ y&=\lim _{r \rightarrow \infty }\left( r^2 \frac{d \theta }{d r}\right) . \end{aligned} \end{aligned}$$
(5.1)
Fig. 4
figure 4

The shadow of the black hole as the different dark matter densities \(\rho _0\) varies. From left to right and from top to bottom are different spin parameters \(a=0.1\), \(a=0.6\), \(a=0.9\), and \(a=0.999\). The blue solid line is the shadow of the Schwarzschild black hole, and \(\rho _0=0\) corresponds to the shadow of the Kerr black hole. The other parameters are set to \(M=1, r_0=91.2 \, \textrm{kpc}\)

where r represents the space distance from the observer to the rotating black hole surrounded by the pseudo-isothermal halo, while \(\theta \) represents the angle between the straight line determined by the observer and the center of the black hole, and the rotation axis of the black hole. The motion of photons is described by \(d\phi /dt\) and \(d\theta /dt\). For asymptotically flat black hole metrics, the celestial coordinates can be simplified as

$$\begin{aligned} x=-\frac{\xi }{\sin \theta }, \end{aligned}$$
(5.2)

and

$$\begin{aligned} y= \pm \sqrt{\eta +a^2 \cos ^2 \theta -\xi ^2 \cot ^2 \theta }. \end{aligned}$$
(5.3)

In our work, we consider that the observer is located on the equatorial plane of the rotating black hole surrounded by the pseudo-isothermal halo, i.e., \(\theta =\pi /2\). Therefore, the celestial coordinates can be written as \( x=-\xi \), and \(y=\pm \sqrt{\eta }\).

Using x and y we can present the shadow image of the rotating black hole surrounded by the pseudo-isothermal halo. It allows us to study the influence of the presence of dark matter on the black hole through the image of the shadow. In Fig. 3 we investigate the effect of the spin parameter a on the shadow of the rotating black hole surrounded by the pseudo-isothermal halo. The left panel of Fig. 3 is the shadow of the Kerr black hole when the dark matter density \(\rho _0\) is zero. The right panel of Fig. 3 is the shadow of rotating black hole surrounded by the pseudo-isothermal dark matter halo, where the parameters are set to \( M=1, \rho _0=6.9 \times 10^6 M_{\odot } / k p c^3, r_0=91.2\, \textrm{kpc}\). Moreover, the purple solid line is the shadow of the Schwarzschild black hole, which is a standard circle. From Fig. 3, one can find that as the spin parameter a increases, the shadow of the rotating black hole surrounded by the pseudo-isothermal halo gradually deviates from a standard circle. The left half of the shadow image is gradually distorted, while the right half of the shadow is still a standard semicircle. Furthermore, the shadow of the rotating black hole surrounded by the pseudo-isothermal halo is very similar to that of the Kerr black hole.

In Fig. 4 we study the effect of dark matter density on the black hole shadow. From left to right and from top to bottom in Fig. 4 are different spin parameters \(a=0.1\), \(a=0.6\), \(a=0.9\), and \(a=0.999\). The blue solid line is the shadow of the Schwarzschild black hole, and \(\rho _0=0\) corresponds to the shadow of the kerr black hole. The other parameters are set to \(M=1, r_0=91.2\, \textrm{kpc}\). From Fig. 4, one can find that the dark matter density has a very little influence on the black hole shadow.

6 Conclusion

The abundance of dark matter in our universe is substantial, leading us to consider a black hole enveloped by dark matter. Our research involves a link of the spherically symmetric Schwarzschild black hole with the pseudo-isothermal halo profile, resulting in a spherically symmetric black hole metric surrounded by dark matter. Observations of black hole photos taken by EHT and gravitational wave events have shown that black holes likely possess spin. To account for this, we employ the Newman-Janis method to derive a rotating black hole surrounded by the pseudo-isothermal halo, which brings us closer to a black hole solution akin to those in the real universe.

Our investigation delves into the effects of the pseudo-isothermal halo profile on the black hole event horizon, time-like and null orbits, and the shadow of the rotating black hole. We find that as the spin parameter a increases, the interval between the inner event horizon and the outer event horizon of the rotating black hole surrounded by the pseudo-isothermal halo in M87 diminishes, yielding eventually the formation of an extreme black hole. Moreover, our research reveals that the presence of dark matter has minimal impact on the event horizon. However, as the spin parameter a increases, the shadow of the rotating black hole surrounded by the pseudo-isothermal halo in M87 deviates increasingly from a standard circle, with larger spin parameters causing more pronounced distortion relative to the standard circle.

Interestingly, the dark matter density appears to have very little influence on the black hole shadow. The shadows we observe suggest that dark matter density does not significantly affect the black hole shadow, even with varying densities. The observed shadow images closely resemble those of the Kerr black hole, even in the presence of dark matter, indicating that dark matter has minimal influence on the shadow. This raises the question of whether gravitational waves emitted by the rotating black hole surrounded by the pseudo-isothermal halo would also be challenging to distinguish from those of the Kerr black hole. A relatively important stage in the gravitational wave signal is the quasinormal mode, and it carries the unique characteristics of the background spacetime. Therefore, it is necessary to further study the quasinormal mode of these black holes surrounded by the pseudo-isothermal halo. We intend to explore the quasinormal mode of the rotating black hole surrounded by the pseudo-isothermal halo in M87, which will be presented in a future work. The insights gained from gravitational waves and shadow observations hold the potential to guide experimental detection efforts.