1 Introduction

The black hole is one of the most fascinating predictions of Einstein’s theory of General Relativity, which has been an adsorbent subject in theoretical physics for many years, and it has unknown issues yet. One of the most interesting aspects of studying black holes is thermodynamics. The studies of black holes as a thermodynamic system have started with the famous work of Hawking and Bekenstein [13], which is followed by other pioneering research of Padmanabhan [4, 5]. According to black hole thermodynamics, the thermodynamic quantities of a black hole such as entropy and temperature are related to its geometrical quantities such as the horizon area and surface gravity [2, 6]. In recent years, the research on the thermodynamic properties of the black holes has revealed a lot of interesting aspects. One of these aspects is the stability of black holes. The heat capacity of a black hole must be positive in order for it to be in thermal stability [710]. Studying the heat capacity of a black hole provides a mechanism to study the phase transitions of the black holes. There are two types of phase transition; in the first one, the changes in the sign of the heat capacity denote a type of phase transition, in other words, the roots of the heat capacity represent phase transition points, so we call these phase transitions type one. Another kind of phase transition is obtained from divergencies of the heat capacity. This kind of phase transition is called a phase transition of type two [710]. Some work on the normal thermodynamics of black holes shows that in many cases one cannot identify the detailed reasons for irregularities of mass, temperature, and heat capacity shown by the system. During the last few decades, many efforts have been made to introduce different concepts of geometry into ordinary thermodynamics. Hermann [11] defined the implication of thermodynamic phase space as a differential manifold with a natural contact structure, in which there exists a special subspace of thermodynamic equilibrium states. Weinhold introduced another geometric method in 1975 [12], in which a metric is defined in the space of equilibrium states of thermodynamic systems. Weinhold used the notion of conformal mapping from the Riemannian space to thermodynamic space. Weinhold’s metric is defined as the Hessian in the mass representation as follows:

$$\begin{aligned} g^{W}_{ij}=\partial _{i}\partial _{j}M(S,N^{r}), \end{aligned}$$
(1)

where M is the mass, S is the entropy, and \( N^{r} \) is for the other extensive variables of the system. After that, in 1979, Ruppeiner [13] defined a new metric which is the minus signed Hessian in the entropy representation and is given by

$$\begin{aligned} g^{R}_{ij}=-\partial _{i}\partial _{j}S(M,N^{r}). \end{aligned}$$
(2)

The Ruppeiner metric is conformally related to Weinhold’s metric as follows [14, 15]:

$$\begin{aligned} \mathrm{d}s^{2}_{R}=\frac{1}{T}\mathrm{d}s^{2}_{W}, \end{aligned}$$
(3)

where T is the temperature of the thermodynamic system.

Geometrothermodynamics (GTD) is the latest attempt in this way [16, 17]. Quevedo [16] introduced a general form of the Legendre invariant metric. The general form of the metric in GTD method is as follows:

$$\begin{aligned} g=\left( E^{c}\frac{\partial \varPhi }{\partial E^{c}}\right) \left( \eta _{ab}\delta ^{bc}\frac{\partial ^{2}\varPhi }{\partial E^{c}\partial E^{d}}\mathrm{d}E^{a}\mathrm{d}E^{d}\right) , \end{aligned}$$
(4)

in which

$$\begin{aligned} \frac{\partial \varPhi }{\partial E^{c}}=\delta _{cb}I^{b}, \end{aligned}$$
(5)

where \( E^{a} \) and \( I^{b} \) are the extensive and intensive thermodynamic variables and \( \varPhi \) is the thermodynamic potential.

There were some alternative and extended theories for General Relativity from the beginning [1822]. Some of new versions of these theories are trying to justify some observed anomalies on galactic scales (dark matter) and cosmological scales (dark energy) which leads one to reinforce them, such as scalar-tensor theories, brane world cosmology, Lovelock gravity, and f(R) gravity. Many different aspects, such as cosmic inflation, cosmic acceleration, dark matter, correction of the solar system abnormalities, and also the geodesic motion of test particles have been studied in f(R) gravity [2254].

The main purpose of this paper is to investigate that the thermodynamic geometric methods can be used to explain thermodynamics of black holes in f(R) gravity, and it is organized as follows. In Sect. 2, we review a static black hole in f(R) gravity, then we study the thermodynamic behavior and thermodynamic geometry methods for this black hole. In Sect. 3, also we review a static charged black hole in f(R) gravity and study the thermodynamic behavior and thermodynamic geometry methods for it. In Sect. 4, we review a rotating charged black hole in f(R) gravity, then we investigate the thermodynamic behavior and thermodynamic geometry methods for it, as well, and with the final results we conclude in Sect. 5.

2 Static black hole in f(R) gravity

In this section, we study the field equations for a static black hole in f(R) gravity. The action depending on the Ricci scalar in a generic form is

$$\begin{aligned} S=\frac{1}{2k}\int \mathrm{d}^{4}{x}\sqrt{-g}f(R)+S_{m}. \end{aligned}$$
(6)

Varying the action with respect to the metric results in the field equations:

$$\begin{aligned} F(R)R_{\mu \nu }-\frac{1}{2}f(R)g_{\mu \nu }-(\nabla _{\mu }\nabla _{\nu } -g_{\mu \nu }\square )F(R)=kT_{\mu \nu },\nonumber \\ \end{aligned}$$
(7)

where \( F(R)=\frac{\mathrm{d}f(R)}{\mathrm{d}r} \) and \( \square =\nabla _{\alpha }\nabla ^{\alpha }\).

The generic form of the metric of the spherically symmetric spacetime we are considering is

$$\begin{aligned} \mathrm{d}s^{2}=-B(r)\mathrm{d}t^{2}+A(r)\mathrm{d}r^{2}+r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\varphi ^{2}), \end{aligned}$$
(8)

where \(A(r)=B(r)^{-1}\). The model employed for f(R) gravity is given by

$$\begin{aligned} f(R)=R+\varLambda +\frac{R+\varLambda }{R/R_0 + 2/\alpha }\ln \frac{R+\varLambda }{R_c}, \end{aligned}$$
(9)

in which \(R_c\) is a constant of integration and \(R_0=6{\alpha }^2/d^2\), where \(\alpha \) and d, are free parameters of the action, and also \(\varLambda \) is the cosmological constant. The metric solution up to the first order in the free parameters of the action is obtained: \(B(r)=1-\frac{2m}{r}+\beta r-\frac{1}{3}\varLambda {r}^{2}\), where \(\beta =\alpha /d\ge 0\) is a real constant [51, 53].

