1 Introduction

In general relativity (GR), astrophysical black holes are formed under gravitational collapse of massive star at the end state of evolution, and they have always been very fascinating and intriguing objects for their extreme geometric and remarkable gravitational properties. The existence of black holes has been predicted by simple mathematical models as a generic result of finding exact analytical solution of the field equations of GR. Recent gravitational wave signals detected by the LIGO and Virgo scientific collaborations [1, 2] and the first image of supermassive black hole at the center of the elliptical M87 galaxy, observed by the Event Horizon Telescope (EHT) Collaboration [3, 4] have provided strong evidence in favor of the existence of black holes in nature. Those observations have been expected to be very potent tests in probing unknown aspects associated with precise measurements of the parameters of black holes, yet there still remains open questions concerning the behavior of black holes. We know that Einstein gravity—general relativity—is a best theory in the strong field regime apart from the singular regions of the spacetime. However, GR is an incomplete theory due to the inevitable occurrence of singularities, which has remained one of the most important unresolved questions [5]. The theoretical existence of a singularity marks the limit of GR where it loses its applicability. In this respect, the cosmic censorship conjecture (CCC) was first proposed by Penrose [6] in 1969 for imposing the validity of Einstein gravity, i.e. the WCCC always prevents the singularity from being seen by outside observers. However, the WCCC still remains open as there exists no strong proof for its validity in the general case. Despite this fact, the WCCC has been tested in the context of different gravity models via proposed gedanken experiments to understand whether or not a black hole turns into a naked singularity. If it were possible to violate the WCCC, it would lead to serious implications from the observational point of view, i.e. it would make it possible to observe the final state of gravitational collapse of an object. Besides, there does exist a vast literature on the formation of naked singularity as an end state of gravitational collapse, starting from Christodoulou (1986) [see, e.g. 7, 8, 9, 10, 11, 12, 13, 14, 15, 16].

The validity of the WCCC was formulated by Wald [17] for the first time to overcharge/overspin black hole by the process of particle accretion. In such a process it was shown that turning an extremal black hole into a naked singularity can never happen by using test particles with appropriate parameters and the WCCC is strongly held. Later this issue was addressed somewhat differently [18] and it was shown that it is impossible for particles of suitable parameters to approach the horizon as parameter space pinches off. Thus, a nearly extremal black hole cannot be turned into the extremal one by falling in particles. Later on it was found [19] that extremality may, however, be jumped over in a discontinuous process and hence the horizon can be destroyed. It means that a black hole could be overcharged by a particle accretion process. Much later this experiment was extended to Kerr and Kerr–Newman black holes [20, 21]. It was shown that a rotating black hole could be overspun if and only if an in-falling particle adds a sufficient amount of angular momentum to the black hole’s angular momentum. Sufficient amount of work has been done since then to test the WCCC for overcharging/overspinning of black hole in various frameworks; [see, e.g. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]. It is worth noting that in the above extensive body of work, the higher order and backreaction effects were ignored. Meanwhile, if those effects are taken into account it would not be possible for impinging particles to destroy the black hole horizon and thus the WCCC is always respected [see,e.g. 33, 34, 35, 36, 37, 38, 39]. Furthermore, the above thought experiment has been extended to the context of magnetized black holes [40, 41], the black hole with charged scalar field [42], BTZ black holes [43] as well as black hole dynamics [44, 45]. Further, a clear distinction between black hole and naked singularity was shown through the phenomenon of spin precession [46].

Recently Sorce and Wald [47, 48] have developed a new version of gedanken experiment, which allows one to take a non-linear order perturbation process. It was shown that this experiment strongly supports the validity of the WCCC, i.e. the black hole cannot be overcharged/spun under non-linear order perturbations. It turns out that this thought experiment can only provide the correct result if the black hole could be overcharged/spun. In this context, the WCCC cannot be violated all through for non-linear order [41, 49,50,51,52,53,54,55]. Further the same analysis has been extended to higher dimensional black holes. Note that the WCCC has already been explored for a higher dimensional charged black hole, leading to the result that a black hole could be overcharged under a linear order perturbation [56]. It is then worth studying a charged rotating black hole in five dimensions and see whether it can be over-extremalized. In spite of the fact that the Kerr–Newman black hole has no exact solution of the Einstein–Maxwell equation for an analogue of a five dimensional Kerr–Newman black hole this issue can be fixed by considering the minimally gauged supergravity charged rotating black hole in five dimensions [57]. It is shown that when one goes to a five dimensional charged rotating black hole with single rotation, it could be over-extremalized in the case when the charge parameter dominates over rotation while it cannot do so when the opposite is the case [58]. It is worth noting that the study of overspinning of an extremal black hole in higher dimensions shows that neither an extremal black hole could be overspun nor a non-extremal one could be converted into an extremal one under a linear order perturbation [24]. Further the WCCC has been addressed for black holes in dimensions \(D\ge 5\) [54, 59], and the black hole in dimensions \(D\ge 6\) can never be overspun and always obeys the CCC in the weak form [60].

In an astrophysical context it is believed that black holes cannot be found in vacuum due to the presence of matter and fields in their nearby environment. Cosmological observations of supernova explosions SNIa confirm an accelerating rate of expansion of our universe at present, commonly explained by a cosmological constant \(\Lambda \) endowed with a repulsive gravitational effect (i.e. the de Sitter case). The cosmological observations also suggest the estimated value of the cosmological constant to be \(\Lambda \sim 10^{-52} m^{-2}\) [61, 62]. Thus, taking into account the repulsive effect due to the cosmological constant would play an important role at large length and time scales as well as in the black hole vicinity. It is a fact that the motion of test particles can be drastically influenced by the geometry in the strong field regime, while at the same time both the geometry and the geodesics of such particles could be affected by other matter fields as well. In this respect, the existence of dark matter is particularly important, similarly to the cosmological constant being important at large scales. The idea of the existence of dark matter has initially been introduced by the observation of the flat rotation curves of giant elliptical and spiral galaxies [63]. It is believed in the light of mounting evidence from the astrophysical data that the rotational velocity of stars in the outskirts of many giant spiral galaxies can only be explained with the help of elusive dark matter, which contributes to approximately up to 90% mass of the galaxy while the rest is luminous matter composed of baryonic matter [64]. In the early phase of evolution of the universe, the dark matter used to be mostly found near the galactic central regions, which helped in the formation and clustering of stars around the galactic center, while in the late stages of galactic evolution the dark matter gradually drifted far out to form a dark matter galactic halo around the host galaxy by various dynamical processes. Dark matter has not been so far detected directly, yet astrophysical observations indicate that many giant elliptical and spiral galaxies contain a (sometimes a binary) supermassive black hole in the galactic center embedded in a giant dark matter halo [3, 4, 65,66,67,68]. In the literature, several black hole solutions with a dark matter background have been proposed (see for example [69,70,71,72,73,74,75,76,77,78]). The analysis of the accretion process for different spherically symmetric spacetime geometries for a static fluid and the accretion of phantom energy onto a stationary charged black hole has been investigated testing under various conditions (see for example [79, 80]).

