1 Introduction

General Relativity (GR) is a theory of gravitation that help us understand gravitational waves, gravitational lensing, an effect of gravity on time known as gravitational time dilation and black holes. Although GR is not a complete theory of quantum gravity, the simplest theory of gravity describes various astrophysical phenomena. To complete the GR, people try to modify it in various ways, for instance, by adding the higher order term to the Einstein–Hilbert action of GR but still, a complete theory is missing. Some other examples of higher order gravity theory are scalar–tensor theories [1,2,3,4,5,6], Lovelock gravity [7,8,9], regular black holes [10,11,12,13] and brane world cosmology [14,15,16].

Lovelock theories [7, 8] is a special theory of higher-order gravity in 4D spacetime that preserves diffeomorphism invariance, metricity and second-order equations of motion. From Lovelock’s theories of gravity, Gauss–Bonnet gravity can be obtained in higher dimensions [17]. The Gauss–Bonnet term does not contribute to the dynamics of the theory in four dimensions but rather contributes to the dynamics when the dimensions of spacetime are greater than four. In recent days, Glavan and Lin [18] found the solution to the Einstein–Gauss–Bonnet field equation in four dimensions by rescaling Gauss–Bonnet coupling parameter \(\alpha\) by \(\alpha /D-4\). However, the charged AdS solution of Einstein–Gauss–Bonnet theory was found in Ref. [19]. For a complete discussion on 4D Gauss–Bonnet gravity, see Refs. [20]. Some other static spherically symmetric black hole solutions and their thermodynamics, phase transition in 4D or higher dimensions Einstein–Gauss–Bonnet gravity studied in Refs. [21,22,23,24,25,26,27,28]. Einstein–Gauss–Bonnet black hole solution in nonlinear electrodynamics is studied in Refs. [29,30,31,32,33,34,35,36,37].

Another way of modifying the GR is by adding a mass to the graviton. According to the GR, the graviton is a massless spin-2 particle. But one may ask if that is a self- a consistent theory of massive gravity possible or not. In fact, people have tried to answer this question by modifying the Einstein–Hilbert action that describes massive graviton. The recent observation of gravitational waves by LIGO put a maximum limit on the graviton mass, \(m\le 1.2 \times 10^{-22}\) eV [38]. A theory of massive gravity was first constructed by Fierz and Pauli [39, 40]. In the curved background, this theory encounters ghost instabilities [41]. A new nonlinear massive gravity theory proposed by de Rham, Gabadadze and Tolley (dRGT) [42, 43] avoids ghost problems. The charged black holes in Gauss–Bonnet massive gravity studied [44]. Some other spherically symmetric black holes in massive gravity and their thermodynamics have also been studied [45,46,47,48,49,50].

In our theory, we consider the anti-de-Sitter (AdS) background, i.e. we add a negative cosmological constant. The negative cosmological constant is a crucial ingredient in the AdS/CFT correspondence, a duality between a theory of quantum gravity in (AdS) space and a conformal field theory (CFT) in one lower dimension. The AdS/CFT correspondence allows for the study of strongly coupled field theories using classical gravity, which is a useful tool for investigating non-perturbative phenomena that cannot be understood through standard perturbative methods. One significant consequence of the negative cosmological constant is that it leads to the presence of a holographic screen at the AdS boundary, which encodes the bulk geometry’s information. This holographic principle means that the number of degrees of freedom in the AdS space is proportional to the area of the holographic screen, rather than the volume, as in ordinary theories. The AdS/CFT correspondence, therefore, implies that the degrees of freedom in the AdS space are equivalent to those of the boundary CFT. The negative cosmological constant also plays a critical role in the AdS black hole physics. Black holes in AdS space can have a negative specific heat, which is impossible in flat space. This phenomenon is related to the AdS space’s boundary conditions, which force the black hole to lose energy and mass through the AdS boundary, leading to a reduction in temperature. This behavior is known as Hawking-Page phase transition [51], where the black hole is in thermal equilibrium with a thermal AdS space. The AdS/CFT correspondence allows for the study of the thermodynamic behaviour of black holes using the corresponding CFT, providing insights into the nature of black hole thermodynamics.

Recently, researchers have considered the cosmological constant as a variable parameter and linked it to the thermodynamic pressure, which is conjugate to the thermodynamic volume [52,53,54,55,56]. This approach has resulted in an extended phase space, where the black hole mass is regarded as the enthalpy, instead of the internal energy [53]. Many studies have explored the thermodynamics and phase transitions of black holes in this extended phase space, revealing new phenomena such as P-V criticality in various black holes spacetime [57, 58].

In AdS spacetime, the black hole mass is naturally treated as the enthalpy, leading to the consideration of Joule–Thomson expansion for the black hole. This expansion investigates isenthalpic curves, which are constant mass curves. Previous investigations of the Joule–Thomson expansion for charged AdS [59] and Kerr AdS [60] black holes have been conducted within the framework of Einstein gravity. However, extended theories of Einstein gravity introduce new physical degrees of freedom, raising questions about their role and physical impact on the Joule–Thomson expansion. In this paper, we investigate how the presence of massive gravity modifies the Joule–Thomson expansion of the charged AdS black hole in Gauss–Bonnet gravity, inspired by recent progress in understanding massive gravity. The approach taken here is relevant not only for charged AdS black holes in Eiantein–Gauss–Bonnet massive gravity but also for those in other alternative theories of gravity where additional gravitational modes emerge. For instance, the Joule–Thomson expansion may be examined for charged AdS black holes in teleparallel f(T) gravity [61, 62], with T representing torsion, or in f(R) gravity [63] with a nonlinear electrodynamics field.

Since the charged AdS Einstein–Gauss–Bonnet theory in massive gravity is not studied yet. Therefore, in this paper, we investigate charged Einstein–Gauss–Bonnet massive gravity and find an exact solution in 4D AdS space. we also discuss the horizon structure of charged AdS black hole in 4D Einstein–Gauss–Bonnet massive gravity. Moreover, we discuss the thermal properties of this black hole. To be more precise, we compute the entropy and temperature that satisfy the first law of black hole thermodynamics. In AdS space, the mass of the black hole is treated as enthalpy. Furthermore, we analyzed the stability and Van der walls like phase transition of the black holes. Here, we study the Joule–Thomson expansion of charged AdS black hole in 4D Einstein–Gauss–Bonnet massive gravity, and the constant mass curves are known as isenthalpic curves. Finally, we investigate the effects of graviton mass and the massive gravity parameters on the Joule–Thomson expansion of charged AdS black holes in 4D Einstein–Gauss–Bonnet massive gravity.

