1 Introduction

The gravity theory with higher-curvature term, the so-called Lovelock gravity, is one of the natural generalizations of Einstein’s general relativity, introduced originally by Lanczos [1], and rediscovered by Lovelock [2]. The action of it contains higher-order curvature terms and that reduces to the Einstein–Hilbert action in four-dimensions, and its second-order term is the Gauss–Bonnet invariant. The Lovelock theories have some special characteristics, among the larger class of general higher-curvature theories, in having field equations involving not more than second derivatives of the metric. As higher-dimensional members of Einstein’s general relativity family, the Lovelock theories allow us to explore several conceptual issues of gravity in a broader setup. Hence, these theories have received significant attention, especially when finding black hole solutions. Besides, the theory is well known to be free of ghosts about other exact backgrounds [3,4,5]. The theory represents a very interesting scenario to study how higher-order curvature corrections to the black hole physics substantially change the qualitative features, as we know from our experience with black holes in general relativity. Since its inception, steadily attention has been given to black hole solutions, including their formation, stability, and thermodynamics. The spherically symmetric static black hole solution for the Einstein–Gauss–Bonnet theory was first obtained by Boulware and Deser [3,4,5], and later several authors explored exact black hole solutions and their thermodynamical properties [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]. The generalization of the Boulware-Desser solution has been obtained with a source as a cloud of strings, in Einstein–Gauss–Bonnet gravity [24, 25], and also in Lovelock gravity [26,27,28].

The intense activity of studying black hole solutions in Einstein–Gauss–Bonnet theory of gravity is due to the fact that we have, besides theoretical results, cosmological evidence, e.g., dark matter and dark energy. Quintessence is a hypothetical form of dark energy postulated as an explanation of the observation for an acceleration of the Universe, rather than due to a true cosmological constant. If quintessence exists all over in the Universe, it can also be around a black hole. In this letter, we are interested in a solution to the Einstein equations with the assumption of spherical symmetry, with the quintessence matter obtained by Kiselev [29], and it was also rigorously analyzed by himself and others [29,30,31,32,33,34]. In particular, spherically symmetric quintessence black hole solutions [29] have been extended to higher dimensions [35], to include Narai solutions [36, 37], and also charged black holes [38]. The black hole thermodynamics for the quintessence corrected solutions was obtained in [39,40,41,42,43] and quasinormal modes of such solutions are also discussed [44,45,46,47]. The generalization of the spherical quintessential solution [29] to the axially symmetric case, Kerr-like black hole, was also addressed, recently [48, 49]. However, the solution of the Einstein–Gauss–Bonnet theory surrounded by quintessence matter is still not explored, i.e., the black holes surrounded by the quintessence matter in Einstein–Gauss–Bonnet theory is still unknown. It is the purpose of this letter to obtain an exact new five-dimensional (5D) spherically symmetric black holes solution for the Einstein–Gauss–Bonnet gravity surrounded by quintessence matter. In particular, we explicitly show how the effect of a background quintessence matter can alter black hole solutions and their thermodynamics. In turn, we analyze their thermodynamical properties and perform a thermodynamic stability analysis.

The letter is organized as follows. In Sect. 2, we derive a Einstein–Gauss–Bonnet solution to the 5D spherically symmetric static Einstein equations surrounded by the quintessence matter. In Sect. 3, we discuss the thermodynamics of the 5D Einstein–Gauss–Bonnet black holes surrounded by the quintessence matter. The letter ends with concluding remarks in Sect. 4.

We use units which fix the speed of light and the gravitational constant via \(G = c = 1\), and use the metric signature (\(-,+,+,+,+\)).

2 Quintessence matter surrounding black hole

Lovelock theory is an extension of the general relativity to higher-dimensions. In this theory the first- and second-order terms correspond to general relativity and Einstein–Gauss–Bonnet gravity, respectively. The action for 5D Einstein–Gauss–Bonnet gravity with a matter field reads

$$\begin{aligned} \mathcal {I}_{G}=\frac{1}{2}\int _{\mathcal {M}}\mathrm{d}^{5}x\sqrt{-g}\left[ \mathcal {L}_{1} +\alpha \mathcal {L}_\mathrm{{GB}} \right] + \mathcal {I}_{S}, \end{aligned}$$
(1)