2.1 Thermodynamic

In this section, we study the thermodynamic properties of this black hole. We could find the mass of the black hole M in terms of its entropy S, and the radius of curvature of the de Sitter space l , where l is related to the cosmological constant \(\varLambda \), through the relation [55]

$$\begin{aligned} \varLambda =\frac{3}{l^{2}}. \end{aligned}$$
(10)

Using the relation between the entropy S and the radius of the event horizon \(r_{+}\), \( (S=\pi r^{2}_{+})\), we can write the mass

$$\begin{aligned} M(S,l,\beta )=\frac{l^{2}\pi ^{\frac{1}{2}}\beta S+l^{2}\pi S^{\frac{1}{2}}-S^{\frac{3}{2}}}{2l ^{2}\pi ^{\frac{3}{2}}}. \end{aligned}$$
(11)

The other thermodynamic parameters can be calculated by using the above expression as the temperature \((T=\frac{\partial M}{\partial S})\) and the heat capacity \((C=T\frac{\partial S}{\partial T})\) as a function of S, l, and \(\beta \),

$$\begin{aligned} T= & {} \frac{2\beta l^{2}\pi ^{\frac{1}{2}}S^{\frac{1}{2}}-3S+l^{2}\pi }{4l^{2}\pi ^{\frac{3}{2}}S^{\frac{1}{2}}},\end{aligned}$$
(12)
$$\begin{aligned} C= & {} -\frac{4\beta l^{2}\pi ^{\frac{1}{2}}S^{\frac{3}{2}}-6S^{2}+2l^{2}\pi S}{l^{2}\pi +3S}. \end{aligned}$$
(13)

We have obtained three thermodynamic parameters of this black hole and plotted all of them in terms of the radius of the horizon \(r_{+}\) (see Figs. 1, 2, and 3).

Fig. 1
figure 1

Mass variation of a static black hole in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( \beta =10^{-4} \)

Fig. 2
figure 2

Temperature variation of a static black hole in terms of the radius of the horizon \( r_{+} \) for \( l =4.0 \), \( \beta =10^{-4} \)

Fig. 3
figure 3

Heat capacity variation of a static black hole in terms of the radius of the horizon \( r_{+} \) for \( l =4.0 \), \( \beta =10^{-4} \)

In Fig. 1, it can be seen that the mass of the black hole becomes zero at two points, \(r_{+}=r_{01}\) and \(r_{+}=r_{02}\) (we show the zero points of mass with \( r_{01} \) and \( r_{02} \)), in which \( r_{01}=0 \) and \( r_{02}=4.0 \), and it reaches a maximum value at \(r_{+}=r_{m}\) (we show the place of the maximum value of the mass by \( r_{m} \)), which is equal to 2.31. Also, it can be observed from Fig. 2 that the temperature is positive only in a particular range of \(r_{+}\), then it reaches zero at \(r_{+}=r_{m}\) and, after that, it falls into the negative region, in which it has no physical meaning. Finally, by plotting the heat capacity of the black hole in terms of the radius of the horizon, \(r_{+}\), in Fig. 3, we have shown that this black hole has a phase transition of type one, in other words, in the range of \( 0<r_{+}<r_{m} \), the heat capacity is in the negative region (unstable phase), then at \( r_{+}=r_{m} \), we have a phase transition of type one (\( C(r_{+}=r_{m})=0) \), after that for, \( r_{+}>r_{m} \), it will be positive (stable).

2.2 Thermodynamic geometry

Now, we construct the geometric structure for this black hole by applying the geometric technique of Weinhold, Ruppeiner, and GTD metrics of the system. In this case, the extensive variables are \(N^{r}=(l, \beta )\). According to Eq. (1), we can write the Weinhold metric for this system as

$$\begin{aligned}&g^{W}_{i j}=\partial _{i}\partial _{j}M(S,l, \beta ),\end{aligned}$$
(14)
$$\begin{aligned}&\mathrm{d}s^{2}_{W}=M_{SS}\mathrm{d}S^{2}+M_{l l}\mathrm{d}l^{2} +M_{\beta \beta }\mathrm{d}\beta ^{2}\nonumber \\&2M_{Sl}\mathrm{d}S\mathrm{d}l +2M_{S\beta }\mathrm{d}S\mathrm{d}\beta +2M_{l\beta }\mathrm{d}l \mathrm{d}\beta , \end{aligned}$$
(15)

therefore

$$\begin{aligned} g^{W}=\begin{bmatrix} M_{SS}&\quad M_{Sl}&\quad M_{S\beta }\\ M_{l S}&\quad M_{l \alpha }&\quad 0\\ M_{\beta S}&\quad 0&\quad 0 \end{bmatrix}. \end{aligned}$$
(16)

The components of the above matrix can be found using the expression of M, given in Eq. (11). We could calculate the curvature scalar of the Weinhold metric as

$$\begin{aligned} R^{W}=0, \end{aligned}$$
(17)

so the Weinhold structure is flat for this black hole and we cannot explain the phase transition of this thermodynamic system. Now, we use the Ruppeiner method, which is conformally transformed to the Weinhold metric. The Ruppeiner metric is given by

$$\begin{aligned} \mathrm{d}s^{2}_{R}=\frac{1}{T}\mathrm{d}s^{2}_{W}. \end{aligned}$$
(18)

The corresponding matrix with the metric components of the Ruppeiner method is as follows:

$$\begin{aligned} g^{R}=\left( \frac{1}{T}\right) \begin{bmatrix} M_{SS}&\quad M_{Sl}&\quad M_{S\beta }\\ M_{l S}&\quad M_{ll}&\quad 0\\ M_{\beta S}&\quad 0&\quad 0 \end{bmatrix}, \end{aligned}$$
(19)

which is equal to

$$\begin{aligned} g^{R}=\left( \frac{4l^{2}\pi ^{\frac{3}{2}}S^{\frac{1}{2}}}{2l^{2} \pi ^{\frac{1}{2}}S^{\frac{1}{2}}\beta -3S+l^{2}\pi }\right) \begin{bmatrix} M_{SS}&\quad M_{Sl}&\quad M_{S\beta }\\ M_{l S}&\quad M_{ll}&\quad 0\\ M_{\beta S}&\quad 0&\quad 0 \end{bmatrix}.\nonumber \\ \end{aligned}$$
(20)