We note that the above analysis has also been extended to the case of rotating anti-de Sitter (AdS) black holes [81,82,83] as well as to the asymptotically AdS case [84,85,86] to check the validity of the WCCC. It is also worth noting that the WCCC has also been recently addressed [87] for a RN-AdS black hole where the cosmological constant is regarded as a variable. It is well known [19] that the WCCC for a RN black hole can be violated at the linear order accretion and this was also proved by a new version of gedanken experiment [47] for linear order, but the result is, however, overturned when non-linear order process was included. The question then arises of what happens for the RN black hole when we consider a real astrophysical scenario by taking into account the effects due to the presence of a cosmological constant and perfect fluid dark matter—could it be overcharged or not and does it violate the WCCC for linear order accretion? This is what we plan to investigate in this paper.

The paper is organized as follows: in Sect. 2 we review and describe variational identities for a diffeomorphism covariant theory to derive linear and non-linear variational identities. In Sect. 3 we briefly discuss Einstein–Maxwell theory and the metric for the RN-dS black hole in the perfect fluid dark matter. In Sect. 4 we derive perturbation inequalities for linear and non-linear order perturbations and check whether overcharging of black hole is possible or not. We end up with our conclusion in Sect. 5, which summarizes the obtained results.

2 Variational identities

To derive variational identities, a diffeomorphism covariant theory was proposed for manifold \(\mathcal M\) in n dimensions. This theory stems from a Lagrangian \(\mathbf {L}\) composed of the metric \(g_{ab}\) and other fields \(\psi \) [47, 88]. One can then indicate all dynamical fields by \(\phi =(g_{ab},\psi )\). Thus, the above Lagrangian is defined by

$$\begin{aligned} \delta \mathbf {L}=\mathbf {E} \delta \phi +d\varvec{\Theta }(\phi ,\delta \phi )\, , \end{aligned}$$
(1)

with \(\mathbf {E}\) being the equations of motion, and \(\varvec{\Theta }\) being the symplectic potential. The symplectic current \((n-1)\)-form \(\varvec{\omega }\) then takes the form

$$\begin{aligned} \varvec{\omega }(\phi ,\delta _1\phi ,\delta _2\phi )=\delta _1 \varvec{\Theta }(\phi ,\delta _2\phi )-\delta _2\varvec{\Theta }(\phi ,\delta _1\phi )\, . \end{aligned}$$
(2)

One may consider an arbitrary vector \(\xi ^{a}\) with \(\phi \) for given M in order to define the Noether current \((n-1)\)-form

$$\begin{aligned} \mathbf {J}_\xi =\varvec{\Theta }(\phi ,{L}_\xi \phi )-\xi \cdot \mathbf {L}\, . \end{aligned}$$
(3)

Following [89] the above equation for the current can be written as

$$\begin{aligned} \mathbf {J}_\xi =d\mathbf {Q}_\xi + \mathbf {C}_\xi \, , \end{aligned}$$
(4)

with \(\mathbf {Q}_\xi \) being the Noether charge. The second term \( \mathbf{C} _\xi =\xi ^{a}{} \mathbf{C} _{a}\) on the right hand side in the above expression is referred to as the constraint of the theory and vanishes in the case when the equations of motion are satisfied, i.e. for \(d\mathbf {J}_\xi =0\).

Further Eqs. (3) and (4) give rise to the condition for obtaining the linear variational identity for fixed \(\xi ^{a}\), and thus on a Cauchy surface \(\Xi \) we have

$$\begin{aligned} \int _{\partial \Xi }\left[ \delta \mathbf {Q}_\xi -\xi \cdot \varvec{\Theta }(\phi ,\delta \phi )\right]= & {} \int _{\Xi }\varvec{\omega }(\phi ,\delta \phi ,\mathcal {L}_\xi \phi )\nonumber \\&-\int _{\Xi }\xi \cdot \mathbf {E}\delta \phi -\int _{\Xi }\delta \mathbf {C}_\xi \, . \end{aligned}$$
(5)

The first term \(\int _{\Xi }{\omega }(\phi ,\delta \phi ,\mathcal {L}_\xi \phi )\) in the above equation corresponds to the variation part of the system for a given vector field \(\xi ^{a}\). This term vanishes as long as \(\xi ^{a}\) satisfies a Killing vector and a symmetry of \(\phi \). Since \(\xi ^{a}\) is considered to be a Killing vector being invariable in the perturbation process the following is satisfied: \(\mathcal {L}_\xi \phi =0\). Considering the linear variational identity, we obtain the non-linear variational identity on the same surface,

$$\begin{aligned} \int _{\partial \Xi }\left[ \delta ^2 \mathbf {Q}_\xi -\xi \cdot \delta \varvec{\Theta }(\phi ,\delta \phi )\right]= & {} \int _{\Xi }{\omega }(\phi ,\delta \phi ,\mathcal {L}_\xi \delta \phi )\nonumber \\&-\int _{\Xi }\xi \cdot \delta \mathbf {E}\delta \phi \nonumber \\&-\int _{\Xi }\delta ^2 \mathbf {C}_\xi \, . \end{aligned}$$
(6)

3 Einstein–Maxwell theory and RN-dS black hole in perfect fluid dark matter

In this section, we consider Einstein–Maxwell theory for obtaining an explicit form for linear and non-linear variational identities for nearly extremal RN-dS black hole in perfect fluid dark matter by adapting the well accepted method developed by Sorce and Wald [47]. However it turns out that the dark matter profile contained in the Lagrangian may lead to more complicated variational identities. To avoid this we now consider the off-shell variation of Einstein–Maxwell theory [90]. The Lagrangian in four dimensional Einstein–Maxwell theory is given by

$$\begin{aligned} \mathbf {L}=\frac{\varvec{\epsilon }}{16\pi }\left( R-F^{a b}F_{a b}\right) \, , \end{aligned}$$
(7)

with the volume element \(\varvec{\epsilon }\) for given black hole spacetime metric, the Ricci scalar R and the Faraday tensor of the electromagnetic field \(F_{ab}\). Let us then define the dynamical field which is composed of the metric and vector potential of electromagnetic field, i.e. \(\phi =(g_{ab},A_{a})\), satisfying the above Lagrangian and we have

$$\begin{aligned} \mathbf {E}(\phi )\delta \phi =-{\epsilon }\left( \frac{1}{2} T^{ab} \delta g_{a b}+\mathbf{j} ^a\delta \mathbf{A} _{a}\right) \, , \end{aligned}$$
(8)

with the non-electromagnetic part of the stress–energy tensor

$$\begin{aligned} T_{ab}=\frac{1}{8\pi }\left( R_{ab}-\frac{1}{2}g_{ab}R\right) -T_{ab}^\mathrm{{EM}}\, , \end{aligned}$$
(9)

and the electromagnetic current \(\mathbf{j} ^a=\frac{1}{4\pi } \nabla _{b} F^{ab}\). Note that the corresponding non-electromagnetic part consists of two parts, ordinary mater and dark matter sources, i.e. \(T_{ab}=T^{M}_{ab}+T^\mathrm{{DM}}_{ab}\). From the above equation, the symplectic potential consists of two electromagnetic and gravity parts and can be defined in the following way:

$$\begin{aligned} \varvec{\Theta }_{ijk}\left( \phi ,\delta \phi \right)= & {} \frac{1}{16\pi }\epsilon _{aijk}g^{ab} g^{cd}(\nabla _{d}\delta g_{bc}-\nabla _{b}\delta g_{cd})\nonumber \\&-\frac{1}{4\pi }\epsilon _{aijk}F^{ab}\delta \mathbf{A} _{b}\, , \end{aligned}$$
(10)

where \(\epsilon _{aijk}\) is the Levi-Civita tensor. For the Einstein–Maxwell theory the corresponding symplectic current takes the following form:

$$\begin{aligned} \omega _{ijk}= & {} \frac{1}{4\pi }\left[ \delta _{2}(\epsilon _{aijk} F^{ab}) \delta _{1} \mathbf{A} _{b}-\delta _{1}(\epsilon _{aijk} F^{ab}) \delta _{2} \mathbf{A} _{b}\right] \nonumber \\&+\frac{1}{16\pi }\epsilon _{aijk} w^{a}\, , \end{aligned}$$
(11)

where the first term on the right hand side corresponds to the electromagnetic part while the second term corresponds to the gravity part. From Eq. (11) \(w^{i}\) is given by

$$\begin{aligned} w^{i}= & {} P^{ijkhab}\left( \delta _{2} g_{jk} \nabla _{h}\delta _{1}g_{ab}-\delta _{1} g_{jk} \nabla _{h}\delta _{2}g_{ab}\right) \, , \end{aligned}$$
(12)

with

$$\begin{aligned} P^{ijkhab}= & {} g^{ia} g^{b j} g^{k h}-\frac{1}{2}g^{ih} g^{ja} g^{b k} - \frac{1}{2}g^{i j} g^{k h} g^{ab}\nonumber \\&- \frac{1}{2}g^{j k} g^{ia} g^{b h} + \frac{1}{2}g^{jk} g^{i h} g^{ab}\, . \end{aligned}$$
(13)

By employing \(\mathcal {L}_{\xi } g_{ab} = \nabla _{a}\xi _{b} +\nabla _{b}\xi _{a}\) and \(\nabla _{a}{} \mathbf{A} _{b}=F_{ab}+\nabla _{b}{} \mathbf{A} _{a}\), we obtain the Noether current

$$\begin{aligned} (J_{\xi })_{ijk}= & {} \frac{1}{8\pi }\epsilon _{aijk } \nabla _{b}(\nabla ^{[b} \xi ^{a]}) + \epsilon _{aijk} T_{b}^{a} \xi ^{b}\nonumber \\&+\frac{1}{4\pi }\epsilon _{aijk}\nabla _{c}(F^{ca} \mathbf{A} _{b} \xi ^{b}) + \epsilon _{aijk} \mathbf{A} _{b} \mathbf{j} ^{a} \xi ^{b}\, . \end{aligned}$$
(14)

From Eq. (4), the Noether charge \(Q_{\xi }=Q_{\xi }^{GR}+Q_{\xi }^\mathrm{{EM}}\) can be written in the following form:

$$\begin{aligned} (Q_{\xi })_{ijk}= & {} -\frac{1}{16\pi }\epsilon _{ijk ab}\nabla ^{a}\xi ^{b}-\frac{1}{8\pi }\epsilon _{ijk ab} F^{ab } \mathbf{A} _{c} \xi ^{c}\, , \end{aligned}$$
(15)

and the constraint

$$\begin{aligned} (C_{\zeta })_{ijk}= & {} \epsilon _{aijk }(T_{\zeta }^{a} + \mathbf{A} _{\zeta } \mathbf{j} ^{a})\, . \end{aligned}$$
(16)

Next, we consider a static and spherically symmetric charged black hole spacetime metric as a solution of Einstein–Maxwell theory. The RN black hole metric generalized to a nonvanishing cosmological parameter \(\Lambda \) has been introduced by Lake [91], a metric known as the RN-dS metric. Also there was a solution that provides a way to include a dark mater distribution in black hole background geometry [70]. Later this solution was generalized to incorporate a nonvanishing cosmological constant [71]. Here, we consider spacetime metric which describes a static and spherically symmetric RN-dS black hole in perfect fluid dark matter for which the Lagrangian of Einstein–Maxwell theory is given by

$$\begin{aligned} \mathbf {L}=\frac{\varvec{\epsilon }}{16\pi }\left( R-2\Lambda -F^{a b}F_{a b}+16\pi \mathcal {L}_\mathrm{{DM}}\right) \, , \end{aligned}$$
(17)

with cosmological constant \(\Lambda \) with positive value, and the dark matter Lagrangian density \(\mathcal {L}_\mathrm{{DM}}\). According to the above Lagrangian the Einstein equation of motion can be written

$$\begin{aligned} R_{ab}-\frac{1}{2}g_{ab}R+\Lambda g_{ab}= & {} 8\pi \left( T_{ab}^\mathrm{{DM}}+T_{ab}^\mathrm{{EM}}\right) \, , \end{aligned}$$
(18)
$$\begin{aligned} \nabla _{b} F^{ab}= & {} {4\pi } \mathbf{j} ^a\, , \end{aligned}$$
(19)

with \(T^\mathrm{{EM}}_{ab}\) representing the stress–energy tensor for the electromagnetic field,

$$\begin{aligned} T^\mathrm{{EM}}_{ab}=\frac{1}{4\pi }\left( F_{ac}F^c_{b}-\frac{1}{4}g_{ab}F_{cd}F^{cd}\right) \, , \end{aligned}$$
(20)

while \(T_{ab}^\mathrm{{DM}}\) for the perfect fluid dark matter is specified as

$$\begin{aligned} (T^{a}_{b})^\mathrm{{DM}}=\mathrm{diag}(-\rho ,p_{r},p_{\theta },p_{\phi })\, . \end{aligned}$$
(21)

In the above equation, \(\rho \), \(p_{r}\), \(p_{\theta }\) and \(p_{\phi }\), respectively, refer to the density, radial and tangential pressures. Then a static and spherically symmetric RN-dS black hole metric in perfect fluid dark matter is given by [70, 72]

$$\begin{aligned} \mathrm{{d}} s^2= & {} \, -F(r) \mathrm{{d}}t^2 + F(r)^{-1}\, \mathrm{{d}}r^2 + r^2\mathrm{{d}}\Omega ^2\, , \end{aligned}$$
(22)

with the line element of the 2-sphere \(d\Omega ^2\) and

$$\begin{aligned} F(r)= & {} 1- \frac{2M}{r} + \frac{Q^2}{r^{2}}-\frac{\Lambda }{3}r^2+\frac{\lambda }{r}\log \frac{r}{\vert \lambda \vert }\, , \end{aligned}$$
(23)