The paper is organized as follows. In Sect. 2, we discuss the action describing the Einstein–Gauss– Bonnet–Maxwell massive gravity in 4D AdS space and their field equations. Here, we find the exact black hole solution. The effects of graviton mass on the horizon structure of the black hole are also depicted. In Sect. 3, we study the first law of black hole thermodynamics and the effects of graviton mass on Hawking temperature. To investigate the global stability of the black holes, we compute the Gibbs free energy. Next, in Sect. 5, the effects of graviton mass on the local stability of the black hole are studied. The Van der walls-like phase transition of the black hole is analyzed in Sect. 7. We numerically investigate the effects of the graviton mass, the charge of the black hole and Gauss–Bonnet coupling parameter on the critical parameters (namely, critical volume, critical pressure and critical volume) of the black hole. The effects of critical parameters on the phase transition of the black hole are also studied. we investigate the Joule–Thomson expansion of the black hole in Sect. 8. Here, we analyze the effects of graviton mass and massive gravity parameters on the constant mass curve and inverse curve. Finally, we compute Joule–Thomson thermodynamic coefficient as a function of the black hole horizon radius.

2 Einstein–Gauss–Bonnet massive gravity in 4D

The action for Einstein–Maxwell–Gauss–Bonnet massive gravity with a negative cosmological constant in D dimensions is given by

$$\begin{aligned} S= \frac{1}{16 \pi } \int d^{D}x \sqrt{-g} \Biggr [R -2 \Lambda + \alpha {\mathcal {G}} - F_{\mu \nu }F^{\mu \nu } + m^2 \sum _{i} c_{i} {\mathcal {U}}_{i} (g,h) \Biggr ], \end{aligned}$$
(2.1)

where g is determinant of the metric \(g_{\mu \nu }\), R is Ricci scalar, \(\alpha\) is Gauss–Bonnet coupling parameter, \({\mathcal {G}}= R_{\mu \nu \rho \sigma } R^{\mu \nu \rho \sigma } -4 R_{\mu \nu } R^{\mu \nu } + R^2\) is the Gauss–Bonnet term, \(R_{\mu \nu \rho \sigma }\) is Riemann tensor, \(R_{\mu \nu }\) is Ricci tensor and \(F_{\mu \nu }=\partial _{\mu }{A_{\nu }}-\partial _{\nu }{A_{\mu }}\) is Maxwell tensor. Apart from that m is a parameter related to graviton mass, \(h_{\alpha \nu }\) is a fixed symmetric tensor and usually is called the reference metric, \(c_{i}(i=1,2,3,4)\) are constantFootnote 1 [64] and \({\mathcal {U}}_{i}(g,h)\) is symmetric polynomials of eigenvalues of matrix \({\mathcal {K}}_{\nu }^{\mu }= \sqrt{g^{\mu \alpha } h_{\alpha \nu }}\), given by

$$\begin{aligned} \begin{aligned} {\mathcal {U}}_{1}&= \bigr [ {\mathcal {K}} \bigr ],\\ {\mathcal {U}}_{2}&= \bigr [ {\mathcal {K}} \bigr ]^{2} - \bigr [ {\mathcal {K}}^2 \bigr ],\\ {\mathcal {U}}_{3}&= \bigr [ {\mathcal {K}} \bigr ]^{3} - 3\bigr [ {\mathcal {K}} \bigr ] \bigr [ {\mathcal {K}}^2 \bigr ] + 2 \bigr [ {\mathcal {K}}^{3} \bigr ], \\ {\mathcal {U}}_{4}&= \bigr [{\mathcal {K}} \bigr ]^{4} - 6\bigr [{\mathcal {K}}^2 \bigr ] \bigr [ {\mathcal {K}}\bigr ]^2 + 8 \bigr [{\mathcal {K}}^{3}\bigr ] \bigr [{\mathcal {K}}\bigr ] + 3 \bigr [{\mathcal {K}}^2\bigr ]^2 -6 \bigr [{\mathcal {K}}^4\bigr ], \end{aligned} \end{aligned}$$
(2.2)

where parentheses [...] represents trace of the matrix \({\mathcal {K}}_{\nu }^{\mu }\). In \(D=4\) dimensions the Gauss–Bonnet term does not contribute to the dynamics, so we rescale the Gauss–Bonnet coupling parameter \(\alpha \rightarrow \alpha /(D-4)\) [18], therefore, the action takes the following form:

$$\begin{aligned} S= \frac{1}{16 \pi } \int d^{D}x \sqrt{-g} \left[ R -2 \Lambda + \frac{\alpha }{D-4} {\mathcal {G}} - F_{\mu \nu }F^{\mu \nu } + m^2 \sum _{i} c_{i} {\mathcal {U}}_{i}(g,h) \right] . \end{aligned}$$
(2.3)

Now, we consider a static and spherically symmetric solution of the form

$$\begin{aligned} ds^{2}= - e^{2A(r)} dt^2 + e^{2B(r)} dr^2 +r^2 d{\Omega }_{D-2}^2, \end{aligned}$$
(2.4)

and following the Ref. [65] we take the reference metric as

$$\begin{aligned} h_{\mu \nu }= diag\bigl ( 0, 0, c^2, c^2\sin ^{2}\theta \bigl ), \end{aligned}$$
(2.5)

where c is a dimensionless positive constant. The reference metric \(h_{\mu \nu }\) is a rank two symmetric tensor. Physically, \(h_{\mu \nu }\) corresponds to the background metric around which fluctuations take the Fierz-Pauli form. By using equations (2.2) and (2.5), we obtain

$$\begin{aligned} \begin{aligned} {\mathcal {U}}_{1}&= \frac{(D-2)c}{r}, \\ {\mathcal {U}}_{2}&= \frac{(D-2)(D-3)c^{2}}{r^{2}},\\ {\mathcal {U}}_{3}&= \frac{(D-2)(D-3)(D-4)c^{3}}{r^{3}}, \\ {\mathcal {U}}_{4}&= \frac{(D-2)(D-3)(D-4)(D-4)c^{4}}{r^{4}}. \end{aligned} \end{aligned}$$
(2.6)

Substituting the metric and the electrostatic potential in action (2.3), the first integral exists [19]

$$\begin{aligned} \phi ^{\prime }(r)= - \frac{Q}{r^{D-2}} e^{A+B}, \end{aligned}$$
(2.7)

and taking the limit \(D \rightarrow 4\) and using the relation \(\Lambda =-3/l^2\) we obtain

$$\begin{aligned} S= \frac{\Sigma _{2}}{16 \pi } \int dt dr 2 e^{A+B} \biggr [ r^{3} \psi \Bigl ( 1+ \alpha \psi \Bigl ) + \frac{r^{3}}{l^2} + \frac{Q^2 }{r} + m^2 \Bigl \{ \frac{c_{1} c r^{2}}{2} + {c_{2}c^2 r}\Bigl \} \biggr ]^{\prime }, \end{aligned}$$
(2.8)

where prime denotes differentiation with respect to r, \(\Sigma _{2}=\frac{2{\pi }^{\frac{3}{2}}}{\Gamma \Bigl ( {1+\frac{1}{2}}\Bigl )}\) and \(\psi = r^{-2} \Bigl ( 1- e^{-2B} \Bigl )\) with

$$\begin{aligned} e^{A+B}=1. \end{aligned}$$
(2.9)

If we choose \(m=0\) or \(c=0\) then equation (2.8) reduced to action in massless gravity. Now, using the action (2.8), we obtain solution as