with \(\kappa _5 =1\). \(\mathcal {I}_{S}\) denotes the action associated with matter and \(\alpha \) is coupling constant that we assume to be non-negative. The Einstein term is \( \mathcal {L}_1 = R\), and the second-order Gauss–Bonnet term \(\mathcal {L}_\mathrm{{GB}}\) is

$$\begin{aligned} \mathcal {L}_\mathrm{{GB}}=R_{\mu \nu \gamma \delta }R^{\mu \nu \gamma \delta }-4R_{\mu \nu }R^{\mu \nu }+R^{2}. \end{aligned}$$
(2)

Here, \(R_{\mu \nu }\), \(R_{\mu \nu \gamma \delta \text {}}\), and R are the Ricci tensor, Riemann tensor, and Ricci scalar, respectively. The variation of the action with respect to the metric \(g_{\mu \nu }\) gives the Einstein–Gauss–Bonnet equations

$$\begin{aligned} G_{\mu \nu }^\mathrm{{E}}+\alpha G_{\mu \nu }^\mathrm{{GB}}=T_{\mu \nu }^{S}, \end{aligned}$$
(3)

where \(G_{\mu \nu }^\mathrm{{E}}\) is the Einstein tensor, while \(G_{\mu \nu }^\mathrm{{GB}}\) is given explicitly by [50]

$$\begin{aligned} G_{\mu \nu }^\mathrm{{GB}}= & {} 2 \Big [ -R_{\mu \sigma \kappa \tau }R_{\quad \nu }^{\kappa \tau \sigma }-2R_{\mu \rho \nu \sigma }R^{\rho \sigma } \nonumber \\&\quad -\,2R_{\mu \sigma }R_{\ \nu }^{\sigma } + \, RR_{\mu \nu }\Big ] -\frac{1}{2}\mathcal {L} _\mathrm{{GB}}g_{\mu \nu }, \end{aligned}$$
(4)

and \(T^S_{\mu \nu }\) is the energy-momentum tensor of the matter that we consider as a quintessence matter. We note that the divergence of the Einstein–Gauss–Bonnet tensor \(G_{\mu \nu }^\mathrm{{GB}}\) vanishes. Here, we want to obtain 5D static spherically symmetric solutions of Eq. (3) surrounded by the quintessence matter and investigate its properties. We assume that the metric has the form [18, 19, 28]

$$\begin{aligned} \mathrm{d}s^2 = -f(r) \mathrm{d}t^2+ \frac{1}{f(r)} \mathrm{d}r^2 + r^2 \tilde{\gamma }_{ij}\; \mathrm{d}x^i\; \mathrm{d}x^j, \end{aligned}$$
(5)

where \( \tilde{\gamma }_{ij} \) is the metric of a 3D constant curvature space \(k = -1, 0, \) or 1. In this letter, we shall restrict ourselves to \(k = 1\). Using this metric ansatz, the Einstein–Gauss–Bonnet equation (3) reduces to

$$\begin{aligned} T^t_t= & {} T^r_r= \frac{3}{2r^2} [r f' + 3 (f-1)] - \frac{6 \alpha }{r^3} [(f-1)f'], \nonumber \\ T^{\theta }_{\theta }= & {} T^{\phi }_{\phi } = T^{\psi }_{\psi } = \frac{1}{2r^2} \left[ r^2f''+4rf'+2(f-1)\right] \nonumber \\&- \, \frac{\alpha }{r^2} \left[ 2 (f-1)f''+2f'^2\right] . \end{aligned}$$
(6)

The energy-momentum tensor of the quintessence matter (see Ref. [29] for further details) gets modified to

$$\begin{aligned} T^t_t= & {} \rho (r), \nonumber \\ T^b_a= & {} \rho (r) \beta \left[ -(1+ 4 B(r)) \frac{r_ar^b}{r_nr^n}+ B(r) \delta _a^b \right] , \end{aligned}$$
(7)

where B(r) is a quintessential parameter; we have

$$\begin{aligned} \langle T^b_a \rangle = \rho (r) \frac{\beta }{4} \delta ^b_a = -p(r) \delta ^b_a \end{aligned}$$
(8)

and

$$\begin{aligned} \left\langle r_ar^b = \frac{1}{4} r_nr^n \right\rangle . \end{aligned}$$

Thus, we have the equation of state of the form

$$\begin{aligned} p=\omega \rho , \quad \omega =\frac{1}{4} \beta , \end{aligned}$$
(9)