where the parameters M and Q are the mass and electric charge of the black hole, while \(\Lambda \) and \(\lambda \) are related to the cosmological constant and the perfect fluid dark matter, respectively. The metric (22) reduces to the RNdS black hole in the case of vanishing \(\lambda =0\), while it reduces to the RN black hole in the case that both the parameters \(\lambda \) and \(\Lambda \) tend to zero.

The corresponding electromagnetic potential is given by

$$\begin{aligned} \mathbf{A} = -\frac{Q}{r} \mathrm{{d}}t \, . \end{aligned}$$
(24)

Note that here we shall focus on the positive \(\Lambda >0\) and \(\lambda >0\) in testing the effects of cosmological constant and dark matter distribution upon the overcharging of black hole. For black hole horizon, one can write the following relation:

$$\begin{aligned} \frac{\Lambda }{3}r^4 -r^2+ {2M r} -r{\lambda }\log \frac{r}{\vert \lambda \vert }- {Q^2}=0\, , \end{aligned}$$
(25)

which has three positive real roots, i.e. the inner horizon \(r_{-}\), the outer horizon \(r_{+}\) and the cosmological horizon \(r_{c}\) being the largest one among those three roots. However, we shall restrict ourselves to the first two roots, the inner and outer horizons. In the case of small values of \(\Lambda M^2\ll 1\) and \(\lambda /M\ll 1\), Eq. (25) gives the approximated analytical form for a black hole horizon as

$$\begin{aligned} r_{\pm }=M \pm \sqrt{M^2-Q^2+\frac{\Lambda }{3} M^4- \lambda M \log \frac{M}{\vert \lambda \vert }}\, . \end{aligned}$$
(26)

From the above expression for the black hole horizon it is immediately clear that the second term,

$$\begin{aligned} f=M^2-Q^2+\frac{\Lambda }{3} M^4- \lambda M \log \frac{M}{\vert \lambda \vert }\ge 0\, , \end{aligned}$$
(27)

must be always positive for the existence of a black hole horizon, while if it is negative definite it turns into a naked singularity. When this term goes to zero, the two horizons coincide, corresponding to the near extremal black hole. Thus, the black hole could be overcharged, similarly to the RN black hole, which can be overcharged. Further we study whether the overcharging holds well or not.

At the given horizon \(r_{+}\), the horizon area, the surface gravity, the electromagnetic potential and a new physical quantity for RN black hole surrounded by dark matter with cosmological parameter will be, respectively, written as follows [72]:

$$\begin{aligned} A_{+}= & {} 4\pi r_{+}^2\, , \end{aligned}$$
(28)
$$\begin{aligned} k= & {} \frac{f'}{2}|_{r=r_+}\, ,\end{aligned}$$
(29)
$$\begin{aligned} \Phi _{+}= & {} \frac{Q}{r_{+}}\, , \end{aligned}$$
(30)
$$\begin{aligned} \Pi _{+}= & {} \frac{1}{2} \log \frac{r_{+}}{\vert \lambda \vert }\, . \end{aligned}$$
(31)

From the above parameters we can write the first law of the black hole dynamics

$$\begin{aligned} \delta M-\Phi _{+}\delta Q-\Pi _{+}\delta \lambda = \frac{k}{8\pi }\delta A\, , \end{aligned}$$
(32)

where the surface gravity k tends to zero for an extremal black hole.

4 Perturbation inequalities and gedanken experiment to overcharge a RN-dS black hole in perfect fluid dark matter

It is known that the falling of test particle into the black hole transfers the mass and charge to its mass and charge. Hence the final state of the black hole parameters is defined by \(M+\delta M\), \(Q+\delta Q\) and \(\lambda +\delta \lambda \), respectively. For the final state it was shown by Hubeny [19] that a nearly extremal RN black can be overcharged to an \(M<Q\) state by linear order particle accretion. In this section we approach this issue by considering a new gedanken experiment proposed by Sorce and Wald [47]. This experiment allows one to include a non-linear order perturbation process, according to which a one-parameter family of field \(\phi (\alpha )\) perturbations in the background spacetime is taken into consideration. For the sake of clarity, \(\phi (0)\) is referred to as the black hole solution, as described by the line element shown in Eq. (22). Here we consider \(\phi (\alpha \ne 0)\) to exhibit a dynamic spherically symmetric solution perturbed by in-falling matter field, and thus the equation of motion can be written as

$$\begin{aligned}&R_{ab}(\alpha )-\frac{1}{2}R(\alpha )g_{ab}(\alpha )+\Lambda g_{ab}(\alpha )\nonumber \\&\quad = 8\pi \left[ T_{ab}^{M}(\alpha )+T_{ab}^\mathrm{{DM}}(\alpha )+T_{ab}^\mathrm{{EM}}(\alpha )\right] \, , \end{aligned}$$
(33)
$$\begin{aligned}&\nabla _{b} F^{ab}(\alpha )= 4\pi \mathbf{j} ^a(\alpha )\, . \end{aligned}$$
(34)

We note that \(\phi (0)\) satisfies a stationary RN-dS black hole solution with perfect fluid dark matter background, i.e., \(T_{ab}^{M}(0)=\mathbf{j} ^{a}(0)=0\). For this one-parameter family of the field \(\phi (\alpha )\), all matter sources are assumed to cross the horizon portion and fall into the black hole. For that, we apply the Eddington–Finkelstein coordinate \(\upsilon =t+\int \mathrm{{d}}t/F(r)\) to obtain the following line element:

$$\begin{aligned} \mathrm{{d}} s^2(\alpha )= & {} \, -F(r,\upsilon ,\alpha ) \mathrm{{d}}\upsilon ^2 + 2\mu (r,\upsilon ,\alpha )\,\mathrm{{d}}\upsilon \mathrm{{d}}r + r^2\mathrm{{d}}\Omega ^2\,,\nonumber \\ \end{aligned}$$
(35)

which, at the same time, describes the dynamical geometry after being perturbed by the matter field. Note that

$$\begin{aligned} F(r,\upsilon ,0)=F(r)=1- \frac{2M}{r} + \frac{Q^2}{r^{2}}-\frac{\Lambda }{3}r^2+\frac{\lambda }{r}\log \frac{r}{\vert \lambda \vert } \end{aligned}$$

and \(\mu \left( r,\upsilon ,\alpha =0,1\right) =1\) satisfy the background geometry in the above spacetime (see for example [92]). Here we assume the spacetime geometry we are considering to be linearly stable to the one-parameter family of field perturbations \(\phi (\alpha )\), thus referring to the stability condition implying that the spacetime geometry approaches another one described by \(M(\alpha )\), \(Q(\alpha )\) and \(\lambda (\alpha )\) at sufficiently late times under the spherically symmetric perturbation arising from the in-falling matter source, i.e. the dynamical fields can be described by

$$\begin{aligned} F(r,\upsilon ,\alpha )=F(r,\alpha )\,\,\, \text{ and }\,\,\, \mathbf{A} = -\frac{Q(\alpha )}{r} \mathrm{{d}}\upsilon \, . \end{aligned}$$
(36)

For this family of perturbations we have already chosen a hypersurface \(\Xi =\Xi _{1}\cup H\). \(\Xi \) that defines a region which starts from the bifurcation surface B at one end and extends to the horizon portion H, so it becomes spacelike, \(\Xi _{1}\), at the other end, and tends to asymptotic flatness at infinity. The above hypersurface \(\Xi =\Xi _{1}\cup H\) was shown by a diagram in detail in Ref. [47]. Here we note that we assume that the spacetime geometry satisfies the above stability condition stating that the perturbation vanishes at the bifurcation surface B from the property of hypersurface \(\Xi \).

Further we study the variational identities for a nearly extremal black hole. Let us first consider the linear variational identity by the perturbation caused by in-falling matter. Since the first term on the right hand side vanishes accordingly for a Killing vector \(\xi ^{\alpha }\) satisfying \(\mathcal {L}_\xi \phi =0\), the linear variational identity on the hypersurface \(\Xi \) in the expression (5) takes the following form:

$$\begin{aligned} \int _{\partial \Xi }\left[ \delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )\right]= & {} -\int _{\Xi }\zeta \cdot \mathbf {E}\delta \phi \nonumber \\&-\int _{\Xi }\delta \mathbf {C}_\zeta \, , \end{aligned}$$
(37)