$$\begin{aligned} \psi \Bigl ( 1+ \alpha \psi \Bigl ) + \frac{1}{l^2} + \frac{Q^2 }{r^4} + \frac{m^2}{r^3} \Bigl \{ \frac{c_{1} c r^{2}}{2} + {c_{2}c^2 r}\Bigl \} - \frac{8 \pi M}{\Sigma _{2}r^3}=0, \end{aligned}$$
(2.10)

where M is the integration constant related to the mass of the black hole. Therefore, the exact solution is

$$\begin{aligned} e^{2A}= e^{-2B}= 1+ \frac{r^2}{2\alpha } \Biggr [1 \pm \sqrt{1+4\alpha \biggl \{ \frac{2M}{r^3} - \frac{Q^2}{r^4} - \frac{1}{l^2} - \frac{m^2}{2r^2}\Bigl ( c c_{1} r + 2 c^2 c_{2}\Bigl ) \biggl \} } \Biggr ]. \end{aligned}$$
(2.11)

The negative branch corresponds to the 4D charged AdS EGB massive black hole, whereas the +ve branch does not lead to a physically meaningful solution because the positive sign in the mass term indicates graviton instabilities, so we only take the negative branch of equation (2.11). For the chargeless limit, our solution reduces to a black hole solution as obtained in Ref. [50]

$$\begin{aligned} e^{2A}= e^{-2B}= 1+ \frac{r^2}{2\alpha } \Biggr [1 - \sqrt{1+4\alpha \biggl \{ \frac{2M}{r^3} - \frac{1}{l^2} - \frac{m^2}{2r^2}\Bigl ( c c_{1} r + 2 c^2 c_{2}\Bigl ) \biggl \} } \Biggr ]. \end{aligned}$$
(2.12)

In the limit \(\alpha \rightarrow 0\), equation (2.11) reduces to the charged AdS black hole in massive gravity [66]

$$\begin{aligned} e^{2A}= e^{-2B}=1- \frac{2M}{r} +\frac{Q^2}{r^2} + \frac{r^2}{l^2}+ \frac{m^2}{2} \bigl ( c c_{1} r + 2 c^2 c_{2} \bigl ). \end{aligned}$$
(2.13)

Also, in the massless limit, the above equation reduces to Reissner-Nordström AdS solution

$$\begin{aligned} e^{2A}= e^{-2B}=1- \frac{2M}{r} +\frac{Q^2}{r^2} + \frac{r^2}{l^2}. \end{aligned}$$
(2.14)

Now, we apply a massless limit to equation (2.11) and obtain charged AdS Black Hole in 4D Einstein-Gauss–Bonnet gravity [19] as

$$\begin{aligned} e^{2A}= e^{-2B}= 1+ \frac{r^2}{2\alpha } \Biggr [1 \pm \sqrt{1+4\alpha \biggl \{ \frac{2M}{r^3} - \frac{Q^2}{r^4} - \frac{1}{l^2} \biggl \} } \Biggr ]. \end{aligned}$$
(2.15)

To find the position of the event horizon of charged AdS Black Hole in 4D Einstein-Gauss–Bonnet gravity, we set equation (2.15) equal to zero and obtain [19]

$$\begin{aligned} 1-\frac{2M}{r} + \frac{Q^2+\alpha }{r}+ \frac{r^2}{l^2}=0. \end{aligned}$$
(2.16)

In the absence of cosmological constant, we obtain

$$\begin{aligned} r_{\pm }= M \pm \sqrt{M^2-Q^2-\alpha }. \end{aligned}$$
(2.17)

For Einstein-Gauss–Bonnet massive gravity with a nonvanishing cosmological constant the expression for \(r_{+}\) is complicated, so we do not represent it here. From equation (2.17), we can say that the black hole solution in 4D EGB massless gravity exists if and only if \(M>M_{*}\) with \(M_{*}^2= Q^2 + \alpha\). We will loosely follow the condition \(M>M_*\) for charged AdS Einstein-Gauss–Bonnet massive gravity black holes. In Fig. 1, we plot the metric function (negative branch) of charged AdS Einstein–Gauss–Bonnet massive gravity black holes for different values of \(\alpha\) and M. From Fig. 1a and b, it is clear that the black hole has two horizons, as the value of graviton mass increases the position of the outer horizon increases. The position of the event horizon increases as massive gravity parameters increase. In Table 1 two roots of the metric function (2.11) are estimated, the position of the horizon slowly decreases as Gauss–Bonnet coupling parameter increases. In Fig. 1c and d, we plot the metric function, and it is clear that there are no horizon and no black hole solutions.

Table 1 Two roots of the metric function
Fig. 1
figure 1

\(m=0.0\) denoted by solid green line, \(m=0.5\) denoted by Solid black line, \(m=1.0\) denoted by dash red line and \(m=1.5\) denoted by dash dot blue line with \(l=2\), \(Q=3\), \(c=1\), \(c_{1}=-1\) and \(c_2=1\)

In Fig. 2, we plot the metric function (negative branch) of charged AdS Einstein–Gauss–Bonnet massive gravity in 4D for different values of the charge. From the figure, it is clear that the position of the outer horizon is the smallest for the massless case. As we increase the charge and keep the graviton mass fixed, the position of the outer horizon decrease but the position of the outer horizon is still greater than the massless one which is represented by the solid green line.

Fig. 2
figure 2

\(m=0.0\) and \(Q=2\) denoted by solid green line, \(m=1\) and \(Q=2\) denoted by Solid black line, \(m=1\) and \(Q=3\) denoted by dash red line, \(m=1\) and \(Q=4\) denoted by dash dot blue line with \(M=10\), \(\alpha =0.5\) with \(l=2\), \(c=1\), \(c_{1}=-1\) and \(c_2=1\)

3 Black hole thermodynamics

In this section, we study the thermodynamics of charged AdS black holes in 4D Einstein–Gauss–Bonnet massive gravity. The physical mass of the black holes can be obtained from the metric function (2.11) by setting \(\left. e^{-2B}\right| _{r=r_+}=0\) as

$$\begin{aligned} M=\frac{1}{2 r_{+} } \biggr [\frac{ r_{+}^{4}}{l^2} + r_{+}^{2}+Q^{2}+\alpha + m^2 r_{+}^2 \Bigl (\frac{ c c_{1} r_{+}}{2}+ c^{2} c_{2} \Bigl ) \biggr ]. \end{aligned}$$
(3.1)

The Hawking temperature of the black holes can be obtained from the relation

$$\begin{aligned} T_{H}= \frac{f^{\prime }(r_{+})}{4 \pi }. \end{aligned}$$
(3.2)

For the metric (2.11), Hawking temperature reads

$$\begin{aligned} T_{H}= \frac{3 r_{+}^{4} +l^{2} \bigl ( r_{+}^{2}-Q^{2}-\alpha + m^{2}r_{+}^2( c c_{1} r_{+}^{3}+c^{2} c_{2} ) \bigl ) }{4 \pi r_{+} l^{2} (r_{+}^{2}+2 \alpha )}. \end{aligned}$$
(3.3)

In the massless limit, the Hawking temperature of charged AdS black holes in Einstein–Gauss–Bonnet 4D massive gravity reduces to the Hawking temperature [19] of charged AdS black holes in Einstein–Gauss–Bonnet 4D gravity as