where for the quintessential matter \(-1<\omega <0 \), which implies \(-4< \beta < 0\) within this set up, the parameter B of the energy-momentum tensor reads [35]

$$\begin{aligned} B = -\frac{4\omega +1}{\omega }. \end{aligned}$$
(10)

Hence, the energy-momentum tensor for a quintessence matter takes the form

$$\begin{aligned} T^t_t= & {} T^r_r= \rho , \nonumber \\ T^{\theta }_{\theta }= & {} T^{\phi }_{\phi } = T^{\psi }_{\psi } = - \frac{1}{3} \rho (4\omega +1), \end{aligned}$$
(11)

where \(\rho \) is the proper density of the quintessence matter. The range of the parameters \(\omega \) and \(\beta \) gets modified in 5 dimensions.

The Gauss–Bonnet term is the only possibility for the leading correction to Einstein general relativity. The static spherically symmetric black hole solution of Einstein action, modified by the Einstein–Gauss–Bonnet term, was first obtained by Boulware and Deser [3,4,5] and demonstrated that the only spherically symmetric solution to the Einstein–Gauss–Bonnet theory is a Schwarzschild type solution. Later, Wiltshire [51] included the Maxwell field into the Einstein–Gauss–Bonnet action and found the charged black hole in this theory, which was a generalization of the Reissner–Nordström black hole. In general, it is difficult to find a solution of Einstein–Gauss–Bonnet field equations (3) with an equation of state. Here, we shall find a black hole solution surrounded by the quintessence matter with the equation of state (9). Making use of Eqs. (6) and (11), we deduce the master equation for the Einstein–Gauss–Bonnet gravity as