where \(\zeta ^{a}\) is assumed to be the vector field for an exterior solution of a stationary black hole. Then one can consider \(\zeta ^{a}=\zeta _{(t)}^{a}\) as the timelike Killing vector, satisfying both equations of motion, i.e. \(\mathcal {L}_\zeta \phi =0\). Hereafter, we focus only on the vector field \(\zeta ^{a}\), and to proceed we choose the gauge condition satisfying

$$\begin{aligned} \zeta ^{a}\delta \mathbf{A} (\alpha )_{a}|_{r=r_+}=0\, , \end{aligned}$$
(38)

where \(\zeta ^{a}=\left( \partial /\partial \upsilon \right) ^{a}\) and \(r_{+}\), respectively, refer to the timelike Killing vector field and the horizon radius.

With the above procedure we consider the boundaries of the Cauchy surface \(\Xi =\Xi _{1}\cup H\) which consists of two boundaries interpreted by spatial infinity at one end and the bifurcation surface B at the other. Here we adapt the properties of the hypersurface and spacetime metric as well, and hence the left-hand side of Eq. (37) can be separated in the following form:

$$\begin{aligned} \int _{\partial \Xi }\left[ \delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )\right]= & {} \int _{S_\infty }\left[ \delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )\right] \nonumber \\&-\int _{B}\left[ \delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )\right] \, .\nonumber \\ \end{aligned}$$
(39)

The point to be noted here is that we apply an \(S_{\infty }\) sphere to replace the boundary of the surface \(\Xi _{1}\). Hence, the contribution to the boundary integral \(S_{\infty }\) stems from the gravitational part [47, 90] and is given by

$$\begin{aligned} \int _{S_{\infty }}\left[ \delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )\right]= & {} \delta M \, . \end{aligned}$$
(40)

By using Eqs. (37) and (39), we rewrite Eq. (5) for the linear variational identity

$$\begin{aligned} \delta M= & {} \int _B[\delta \mathbf {Q}_\zeta -\zeta \cdot \varvec{\Theta }(\phi ,\delta \phi )]-\int _{\Xi _{1}}\zeta \cdot \mathbf {E}\delta \phi \nonumber \\&-\int _{\Xi _{1}}\delta \mathbf {C}_\zeta -\int _H\delta \mathbf {C}_\zeta \, . \end{aligned}$$
(41)

Note that the first term on the right hand side vanishes at the bifurcation surface from the properties of the hypersurface \(\Xi \). Employing Eq. (8) we derive the second term of Eq. (41) as

$$\begin{aligned} \int _{\Xi _{1}}\zeta \cdot \mathbf {E}\delta \phi = -\int _{\Xi _{1}}\zeta \cdot {\epsilon }\left( \frac{1}{2} T^{ab} \delta g_{a b}+\mathbf{j} ^a\delta \mathbf{A} _{a}\right) \, . \end{aligned}$$
(42)

Here, we assume that the perturbation satisfies the stability condition, i.e., \(T_{ab}^{M}(\alpha )=\mathbf{j} ^{a}(\alpha )=0\) at the \(\Xi _1\) surface [90]. By imposing this condition the total stress–energy tensor is given by \(T_{ab}(\alpha )=T_{ab}(\alpha )^\mathrm{{DM}}\) for the background spacetime. Thus we have

$$\begin{aligned} T^{ab}(\alpha )\frac{\mathrm{{d}} g_{ab}(\alpha )}{\mathrm{{d}}\alpha }=0\, , \end{aligned}$$
(43)

which leads to the second term on the right hand side of Eq. (41) to vanish at the \(\Xi _1\). The third term can be obtained:

$$\begin{aligned} \int _{\Xi _{1}}\delta \mathbf {C}_\zeta =- \Pi _{+} \delta \lambda \, , \end{aligned}$$
(44)

where we have used \([C_{\zeta }(\alpha )]_{ijk}=\epsilon _{aijk }[T_{h}^{a}(\alpha )\zeta ^{h} + \mathbf{A} _{h}(\alpha ) \mathbf{j} ^{a}(\alpha )\zeta ^{h}]\) with the volume element \(\tilde{\epsilon }_{ijk}\). The rest term on the right hand side of Eq. (41) then stems from

$$\begin{aligned} \int _H\delta \mathbf {C}_\zeta= & {} \int _{H}\epsilon _{aijk }\zeta _{(t)}^{b}\Big (\delta T_{b}^{a} + \mathbf{A} _{b} \delta \mathbf{j} ^{a}\Big )\, . \end{aligned}$$
(45)

Taking \(\Phi _{+}=-\zeta ^{b}{} \mathbf{A} _{b}\vert _{H}\) into consideration with \(\int _{H}\delta (\epsilon _{aijk}{} \mathbf{j} ^{a})=\delta Q\) and the gauge condition \(\zeta ^{b} \delta \mathbf{A} _{b}\vert _{H}=0\), Eq. (41) yields

$$\begin{aligned} \delta M-\Phi _{+}\delta Q-\Pi _{+}\delta \lambda = - \int _{H}\epsilon _{aijk} \zeta _{b} \delta T^{ab}\, . \end{aligned}$$
(46)

For the volume element one may write \(\epsilon _{aijk}=-4k_{[a} \tilde{\epsilon }_{ijk]}\) on the horizon portion H. With this we consider only the case for which all matter fields satisfy the null energy condition, i.e., \(\delta T_{ab}(\alpha )k^{a}(\alpha )k^{b}(\alpha )\ge 0\) always for any null vector \(k^{a}(\alpha )\) [47, 90]. Thus, the linear order variational inequality can be written in the following form:

$$\begin{aligned} \delta M-\Phi _{+}\delta Q-\Pi _{+}\delta \lambda \ge 0\, . \end{aligned}$$
(47)

Following the linear order inequality we further obtain the non-linear order variational identity for a near extremal black hole. Similarly, Eq. (6) for the non-linear variational identity is given by