$$\begin{aligned} T_{H}=\frac{3 r_{+}^{4} +l^{2} \bigl ( r_{+}^{2}-Q^{2}-\alpha \bigl ) }{4 \pi r_{+} l^{2} (r_{+}^{2}+2 \alpha )}. \end{aligned}$$
(3.4)

If we take the limit \(\alpha \rightarrow 0\), the Hawking temperature (3.4) reduces to the Hawking temperature of Reissner-Nordström AdS black holes as

$$\begin{aligned} T_{H}= \frac{3 r_{+}^{4} +l^{2} \bigl ( r_{+}^{2}-Q^{2} \bigl ) }{4 \pi r_{+}^3 l^{2} }. \end{aligned}$$
(3.5)

If we further take the chargeless limit, then the above equation reduces to the Hawking temperature of Schwarzschild AdS black holes.

Fig. 3
figure 3

\(m=0\) denoted by solid green line, \(m=1.5\) denoted by dash black line, \(m=4.0\) denoted by dash red line, \(m=5.5\) denoted by dash dot blue line and \(m=10.0\) denoted by dash dot gold line with \(l=2\), \(c=1\) and \(c_2=1\)

Fig. 4
figure 4

\(m=0.0\) denoted by solid green line, \(m=1.5\) denoted by dash black line, \(m=4.0\) denoted by dash red line, \(m=5.5\) denoted by dash dot blue line and \(m=10.0\) denoted by dash dot gold line with \(l=2\), \(c=1\) and \(c_2=1\)

In Figs. 3 and 4, we plot the Hawking temperature of the black holes with respect to \(r_{+}\) for different values of \(\alpha\) and charge. In Fig. 3a, b, the Hawking temperature is plotted for different values of \(\alpha\). From the figure, it is clear that for a critical value of horizon radius (say, \(r_{+}^{min}\)) the Hawking temperature is zero, and if we increase the horizon radius from \(r_{+}^{min}\) then Hawking temperature increases. Further increase of horizon radius from \(r_{+}^{min}\) Hawking temperature leads to attaining a local maximum for a particular value of \(r_{+}\) (say, \(r_{+}^{b}\)) and local maxima are slowly getting absent as graviton mass decreases. Hawking temperature attains a minimum for a particular value of horizon radius (say, \(r_{+}^{a}\) and \(r_{+}^{a}>r_{+}^{b}>r_{+}^{min}\)) and the minima slowly disappear if we decrease the graviton mass. After attaining the minima if we further increase the horizon radii then Hawking temperature again increases. In Fig. 4a, b, we plot the Hawking temperature with respect to the black hole horizon for different values of charge. From figure, it is clear that the behavior is the same as Fig. 3 but the effects of increasing charge are local maxima and the minima now disappear. To observe the local maxima and the minima, we have to increase the graviton mass further, as shown by the gold dashed dot line in Fig. 4.

In Fig. 5, the effects of charge on the Hawking temperature are shown. The inclusion of charge slowly decreases the position of local maxima and minima.

To find the entropy of the black hole, we use the relation \(dM=T_{H} dS\). Using the Hawking temperature and mass of the black hole, we obtain the entropy as

$$\begin{aligned} S= \pi r_{+}^2 + 4\pi \alpha \ln (r_{+}) +S_{0}, \end{aligned}$$
(3.6)

where \(S_{0}\) is integration constant. From the above equation, one can say that the inclusion of electric charge has no effect on the entropy of the black hole. To derive the first law of black hole thermodynamics, we treat the massive gravity parameters \(c_{1}\) and \(c_{2}\) as thermodynamics variables, and the corresponding potential is \({\mathcal {C}}_{1}\) and \({\mathcal {C}}_{2}\). Apart from that, the potential corresponding to Einstein-Gauss–Bonnet parameter \(\alpha\) is \({\mathcal {A}}\). The thermodynamic pressure is defined as \(P=3/8 \pi l^2\). Therefore, the first law of black hole thermodynamics in extended phase space takes the following form:

$$\begin{aligned} dM= T_{H} dS + \Phi dQ +V dP + {{\mathcal {A}}} d\alpha + {{\mathcal {C}}_{1}} dc_{1} + {{\mathcal {C}}_{2}} dc_{2}. \end{aligned}$$
(3.7)

Now, from the first law of black hole, one can find the potential and volume as

$$\begin{aligned} \Phi= & {} \biggl ( \frac{\partial {M}}{\partial {Q}} \biggl )_{S,P,\alpha ,c_{1},c_{2}}= \frac{Q}{r_{+}}, \end{aligned}$$
(3.8)
$$\begin{aligned} V= & {} \biggl ( \frac{\partial {M}}{\partial {P}} \biggl )_{S,Q,\alpha ,c_{1},c_{2}}= \frac{4}{3} \pi r_{+}^3, \end{aligned}$$
(3.9)
$$\begin{aligned} {\mathcal {A}}= & {} \biggl ( \frac{\partial {M}}{\partial {\alpha }} \biggl )_{S,Q,P,c_{1},c_{2}}= \frac{1}{2r_{+}}, \end{aligned}$$
(3.10)
$$\begin{aligned} {\mathcal {C}}_{1}= & {} \biggl ( \frac{\partial {M}}{\partial {c_{1}}} \biggl )_{S,Q,P,\alpha ,c_{2}}= \frac{c m^2 r_{+}^2}{4}, \end{aligned}$$
(3.11)
$$\begin{aligned} {\mathcal {C}}_{2}= & {} \biggl ( \frac{\partial {M}}{\partial {c_{2}}} \biggl )_{S,Q,P,\alpha ,c_{1}}= \frac{c^2 m^2 r_{+}}{2}. \end{aligned}$$
(3.12)

4 Global stability: gibbs free energy

To study the global stability of the black holes we find Gibbs free energy

$$\begin{aligned} G= M-T_{H}S-Q \Phi . \end{aligned}$$
(4.1)

Using Eqs. (3.1), (3.3), (3.6) and (3.7), we obtain

$$\begin{aligned} G= & {} \frac{2 r_{+}^{4} +l^{2} \bigl ( 2 r_{+}^{2}+2 Q^{2}+2 \alpha +m^{2} r_{+}^{2}(c c_{1} r_{+}+2 c^{2} c_{2} ) \bigl ) }{4 r_{+} l^{2} }\nonumber \\{} & {} -\frac{\left( 3 r_{+}^{4} +l^{2} \left( r_{+}^{2}-Q^{2}-\alpha + m^{2}r_{+}^{2}( c c_{1} r_{+}+c^{2} c_{2} ) \right) \right) \left( 4 \pi \alpha \ln (r_{+} )+\pi r_{+}^{2} \right) }{4\pi r_{+} l^{2} (r_{+}^{2}+2 \alpha ) }-\frac{Q^{2}}{r_{+}}. \end{aligned}$$
(4.2)