$$\begin{aligned}&[r^2 f''(r) + (5+4 \omega )rf'(r)+2(2+4\omega )(f(r)-1)]r \nonumber \\&\quad - \, \alpha [4rf''(r)(f(r)-1)\nonumber \\&\quad + \,4[rf'(r) +(1+ 4 \omega )(f(r)-1)f'(r)]] =0. \end{aligned}$$
(12)
Fig. 1
figure 1

Plot of metric function f(r) vs. r for the 5D Einstein–Gauss–Bonnet black hole surrounded by the quintessence matter

In general, Eq. (12) has one real and two complex solutions. It may have three real solutions as well under some conditions. Here, we consider only the real solution. Interestingly, Eq. (12), for the Einstein–Gauss–Bonnet case, admits a general solution

$$\begin{aligned} f_{\pm }(r) = 1+\frac{r^{2}}{4{\alpha }}\left( 1\pm \sqrt{1+\frac{8\alpha M}{r^{4}} +\frac{8\alpha q}{r^{4\omega +4}}}\right) , \end{aligned}$$
(13)

by appropriately relating M and q with integrating constants \(c_1\) and \(c_2\) [25]. Equation (13) is an exact solution of the field equation (12) for an equation of state (9), which in the case of there being no quintessence, \(\omega =0\); it reduces to the Boulware and Deser [3,4,5] Gauss–Bonnet black hole solution, and for \(\omega =1/2\) and \(q= - 4Q^2/3\) to a solution mathematically similar to the charged Gauss–Bonnet black hole due to Wiltshire [51]. When \(\omega =-1, q=\Lambda /3\), Eq. (13) corresponds to a Gauss–Bonnet de Sitter solution. In the limit \(\alpha \rightarrow 0\), the negative branch of the solution (13) reduces to the general relativity solution. To study the general structure of the solution (13), we take the limit \(r\rightarrow \infty \) or \(M=q=0\) in the solution (13) to obtain

$$\begin{aligned} \lim _{r\rightarrow \infty } f_+(r)= 1+\frac{r^2}{2\alpha },\;\;\; \lim _{r\rightarrow \infty } f_-(r)= 1; \end{aligned}$$
(14)

this means the plus (\(+\)) branch of the solution (13) is asymptotically de Sitter (anti-de Sitter) depending on the sign of \(\alpha \) \((\pm )\), whereas the minus branch of the solution (13) is asymptotically flat. In the large r limit (or \(\alpha \rightarrow 0\)), Eq. (13) reduces to the 5D Schwarzschild solution surrounded by the quintessence matter. Thus, the negative branch solution (13) is well behaved and it represents a short distance correction to the 5D black hole solution of general relativity. In a similar way, when \(M=0\), the solution (13) takes the form

$$\begin{aligned} f_{\pm }(r) = 1+\frac{r^{2}}{4{\alpha }}\left( 1\pm \sqrt{1 +\frac{8\alpha q}{r^{4\omega +4}}}\right) . \end{aligned}$$
(15)

Obviously, by a proper choice of the constants M, q, and the parameter \(\omega \), one can generate many other known solutions. The above solutions include most of the known spherically symmetric solutions of the Einstein–Gauss–Bonnet field equations (3).

3 Thermodynamics

In this section, we shall discuss the thermodynamical properties of 5D quintessential black hole within the Einstein–Gauss–Bonnet framework. Henceforth, we shall restrict ourselves to the negative branch of the solution (13). By definition of a horizon, the value of \(r=r_+ \) is an event horizon when \(f(r_+)=0\). This is shown in Fig. 1, by plotting f(r) as a function of r. It is interesting to note that the black holes admit only one horizon and the radius of the horizon increases with the value of the quintessence matter parameter \(\omega \). Next, we explore the thermodynamics of the black hole solution (13) surrounded by the quintessence matter in the Einstein–Gauss–Bonnet framework. The Einstein–Gauss–Bonnet black holes surrounded by the quintessence matter are characterized by their mass (M) and a quintessence matter parameter (\(\omega \)). From Eq. (13), the mass of the black hole is obtained in terms of the horizon radius (\(r_+\)):

$$\begin{aligned} M_{+}^{\text{ EGB }} = r_{+}^2\left( 1-\frac{q}{r_{+}^{4\omega +2}} +\frac{2\alpha }{r_{+}^2}\right) . \end{aligned}$$
(16)
Fig. 2
figure 2

Plot showing the behavior of mass \(M_+^{\text{ EGB }}\) vs. horizon radius \(r_+\) for 5D Einstein–Gauss–Bonnet black hole surrounded by the quintessence matter

The mass of the black hole is plotted in Fig. 2 for various values of the parameters \(\omega \) and \(\alpha \), which shows an increase in the black hole mass with horizon radius \(r_+\). To discuss the thermodynamics of the metric (5) with the function (13), we start with the Hawking temperature. The Hawking temperature associated with the black hole is defined by \(T=\kappa /2\pi \), where \(\kappa \) is the surface gravity defined by [23, 28],

$$\begin{aligned} \kappa ^{2}=-\frac{1}{4}g^{tt}g^{ij}g_{tt,i}\;g_{tt,j}. \end{aligned}$$
(17)

Hence, the Hawking temperature for the Einstein–Gauss–Bonnet black hole surrounded by the quintessence matter can be calculated as

$$\begin{aligned} T_+^{\text{ EGB }}= & {} \frac{1}{2 \pi r_{+}} \left[ \frac{1 +\frac{2q\omega }{r_{+}^{4\omega +2}}}{1+\frac{4\alpha }{r_{+}^2}}\right] . \end{aligned}$$
(18)

Note that the factor in the numerator of Eq. (18) modifies the Gauss–Bonnet black hole temperature [23, 28], and taking the limit \(q\rightarrow 0\), we recover the Gauss–Bonnet black hole temperature as

$$\begin{aligned} T_{+}^{\text{ EGB }} =\frac{1}{2\pi r_+}\left[ \frac{r_{+}^2}{r_{+}^2+4\alpha }\right] ; \end{aligned}$$
(19)

and when \(\alpha \rightarrow 0\), it becomes the temperature given by \(T_{+} =\frac{1}{2\pi r_+}\). It is interesting to note that, for a particular radius of the horizon, the Hawking temperature vanishes. The Hawking temperature diverges in general relativity as \(r_+ \rightarrow 0\). However, in the Einstein–Gauss–Bonnet case it remains finite, as shown in Fig. 3. Also, when \(q \ne 0\) and \(\alpha \ne 0\), the Hawking temperature has a peak, which decreases and shifts as \(\alpha \) increases or q increases (cf. Fig. 3).

Fig. 3
figure 3

The Hawking temperature (\( T_+^{{\mathrm{EGB}}} \)) vs. horizon radius \(r_+\) for different values of \(\alpha \) \(\omega \) with fixed \(q=0.1\) for the 5D Einstein–Gauss–Bonnet black hole surrounded by the quintessence matter

A black hole behaves as a thermodynamical system; quantities associated with it must obey the first law of thermodynamics [21]:

$$\begin{aligned} dM = T_{+}dS_{+}. \end{aligned}$$
(20)

Hence, the entropy [52] can be obtained from the integration

$$\begin{aligned} S_{+} = \int {T_+^{-1} \mathrm{d}M} = \int {T_+^{-1}\frac{\partial M}{\partial r_+} \mathrm{d}r_+}. \end{aligned}$$
(21)

Now, the entropy of Einstein–Gauss–Bonnet gravity black holes surrounded by quintessence matter reads

$$\begin{aligned} S_{+}^{\text{ EGB }} = \frac{4 \pi r_{+}^3}{3} + 16 \pi \alpha r_{+}. \end{aligned}$$
(22)

However, it is interesting to note that the entropy of the black hole has no effect of the quintessence matter parameter.

Next, let us calculate the Wald entropy for the 5D black hole (5) with f(r) is given by Eq. (13). Wald [53] showed that the black hole entropy can be calculated by

$$\begin{aligned} S_W = - \int _{\Sigma } \left( \frac{\partial \mathcal {L}}{\partial R_{abcd}}\right) \varepsilon _{ab} \varepsilon _{cd} \mathrm{d}V^2_3, \end{aligned}$$
(23)

where \(\mathrm{d}V_3\) is the volume element on \(\Sigma \) and the integral is performed on 3D space-like surface \(\Sigma \). \(\varepsilon _{ab}\) is the binormal vector to the surface \(\Sigma \) normalized as \(\varepsilon _{ab} \varepsilon ^{ab} = -2\), and \(\mathcal {L}\) is Lagrangian density as in (1). We note that the integrand can be calculated as

$$\begin{aligned} \frac{\partial \mathcal {L}}{\partial R_{abcd}}\varepsilon _{ab} \varepsilon _{cd} = -2- \frac{24 \alpha [1- f_{-}(r_+)]}{r_+^2}. \end{aligned}$$
(24)

On substituting Eq. (24) into Eq. (23), one obtains the Wald entropy of the 5D black hole (5) as

$$\begin{aligned} S_W= & {} \left[ 1 + \frac{12 \alpha [1- f_{-}(r_+)]}{r_+^2}\right] \int _{\Sigma } \mathrm{d}V^2_3, \nonumber \\= & {} \frac{4\pi r_+^3}{3}\left[ 1 + \frac{12 \alpha [1- f_{-}(r_+)]}{r_+^2}\right] , \nonumber \\= & {} \frac{4 \pi r_{+}^3}{3} + 16 \pi \alpha r_{+}, \end{aligned}$$
(25)

as \(f_{-}(r_+)=0\) and hence the Wald entropy equation (25) has exactly the same expression as obtained in Eq. (22). Furthermore, we verify that the 5D black hole (5) satisfies the first law of thermodynamics. The variation of the Wald entropy (25) with respect to the radius \(r_+\) gives

$$\begin{aligned} \mathrm{d}S_W= & {} 4\pi (r_+^2 + 4\alpha ), \end{aligned}$$
(26)

and the variation of the mass (16) leads to

$$\begin{aligned} \mathrm{d}M^\mathrm{{EGB}}_+= & {} 2r_+ \left( 1+ \frac{2 q \omega }{r_+^{4\omega +2}}\right) . \end{aligned}$$
(27)

Hence, with the help of Eqs. (18), (26) and (27), one can conclude that

$$\begin{aligned} \mathrm{d}M^\mathrm{{EGB}}_+ = T^\mathrm{{EGB}}_{+} \mathrm{d} S_W. \end{aligned}$$
(28)

Hence the first law of the black hole thermodynamics holds for a 5D black hole (5) with f(r) is given by Eq. (13).

Fig. 4
figure 4

The specific heat \( (C_+^{\text{ EGB }} )\) vs. horizon radius \(r_+\) for the 5D Einstein–Gauss–Bonnet black hole surrounded by the quintessence matter for different values of \(\omega \) and \(\alpha \)

Finally, we analyze how the quintessence matter influences the thermodynamic stability of the Einstein–Gauss–Bonnet black holes. The heat capacity of the black hole is defined as [21]

$$\begin{aligned} C_{+}= \frac{\partial {M}}{\partial {T_+}}= \frac{\partial {M}}{\partial {r_+}} \frac{\partial {r_+}}{\partial {T_+}}. \end{aligned}$$
(29)

The heat capacity of Einstein–Gauss–Bonnet black hole surrounded by quintessence matter, using Eqs. (16), (18), and (29), is given by

$$\begin{aligned} C_{+}^{\text{ EGB }}= & {} \frac{-4\pi r_{+}^3 \left[ 1 + \frac{2 q\omega }{r^{4\omega +2}}\right] (r_{+}^2+4\alpha )^2}{-4 \alpha r_{+}^2\left[ 1-\frac{2q\omega (1+4\omega )}{r_{+}^{4\omega +2}}\right] + r_{+}^4\left[ 1+\frac{2q\omega (3+4\omega )}{r^{4\omega +2}}\right] }.\nonumber \\ \end{aligned}$$
(30)

It is clear that the heat capacity depends on both the Gauss–Bonnet coefficient \(\alpha \) and the quintessence matter parameter \(\omega \). When \(\alpha \rightarrow 0\), it reduces to the general relativity case. If in addition \(q=0\), it becomes

$$\begin{aligned} C_+= & {} \frac{4\pi r_{+}^3 (r_{+}^2+4\alpha )^2}{4 \alpha r_{+}^2-r_{+}^4}, \end{aligned}$$
(31)

which is exactly same as the Einstein–Gauss–Bonnet case [23, 28]. We again recall that, for \(C>0\) (\(C<0\)), the black hole is thermodynamically stable (unstable). It is difficult to analyze the heat capacity analytically hence, we plotted it in Fig. 4, for different values of \(\alpha \) and \(\omega \). Again, we note that there is a change of sign in the heat capacity around \(r_C\), and C is discontinuous at \(r_+=r_C\). The heat capacity is positive for \(r_+<r_C\) and thereby suggests the thermodynamical stability of a black hole. On the other hand, the black hole is unstable for \(r_+>r_C\). Thus, the heat capacity of an Einstein–Gauss–Bonnet black hole, for different values of \(\omega \) and \(\alpha \), is positive for \(r_+ < r_C\), while for \(r_+>r_C\) it is negative. The phase transition occurs from a lower mass black hole with negative heat capacity to a higher mass black hole with positive heat capacity.

It may be noted that the critical radius \(r_C\) changes drastically in the presence of the quintessence matter, thereby affecting the thermodynamical stability. Indeed, the value of the critical radius \(r_C\) increases with the increase in the quintessence matter parameter \(\omega \) for a given value of the Gauss–Bonnet coupling constant \(\alpha \). Further, \(r_C\) is also sensitive to the Gauss–Bonnet parameter \(\alpha \) (cf. Fig. 4), and the critical parameter \(r_C\) also increases with \(\alpha \).

4 Conclusion

The Einstein–Gauss–Bonnet theory has a number of additional nice properties in addition to Einstein’s general relativity that are not enjoyed by other higher-curvature theories. Hence, Einstein–Gauss–Bonnet theory has received significant attention, especially when finding black hole solutions. We have obtained an exact 5D static spherically symmetric black hole solutions to Einstein–Gauss–Bonnet gravity surrounded by the quintessence matter. We then proceeded to find exact expressions, in Einstein–Gauss–Bonnet gravity, for the thermodynamical quantities like the black hole mass, Hawking temperature, entropy, specific heat and in turn also analyzed the thermodynamical stability of black holes. It turns out that due to the quintessence correction to the black hole solution, the thermodynamical quantities are also getting corrected except for the entropy, which does not depend on the background quintessence. The entropy of a black hole in Einstein–Gauss–Bonnet gravity does not obey the area law.

The phase transition is characterized by the divergence of the specific heat at a critical radius \(r_C\), which is changing with Gauss–Bonnet parameter \(\alpha \) as well as with w. In particular, the black hole is thermodynamically stable with a positive heat capacity for the range \(0< r < r_C\) and unstable for \(r>r_C\). It would be important to understand how these black holes with positive specific heat (\(C>0\)) would emerge from thermal radiation through a phase transition. We also discuss the phase transition of the black holes. The results presented here are a generalization of the previous discussions, on the Einstein–Gauss–Bonnet black hole, in a more general setting, and the possibility of a further generalization of these results to Lovelock gravity is an interesting problem for future research.