$$\begin{aligned}&\int _{S_\infty }[\delta ^2 \mathbf {Q}_\zeta -\zeta \cdot \delta \varvec{\Theta }(\phi ,\delta \phi )]=\int _B[\delta ^2 \mathbf {Q}_\zeta -\zeta \cdot \delta \varvec{\Theta }(\phi ,\delta \phi )]\nonumber \\&\quad -\int _{\Xi _1}\delta \left( \zeta \cdot \mathbf {E}\delta \phi \right) -\int _{H}\delta \left( \zeta \cdot \mathbf {E}\delta \phi \right) \nonumber \\&\quad -\int _{\Xi _1}\delta ^2 \mathbf {C}_\zeta -\int _{H}\delta ^2 \mathbf {C}_\zeta +\mathcal {E}_\Xi (\phi ,\delta \phi )\, , \end{aligned}$$
(48)

where for the left-hand side we obtain

$$\begin{aligned} \int _{S_\infty }[\delta ^2 \mathbf {Q}_\zeta -\zeta \cdot \delta \varvec{\Theta }(\phi ,\delta \phi )]=\delta ^2 M\, . \end{aligned}$$
(49)

Note that \(\mathcal {E}_\Xi (\phi ,\delta \phi )\) in Eq. (48) the above equation refers to the canonical energy and is defined by the non-linear perturbation \(\delta \phi \) on \(\Xi \). For the second term on the right hand side we have

$$\begin{aligned} \int _{\Xi _1}\delta \left( \zeta \cdot \mathbf {E}\delta \phi \right) = -\frac{1}{2} \int _{\Xi _{1}}\zeta \cdot {\epsilon }\,\delta \left[ T^{ab}(\alpha )\delta g_{ab}(\alpha )\right] \, . \end{aligned}$$
(50)

By imposing the stability condition at the \(\Xi _{1}\) surface and Eq. (43) the above integral can easily reduce to zero. Since the Killing vector \(\Xi ^{a}\) is tangent to the horizon portion H the third term on the right hand side in Eq. (48) can be neglected on H. For the fourth term we obtain

$$\begin{aligned} \int _{\Xi _{1}}\delta ^2 \mathbf {C}_\zeta =- \Pi _{+} \delta ^2 \lambda \, , \end{aligned}$$
(51)

while the fifth term can be written as

$$\begin{aligned} \int _{\Xi }\delta ^2 \mathbf {C}_\zeta= & {} \int _{H}\epsilon _{aijk}\zeta _{(t)}^{b}\left( \delta ^2 T_{b}^{a} + \mathbf{A} _{b} \delta ^2 \mathbf{j} ^{a}\right) \nonumber \\= & {} \int _{H}\tilde{\epsilon }_{ijk} k_{a}\zeta _{b} \delta ^2 T^{ab}+\Phi _{+}\delta ^2 Q\, , \end{aligned}$$
(52)

where we applied the gauge condition \(\zeta ^{a}\delta \mathbf{A} _{a}=0\) on H of \(\Xi =\Xi _{1}\cup H\) with \(\zeta ^{a}\) being tangent to H. As before we substitute the null energy condition \(\delta ^2 T_{ab}k^{a}k^{b}\ge 0\) in the above equation. For non-linear order variational identity, taking into consideration the above results, we rewrite Eq. (48) as

$$\begin{aligned}&\delta ^2 M-\Phi _{+}\delta ^2 Q-\Pi _{+}\delta ^2 \lambda = \int _B[\delta ^2 \mathbf {Q}_\zeta -\zeta \cdot \delta \varvec{\Theta }(\phi ,\delta \phi )]\nonumber \\&\quad +\mathcal {E}_{\Xi _1}(\phi ,\delta \phi )+\mathcal {E}_{H}(\phi ,\delta \phi )\, . \end{aligned}$$
(53)

Further we define a one-parameter field perturbation as \(\phi (\alpha )^{RN-dS}\) induced by in-falling matter absorbed by the RN-dS black hole surrounded by perfect fluid dark matter with the following parameters:

$$\begin{aligned} M(\alpha )= & {} M+\alpha \delta M\, ,\nonumber \\ Q(\alpha )= & {} Q+\alpha \delta Q\, , \nonumber \\ \lambda (\alpha )= & {} \lambda +\alpha \delta \lambda \, , \end{aligned}$$
(54)

with \(\delta M\), \(\delta Q\) and \(\delta \lambda \) chosen to satisfy the linear order perturbation given by Eq. (47). We may then evaluate the rest of the terms of Eq. (53) for \(\phi ^{RN-dS}\). Since \(\delta ^2 M=\delta ^2 Q_{B}=\delta ^2 \lambda _{B}=\mathcal {E}_{H}(\phi ,\delta \phi ^{RN-dS})=0\) and \(\mathcal {E}(\phi ,\delta \phi ^{RN-dS})\) can be neglected on \(\Xi _1\) for this family we have

$$\begin{aligned}&\delta ^2 M-\Phi _{+}\delta ^2 Q-\Pi _{+}\delta ^2 \lambda \nonumber \\&\quad =\int _B[\delta ^2 \mathbf {Q}_\zeta -\zeta \cdot \delta \varvec{\Theta }(\phi ,\delta \phi ^{RN-dS})]\,. \end{aligned}$$
(55)

From the property of \(\Xi \) that the vector \(\zeta ^{a}\) vanishes at the bifurcation surface B, i.e. \(\zeta ^{a}=0\), we arrive at the non-linear variational identity

$$\begin{aligned} \delta ^2 M-\Phi _{+}\delta ^2 Q-\Pi _{+}\delta ^2 \lambda \ge -\frac{k}{8\pi }\delta ^2 A^{RN-dS}\, . \end{aligned}$$
(56)

Following this new version of gedanken experiment based on the procedure described above we study overcharging of a nearly extremal RN-dS black hole in perfect fluid dark matter. Now we recall Eq. (27) for which extremality is determined by \(f=0\) while the existing horizon is determined by \(f>0\). As was mentioned above for the RN black hole \(f<0\) leads to the destruction of its horizon. To test whether this condition really happens or not for the RN black hole in the perfect fluid dark matter with cosmological constant, i.e. \(M^2-Q^2+\frac{\Lambda }{3} M^4- \lambda M \log \frac{M}{\vert \lambda \vert }< 0\), we apply new version of gedanken experiment [47], which allows one to consider a one-parameter family of perturbation functions \(f(\alpha )\) leading to the inclusion of higher order perturbations. Finally one can write

$$\begin{aligned} f(\alpha )= & {} M(\alpha )^2-Q(\alpha )^2+\frac{\Lambda }{3} M(\alpha )^4 \nonumber \\&-\lambda (\alpha ) M(\alpha ) \log \frac{M(\alpha )}{\vert \lambda (\alpha ) \vert }\, , \end{aligned}$$
(57)

with \(M(\alpha )\), \(Q(\alpha )\) and \(\lambda (\alpha )\) given by Eq. (54). It is worth noticing that Eq. (57) reduces to the RN case when \(\Lambda M^3/3=\lambda \log M/\vert \lambda \vert \). It means that the two fields induced by perfect fluid dark matter and cosmological constant are completely balanced, their contribution will not be included throughout for overcharging of a black hole. This then leads to an interesting question: could those two fields contribute to the overcharging of the black hole? The only way to settle this question is to consider the general case, in which the ratio of two fields is written as