In Figs. 5 and 6, we plot the Gibbs free energy for different values of \(\alpha\) and charge of the black hole. From Fig. 5, it is clear that the Gibbs free energy is zero for two critical values of horizon radius (namely, \(r_{+}^{c}\), \(r_{+}^{d}\) and \(r_{+}^{c}>r_{+}^{d}\)). The Gibbs free energy is positive between \(r_{+}^{c}\) and \(r_{+}^{d}\). The positive part of the Gibbs free energy increases as the graviton mass increases and the positive part of the Gibbs free energy decrease as the graviton mass decrease. The positive part of the Gibbs free energy attains its smallest value in the massless limit. If we further increase the horizon radius \(r_{+}>r_{+}^{d}\) then Gibbs free energy goes to the negative value. In Fig. 6, we plot the effects of charge on the Gibbs free energy. Keeping the graviton mass small \(m\le 2\), if we increase the charge of the black hole then Gibbs free energy is completely negative (Fig. 6a and b). The solid cyan points represent \(r_{+}^d\) and solid black points represent \(r_{+}^c\). Finally, one can say that the positive part of the Gibbs free energy slowly disappears due to the inclusion of charge for small graviton mass \(m \le 2\). As graviton mass increases from \(m=2\) the behavior is similar to that in Fig. 5.

Fig. 5
figure 5

Plot of Gibbs free energy vs. horizon radius with different values of graviton mass (\(m=0,1,2,3,4\)) with the fixed value of Gauss–Bonnet coupling \((\alpha =0.1,.3,0.5, 0.8)\) and \(l=2\), \(c=1\), \(c_{1}=-1\) and \(c_2=1\)

Fig. 6
figure 6

Plot of heat capacity versus horizon radius with different values of graviton mass (\(m=0,1,2,3,4\)) with the fixed value of Gauss–Bonnet coupling \((\alpha =0.1,.3,0.5, 0.8)\) and \(l=2\), \(c=1\), \(c_{1}=-1\) and \(c_2=1\)

5 Local stability: heat capacity

In this section, we study the local thermodynamical stability of the black hole. We compute the specific heat of the black holes. The local stability of Einstein–Gauss–Bonnet 4D AdS black holes is studied in Ref. [21]. The specific heat of black holes in nonlinear electrodynamics investigated in Refs. [31]– [36]. The local thermodynamical stability of the black holes can be analyzed from the sign of the specific heat. If heat capacity \(C_{\Phi }<0\) then the black holes are thermodynamically unstable and for \(C_{\Phi }>0\) then black holes are thermodynamically stable. The heat capacity of the black holes is defined as

$$\begin{aligned} C_{\Phi }= T_{H} \Biggl ( \frac{dS}{dT_{H}} \Biggl )_{\Phi }. \end{aligned}$$
(5.1)

Using Eqs. (3.3) and (3.6), this reads

$$\begin{aligned} C_{\Phi }=\frac{2 \pi (r_{{+}}^{2}+2 \alpha )^{2} \Biggl (3 r_{{+}}^{4} + \biggl ( r_{{+}}^{2}-Q^{2}-\alpha + m^{2} r_{+}^2 \bigl ( c c_{1} r_{{+}}+c^{2} c_{2}\bigl ) \biggl ) l^{2}\Biggl ) }{ \Bigl ( -(c^{2} c_{2} m^{2}+1) r_{{+}}^{4}+4 c m^{2} c_{1} \alpha r_{{+}}^{3}+(2 \alpha c^{2} c_{2} m^{2}+3 Q^{2}+5 \alpha ) r_{{+}}^{2}+2 Q^{2} \alpha +2 \alpha ^{2}\Bigl ) l^{2}+3 r_{{+}}^{6}+18 \alpha r_{{+}}^{4}}. \end{aligned}$$
(5.2)
Fig. 7
figure 7

\(m=0.0\) denoted by solid green line, \(m=1.0\) denoted by dash black line, \(m=2.0\) denoted by dash red line, \(m=3.0\) denoted by dash dot blue line and \(m=4.0\) denoted by dash dot gold line with \(Q=1\), \(l=3\), \(c=1\), \(c_{1}=-1\) and \(c_2=1\)

In Fig. 7, we plot the specific heat for two different values of the Einstein–Gauss–Bonnet coupling parameter and it is discontinuous at some critical value of horizon radius for a larger value of graviton mass (\(m>1\)) which indicates that a second-order phase transition occurs for charged AdS black holes in 4D Einstein–Gauss–Bonnet massive gravity. For the smaller value of graviton mass(\(m=1\)), no divergences occur but the smaller-size black holes are thermodynamically unstable as specific heat is negative. As the size of the black hole increases a phase transition occurs, i.e., the specific heat of the black hole changes from a negative value to a positive value. If we take graviton mass as zero then similar kinds of phenomena occur.

In Ref. [50], the specific heat of EGB massive gravity black hole is studied with \(Q=0\). In the chargeless case, \(Q=0\) two diverging points appear for two critical values of horizon radius which separate three regions, i.e. two-second order phase transition occurs for such a black hole. Between two diverging points, specific heat is negative, which indicates that the black hole is thermodynamically unstable in this region. The inclusion of charge removes one diverging point and we are left with only one diverging point, i.e. in the case of charged black hole only one second-order phase transition occurs. For \(m=0\) behavior of specific heat same as \(Q=0\) and \(Q \ne 0\).

6 Dynamic stability: quasinormal modes

One of the methods to study the dynamic stability of the black holes is studying the nature of quasinormal modes (QNM) which are characterized by complex numbers. If the imaginary part of QNM is positive, the black hole is unstable; however, if negative, the black hole is stable.

We compute the QNM and quasinormal frequency (QNF) of the above black hole using the scalar field perturbation. We need to consider the scalar field \(\Phi\) in the background of the black hole (2.11). The equation of these perturbations takes the form

$$\begin{aligned} \frac{1}{\sqrt{-g}}\partial _{\mu }\left( \sqrt{-g} g^{\mu \nu }\partial _{\nu }\right) \Phi =0, \end{aligned}$$
(6.1)

where \(g^{\mu \nu }\) are the metric components of the metric (2.4). The mode decomposition of the scalar perturbation in terms of spherical harmonics is given by

$$\begin{aligned} \Phi =\frac{1}{r}\sum _{lm}e^{i\omega t}\phi _{lm}Y^m_{l}(\theta ,\phi ), \end{aligned}$$
(6.2)

here l, m, \(Y^m_{l}\), and \(\omega\) are respectively the angular quantum number, magnetic quantum numbers, spherical harmonic, and the oscillating frequency of the scalar field. Substituting the value of \(\Phi\) in Eq. (6.1) and using the tortoise coordinate \(dr^{*}=dr/e^{2A}\), we get the Schrodinger-like form,

$$\begin{aligned} \left( \frac{d^2}{dr^{*^2}}+\omega ^2-V(r^{*})\right) \phi =0, \end{aligned}$$
(6.3)

where \(V(r^{*})\) is the effective potential and has the form