The curvature of the Ruppeiner metric is obtained:

$$\begin{aligned} R^{R}=\frac{4S^{\frac{5}{2}}l^{2}\pi ^{\frac{1}{2}}\beta -13S^{\frac{5}{2}}\pi ^{\frac{1}{2}}l^{2}\beta -3S^{\frac{5}{2}}\pi ^{\frac{1}{2}}l^{2}\beta -11S^{2}l^{2}\pi +3S^{3}}{4S^{3}(2S^{\frac{1}{2}}\pi ^{\frac{1}{2}}l^{2}\beta -3S+l^{2}\pi )},\nonumber \\ \end{aligned}$$
(21)

which is singular at \(S=0\) and \(S=\frac{1}{3}l^{2}\pi (2\beta l (\frac{1}{3}l\beta +\frac{1}{3}\sqrt{l^{2}\beta ^{2}+3})+1)\); for each solution of S , there exists a pair of \(r_{+}\), \((r_{+}=\pm \sqrt{\frac{S}{\pi }})\), which can explain the zero points in this thermodynamic system. We avoid the negative values of this solution because it gives imaginary and negative roots. The values of these zero points are \(r_{+}=0\) and \(r_{+}=r_{m}\). It is completely coincident with the zero point of the temperature and the heat capacity (the phase transition point) of this black hole. The curvature scalar of the Ruppeiner metric for this black hole with respect to the radius of the horizon, \( r_{+} \), is demonstrated in Fig. 4.

Fig. 4
figure 4

Variation of the Ruppeiner metric in terms of the radius of the horizon \( r_{+} \) for \(l =4.0\), \(\beta =10^{-4}\)

Plot of scalar curvature of Ruppeiner metric and heat capacity, in terms of \( r_{+} \) are shown in Fig. 5. It can be seen from Fig. 5 that singular points of scalar curvature are coincident with the zero point of the heat capacity. Finally, we construct the most important metric in the GTD method, in which a Legendre invariant potential is being used. The metric for this thermodynamic system, according to Eq. (4), is as follows:

$$\begin{aligned} g^{\mathrm{GTD}}=(SM_{S}+l M_{l}+\beta M_{\beta })\begin{bmatrix} -M_{SS}&\quad 0&\quad 0\\ 0&\quad M_{ll}&\quad 0\\ 0&\quad 0&\quad 0 \end{bmatrix}. \end{aligned}$$
(22)

We cannot obtain the corresponding curvature scalar with this metric, because the metric determinant is zero, so the inverse of the metric is infinite. Legendre invariance guarantees that the geometric properties of the metric do not depend on the thermodynamic potential used in its construction. Thus, we consider the entropy as the thermodynamical potential [56], and we obtain a new metric using the entropy representation:

$$\begin{aligned} g^{\mathrm{GTD}}=(MS_{M}+l S_{l}+\beta S_{\beta })\begin{bmatrix} -S_{MM}&\quad 0&\quad 0\\ 0&\quad S_{ll}&\quad S_{l\beta }\\ 0&\quad S_{\beta l}&\quad S_{\beta \beta } \end{bmatrix}. \end{aligned}$$
(23)

We use the condition \( M^{2}l^{4}\gg l^{6} \) to obtain the curvature scalar of this metric, also \( \beta \ge 0.45 \) will satisfy this condition. Since the corresponding curvature scalar equation is too large, we demonstrate it in Fig. 6.

It can be seen from Fig. 6 that the curvature scalar of GTD is singular at \( r_{+}=9.21 \). If we plot the heat capacity with this value of \( \beta \), we see that it will be zero at \( r_{+}=5.37 \) (see Fig. 7).

Fig. 5
figure 5

Curvature scalar variation of Ruppeiner metric (blue continuous line) and the heat capacity of a static black hole (green dash line) in terms of the radius of the horizon \( r_{+} \), for \(l =4.0\), \(\beta =10^{-4}\)

Fig. 6
figure 6

Variation of curvature scalar of GTD in terms of the radius of the horizon of the black hole \( r_{+} \), for \( l=4.0 \) and \( \beta =0.45 \)

As can be observed from Figs. 6 and 7, the singular point of the curvature scalar is not coincident with a zero point of the heat capacity, so, in this case we cannot find any physical information as regards the system from the GTD method.

Now, at the end of this section, we investigate the effect of changes in the value of \( \beta \) and l , the parameters on the phase transition points. It is clear from Fig. 8, by a decreasing value of \( \beta \), that we do not have any changing in the numbers of phase transitions, but the place will decrease. In Fig. 9a, we find that, for small values of l , the system has phase transition of type one, but for a large value of l, the system is in the unstable phase and it has no phase transition (see Fig. 9b).

Fig. 7
figure 7

Heat capacity variation of a static black hole in terms of the radius of the horizon \( r_{+} \), for \( l =4.0 \) and \( \beta =0.45 \)

Fig. 8
figure 8

Curvature scalar variation of Ruppeiner metric (blue continuous line) and the heat capacity of a static black hole (green dash line) in terms of \( r_{+} \), for \( l=4.0 \) and \( \beta =0.25 \), \( \beta =10^{-4}\), \(\beta =10^{-15} \), for a, b and c, respectively

Fig. 9
figure 9

Curvature scalar variation of Ruppeiner metric (blue continuous line) and the heat capacity of a static black hole (green dash line) in terms of \( r_{+} \) for \( \beta =10^{-4} \), and \( l=4.0 \), \( l=\sqrt{3\times 10^{15}} \), for a and b, respectively

In the next section, we investigate the static charged black hole in f(R) gravity.

3 Static charged black hole in f(R) gravity

In this section, we describe the metric and the field equations of a static charged black hole in f(R) gravity. Here, the action for f(R) gravity, with a Maxwell term in four dimensions, is

$$\begin{aligned} S=\frac{1}{16\pi G}\int \mathrm{d}^{4}{x}\sqrt{-g}(R+f(R)-F_{\mu \nu }F^{\mu \nu }). \end{aligned}$$
(24)

We vary the action with respect to the metric results in the field equations as:

$$\begin{aligned}&R_{\mu \nu }(1+f'(R))-\frac{1}{2}(R+f(R))g_{\mu \nu }\nonumber \\&\quad +(g_{\mu \nu }\nabla ^{2}-\nabla _{\mu }\nabla _{\nu })f'(R)=2T_{\mu \nu }, \end{aligned}$$
(25)

where \( T_{\mu \nu } \) is the stress-energy tensor of the electromagnetic field, which is given by

$$\begin{aligned} T_{\mu \nu }=F_{\mu \rho }F_{\nu }^{\rho }-\dfrac{g_{\mu \nu }}{4}F_{\rho \sigma }F^{\rho \sigma }, \end{aligned}$$
(26)

with

$$\begin{aligned} T^{\mu }_{\,\,\mu }=0, \end{aligned}$$
(27)

\(R_{\mu \nu }\) is the Ricci tensor, and \(\nabla \) is the usual covariant derivative. The trace of Eq. (25), for \(R=R_{0}\), yields

$$\begin{aligned} R_{0}(1+f'(R_{0}))-2(R_{0}+f(R_{0}))=0, \end{aligned}$$
(28)

which determines the negative constant curvature scalar as

$$\begin{aligned} R_{0}=\dfrac{2f(R_{0})}{f'(R_{0})-1}. \end{aligned}$$
(29)

Using Eqs. (25)–(29), the Ricci tensor is

$$\begin{aligned} R_{\mu \nu }=\dfrac{1}{2}\left( \dfrac{f(R_{0})}{f'(R_{0})-1}\right) g_{\mu \nu } +\dfrac{2}{(1+f'(R_{0}))}T_{\mu \nu }. \end{aligned}$$
(30)

Finally, the metric of the spherically symmetric spacetime is given by

$$\begin{aligned} \mathrm{d}s^{2}=N(r)\mathrm{d}t^{2}-N(r)^{-1}\mathrm{d}r^{2}-r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\varphi ^{2}), \end{aligned}$$
(31)

with

$$\begin{aligned} N(r)=1-\frac{2GM}{r}+\frac{Q^{2}}{(1+f^{'}(R_{o}))r^{2}}-\frac{1}{12}R_{0}{r}^{2}. \end{aligned}$$
(32)

For a general discussion of this metric, see Ref. [57]. In the following, we consider \( G=1 \), and \( q^{2}=\frac{Q^{2}}{(1+f^{'}(R_{o}))} \), therefore we have

$$\begin{aligned} \mathrm{d}s^{2}= & {} \left( 1-\frac{2M}{r}+\frac{q^{2}}{r^{2}}-\frac{1}{12}R_{0}{r}^{2}\right) \mathrm{d}t^{2}\nonumber \\&-\left( 1-\frac{2M}{r}+\frac{q^{2}}{r^{2}}-\frac{1}{12}R_{0}{r}^{2} \right) ^{-1}\mathrm{d}r^{2}\nonumber \\&-\,r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\varphi ^{2}), \end{aligned}$$
(33)

where \( R_{0}=4\varLambda \), in which \( \varLambda \) is the cosmological constant and q is the electrical charge.

3.1 Thermodynamic

In this section we investigate the thermodynamic properties of this black hole. By solving Eq. (32) in terms of \(r_{+}\) \((N(r_{+})=0)\) and, using the relation between the entropy S and the radius of the horizon \(r_{+}\), the mass of this black hole will be obtained in terms of the entropy, charge, and the radius of the de Sitter space, as below:

$$\begin{aligned} M(S,l,q)=\frac{l^{2}\pi ^{2}q^{2}+l^{2}\pi S-S^{2}}{2l^{2}\pi ^{\frac{3}{2}}S^{\frac{1}{2}}}. \end{aligned}$$
(34)

In the following, we can straightforwardly write the temperature, the electrical potential, and the heat capacity of the black hole, from the first law of thermodynamic as follows:

$$\begin{aligned}&\mathrm{d}M=T\mathrm{d}S+\varPhi \mathrm{d}q,\end{aligned}$$
(35)
$$\begin{aligned}&T=\frac{l^{2}\pi S-l^{2}\pi ^{2}q^{2}-3S^{2}}{4l^{2}\pi ^{\frac{3}{2}}S^{\frac{3}{2}}},\end{aligned}$$
(36)
$$\begin{aligned}&\varPhi =q\sqrt{\frac{\pi }{S}},\end{aligned}$$
(37)
$$\begin{aligned}&C=\frac{2l^{2}\pi ^{2}q^{2}S-2l^{2}\pi S^{2}+6S^{3}}{-3l^{2}\pi ^{2}q^{2}+l^{2}\pi S+3S^{2}}. \end{aligned}$$
(38)

The plots of Eqs. (34)–(38) are demonstrated in Figs. 10, 11, and 12.

Fig. 10
figure 10

Mass variation of a charged static black hole in terms of the radius of the horizon \( r_{+} \) for \( q=0.25 \), \( l=4.0 \)

Fig. 11
figure 11

Temperature variation of a charged static black hole in terms of the radius of the horizon \( r_{+} \) for \( q=0.25 \), \( l=4.0 \)

Figure 10, shows that the mass of this black hole has a minimum value at \( r_{+}=r_{m1} \) (we show the minimum point of the mass by \( r_{m1} \)), which has a value equal to 0.252, then it reaches its maximum value at \( r_{+}=r_{m2} \) (we show the maximum point of mass by \( r_{m2} \)), at which its value is equal to 2.296, and it vanishes at \( r=r_{0} \), \( r_{0} \) is the point where the mass becomes zero, and it is equal to 4.0. It is also observed from Fig. 11 that the temperature is positive only in a particular range of event horizon \( (r_{m1}<r_{+}<r_{m2}) \), in addition, at \( r_{+}<r_{m1} \), and \( r_{m2}<r_{+} \), it will be negative and it has no physical solution. It can be observed from Fig. 12 that the heat capacity of this black hole will be zero at \( r_{m1} \) and \( r_{m2} \) (\( C(r_{+}=r_{m1})=0\) and \(C(r_{+}=r_{m2})=0 \)), in other words, it has two phase transitions of type one at these points, moreover, at \( r_{+}=r_{\infty } \) (we show the divergence point of the heat capacity with \( r_{\infty } \)), the heat capacity diverges, and the value of this point is equal to 0.426. In other words, at \( r_{+}<r_{m1} \), the heat capacity is negative and it is in an unstable phase, then, at \( r_{m1}<r_{+}<r_{\infty } \), the heat capacity is positive or it is in stable phase, afterward, at \( r_{\infty }<r_{+}<r_{m2} \), it falls in to negative region (unstable phase) and at \( r_{+}>r_{m2} \) it becomes stable.

3.2 Thermodynamic geometry

In this section, we construct the thermodynamic geometry structure for this black hole. First, we use the Weinhold method. Extensive variables for this system are \( N^{r}=(l, q) \), so the resulting matrix of the Weinhold metric becomes

$$\begin{aligned} g^{W}=\begin{bmatrix} M_{SS}&\quad M_{Sq}&\quad M_{Sl}\\ M_{qS}&\quad M_{qq}&\quad 0\\ M_{l S}&\quad 0&\quad M_{ll} \end{bmatrix}. \end{aligned}$$
(39)

The elements of the metric can be obtained from Eq. (34), and the Weinhold scalar curvature can be found to be

$$\begin{aligned} R^{W}=\frac{9l^{2}\pi ^{\frac{3}{2}}S^{\frac{5}{2}}-l^{4}\pi ^{\frac{7}{2}}q^{2}S^{\frac{1}{2}}-l^{4}\pi ^{\frac{5}{2}}S^{\frac{3}{2}}}{(l^{2}\pi ^{2}q^{2}-l^{2}\pi S+3S^{2})^{2}}. \end{aligned}$$
(40)

The denominator of the above expression becomes zero at \( S=\frac{\pi l}{6}(l \pm \sqrt{l^{2}-12q^{2}}) \), or at \(r_{+}=r_{m1} \) and \( r_{+}=r_{m2} \) (see Fig. 13).

Fig. 12
figure 12

Heat capacity variation of a charged static black hole in terms of the radius of the horizon, \( r_{+} \) for \( l=4.0 \), \( q=0.25 \)

Next, we use the Ruppeiner method for this black hole. Using Eq. (34), the matrix components of Ruppeiner metric will be obtained:

$$\begin{aligned} g^{R}=\frac{1}{T}\begin{bmatrix} M_{SS}&\quad M_{Sq}&\quad M_{Sl}\\ M_{qS}&\quad M_{qq}&\quad 0\\ M_{l S}&\quad 0&\quad M_{ll} \end{bmatrix}. \end{aligned}$$
(41)

So, using Eqs. (36) and (41), we obtain

$$\begin{aligned} g^{R}=\frac{4l^{2}\pi ^{\frac{3}{2}}S^{\frac{3}{2}}}{l^{2}\pi S-l^{2}\pi ^{2}q^{2}-3S^{2}}\begin{bmatrix} M_{SS}&\quad M_{Sq}&\quad M_{Sl}\\ M_{qS}&\quad M_{qq}&\quad 0\\ M_{l S}&\quad 0&\quad M_{ll} \end{bmatrix}. \end{aligned}$$
(42)

After some calculation, the corresponding curvature scalar will be obtained as

$$\begin{aligned} R^{R}=-\frac{l^{2}\pi (2\pi q^{2}-S)}{S(l^{2}\pi ^{2}q^{2}-l^{2}\pi S+3S^{2})}. \end{aligned}$$
(43)

This curvature scalar is singular at \( S=0 \) and \( S=\frac{\pi l}{6}(l \pm \sqrt{l^{2}-12q^{2}}) \) or, as can be seen from Fig. 14, it is singular at \( r_{+}=0 \), \( r_{+}=r_{m1} \), and \( r_{+}=r_{m2} \).

Finally, we use the most important GTD metric. The matrix resulting from the metric is as follows:

$$\begin{aligned} g^{\mathrm{GTD}}=(SM_{S}+qM_{q}+lM_{l})\begin{bmatrix} -M_{SS}&\quad 0&\quad 0\\ 0&\quad M_{qq}&\quad 0\\ 0&\quad 0&\quad M_{ll} \end{bmatrix}.\nonumber \\ \end{aligned}$$
(44)

The corresponding curvature scalar will be obtained as

$$\begin{aligned} R^{\mathrm{GTD}}=\frac{16}{3}\frac{\mathcal {N}}{(3l^{2}\pi ^{2}q^{2}-l^{2}\pi S-3S^{2})^{2}(3l^{2}\pi ^{2}q^{2}+l^{2}\pi S+S^{2})^{3}}.\nonumber \\ \end{aligned}$$
(45)
Fig. 13
figure 13

Curvature scalar variation of the Weinhold metric in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( q=0.25 \)

Fig. 14
figure 14

Curvature scalar variation of the Ruppeiner metric in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( q=0.25 \)

Fig. 15
figure 15

Curvature scalar variation of GTD metric in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( q=0.25 \)

Fig. 16
figure 16

Curvature scalar variation of GTD (red dash-dot line), the Ruppeiner (orange continuous line) and the Weinhold (green dash line) metrics, and the heat capacity (blue dot line), in terms of the radius of the horizon \( r_{+} \), for \( l=4.0 \), \( q=0.25 \)

Here, because the numerator of the above expression has no physical information and it is too long, we consider it as \( \mathcal {N} \). The denominator of \( R^{\mathrm{GTD}} \) becomes zero at \( r_{+}=r_{\infty } \) (see Fig. 15). So, we extended our study to different thermodynamical geometries. It can be observed from Fig. 16 that the Weinhold and Ruppeiner methods are compatible with zeros of the heat capacity, and GTD method is coincident with the divergences of it. In the following, we point out the effect of different values of the spacetime parameters on the stability conditions of this black hole. As can be seen from Fig. 17a, for \( q=0 \), the heat capacity of this black hole can be treated like the black hole in the previous section and it has only one phase transition, of type one. By increasing the value of q , it will have two phase transitions of type one and one phase transition of type two. Also, for small values of l , the heat capacity has two phase transitions of type one and one phase transition of type two (see Fig. 18a, b), and for large values of l , it has one phase transition of type one and one phase transition of type two (see Fig. 18c, d).

In the next section, we study the thermodynamic behavior of a rotating charged black hole in f(R) gravity.

4 Rotating charged black hole in f(R) gravity

In this section, we study the solution of the field equation and metric of a rotating charged black hole in f(R) gravity. With a Maxwell term in four dimensions, the action is

$$\begin{aligned} S=S_{g}+S_{M}, \end{aligned}$$
(46)

where \(S_{g}\) is the gravitational action,

$$\begin{aligned} S_{g}=\dfrac{1}{16 \pi } \int \mathrm{d}^{D} x \sqrt{\vert g \vert }(R+f(R)), \end{aligned}$$
(47)

and \(S_{M}\) is the electromagnetic action,

$$\begin{aligned} S_{M}=\dfrac{-1}{16 \pi } \int \mathrm{d}^{4} x \sqrt{-g }[F_{\mu \nu }F^{\mu \nu }], \end{aligned}$$
(48)

where R is the scalar curvature and \(R + f(R)\) is the function defining the theory under consideration, and g is the determinant of the metric. From Eq. (48), the Maxwell equation takes the form

$$\begin{aligned} \nabla _{\mu }F^{\mu \nu }=0. \end{aligned}$$
(49)

The field equations in the metric formalism are [58]

$$\begin{aligned}&R_{\mu \nu }(1+f'(R))-\frac{1}{2}(R+f(R))g_{\mu \nu }\nonumber \\&\quad +\,(g_{\mu \nu }\nabla ^{2}-\nabla _{\mu }\nabla _{\nu })f'(R)=2T_{\mu \nu }, \end{aligned}$$
(50)

where \(\nabla \) is the usual covariant derivative, \(R_{\mu \nu }\) is the Ricci tensor, and \( T_{\mu \nu } \) the stress-energy tensor of the electromagnetic field,

$$\begin{aligned} T_{\mu \nu }=F_{\mu \rho }F_{\nu }^{\rho }-\dfrac{g_{\mu \nu }}{4} F_{\rho \sigma }F^{\rho \sigma }, \end{aligned}$$
(51)

with

$$\begin{aligned} T^{\mu } _{\,\,\mu }=0. \end{aligned}$$
(52)

The trace of Eq. (50) with the constant curvature scalar \(R=R_{0}\) yields

$$\begin{aligned} R_{0}(1+f'(R_{0}))-2(R_{0}+f(R_{0}))=0, \end{aligned}$$
(53)

which determines the negative constant curvature scalar as

$$\begin{aligned} R_{0}=\dfrac{2f(R_{0})}{f'(R_{0})-1}. \end{aligned}$$
(54)

Using Eqs. (50)–(54), we have

$$\begin{aligned} R_{\mu \nu }=\dfrac{1}{2}\left( \dfrac{f(R_{0})}{f'(R_{0})-1}\right) g_{\mu \nu } +\dfrac{2}{(1+f'(R_{0}))}T_{\mu \nu }. \end{aligned}$$
(55)

Finally, the axisymmetric ansatz in Boyer–Lindquist-type coordinates \((t,r,\theta ,\varphi )\), inspired by the Kerr–Newman–AdS black hole solution, is [58]

$$\begin{aligned} \mathrm{d}s^{2}= & {} -\dfrac{\varDelta _{r}}{\rho ^{2}} \left[ \mathrm{d}t-\dfrac{a \sin ^{2}\theta \mathrm{d}\varphi }{\varXi }\right] ^{2}+\dfrac{\rho ^{2}}{\varDelta _{r}} \mathrm{d}r^{2}+\dfrac{\rho ^{2}}{\varDelta _{\theta }}\mathrm{d}\theta ^{2}\nonumber \\&+\,\dfrac{\varDelta _{\theta }\sin ^{2}\theta }{\rho ^{2}} \left[ a\mathrm{d}t-\dfrac{r^{2}+a^{2}}{\varXi }\mathrm{d}\varphi \right] ^{2}, \end{aligned}$$
(56)
Fig. 17
figure 17

Curvature scalar variation of GTD (orange continuous line), the Weinhold (blue dot line) metrics, and the heat capacity (green dash line) in terms of \( r_{+} \), for \( l=4.0 \) and \( q=0 \), \( q=0.25 \), \( q=0.75 \), for a, b, and c, respectively

Fig. 18
figure 18

Curvature scalar variation of GTD (orange continuous line), the Weinhold (blue dot line) metrics, and the heat capacity (green dash line) in terms of \( r_{+}, \) for \( q=0.25 \) and \( l=4.0 \), \( l=\sqrt{30} \), \( l=\sqrt{3\times 10^{4}} \), \( l=\sqrt{3\times 10^{15}}\), for a, b, c, and d, respectively

where

$$\begin{aligned}&\varDelta _{r}=(r^{2}+a^{2}) \left( 1+\dfrac{R_{0}}{12}r^{2} \right) -2mr+\dfrac{Q^{2}}{(1+f'(R_{0}))},\nonumber \\ \end{aligned}$$
(57)
$$\begin{aligned}&\varXi =1-\dfrac{R_{0}}{12}a^{2}, \quad \rho ^{2}=r^{2}+a^{2}\cos ^{2}\theta ,\nonumber \\&\quad \varDelta _{\theta }=1-\dfrac{R_{0}}{12}a^{2}\cos ^{2}\theta , \end{aligned}$$
(58)

in which \( R_{0} \), is a constant proper to cosmological constant (\(R_{0}=-4\varLambda \)), Q is the electric charge, and a is the angular momentum per mass of the black hole.

4.1 Thermodynamic

In this section, we investigate the thermodynamic properties of this black hole. The radius of the horizon \( (r_{+}) \) satisfies the condition, with \( \varDelta _{r}=0 \),

$$\begin{aligned} (r^{2}_{+}+a^{2})\left( 1+\frac{R_{0}}{12}r^{2}_{+}\right) -2mr_{+}+\frac{Q^{2}}{(1+f^{\prime }(R_{0}))}=0.\nonumber \\ \end{aligned}$$
(59)

By setting \( \mathrm{d}r=\mathrm{d}t=0 \) in the metric line elements, we can find the line elements for the 2-dimensional horizon. Using the relation

$$\begin{aligned} A=\int ^{2\pi }_{0}\mathrm{d}\varphi \int ^{\pi }_{0}\sqrt{|\gamma |}\mathrm{d}\theta , \end{aligned}$$
(60)

where \( \gamma \) is the metric tensor of the black hole horizon, the area of this black hole will be obtained as

$$\begin{aligned} A=\frac{4\pi (r^{2}_{+}+a^{2})}{1-\frac{R_{0}}{12}a^{2}}. \end{aligned}$$
(61)

According to the relation for the entropy \( S=\frac{A}{4}\) [2], we can easily find the entropy of this black hole,

$$\begin{aligned} S=\frac{\pi (r^{2}_{+}+a^{2})}{1-\frac{R_{0}}{12}a^{2}}. \end{aligned}$$
(62)

The mass of the black hole can be obtained by using a generalized Smarr formula in terms of all its parameters. To calculate the generalized Smarr formula, first we obtain the total mass (M) , and the angular momentum (J) , by means of Komar integrals and using the Killing vectors, \( \frac{1}{\varXi }\partial _{t} \), and \(\partial _{\varphi } \), so they will be obtained thus

$$\begin{aligned}&M=\frac{m}{\varXi ^{2}},\end{aligned}$$
(63)
$$\begin{aligned}&J=\frac{am}{\varXi ^{2}}. \end{aligned}$$
(64)

Using Eqs. (59)–(64), the generalized Smarr formula will be obtained:

$$\begin{aligned} M^{2}= & {} \frac{S}{4\pi }+\frac{\pi }{4S}[4J^{2}+q^{4}]+ \frac{q^{2}}{2}-\frac{R_{0}}{12}J^{2}\nonumber \\&-\,\frac{R_{0}S}{24\pi }\left[ q^{2}+\frac{S}{\pi }- \frac{R_{0}S^{2}}{24\pi ^{2}}\right] . \end{aligned}$$
(65)

Now, according to the first law of thermodynamic, we can calculate all of the thermodynamic quantities,

$$\begin{aligned} \mathrm{d}M=T\mathrm{d}S+\varOmega \mathrm{d}J+\varPhi \mathrm{d}q. \end{aligned}$$
(66)

So, the temperature of this black hole is

$$\begin{aligned} T=\frac{\partial M}{\partial S}= & {} -(48q^{4}\pi ^{5}+8R_{0}\pi ^{3}R_{0}S^{2}q^{2} +192\pi ^{5}J^{2}\nonumber \\&-\,R_{0}^{2}\pi S^{4}+16R_{0}\pi ^{2}S^{3}\nonumber \\&-\,48\pi ^{3}S^{2})\times (256\pi ^{4}S^{3}(144\pi ^{5}q^{4}\nonumber \\&-\,48R_{0}\pi ^{4}J^{2}S-24R_{0}\pi ^{3}q^{2}S^{2}\nonumber \\&+\,576\pi ^{5}J^{2}+288\pi ^{4}q^{2}S+R_{0}^{2}\pi S^{4}\nonumber \\&-\,24R_{0}\pi ^{2}S^{3}+144\pi ^{3}S^{2})^{-\frac{1}{2}}. \end{aligned}$$
(67)

In addition, the angular velocity \( \varOmega \) is

$$\begin{aligned} \varOmega= & {} \frac{\partial M}{\partial J}=-(2\pi ^{2} J(R_{0}S-12\pi ))\nonumber \\&\times \,(S(144\pi ^{5}q^{4}-48R_{0}\pi ^{4}J^{2}S-24R_{0}\pi ^{3}q^{2}S^{2}\nonumber \\&+\,576\pi ^{5}J^{2}+288\pi ^{4}q^{2}S+R_{0}^{2}\pi S^{4}\nonumber \\&-\,24R_{0}\pi ^{2}S^{3}+144\pi ^{3}S^{2}))^{-\frac{1}{2}}, \end{aligned}$$
(68)

and also the electrical potential can be obtained:

$$\begin{aligned} \varPhi= & {} \frac{\partial M}{\partial q}=-\pi q(-12\pi ^{2}q^{2}+R_{0}S^{2}-12\pi S)\nonumber \\&\times \, (S(144\pi ^{5}q^{4}-48R_{0}\pi ^{4}J^{2}S\nonumber \\&-\,24R_{0}\pi ^{3}q^{2}S^{2}+576\pi ^{5}J^{2}+288\pi ^{4}q^{2}S+ R_{0}^{2}\pi S^{4}\nonumber \\&-\,24R_{0}\pi ^{2}S^{3}+144\pi ^{3}S^{2}))^{-\frac{1}{2}}. \end{aligned}$$
(69)

Finally, we can calculate the heat capacity of this black hole as follows:

$$\begin{aligned} C=\frac{\partial _{S}M}{\partial ^{2}_{S}M}. \end{aligned}$$
(70)

Plot of all thermodynamic parameters obtained for this black hole are shown in Figs. 19, 20, and 21.

Fig. 19
figure 19

Mass variation of a rotating charged black hole in terms of its radius of the horizon \( r_{+} \) for \( l=4.0 \), \( a=0.1 \), \( q=0.25 \)

Fig. 20
figure 20

Temperature variation of a Rotating charged black hole in terms of its radius of the horizon \( r_{+} \) for \( l=4.0 \), \( a=0.1 \), \( q=0.25 \)

Fig. 21
figure 21

Heat capacity variation of a Rotating charged black hole in terms of the radius of the horizon \( r_{+} \), for \( l=4.0 \), \( a=0.1 \), \( q=0.25 \)

It can be seen from Fig. 19 that the mass of this black hole has one minimum point at \( r_{+}=r_{m} \) (we show the place of the minimum point of the mass with \( r_{m} \)), in which the value is equal to 0.252. It is also observed from the plot of the temperature in Fig. 20 that the temperature of this system is in the negative region at a particular range of \( r_{+} \) (\( r_{+}<r_{m} \)); after that, it reaches to zero at \( r_{+}=r_{m} \), then it will be positive for \( r_{+}>r_{m} \). In addition, Fig. 21 shows that the heat capacity of this black hole reaches a positive (stable) phase from a negative (unstable) phase, and after that it reaches zero at \( r_{+}=r_{m} \). Also the divergence points of the heat capacity are \( r_{\infty 1} \) and \( r_{\infty 2} \), and for this system \( r_{\infty 1}=0.466 \) and \( r_{\infty 2}=2.266 \). So, for the range of \( r_{m}<r_{+}<r_{\infty 1} \), the heat capacity is positive and system is in the stable phase; after that, at \( r_{\infty 1}<r_{+}<r_{\infty 2} \), it falls into the negative region (unstable phase), then at \( r_{+}>r_{\infty 2} \) it will be positive (stable). In other words, the heat capacity of this black hole has one phase transition of type one, and two phase transitions of type two.

4.2 Thermodynamic geometry

In this part, we investigate thermodynamic geometry of this black hole, using the Weinhold, Ruppeiner, and GTD methods. We start by the Weinhold metric, which is as follows:

$$\begin{aligned} g^{W}=\begin{bmatrix} M_{SS}&\quad M_{SJ}&\quad M_{Sq}&\quad M_{Sl}\\ M_{JS}&\quad M_{JJ}&\quad M_{Jq}&\quad M_{Jl}\\ M_{qS}&\quad M_{qJ}&\quad M_{qq}&\quad M_{l q}\\ M_{l S}&\quad M_{l J}&\quad M_{l q}&\quad M_{ll} \end{bmatrix}. \end{aligned}$$
(71)

The scalar curvature \( R^{W} \) can easily be obtained; it is plotted in Fig. 22.

Fig. 22
figure 22

Curvature scalar variation of Weinhold metric in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( q=0.25 \), \( a=0.1 \)

It can be seen from Fig. 22 that the curvature scalar has no singularity, so the Weinhold method has no physical information for this system.

Now, we construct the Ruppeiner metric for this black hole as follows:

$$\begin{aligned} g^{R}=\frac{1}{T}\begin{bmatrix} M_{SS}&\quad M_{SJ}&\quad M_{Sq}&\quad M_{Sl}\\ M_{JS}&\quad M_{JJ}&\quad M_{Jq}&\quad M_{Jl}\\ M_{qS}&\quad M_{qJ}&\quad M_{qq}&\quad M_{l q}\\ M_{l S}&\quad M_{lJ}&\quad M_{l q}&\quad M_{ll} \end{bmatrix}, \end{aligned}$$
(72)

where T can be obtained from Eq. (67). The curvature scalar, which corresponds to the above metric, is plotted in Fig. 23, and it is singular at \( r_{+}=r_{m} \).

Fig. 23
figure 23

Curvature scalar variation of the Ruppeiner metric in terms of the radius of the horizon \( r_{+} \). \( l=4.0 \) for \( q=0.25 \), \( a=0.1 \)

Finally, at the end of this section, we apply the most important metric of the GTD method to this thermodynamic system,

$$\begin{aligned} g^{\mathrm{GTD}}=\begin{bmatrix} -M_{SS}&\quad 0&\quad 0&\quad 0\\ 0&\quad M_{JJ}&\quad M_{Jq}&\quad M_{Jl}\\ 0&\quad M_{qJ}&\quad M_{qq}&\quad M_{l q}\\ 0&\quad M_{l J}&\quad M_{l q}&\quad M_{ll} \end{bmatrix}. \end{aligned}$$
(73)

A plot of the corresponding curvature scalar with the GTD metric is shown in Fig. 24.

Fig. 24
figure 24

Curvature scalar variation of the GTD metric in terms of the radius of the horizon \( r_{+} \) for \( l=4.0 \), \( a=0.1 \), and \( q=0.25\)

This curvature scalar is singular at \( r_{+}=r_{\infty 1} \) and \( r_{+}=r_{\infty 2} \). So, again we extended our study to different geothermodynamic methods, and our results are shown in Fig. 25. It can be observed from Fig. 25 that a singularity of the Ruppeiner metric is compatible with the zero point of the heat capacity, and singularities of the GTD metric are coincident with the divergence points of the heat capacity. At the end of this section, we investigate the effect of different values of the q , a , and l , parameters on the phase transition points for this system.

Fig. 25
figure 25

Curvature scalar variation of the Ruppeiner (orange continuous line) and GTD (blue dot line) metrics, and the heat capacity (green dash line) of a rotating black hole in terms of \( r_{+} \) for \( l=4.0 \), \( a=0.1 \), \( q=0.25 \)

Fig. 26
figure 26

Curvature scalar variation of the Ruppeiner (orange continuous line) and GTD (blue dot line) metrics and the heat capacity (green dash line) of a rotating black hole in terms of \( r_{+} \) for \( l=4.0 \), \( a=0.1 \) and \( q=0.25 \), \( q=0.4 \), \( q=0.75 \), \( q=1 \), for a, b, c and d, respectively

In Figs. 26, 27 and 28, we plot the curvature scalar of the Ruppeiner and GTD metrics with the heat capacity of this black hole. It can be seen from Figs. 26a, 27a, and 28a that this thermodynamical system has one phase transition of type one and two phase transitions of type two. The number of these phase transitions changes for different values of the q , a , and l , parameters. By increasing the value of q , the number of phase transitions will be decreased, as can be observed from Fig. 26c, d; it has only one phase transition of type one. Also, by increasing the value of a , the number of phase transitions will be decreased, as shown in Fig. 27d, it has two phase transitions of type two. Moreover, by increasing the value of l , the number of phase transitions will be decreased, and it has only one phase transition of type two (see Fig. 28c, d).

Fig. 27
figure 27

Curvature scalar variation of the Ruppeiner (orange continuous line) and GTD (blue dot line) metrics, and the heat capacity (green dash line) of a rotating black hole in terms of \( r_{+} \) for \( l=4.0 \), \( q=0.25 \) and \( a=0.1 \), \( a=0.25 \), \( a=0.5 \), \( a=0.8 \), for a, b, c and d, respectively

Fig. 28
figure 28

Curvature scalar variation of the Ruppeiner (orange continuous line) and GTD (blue dot line) metrics, and the heat capacity (green dash line) of a rotating black hole in terms of \( r_{+} \) for \( q=0.25 \), \( a=0.1 \), and \( l=4.0 \), \( l=\sqrt{30} \), \( l=\sqrt{3\cdot 10^{4}} \), \( l=\sqrt{3\cdot 10^{15}} \), for a, b, c and d, respectively

5 Conclusion

In this paper, we studied the thermodynamic behavior of three types (static, charged static, and charged rotating) of black holes in f(R) gravity, and we investigated the thermodynamic geometry of them. Also, we plotted thermodynamic quantities in terms of the radius of the horizon \( r_{+} \) and we showed that for each maximum and minimum value of the mass, these black holes have one zero point in their temperature and heat capacity. When we applied the thermodynamic geometry methods to these black holes, we have seen that, for a static black hole, the Weinhold metric is flat, and the Ruppeiner metric can explain the zero points of it. For the static charged black hole, the Weinhold and Ruppeiner metrics coincide with the zero points of the heat capacity, and the GTD metric can explain the divergence point of it as well. Moreover, for the rotating charged black hole, the Weinhold metric has no singularity, but the Ruppeiner metric can explain the zero points of the heat capacity and the GTD metric coincides with the divergence point of it.

We also investigated the effects of different values of the spacetime parameters on the stability conditions of these black holes. We observed that, by changing the values of the spacetime parameters, the number of phase transitions of these black holes is changed. But these changes have not affected the compatibility of the explained thermodynamical geometry methods with zeros and divergence points of the heat capacity.

For future work, it would be interesting to apply these methods to other spacetimes such as dilaton black holes.