$$\begin{aligned} \Lambda = \frac{3\beta }{M^3}\lambda \log \frac{M}{\vert \lambda \vert }\, , \end{aligned}$$
(58)

where \(\beta \ge 1 \), \(\beta \le 1\), respectively. In the case \(\beta > 1 \) the field due tothe cosmological parameter dominates over the field as that of perfect fluid dark matter, while the latter does so for \(\beta < 1 \). Therefore we rewrite Eq. (57) as

$$\begin{aligned} f(\alpha )= & {} M(\alpha )^2-Q(\alpha )^2+ \lambda (\alpha ) (\beta -1)M(\alpha ) \log \frac{M(\alpha )}{\vert \lambda (\alpha ) \vert }\, .\nonumber \\ \end{aligned}$$
(59)

From Eq. (59) \(f(0)=M^2\epsilon ^2\) refers to a near extremal black hole with \(\epsilon \ll 1\), while for \(\alpha \ne 0\) we expand the function \(f(\alpha )\) up to second order in \(\epsilon \) and \(\alpha \) as

$$\begin{aligned} f(\alpha )=M^4\epsilon ^2+f_1\alpha +f_2\alpha ^2+O(\alpha ^3, \alpha ^2\epsilon ,\alpha \epsilon ^2,\epsilon ^3)\, , \end{aligned}$$
(60)

where \(f_1\) and \(f_2\), respectively, refer to linear and non-linear perturbations. Equation (60) clearly shows that \(f(\lambda )<0\) allows a transition to occur from black hole to naked singularity; thereby overcharging can be attained. Thus we further see whether that is really attainable or not. Let us then explore the linear \(f_1\) and non-linear \(f_2\) perturbations which are given by

$$\begin{aligned} f_{1}= & {} \left[ 2 M+\lambda (\beta -1) \left( 1+\log \frac{M}{\vert \lambda \vert }\right) \right] \delta M -2 Q \delta Q\nonumber \\&-(\beta -1)M\left( 1-\log \frac{M}{\vert \lambda \vert }\right) \delta \lambda \, \end{aligned}$$
(61)

and

$$\begin{aligned} f_{2}= & {} \left[ M+\frac{\lambda (\beta -1)}{2}\left( 1+ \log \frac{M}{\vert \lambda \vert }\right) \right] \delta ^2 M -Q \delta ^2 Q\nonumber \\&- \frac{M}{2}(\beta -1)\left( 1-\log \frac{M}{\vert \lambda \vert }\right) \delta ^2\lambda \nonumber \\&+\left( 1+\frac{\lambda (\beta -1) }{2 M}\right) \delta M^2 -\delta Q^2\nonumber \\&+(\beta -1)\left( \log \frac{M}{\vert \lambda \vert }\delta M-\frac{M}{2\lambda }\delta \lambda \right) \delta \lambda \, . \end{aligned}$$
(62)

Next we intend to define \(\delta M\) being the minimum possible value required for overcharging of black hole [19, 47]. So \(\delta M\) is defined by

$$\begin{aligned} \delta M_{min}\ge & {} \frac{Q}{r_{+}}\delta Q +\frac{1}{2}\log \frac{r_{+}}{\vert \lambda \vert }\delta \lambda =\frac{Q }{M}\delta Q \left( 1-\epsilon \right) \nonumber \\&+ \frac{1}{2}\left( \log \frac{M}{\vert \lambda \vert }-\log (1-\epsilon )\right) \delta \lambda + O(\epsilon ^2)\, . \end{aligned}$$
(63)

This is the minimal possible energy required for test particles to cross the horizon and falling into the black hole.

Bearing in mind \(\delta M\) we first rewrite \(f(\alpha )\) for the linear order perturbation

$$\begin{aligned} f(\alpha )= & {} M^2\epsilon ^2 + \left[ 2 M+\lambda (\beta -1) \left( 1+\log \frac{M}{\vert \lambda \vert }\right) \right] \nonumber \\&\times \left\{ \delta M - \left( \frac{Q}{M}\delta Q+\frac{\beta -1}{2}\left( 1-\log \frac{M}{\vert \lambda \vert }\right) \delta \lambda \right) \right. \nonumber \\&\times \left. \left[ 1 -\frac{\lambda }{2M} (\beta -1) \left( 1+\log \frac{M}{\vert \lambda \vert }\right) \right] \right\} \alpha +\mathcal O(\alpha ^2)\, .\nonumber \\ \end{aligned}$$
(64)

Let us first consider \(\beta =1\), referring to the case in which two fields induced by perfect fluid dark matter and the cosmological constant are completely balanced as seen from Eq. (58). Hence, the above equation takes the form

$$\begin{aligned} f(\alpha )= & {} M^2\epsilon ^2 - 2 Q ~\delta Q ~\epsilon \alpha +\mathcal O(\alpha ^2)\, . \end{aligned}$$
(65)

This clearly shows that it is possible to make \(f(\alpha )<0\); thus, it turns out that the RN-dS black hole surrounded by perfect fluid dark matter can be overcharged under linear order perturbation in the case of \(\beta =1\). Also Eq. (65) corresponds to the result of the RN black hole case obtained by Sorce and Wald [47]. Let us then come to the \(f(\alpha )\) to explore it for general case, i.e. \(\beta \ne 1\). Taking into account Eq. (63) for a charged test particle we rewrite \(f(\alpha )\)

$$\begin{aligned} f(\alpha )= & {} M^2\epsilon ^2 + \left[ 2 M+\lambda (\beta -1) \left( 1+\log \frac{M}{\vert \lambda \vert }\right) \right] \nonumber \\&\times \left\{ \frac{Q}{2M^2} \lambda (\beta -1) \left( 1+\log \frac{M}{\vert \lambda \vert }\right) \delta Q \right. \nonumber \\&+ \frac{1}{2}\left[ 1-\beta \left( 1-\log \frac{M}{\vert \lambda \vert }\right) \right] \delta \lambda \nonumber \\&-\left. \left( \frac{Q}{M}\delta Q-\frac{\delta \lambda }{2}\right) \epsilon \right\} \alpha +\mathcal O(\alpha ^2)\, . \end{aligned}$$
(66)

In order to make \(f(\alpha )>0\) the second term in the above equation must always be positive definite, showing that the following inequality is satisfied:

$$\begin{aligned} \beta \ge 1+\frac{ 2 M Q \epsilon \delta Q - M^2 \left( \epsilon +\log \frac{M}{\vert \lambda \vert }\right) \delta \lambda }{Q \lambda \delta Q -M^2\delta \lambda +\Big ( M^2\delta \lambda +\lambda Q\delta Q \Big )\log \frac{M}{\vert \lambda \vert } } \, .\nonumber \\ \end{aligned}$$
(67)

Note that \(\delta Q>\delta \lambda \) always holds good. In the case of \(\delta Q\gg \delta \lambda \), Eq. (67) reduces to