$$\begin{aligned} V(r^{*})=e^{2A}\left( { A'(r)} +\frac{l(l+1)}{r^2}\right) , \end{aligned}$$
(6.4)

where l is the harmonic index. To find the QNF one has to impose boundary conditions near the event horizon. These boundary conditions can be written as

$$\begin{aligned}{} & {} \phi (r_{\star })\rightarrow e^{ i\omega r_{\star }},\qquad \qquad r_{\star }\rightarrow -\infty , \end{aligned}$$
(6.5)
$$\begin{aligned}{} & {} \phi (r_{\star })\rightarrow e^{- i\omega r_{\star }},\qquad \qquad r_{\star }\rightarrow \infty , \end{aligned}$$
(6.6)

where the \(+\) sign corresponds to ingoing waves at the horizon and − sign corresponds to outgoing waves at the infinity. The frequencies corresponding to the QNM are given by \(\omega =\omega _R+i\omega _I\), whose \(\omega _R\) and \(\omega _I\) are the oscillating damping components of the frequency. We use the WKB approximation to find the QNMs and QNFs of the obtained black hole solution (2.11). The WKB formula has the form [67,68,69]

$$\begin{aligned} i\frac{\omega ^2-V_0}{\sqrt{-2V''_0}}=n+\frac{1}{2}. \end{aligned}$$
(6.7)

where \(V_0\) is the height of the barrier and \(V''_0\) is the second derivative of the potential with respect to the tortoise coordinate. The numerical value of QNM and QNF for different values of graviton mass is depicted in Table 2

Table 2 The numerical values of QNMs with different values of gravitation mass (m) and Gauss–Bonnet coupling \((\alpha )\) with a fixed value of \(M=1, Q=1,c=1,c_1=-1,c_2=1,n=1\), and \(l=10\)

From the Table 2, we can see clearly that the imaginary part of the QNMs in the obtained black hole solution (2.11) is negative. So the black hole solution is stable.

7 Van der Waals like phase transition

In this section, we study the phase transition of charged AdS black holes in 4D Einstein–Gauss–Bonnet massive gravity. The phase transition of the black holes in massive gravity is studied in [50, 70]. Hawking-Page phase transition for static and rotating 4D Gauss–Bonnet black hole is studied in Refs. [23, 71]. The phase transition of charged AdS black hole in Einstein–Gauss–Bonnet massless gravity is studied in Ref. [21]. Phase transition of charged AdS 4D Einstein–Gauss–Bonnet black hole in nonlinear electrodynamics is also studied [31]. The Van der Waals equation of state for real fluids is given by

$$\begin{aligned} P= \frac{T}{v-b} - \frac{a}{v^2}, \end{aligned}$$
(7.1)

where v is the specific volume of the fluids, a represents the interaction between the molecules of the fluids and b describes the non-zero of the molecules. Now, from the Hawking temperature (3.3), we obtain

$$\begin{aligned} P=\frac{T}{v}+\frac{8 T \alpha }{v^{3}}+\frac{2 Q^{2}}{v^{4} \pi }-\frac{1}{2 v^{2} \pi }+\frac{2 \alpha }{v^{4} \pi } -\frac{c^{2} c_{2} m^{2}}{2 v^{2} \pi }-\frac{c c_{1} m^{2}}{4 v \pi }, \end{aligned}$$
(7.2)

where specific volume v is defined by [72]

$$\begin{aligned} v=\frac{6 V}{A} \approx 2r_{+}, \end{aligned}$$
(7.3)

where A is the area of the black hole. To obtain the critical points, we use the following conditions:

$$\begin{aligned} \Biggl ( \frac{\partial {P}}{\partial {v}}\Biggl )_{T_{c},v_{c}}= \Biggl ( \frac{\partial ^2{P}}{\partial {v}^2}\Biggl )_{T_{c},v_{c}}=0. \end{aligned}$$
(7.4)

Using Eqs. (7.2) and (7.4), we obtain the condition for critical volume as

$$\begin{aligned} -2 (c^{2} c_{2} m^{2} +1 ) v_{c}^{4}+24 \alpha c c_{1} m^{2} v_{c}^{3} +48 (\alpha c^{2} c_{2} m^{2} + Q^{2}+ 2 \alpha ) v_{c}^{2}+384 Q^{2} \alpha +384 \alpha ^{2}= 0. \end{aligned}$$
(7.5)

Equation (7.5) can not be solved analytically, we numerically solved the above equation and estimate the critical points as shown in the tables below.

Table 3 Values of critical volume (\(v_{c}\)), critical pressure (\(P_{c}\)), critical temperature (\(T_{c}\)) and \(\rho _{c}=P_{c}v_{c}/T_{c}\) for different graviton mass with \(Q=1\), \(\alpha =0.1\), \(c=1\) \(c_{1}=-2\) and \(c_{2}=0.75\)
Table 4 Values of critical volume(\(v_{c}\)), critical pressure (\(P_{c}\)), critical temperature (\(T_{c}\)) and \(\rho _{c}=P_{c}v_{c}/T_{c}\) for different charged of the black hole with \(m=0.5\), \(\alpha =0.1\), \(c=1\) \(c_{1}=-2\) and \(c_{2}=0.75\)
Table 5 Values of critical volume (\(v_{c}\)), critical pressure (\(P_{c}\)), critical temperature (\(T_{c}\)) and \(\rho _{c}=P_{c}v_{c}/T_{c}\) for different Gauss–Bonnet coupling parameter with \(Q=0.1\), \(m=0.2\), \(c=1\) \(c_{1}=-2\) and \(c_{2}=0.75\)

In Tables 3, 4 and 5, we numerically solve Eq. (7.5) for different values of graviton mass, charge and Einstein–Gauss–Bonnet coupling parameter, we estimate the value of critical volume (\(v_c\)), critical pressure (\(P_c\)), critical temperature (\(T_c\)) and \(\rho _c\). From Table 3, we can say that as graviton mass increases from zero then the critical volume (\(v_c\)), critical temperature (\(T_c\)) decreases, critical pressure (\(P_c\)), and \(\rho _c\) increases. The effects of black hole charge on the critical parameters are shown in Table 4, keeping the graviton mass fixed. As the charge of the black holes increases critical volume (\(v_c\)) and \(\rho _c\) increase, however, critical pressure and critical temperature decrease. The effects of the Gauss–Bonnet coupling parameter (\(\alpha\)) on the critical parameters are shown in Table 5. In Fig. 7, we plot the Hawking temperature for different values of Gauss–Bonnet coupling parameter and charge with \(P<P_c\), \(P=P_c\) and \(P>P_{c}\).

In Fig. 8a and b, the Hawking temperature is depicted for different values of \(\alpha\) keeping pressure fixed. When pressure is less than critical pressure (\(P_c\)), the curve has two critical points (one of them is maxima and another is minima). For the pressure equal to the critical pressure (\(P_c\)), two turning points come to an inflection point and when \(P>P_c\) the curve does not attain any turning points. The effects of charge on the Hawking temperature are shown in Fig. 8c and d. The inclusions of charge basically reduced the position of local maxima and minima when \(P<P_c\). Furthermore, if we increase the charge then the position of local maxima and minima decrease by a significant amount (Fig. 8d). The rest of the behaviour is similar to Fig. 8a and b. The behaviour of Hawking temperature of charged less black hole for \(P \le P_c\) and \(P>P_c\) is shown in Ref. [50]. The Hawking temperature of the black hole with \(Q=0\) attains local maxima and minima when \(P <P_c\). In the chargeless case position of local maxima and minima is higher than the charged black hole.

Fig. 8
figure 8

\(P=0.25P_c\) denoted by solid black line, \(P=P_c\) denoted by dash red line and \(P=3P_c\) denoted by dash dot blue line with \(c=1\), \(c_2=1\) and \(m=1.5\)

In Fig. 9, we plot Gibbs free energy Vs. temperature for different values of Gauss–Bonnet coupling parameter and black holes charge with \(P<P_c\), \(P=P_c\) and \(P>P_{c}\). In Fig. 9a and b, Gibbs free energy for different values of Gauss–Bonnet coupling parameters is depicted. When pressure is less than the critical pressure (\(P_c\)), Gibbs free energy shows swallow tail (triangular shape) behavior, which indicates that the system undergoes a first-order phase transition, i.e., below the critical pressure a transition between small black hole (SBH) and large black hole (LBH) occurs. The Gibbs free energy of LBH is smaller compared to the SBH. At the point of intersection of the curve (\(P<P_c\)), where first-order phase transition occurs, the entropy of the system is discontinuous as entropy depends on the horizon radius of the black holes and the radius of the SBH and LBH is different. For \(P=P_c\), the swallow tail behavior disappears at which a second-order phase transition occurs. For \(P>P_c\) swallow tail behavior completely disappears and no phase transition occurs. A similar kind of behavior is shown in Fig. 9c and d for different values of charge.

Fig. 9
figure 9

\(P=0.25P_c\) denoted by solid black line, \(P=P_c\) denoted by dash red line and \(P=3P_c\) denoted by dash dot blue line with \(c=1\), \(c_{1}=-0.1\), \(c_2=1\) and \(m=1\)

8 Joule–Thomson expansion

In this section, we discuss the effects of massive gravity on the Joule–Thomson expansion of charged AdS black holes in 4D Einstein–Gauss–Bonnet massive gravity. The Joule–Thomson expansion of charged AdS black holes was first studied in Ref. [59]. After that Joule–Thomson expansion of D dimensional black holes was studied in Ref. [73]. Using numerical investigation, Joule–Thomson expansion of Kerr-AdS and Kerr-Newman-AdS is also studied [60, 74]. Joule–Thomson expansion of charged AdS black hole in 4D Einstein massive gravity discussed in Ref. [66]. Joule–Thomson expansion of charged AdS 4D Einstein massive gravity black hole in Maxwell and Born–Infeld electrodynamics discussed in Ref. [21, 75]. The Joule–Thomson thermodynamic coefficient is given by

$$\begin{aligned} \mu _{J}= \biggl ( \frac{\partial {T}}{\partial {P}} \biggl )_{M}= \frac{1}{C_{P}} \biggr [ T \Bigl (\frac{\partial {V}}{\partial {P}}\Bigl )_P - V \biggr ]=\frac{(\partial {T}/\partial {r_{+}})_M}{(\partial {P}/\partial {r_{+}})_M}. \end{aligned}$$
(8.1)

The Joule–Thomson effect is an isenthalpic process, which means that enthalpy remains constant during the process. In the Joule–Thomson process pressure always decrease but the temperature can increase/decrease, thus Joule–Thomson thermodynamic coefficient (\(\mu\)) can be negative/positive. When \(\mu >0\) the Joule–Thomson expansion corresponds to the cooling region of the isenthalpic or constant mass curve and \(\mu <0\) corresponds to the heating region of the isenthalpic or constant mass curve. The Joule - Thomson thermodynamic coefficient vanishes for some particular value of temperature, which is known as inverse temperature (\(T_i\)) and corresponding pressure is known as inverse pressure (\(P_i\)). The cooling and heating regions are separated by the set of points (\(P_i\), \(T_i\)) and the curved formed by the set of points (\(P_i\), \(T_i\)) known as the inverse curve. Clearly, the region above the inverse curve is known as the cooling region and the region below the inverse curve is known as the heating region. At inverse temperature sign of Joule–Thomson coefficient changes \(\mu _{J}(T_{i})=0\). From the above equation, we obtain inverse temperature

$$\begin{aligned} T_{i}= V \biggl ( \frac{\partial {T}}{\partial {V}} \biggl )_{P} = \frac{r_{+}}{3} \biggl ( \frac{\partial {T}}{\partial {r_{+}}} \biggl )_{P}. \end{aligned}$$
(8.2)

From Eq. (3.1) and using \(P=3/8\pi l^2\), we obtain pressure in terms of black hole mass

$$\begin{aligned} P=\frac{3}{4\pi r_{+}^2}\left[ \frac{M}{ r_{+}}-\frac{ Q^{2}}{2 r_{+}^2}-\frac{1}{2}-\frac{ \alpha }{2 r_{+}^2} -\frac{m^{2} c^{2} c_{2} }{2}-\frac{m^{2} c c_{1}r_{+}}{4 }\right] . \end{aligned}$$
(8.3)

Now, from Hawking temperature and using the relations \(P=1/8\pi l^2\), we obtain

$$\begin{aligned} T=\frac{1}{4 \pi r (r_{+}^{2}+2 \alpha )}\left[ 8\pi P r_{+}^{4}-Q^{2}+r_{+}^{2}-\alpha +c^{2} c_{2} m^{2} r_{+}^{2}+m^{2} c c_{1} r_{+}^{3}\right] . \end{aligned}$$
(8.4)
Fig. 10
figure 10

\(M=2\) denoted by solid black line, \(M=2.5\) denoted by red dash line, \(M=3\) denoted by blue dash-dot line with \(m=1\), \(Q=1\), \(c=1\), \(c_1=-1\) and \(c_2=1\). A solid gold line denotes an inverse curve

Fig. 11
figure 11

\(m=0\) denoted by solid black line, \(m=1\) denoted by red dash line, \(m=2\) denoted by blue dash dot line and \(m=3\) denoted by green dash dot line with \(M=5\), \(Q=1\), \(c=1\), \(c_1=-1\) and \(c_2=1\)

Fig. 12
figure 12

\(M=20\), \(\alpha =0.5\) and \(c=1\). Left panel: \(m=0\) denoted by the solid black line, \(m=3\) denoted by a red dash line, \(m=5\) denoted by a blue dash-dot line and \(m=7\) denoted by an orange dash-dot line. Right panel: \(m=0\) denoted by the solid black line, \(m=1\) denoted by a red dash line, \(m=2\) denoted by a blue dash-dot line and \(m=3\) denoted by an orange dash-dot line

Fig. 13
figure 13

\(M=2\), \(Q=1\), \(\alpha =0.5\) and \(c=1\). Left panel: \(c_2=0.1\) denoted by an orange dash line, \(c_2=1\) denoted by a red dash line, \(c_2=-1\) denoted by a green dash-dot line, and \(c_2=-2\) denoted by a blue dash-dot line. Right panel: \(c_1=1\) denoted by a red dash line, \(c_1=2\) denoted by an orange dash line, \(c_1=-1\) denoted by a green dash-dot line and \(c_2=-2\) denoted by a blue dash-dot line

Using Eqs. (8.3) and (3.4) constant mass curve can be obtained. In Figs. 10, 11, 12, 13 and  14 we plot the constant mass curve. In Fig. 10, constant mass and an inverse curve are shown for different values of black hole mass. The left region of the inverse curve represents cooling and the right region represents heating. In Figs. 11 and 12 constant mass curve is shown for different values of Gauss–Bonnet coupling parameter and charge of the black hole. The effects of parameters \(c_1\) and \(c_2\) are shown in Figs. 13,  14 and  15.

Fig. 14
figure 14

\(m=0\) denoted by solid black line, \(m=0.5\) denoted by dash red line, \(m=1\) denoted by dash orange line, \(m=1.5\) denoted by blue dash dot line and \(m=2\) denoted by dash dot green line with \(M=2\), \(Q=1\), \(\alpha =0.5\) and \(c=1\)

Fig. 15
figure 15

\(m=0\) denoted by solid black line, \(m=0.5\) denoted by dash red line, \(m=1\) denoted by dash orange line, \(m=1.5\) denoted by blue dash dot line and \(m=2\) denoted by dash dot green line with \(M=2\), \(Q=1\), \(\alpha =0.5\) and \(c=1\)

Fig. 16
figure 16

\(Q=1\), \(c=1\), \(c_1=-1\) and \(c_2=1\). Left panel: \(m=0\) denoted by the solid black line, \(m=1\) denoted by red dash line, \(m=2\) denoted by orange dash line, \(m=3\) denoted by blue dash-dot line, \(m=4\) denoted by green dash-dot line and \(m=5\) denoted by a gold dash-dot line. Right panel: \(\alpha =0\) denoted by a solid black line, \(\alpha =0.1\) denoted by red dash line, \(\alpha =0.2\) denoted by orange dash line, \(\alpha =0.3\) denoted by blue dash-dot line, \(\alpha =0.4\) denoted by green dash-dot line and \(\alpha =0.5\) denoted by a gold dash-dot line

We use Eqs. (8.2) and (8.4) and obtain the inverse pressure as

$$\begin{aligned} P_{i}=\frac{6 Q^{2} r_{+}^{2}-4 r^{4}+8 Q^{2} \alpha +2 \alpha r_{+}^{2}+8 \alpha ^{2} -4 c^{2} c_{2} m^{2} r_{+}^{4}-3 c c_{1} m^{2} r_{+}^{5}-4 \alpha c^{2} c_{2} m^{2} r_{+}^{2}-2 \alpha c c_{1} m^{2} r_{+}^{3}}{16 \pi r_{+}^{6} }. \end{aligned}$$
(8.5)

Now, using the relations (8.4) and (8.5), we obtain

$$\begin{aligned} T_{i}= \frac{-m^{2} c c_{1} r_{+}^{3}+(-2 c^{2} c_{2} m^{2}-2) r_{+}^{2}+4 Q^{2}+4 \alpha }{8 \pi r_{+}^{3}}. \end{aligned}$$
(8.6)
Fig. 17
figure 17

\(Q=1\), \(c=1\), \(\alpha =0.5\) and \(m=1\). Left panel: \(c_1=2\) denoted by a red dash line, \(c_1=1\) denoted by an orange dash line, \(c_1=-1\) denoted by a blue dash-dot line, \(c_1=-2\) denoted by a green dash-dot line. Right panel: \(c_2=2\) denoted by a red dash line, \(c_2=1\) denoted by an orange dash line, \(c_2=-1\) denoted by a blue dash-dot line, \(c_2=-2\) denoted by a green dash-dot line

Fig. 18
figure 18

\(M=2.5\), \(Q=1\), \(c=1\), \(\alpha =0.5\) and \(m=1\). Left panel: \(c_2=-2\) denoted by a red dash line, \(c_2=-1\) denoted by an orange dash line, \(c_2=1\) denoted by a blue dash-dot line, \(c_2=2\) denoted by a green dash-dot line. Right panel: \(c_1=-2\) denoted by a red dash line, \(c_1=-1\) denoted by an orange dash line, \(c_1=1\) denoted by a blue dash-dot line, \(c_1=2\) denoted by a green dash-dot line

Finally, we will drive the Joule–Thomson thermodynamic coefficient using Eqs. (8.1), (8.3) and (8.4)

$$\begin{aligned} \mu _{J}= \frac{8r_{+}^{3} \Bigl ( 6 M r_{+}^{3}-6 Q^{2} r_{+}^{2}-r_{+}^{4}-4 Q^{2} \alpha -4 \alpha r_{+}^{2}-4 \alpha ^{2} -c^{2} c_{2} m^{2} r_{+}^{4}+2 \alpha c^{2} c_{2} m^{2} r_{+}^{2}+\alpha c c_{1} m^{2} r_{+}^{3}\Bigl )}{3 (r_{+}^{2}+2 \alpha )^{2} \Bigl (12 M r_{+} -8 Q^{2}-4 r_{+}^{2}-8 \alpha -4 c^{2} c_{2} m^{2} r_{+}^{2}-m^{2} c c_{1} r_{+}^{3} \Bigl )}. \end{aligned}$$
(8.7)
Fig. 19
figure 19

\(m=0\) denoted by solid black line, \(m=0.5\) denoted by red dash line, \(m=1\) denoted by orange dash line, \(m=1.5\) denoted by blue dash-dot line, \(m=2\) denoted by green dash-dot line with \(M=2.5\), \(Q=1\), \(c=1\), and \(\alpha =0.5\)

(Figs. 16, 17)

In Figs. 18 and 19, Joule–Thomson thermodynamic coefficient is plotted. \(\mu <0\) represent heating phase and \(\mu >0\) represent cooling phase.

9 Conclusions

In this work, we have found an exact solution of Einstein–Gauss–Bonnet massive gravity with charge in 4D AdS space and the horizon structure of the black holes is discussed. The physical mass (enthalpy) and Hawking temperature of the black holes were computed. Treating the cosmological constant as the pressure, we drive the first law of black hole thermodynamics. To check global stability, the Gibbs free energy of the black hole was computed. For the local stability of the black holes we estimated the specific heat. Here, we found that as the mass of the graviton increases one divergent point appears. For \(m=0,1\), the specific heat of the black hole goes from a negative value (unstable phase) to a positive one (stable phase) and when \(m>1\) a second-order phase transition occurs. Furthermore, we investigated the Van der Walls-like phase transition of the black holes. The effects of graviton mass, the charge of the black holes and the Gauss–Bonnet coupling parameter on the critical points were also studied. As the mass of the graviton increase, critical pressure also increases and critical temperature shows the opposite behavior. When charge and Gauss–Bonnet coupling parameters of the black hole increase, we found that both critical pressure and temperature decrease. From the \(G-T\) plot, we observed that a swallow tail appears below the critical point which indicates a first-order phase transition, and at the critical point, a second-order phase transition occurs. Finally, Joule–Thomson expansion of charged AdS black hole in 4D Einstein–Gauss–Bonnet massive gravity was studied. The effects of the Gauss–Bonnet coupling parameter and massive gravity parameters on the constant mass and inverse curve are also depicted.