$$\begin{aligned} \beta \ge 1+\frac{2M\epsilon }{\lambda \left( 1+\log \frac{M}{\vert \lambda \vert } \right) } \, . \end{aligned}$$
(68)

Equation (67) indicates the threshold limit beyond which a black hole cannot be overcharged and hence would always obey the WCCC even under linear order accretion. Let us consider the numerical example for the parameter \(\beta \). Setting \(M=1\) we choose \(\lambda =0.001\) with \(\epsilon =0.01\), so we have \(\beta =3.52916\). (For this thought experiment one can use different values of \(\lambda \) and \(\epsilon \); see Fig. 1.) With this, we have shown the critical value for \(\beta \) beyond which the relative dominance of the cosmological parameter over the dark matter parameter occurs. Hence, the field required due to the cosmological parameter would be slightly stronger as compared to the one due to perfect fluid dark matter.

Fig. 1
figure 1

The plot illustrates the values of threshold parameter \(\beta \) as a function of the perfect fluid dark matter parameter \(\lambda \) in the case of fixed \(\epsilon =0.01\). Note that beyond the threshold value of \(\beta \) the black hole always favors no overcharging even under linear order accretion

Now we consider a non-linear order perturbation and recall Eq. (62),

$$\begin{aligned} f_{2}\approx & {} \left[ M+\frac{\lambda (\beta -1)}{2}\left( 1+ \log \frac{M}{\vert \lambda \vert }\right) \right] \nonumber \\&\times \Big (\delta ^2 M -\Phi _{+}\delta ^2 Q-\Pi _{+}\delta ^2 \lambda \Big )\nonumber \\&+\frac{M}{2}\left( 1+\beta \log \frac{M}{\vert \lambda \vert }-\beta \right) \delta ^2\lambda -\delta Q^2\nonumber \\&+\left( 1+\frac{\lambda (\beta -1) }{2 M}\right) \delta M^2 + (\beta -1)\log \frac{M}{\vert \lambda \vert }\delta M\delta \lambda \,,\nonumber \\ \end{aligned}$$
(69)

where non-linear terms are defined by the following inequality:

$$\begin{aligned} \delta ^2 M -\Phi _{+}\delta ^2 Q-\Pi _{+}\delta ^2 \lambda \ge -\frac{k}{8\pi }\delta ^2 A\, . \end{aligned}$$
(70)

Recalling Eqs. (28) and (29) and employing Eq. (63) we can rewrite Eq. (69) as

$$\begin{aligned} f_{2}\approx & {} \frac{1}{4M^2}\left[ M+\frac{\lambda (\beta -1)}{2}\left( 1+ \log \frac{M}{\vert \lambda \vert }\right) \right] \nonumber \\&\times \bigg [ \Big (M \left( 4 \delta Q^2+\delta \lambda ^2\right) +4 (\beta -2) Q\delta Q \delta \lambda \Big )\nonumber \\&+\log \frac{M}{\vert \lambda \vert } \bigg (2 \Big ((\beta -1) M \delta \lambda -4 \beta Q\delta Q \Big )\delta \lambda \nonumber \\&+ \frac{\beta -1}{M} \lambda \Big ( M\delta \lambda -10 Q\delta Q\Big )\delta \lambda \nonumber \\&- \log \frac{M}{\vert \lambda \vert } \Big ( M(4 \beta -1) \delta \lambda ^2+(\beta -1) \lambda \log \frac{M}{\vert \lambda \vert }\delta \lambda ^2\nonumber \\&+ \frac{(\beta -1)}{2M} \lambda (8 Q\delta Q +3 M \delta \lambda )\delta \lambda \Big )\bigg )\nonumber \\&- 2 \frac{(\beta -1)}{M^2} \lambda Q \Big ( Q\delta Q+2 M \delta \lambda \Big )\delta Q \bigg ]\nonumber \\&+ \left( 1+\frac{\lambda (\beta -1) }{2 M}\right) \delta M^2-\delta Q^2\nonumber \\&+ (\beta -1)\log \frac{M}{\vert \lambda \vert }\delta M\delta \lambda \, , \end{aligned}$$
(71)

and for \(\delta Q \gg \delta \lambda \) it can be approximated by the following analytical expression:

$$\begin{aligned} f_{2}\approx & {} \left[ M+\frac{\lambda (\beta -1)}{2}\left( 1+ \log \frac{M}{\vert \lambda \vert }\right) \right] \nonumber \\&\times \left[ M^4-\frac{\lambda \left( \beta -1\right) }{2} M Q^2 \right] \frac{\delta Q^2}{M^5}\nonumber \\&+ \left[ 1+\frac{\lambda (\beta -1) }{2 M}\right] \delta M^2 -\delta Q^2\, . \end{aligned}$$
(72)

From the above equations one can see that \(f_2\ge 0\) is always satisfied since \(\delta M\ge \Phi _{+}\delta Q+\Pi _{+}\delta \lambda \) following from Eq. (47) continues to hold good for the test particle. Hence, we have \(f(\alpha )\ge 0\), and no overcharging occurs. That means, since \(f(\alpha )\ge 0\) always, the transition from black hole to over-extremal state can never happen. As expected the black hole always favors no overcharging when non-linear order perturbations are involved, and thereby the WCCC is always respected. It is worth noting that in a realistic scenario the values of perfect fluid dark matter and cosmological constant are very small and thus the obtained conclusions hold under the assumptions \(\Lambda ,\lambda \ll 1\).

5 Conclusions

In this paper, we studied the validity of the WCCC for the RN-dS black hole with perfect fluid dark matter profile by adapting a new version of gedanken experiments developed by Sorce and Wald. We derived perturbation inequalities for linear and non-linear order perturbations under the spherically symmetric perturbation. It is well known [19] that the RN black hole can be overcharged and thus the WCCC is violated for a linear accretion process, while it would always be restored when non-linear order perturbations are included. It is believed that in a realistic scenario astrophysical objects cannot be considered to be in vacuum due to the cosmological constant and the existence of a dark matter distribution surrounding the objects. The question is: could the RN black hole be overcharged at the linear order accretion when one considers the real astrophysical scenario as that of effects due to the cosmological constant and perfect fluid dark matter? This is what we have addressed in this paper. As is well known the cosmological constant (\(\Lambda >0\)) is defined by a repulsive behavior of the space expansion while dark matter by attractive behavior. We have shown that for linear accretion the RN-dS black hole surrounded by perfect fluid dark matter can be overcharged when two fields due to the dark matter and cosmological constant are completely balanced. However, it is overturned when we include non-linear order perturbations and thus the question of its overcharging never arises. Then further analysis led to the remarkable result. We have shown that a black hole cannot be overcharged beyond a certain threshold limit for which a repulsive effect arising from the cosmological constant dominates over the attractive one due to the perfect fluid dark matter. Meanwhile, even for a linear accretion process, the RN-dS black hole cannot always be overcharged and hence the WCCC is strongly respected beyond a certain threshold limit. This result is always supported by non-linear order accretion, and so no violation of the CCC in the weak form occurs.