1 INTRODUCTION

The general theory of relativity (GR) is a significant theory able to study the evolution of our mysterious cosmos. It is a geometric theory that replacing the Newtonian principle of gravitational study. Gravitation may be examined from the viewpoint of the GR fundamental and essential components. The main building block of GR has been well identified in our modern understanding of universal gravitation. In the field of cosmology and astrophysics, there are many other serious challenges surrounding dynamical systems under the influence of gravity.

During the fluid model evolution, compact self-gravitating objects move via different transitions. Either in Newtonian (\(\mathbb{N}\)) gravity or GR, with anisotropic distributions of any fluid, the research of cosmic inflation is generally considered. New observations from many data sources, like type Ia supernovae, cosmic microwave background (CMB) [1–3], large-scale structure, etc., provide a conclusive proof of the universe’s accelerated expansion [4, 5]. It is concluded that our cosmos consists of almost \(94\) to \(96\%\) of enigmatic dark constituents, according to observations of our interstellar evolution [6, 7]. These mysterious constituents are usually referred to as unobservable and mysterious forms of matter, i.e., dark energy (DE) and dark matter (DM). In our stellar dynamics, the former induces contraction influence while the latter is indeed an unseen form of matter whose existence has been eventually discovered just because of its gravitational effects on luminous structures. The most recent large-scale astrophysical evidence has verified its physical existence.

It is still thought that this nature of the entire cosmos is due to the influence of DE that probably carries a high negative extra pressure. The available evidence on the universe’s early or late acceleration and indeed the presence of DM have provided gravitational theories with a substantial platform. One key to understanding this phenomenon is by assuming that Einstein’s gravity concept of GR starts to break down at large scales, and gravity is defined by a more general action. One of the most well-known ways of obtaining such action is where the typical Einstein Hilbert-action is replaced with a function of the Ricci scalar curvature \(R\). Modified \(f(R)\) cosmology [8] may provide the best description of nature as well as the physical presence of a cosmic expansion at late/early periods.

Criteria have also been formulated for empirical manifestation of realistic cosmic models, and weak field restrictions arising from classical experiments of GR for the solar system framework, which seems to rule out several models proposed to date [9]. Feasible models are being established by performing solar system tests, as can be seen in [10]. A few of the physically attractive concepts dealing with the existence of DE use the idea of modified gravity theories MGTs. Many researchers believe that the technique of MGTs could be constructive and helpful for explaining the existence and characteristics of the dark sector of the entire cosmos and to provide certain corrections to the research (see for more detail [11–22]). In this view, Capozziello and de Laurentis [23] adequately addressed several other terms and conditions for any MGT to be a good fit for observational cosmology, particularly scalar-tensor gravity as well as \(f(R)\) theories. Using new \(f(R)\) dark energy models, Nojiri and Odintsov [24] reviewed cosmic inflation of our entire cosmos.

The extended \(f(R,T)\) thery is a modification of \(f(R)\) gravity, where certain quantum phenomena or any exotically non-ideal material configurations eventually show a \(T\) dependence. It is well established that once a compact stellar object is in a hydrostatic stage, it can consequently need to be in unstable. Harko et al. studied arbitrary couplings in both geometry and matter [25], even this model was indeed massively expanded. The astrophysical and general-relativistic effects regarding a nonminimal matter-geometry coupling have also been explored extensively in the literature [26], and taking into account the Palatini model of nonminimal coupling [27]. A full expansion of EHA was strongly suggested in this scenario.

In relativistic fluid distribution, Chandrasekhar [28] eventually found an instability parameter whose failure corresponds to the collapse of a compact supernova of our cosmos. He also investigated the crashing super-massive interstellar object’s stability framework via the adiabatic index \(\Gamma\). Furthermore, the influence on various ranges of \(\Gamma\) on different structural parameters in stable and consistent epochs of compact structures in MGT was extensively studied. Herrera et al. [29] generalized the findings of Chandrasekhar’s work for anisotropic spherical self-gravitating internal structures. He also investigated the nonadiabatic nature of the celestial structure stability at a certain stage. Chan et al. [30] investigated several realistic fluids while inside radiating stars to modify their effects. Chandrasekhar’s finding was later extended to both \(\mathbb{N}\) and pN eras. The pressure anisotropy and radiation density both have substantial impacts, as well as viscosity, on the structural instability of nonadiabatic fluid configurations, and shearing viscous fluids configuration has also been discussed [29–35].

Schmidt et al. [36] looked into the spherical implosion, utilising vast and large-scale computations in combination with quantitative simplifications for the Hu as well as Sawicki \(f(R)\) framework [10]. Some scholars studied the possible implications and influence of \(f(R)\) theory in their theoretical work [37–39]. As to different fluid configurations, Yousaf et al. studied \(f(R)\) theory for some spherical and cylindrical space-times [40, 41]. The involvement of astrophysical MGT models is investigated by Bhatti and Yousaf [42] by calculating the structure scalars and mass-radius relationships. Herrera et al. also investigated the (in)stability limits for a spherical structure, particularly when combined with anisotropic pressure. Capozziello et al. [43] evaluated the Jeans instability with weak-field approximation in \(f(R)\) cosmology for an appropriate collapsing configuration. They also studied an Einstein model with some other functions of \(f(R)\) gravity. Capozziello also examined [44] how higher-order gravitational theories can be used to explore topics like quintessence.

Many scientists were fascinated by the discovery of dark physical dimensions of the cosmos through the newly evolved \(f(R,T)\) theory of gravity. Harko and his collaborators [45] adequately addressed cosmological implications of modified gravity by choosing particular types of \(f(R,T)\) models. A key role of some other important MGT models in the understanding of cosmic acceleration was investigated by Yousaf et al. They worked with various astrophysical frameworks in MGT cosmology [15, 46]. Yousaf et al. examined the consequences of \(f(R,G)\) gravity [47] and \(f(R,T,R_{a\delta}T^{a\delta})\) [48, 49] in this specific direction as well as effects of \(f(R,G)\) on cosmic inflation and dark parameters. In the context of \(f(R)\) gravity, Bamba et al. [38] examined a curvature singularity that develops during stellar collapse and, in particular, figured out how the curvature singularity is formed and estimated how long it would take for it to occur by adding \(R^{\mu}\) \((1<\mu\ll 2)\) to a valid \(f(R)\) gravity model. They also investigated [50] a particular \(f(G)\) type arrangement that might be used to handle finite-time future singularities possible in late time accelerated periods.

Bhatti et al. [51, 52] studied the complexity of compact symmetric fluid configurations in the presence of MGTs with some scalar term. They employed orthogonality breakdown in the Riemann tensor, and one of the scalar functions was used to determine the complexity factor. They also revealed the degrees of freedom and complexity factor specific physical factors such as the energy density inhomogeneity and anisotropic pressure. They also investigated alternatives to black holes, i.e., gravastars or string-like stars in the context of some MGTs for different matter configurations with and without electromagnetic effects [53, 54]. Several novel techniques were used for discussing the quintessence and rapid expansion of our universe and comparing them to the data. The second method is to update a gravitational theory by assessing the action of \(f(R)\) gravity [55].

In two separate situations with bulk viscosity of matter, Sahoo et al. [56] looked at a spatially homogeneous anisotropic cosmos in \(f(R,T)\) gravity. To find an exact solution of the field equations, they assumed a time-varying deceleration parameter that produces an accelerating cosmos. They also showed gravitational models with varied \(f(R)\) functions as well as fixed \(T\) dependence that results in a subclass of \(f(R,T)=f(R)+f(T)\) gravitational models [57]. The study of different symmetric self-gravitating anisotropic compact fluid structures in various extended theories of gravity was carried out by utilizing different mathematical techniques [58–61]. Moraes et al. [62] investigated the presence of cosmic bodies and inferred those viable conditions, particularly in minimally coupled \(R+\beta T\) gravity, with \(\beta=\textrm{const}\).

Guha and Ghosh [63] discussed dynamical instability of spherical matter compositions in \(f(R,T)\) gravity using a significant gravitational model in \(\mathbb{N}\) and pN domains under shear-free conditions. Bhatti et al. [64, 65] investigated the dynamic instability constraints with and without electric effects under the influence of \(f(R,T)\) gravity for compact cylindrically symmetric stars with anisotropic fluids. They studied the dynamic behavior of their considered cylindrically symmetric structures in a nonminimally coupled four-parametric gravitational model, i.e., \(f(R,T)=R+\alpha R_{\mathbf{c}}\left[1-(1+\phi)^{-n}\right]+\lambda RT\) by establishing the expression of the adiabatic index \(\Gamma\) in \(\mathbb{N}\) and pN eras. Here, \(\phi=R^{2}/R_{c}^{2}\), \(\alpha>0\), \(n\in R^{+}\), and \(0<\lambda\ll 1\), also \(R_{c}=\textrm{const}\).

The major goal of this research is to focus on the instability of a charged spherically symmetric nonstatic fluid assuming \(f(R,T)\) gravity via a perturbation scheme, to obtain approximate solutions of our highly nonlinear established field and continuity equations. In \(f(R,T)\) astrophysical gravity model, the source term plays a vital role, determining the variance of \(T^{(m)}_{\alpha\beta}\), i.e., the usual matter stress tensor, w.r.t. the metric. The main parameter in this dynamical study is the stiffness factor or the adiabatic index \(\Gamma\), whose value ultimately determines the (in)stability in a wide range. Thus an astrophysical model under consideration goes into an unstable phase at a value of \(\Gamma\) [28] that should be less than \(4/3\) in a \(\mathbb{N}\) perfect fluid. Under the assumption of MGT gravity, we study the dynamical stability of a spherically symmetric geometry under magnetic effects. In this article, we concentrate on the stability of our considered geometry in an \(f(R,T)\) gravitational model i.e., \(f(R,T)=R-\beta R_{c}\tanh(R/R_{c})+\xi RT\) [66]. This model shows significant findings for \(\beta>0\) and \(0<\xi\ll 1\), where \(\xi\) is a correction parameter to \(f(R)\) gravity, and \(R_{c}\) is a positive constant, showing a specific values of the Ricci scalar \(R\).

The following is the structure of this article. In Sec. 2, we look at field equations and conservation laws in \(f(R,T)\) gravity which is nonminimally coupled. Our systematic analysis in Sec. 3 concerns the gravitational model and a perturbation scheme. The collapse equation is also established in the same section by using perturbed parts of the conservation equations, surface pressures in the respective directions and the Harrison et al. equation of state (EoS) [67]. Sections 4 and 5 present expressions of \(\Gamma\) in \(\mathbb{N}\) and pN epochs, and we find the (in)stability criteria for considered charged compact systems under some physical restrictions. The last section contains conclusions and an Appendix.

2 SPHERICAL GEOMETRY AND BASICS OF \(f(R,T)\) GRAVITY

We consider the action of \(f(R,T)\) gravity [45], obtained by generalizing the action of GR and coupling it with ordinary a matter Lagrangian \(\mathbb{L}{\mathbf{m}}\) and that of the electromagnetic field \(\mathbb{L}_{\mathbf{em}}\). As a result, the action for this MGT may be written as

$$\mathbb{I}_{\mathbf{modified}}=\frac{1}{2}\int\sqrt{-g}d^{4}x\frac{f(R,T)}{8\pi}$$
$${}+\int\sqrt{-g}d^{4}x\left(\mathbb{L}_{\mathbf{m}}+\mathbb{L}_{\mathbf{em}}\right).$$

In general, the associated field equations can be written as

$$\frac{1}{f_{R}}\left\{8\pi G(T_{\zeta\varrho}+E_{\zeta\varrho})-f_{T}(\Theta_{\zeta\varrho}+T_{\zeta\varrho}+E_{\zeta\varrho})\right\}$$
$${}=R_{\zeta\varrho}+(g_{\zeta\varrho}\square-\nabla_{\zeta}\nabla_{\varrho})-\frac{f}{2f_{R}}g_{\zeta\varrho}.$$
(1)

Here, \(\square=\nabla_{\zeta}\nabla^{\zeta}\), \(\nabla_{\zeta}\) is the covariant derivative associated with the Levi-Civita relationship of \(g_{\zeta\varrho}\), \(f_{T}=\partial f/\partial T\), \(f_{R}=\partial f/\partial R\), where \(f\) is a function of \(R\) and \(T\) while \(\Theta_{\zeta\varrho}\) is given by

$$\Theta_{\zeta\varrho}=g^{\imath\eta}\frac{\delta T_{\imath\eta}}{\delta g^{\zeta\varrho}}=-2(T_{\zeta\varrho}+E_{\zeta\varrho})+g_{\zeta\varrho}(\mathbb{L}_{\mathbf{m}}+\mathbb{L}_{\mathbf{em}})$$
$${}-2g^{\imath\eta}\frac{\partial^{2}\left(\mathbb{L}_{\mathbf{m}}+\mathbb{L}_{\mathbf{em}}\right)}{\partial{g^{\zeta\varrho}}\partial{g^{\imath\eta}}}.$$

Here, \(E_{\zeta\varrho}\) is the electromagnetic tensor (ET) which can be written as

$$E_{\zeta\varrho}=\frac{1}{4\pi}\left\{F^{\gamma}_{\zeta}F_{\varrho\gamma}-\frac{1}{4}F^{\gamma\alpha}F_{\gamma\alpha}g_{\zeta\varrho}\right\}.$$
(2)

The ET estimates the influence of an electric charge on a relative comoving flow rate. Here, \(F_{\zeta\varrho}=\phi_{\zeta,\varrho}-\phi_{\varrho,\zeta}\), while \(\phi_{\zeta}\) is the 4-potential presented as \(\phi_{\zeta}=\phi(t,r)\delta^{0}_{\zeta}\). In terms of the Maxwell field tensor, the Maxwell equations are given as \(F^{\zeta\varrho}_{;\varrho}=\mu_{0}J^{\zeta}\), where \(J^{\zeta}=\sigma U^{\zeta}\), also \(U^{\zeta}=|g_{\zeta\zeta}|^{-1/2}\delta^{\zeta}_{0}\); \(J_{\zeta}\) stands for the 4-current, and the magnetic permeability is \(\mu_{0}\). We will choose \(\mathbb{L}_{\mathbf{m}}=\rho\), and \(\mathbb{L}_{\mathbf{em}}=\mathcal{F}\) as well as \(8G\pi=1\) for simplicity. As a result, \(\Theta_{\zeta\varrho}\) becomes

$$\Theta_{\zeta\varrho}=-2(T_{\zeta\varrho}+E_{\zeta\varrho})-(\rho+\mathcal{F})g_{\zeta\varrho}.$$
(3)

A three-dimensional spherically symmetric demarcation surface is specified to correlate with two specific type of areas, (1) inner and (2) outer space-time regions. For the interior space-time region, we have a spherically symmetric line element written diagonally as

$$dS^{2}_{-}=A^{2}(t,r)dt^{2}-\bigg{(}B^{2}(t,r)dr^{2}+C^{2}(t,r)d\theta^{2}$$
$${}+\sin^{2}\theta C^{2}(t,r)d\phi^{2}\bigg{)},$$
(4)

while the exterior region is described as

$$dS^{2}_{+}=\left(1-2M\frac{1}{r}+Q^{2}\frac{1}{r^{2}}\right)d\nu^{2}+2drd\nu$$
$${}-r^{2}(t,r)(d\theta^{2}+\sin^{2}\theta d\phi^{2}).$$
(5)

The total mass, the total charge of compact system, and the retarded time are denoted by \(M\), \(Q\), and \(\nu\), respectively. Our systematic investigation regarding the stability of charged spherically symmetric compact systems shows that some extra curvature ingredients are found due to our considered MGT. The energy and matter concentrations in gravitational dynamics are characterized by \(T_{\zeta\varrho}\), i.e., the energy-momentum tensor (EMT), and each nonzero constituent of the EMT relates to dynamic parameters with certain physical effects. By metric variation in EHA, the modified field equations MFEs may be computed as

$$G_{\zeta\varrho}=T^{\textrm{eff}}_{\zeta\varrho}=\frac{1}{f_{R}}\bigg{\{}(f_{T}+1)\left(T_{\zeta\varrho}^{(m)}+E_{\zeta\varrho}\right)$$
$${}-g_{\zeta\varrho}\left(\rho+\mathcal{F}\right)f_{T}+(\nabla_{\zeta}\nabla_{\varrho}-g_{\zeta\varrho}\Box)f_{R}$$
$${}+\frac{1}{2}\left(f-Rf_{R}\right)g_{\zeta\varrho}\bigg{\}}.$$
(6)

Here,

$$\mathcal{F}=\frac{1}{16\pi}F_{\zeta\varrho}F^{\zeta\varrho}=-\frac{s^{2}}{8\pi C^{2}},$$

while

$$s=-4\pi\int\sigma CAdr.$$

Thus the nonzero components of the ET can be obtained by using Eq. (2) as

$$E_{00}=-\frac{s^{2}A^{2}}{8\pi C^{2}},\quad E_{11}=-\frac{3s^{2}B^{2}}{8\pi C^{2}},\quad E_{22}=-\frac{s^{2}}{8\pi}.$$

In our calculations, \(G_{\zeta\varrho}\) is the usual Einstein tensor. We consider \(T_{\zeta\varrho}^{(m)}\) as the EMT of a usual matter configuration,

$$T_{\zeta\varrho}^{\mathbf{(m)}}=(\rho+P_{t})V_{\zeta}V_{\varrho}-P_{t}g_{\zeta\varrho}+(P_{r}-P_{t})\mathcal{S}_{\zeta}\mathcal{S}_{\varrho},$$

where the 4-vectors can be related as \(V_{\zeta}=\delta^{0}_{\zeta}A\), \(\mathcal{S}_{\zeta}=\delta^{1}_{\zeta}B\), \(V^{\zeta}V_{\zeta}=1\), \(\mathcal{S}^{\zeta}\mathcal{S}_{\zeta}=-1\). Also, \(P_{r}\) and \(P_{t}\) represent surface pressures in radial and tangential directions, respectively, while \(V_{\zeta}\) is the velocity 4-vector. After lengthy calculations, the metric variation in the EHA can be used to generate the MFEs as

$$\mathcal{G}_{00}=\frac{1}{f_{R}}\big{\{}\rho^{\textrm{(eff)}}+Q_{1}\big{\}}+\varphi_{00},\quad\mathcal{G}_{01}=\frac{\varphi_{01}}{f_{R}},$$
(7)
$$\mathcal{G}_{11}=\frac{1}{f_{R}}\left\{P_{r}^{\textrm{(eff)}}+Q_{2}\right\}+\varphi_{11},$$
(8)
$$\mathcal{G}_{22}=\frac{1}{f_{R}}\left\{P_{t}^{\textrm{(eff)}}+Q_{3}\right\}+\varphi_{22},$$
(9)

where

$$\rho^{\textrm{(eff)}}=\rho+\frac{1}{2}(f-Rf_{R}),$$
$$P_{\varphi}^{\textrm{(eff)}}=P_{\varphi}-\frac{1}{2}(f-Rf_{R})+(\rho+P_{\varphi})f_{T}.$$

In the above expression, \(\varphi=r,t\), respectively. Also, the terms related to charges \(Q_{1}\), \(Q_{2}\), \(Q_{3}\) turn out to be

$$Q_{1}=(1-f_{T})E_{{00}}-A^{2}\mathcal{F}f_{T},$$
$$Q_{2}=(1-f_{T})E_{{11}}-B^{2}\mathcal{F}f_{T},$$
$$Q_{3}=(1-f_{T})E_{{22}}-C^{2}\mathcal{F}f_{T}.$$

For simplicity, we use the notations \(\varphi_{00}\), \(\varphi_{01}\), \(\varphi_{11}\), \(\varphi_{22}\), given by

$$\varphi_{00}=\frac{1}{B^{2}}\bigg{(}\frac{f_{R}^{\prime\prime}}{f_{R}}-\frac{B\dot{B}}{A^{2}}\,\frac{\dot{f}_{R}}{f_{R}}-\frac{B^{\prime}}{B}\,\frac{f^{\prime}_{R}}{f_{R}}\bigg{)}$$
$${}-\frac{2}{Cf_{R}}\bigg{(}\frac{\dot{C}\dot{f_{R}}}{A^{2}}-f^{\prime}_{R}\frac{C^{\prime}}{B^{2}}\bigg{)},$$
$$\varphi_{01}=\frac{1}{f_{R}}\bigg{(}\dot{f}^{\prime}_{R}-\dot{f}_{R}\frac{A^{\prime}}{A}-f^{\prime}_{R}\frac{\dot{B}}{B}\bigg{)},$$
$$\varphi_{11}=\frac{1}{A^{2}f_{R}}\bigg{(}\ddot{f_{R}}-\dot{f}_{R}\frac{\dot{A}}{A}-\frac{AA^{\prime}}{B^{2}}f^{\prime}_{R}\bigg{)}$$
$${}+\frac{2f^{\prime}_{R}}{Cf_{R}}\,\frac{\dot{C}\dot{f_{R}}}{A^{2}}-\frac{2f^{\prime}_{R}}{Cf_{R}}\frac{C^{\prime}}{B^{2}},$$
$$\varphi_{22}=\frac{1}{f_{R}}\bigg{\{}\frac{1}{A^{2}}\ddot{f}_{R}-\bigg{(}\frac{\dot{A}}{A}-\frac{\dot{C}}{C}\bigg{)}\frac{\dot{f}_{R}}{A^{2}}-\frac{\dot{B}}{B}\,\frac{\dot{f}_{R}}{A^{2}}$$
$${}-f^{\prime\prime}_{R}\frac{1}{B^{2}}-\frac{f^{\prime}_{R}}{B^{2}}\bigg{(}\frac{A^{\prime}}{A}+\frac{C^{\prime}}{C}\bigg{)}+\frac{f^{\prime}_{R}}{B^{2}}\,\frac{B^{\prime}}{B}\bigg{\}}.$$

The Ricci curvature invariant for our considered charged spherically symmetric anisotropic geometry is

$$R=\frac{4}{B^{2}}\bigg{\{}\frac{C^{\prime}}{C}\bigg{(}\frac{C^{\prime}}{2C}-\frac{B^{\prime}}{B}+\frac{A^{\prime}}{A}\bigg{)}+\frac{B^{2}\dot{C}}{A^{2}C}\bigg{(}\frac{\dot{A}}{A}$$
$${}-\frac{\dot{C}}{2C}-\frac{\dot{B}}{B}\bigg{)}+\frac{1}{2}\bigg{(}\frac{2C^{\prime\prime}}{C}-\frac{A^{\prime}B^{\prime}}{AB}+\frac{A^{\prime\prime}}{A}\bigg{)}-\frac{B^{2}}{2C^{2}}$$
$${}-\frac{B^{2}}{2A^{2}}\bigg{(}\frac{\ddot{B}}{B}+\frac{\ddot{2C}}{C}-\frac{\dot{A}\dot{B}}{AB}\bigg{)}\bigg{\}},$$
(10)

where the dot denotes a time derivative, and the prime a derivative in the radial coordinate.

2.1 Bianchi Identities

In \(f(R,T)\) gravity, the conservation laws are critical for maintaining the (in)stability criterion. In our systematic analysis, the covariant divergence of the energy-momentum tensor provides continuity equations together with the electromagnetic tensor, which is written as

$$\nabla^{\varphi}(T_{\varphi\tau}^{(m)}+E_{\varphi\tau})=\frac{f_{T}}{1-f_{T}}\Big{[}\big{\{}\Theta_{\varphi\tau}$$
$${}-\big{(}T_{\varphi\tau}^{(m)}+E_{\varphi\tau}\big{)}\big{\}}\nabla^{\varphi}\ln f_{T}$$
$${}+\nabla^{\varphi}\Theta_{\varphi\tau}-\frac{1}{2}g_{\varphi\tau}\nabla^{\varphi}(T+E)\Big{]}.$$
(11)

We wrote the continuity equations for our locally anisotropic charged compact geometry in the considered MGT by varying \(\varphi\) and fixing the free index \(\tau\) as \(\tau=0,1\). Thus the two conservation equations are

$$\dot{\rho}-\rho\bigg{(}\frac{2\dot{A}}{A^{3}}-\frac{\dot{C}}{CA^{2}}-\frac{\dot{B}}{B^{3}}f_{T}-\frac{2\dot{C}}{C}f_{T}\bigg{)}-\frac{2\dot{A}}{A^{3}}Q_{1}$$
$${}+\frac{\dot{B}}{B^{3}}Q_{2}+\frac{2\dot{C}}{C}Q_{3}+(1+f_{T})\bigg{(}\frac{\dot{B}}{B^{3}}P_{r}+\frac{2\dot{C}}{C}P_{t}\bigg{)}$$
$${}+Z_{1}(t,r)=0,$$
(12)
$$\big{(}\rho+P_{r}\big{)}f^{\prime}_{T}+\big{(}1+f_{T}\big{)}P^{\prime}_{r}-\frac{2B^{\prime}}{B}(\rho+P_{r})f_{T}$$
$${}-\frac{A^{\prime}}{A^{3}}\rho+\frac{2C^{\prime}}{C^{3}}P_{t}+f_{T}\rho^{\prime}-\frac{A^{\prime}}{A^{3}}Q_{1}$$
$${}-\frac{2B^{\prime}}{B}Q_{2}+Z_{2}(t,r)=0.$$
(13)

Here, the extra curvature terms \(Z_{1}(t,r)\) and \(Z_{2}(t,r)\), which appear due to the MGT, are given in the Appendix.

3 \(f(R,T)\) GRAVITY AND THE PERTURBATION APPROACH

This section presents a feasible study of a specific \(f(R,T)\) gravitational model and modification of the physical parameters of a spherical charged structure via a relevant perturbation approach. The set of nonlinear MFEs in our considered gravitational theory is extremely complicated, which makes finding general solutions quite challenging. To minimize this problem, we will use a perturbation method to get a less intricate set of nonlinear equations. The perturbation framework helps us to divide the resulting field equations into perturbed and nonperturbed parts, making easier the exploration. Each of the physical variables in the perturbation scheme is initially in a state of static equilibrium, but as time passes, the perturbed physical values exhibit radial and temporal dependence. The adiabatic index \(\Gamma\), which illustrates the domain for dynamical (in)stability, is established by first-order perturbations in the dynamil equations.

A viable gravitational model is characterized by a set of parameters whose fluctuations are compatible with the observable data in general. As a result, cosmological scenarios are chosen depending on their viability, to be satisfied to extract a constant matter dominant epoch, also pass the solar system tests and offer a reliable high-curvature setup that may be used to replicate the standard GR. The model \(f(R)=R+\alpha R^{2}\) has been identified as being vital for inflation in the early universe from the 1980s. The inflationary phase ends when the quadratic term \(R^{2}\) is equal to the linear quantity \(R\). However, for late-time cosmic expansion, this strategy is ineffective. We continue our dynamic analysis for (in)stability criteria by establishing an inequality for \(\Gamma\) for spherical charged compact fluid configurations in a particular \(f(R,T)\) model. We discuss the dynamic (in)stability of a locally anisotropic charged stellar object for a specific functional form of nonminimally coupled \(f(R,T)\) gravity with \(f(R,T)=R-\beta R_{c}\tanh(R/R_{c})+\xi RT\). This functional form of \(f(R,T)\) leads to significant results only for \(\beta>0\) and \(0<\xi<1\). The free parameter values are \(R_{c}=H^{2}_{0}\sim 8\rho_{c}/(3m^{2}_{p})\approx 10^{-84}\) GeV\({}^{2}\), \(\beta\simeq\mathcal{O}(1)\), and \(\xi\simeq\mathcal{O}(1)\). Here, \(R_{c}\) is a constant in this gravitational function, and \(\xi RT\) represent a correction term to \(f(R)\) gravity. In this model \(R_{c}\) is simply of the same order as the today’s Ricci scalar, while \(H_{0}\) is today’s Hubble constant, \(\rho_{c}\) is the critical density, approximately equal to \(10^{-29}\textrm{ g/cm}^{3}\sim 4.50\times 10^{-47}\) GeV\({}^{-4}\). In this manuscript, we ignore the second and higher-order terms of \(\epsilon\). In this scheme, \(1\gg\epsilon>0\), and we have perturbations as [68]

$$f(R,T)=R_{0}-\beta R_{c}\tanh\Big{(}\frac{R_{0}}{R_{c}}\Big{)}+\xi R_{0}T_{0}$$
$${}+\epsilon\Big{[}\Psi e_{4}-\beta R_{c}\tanh\Big{(}\frac{\Psi e_{4}}{R_{c}}\Big{)}$$
$${}+\xi R_{0}\bar{T}+\xi\Psi e_{4}T_{0}\Big{]},$$
(14)
$$f_{R}(R,T)=1-\beta\sec h^{2}\Big{(}\frac{R_{0}}{R_{c}}\Big{)}+\xi T_{0}$$
$${}-\epsilon\Big{[}\beta\sec h^{2}\Big{(}\frac{\Psi e_{4}}{R_{c}}\Big{)}+\xi\bar{T}\Big{]},$$
(15)
$$f_{T}(R,T)=\xi R_{0}(r)-\epsilon\xi\Psi(t)e(r),$$
(16)
$$A(t,r)=A_{0}(r)+\epsilon\Psi(t)a(r),$$
(17)
$$B(t,r)=B_{0}(r)+\epsilon\Psi(t)b(r),$$
(18)
$$C(t,r)=C_{0}(r)+\epsilon\Psi(t)c(r),$$
(19)
$$R(t,r)=R_{0}(r)+\epsilon\Psi(t)e(r),$$
(20)
$$P_{r}(t,r)=P_{r0}(r)+\epsilon\bar{P_{r}}(t,r),$$
(21)
$$P_{t}(t,r)=P_{t0}(r)+\epsilon\bar{P_{t}}(t,r),$$
(22)
$$m(t,r)=m_{0}(r)+\epsilon\bar{m}(t,r),$$
(23)
$$T(t,r)=T_{0}(r)+\epsilon\bar{T}(t,r),$$
(24)
$$\rho(t,r)=\rho_{0}(r)+\epsilon\bar{\rho}(t,r),$$
(25)
$$Q_{i}(t,r)=Q^{(s)}_{i}(r)+\epsilon\Psi(t)q_{i}(r),\quad i=1,2,3.$$
(26)

Here, both \(\epsilon\) and \(\xi\) are very small.

3.1 Static Configuration

Here we deal with static parts of the Ricci curvature invariant \(R\) and the conservation laws. Firstly, we explore the static part of \(R\) which can be expressed as

$$R_{0}(r)=\frac{2}{C_{0}}\left\{\frac{1}{C_{0}B^{2}_{0}}-\left(\frac{B^{\prime}_{0}}{B_{0}}+\frac{A^{\prime}_{0}}{A_{0}}\right)\frac{2}{B^{2}_{0}}\right.$$
$${}+\left.\frac{1}{B^{2}_{0}}\left(\frac{A^{\prime\prime}_{0}}{A_{0}}+\frac{A^{\prime}_{0}B^{\prime}_{0}}{A_{0}B_{0}}\right)-\frac{1}{C_{0}}\right\}.$$
(27)

Also, we can have static parts of the conservation laws with the help of Eqs. (14)–(25) in (12), (13) as

$$\dot{\rho}_{0}+Z^{(s)}_{1}=0,$$
$$\xi\left(\rho_{0}+P_{r0}\right)R^{\prime}_{0}+\xi\rho^{\prime}_{0}R_{0}+\left(1+\xi R_{0}\right)P^{\prime}_{r0}$$
$${}-\frac{2\xi B^{\prime}_{0}}{B_{0}}(\rho_{0}+P_{r0})R_{0}-\frac{A^{\prime}_{0}}{A^{3}_{0}}\big{(}\rho_{0}+Q^{(s)}_{1}\big{)}$$
$${}+\frac{2C^{\prime}_{0}}{C^{3}_{0}}P_{t0}-\frac{2B^{\prime}_{0}}{B_{0}}Q^{(s)}_{2}+Z^{(s)}_{2}=0.$$

3.2 Nonstatic Configuration

This subsection accommodates the perturbed parts of the conservation equations and \(R\). So, we single out the perturbed parts of the continuity equations using Eqs. (14)–(25) in (12), (13) as

$$\dot{\bar{\rho}}+\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}\right.$$
$${}-\left.\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}-\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}\right.$$
$${}-\left.\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}\dot{\Psi}=0,$$
(28)
$$\xi\left(\bar{\rho}+\bar{P_{r}}\right)R^{\prime}_{0}+\big{(}1+\xi R_{0}\big{)}\bar{P}^{\prime}_{r}-\frac{b^{\prime}\Psi}{B_{0}}Q^{(s)}_{2}$$
$${}-\frac{2\xi\Psi R_{0}}{B_{0}}(\rho_{0}+P_{r0})\bigg{(}b^{\prime}-\frac{bB^{\prime}_{0}}{B_{0}}\bigg{)}-\frac{2c^{\prime}\Psi}{C^{3}_{0}}P_{t0}$$
$${}-\frac{2C^{\prime}_{0}}{C^{3}_{0}}\bar{P}_{t}+\frac{a^{\prime}\Psi}{A^{3}_{0}}\left(\rho_{0}+Q^{(s)}_{1}\right)+Y_{1}=0.$$
(29)

Here, we found the dark source terms (DS terms) \(Y_{1}\), which appear due to the considered MGT, given as

$$Y_{1}=\xi\Psi e^{\prime}(\rho_{0}-P_{r0})+6\Psi\frac{cC^{\prime}_{0}}{C^{4}_{0}}P_{t0}+\xi\Psi e\rho^{\prime}_{0}$$
$${}+\bar{\rho}^{\prime}\xi R_{0}+2\xi\Psi e(\rho_{0}+P_{r0})\frac{B^{\prime}_{0}}{B_{0}}+\xi\Psi eP^{\prime}_{r0}$$
$${}-(\rho_{0}+q_{1}\Psi)\frac{A^{\prime}_{0}}{A^{3}_{0}}-a\Psi\big{(}\rho_{0}+Q^{(s)}_{1}\big{)}\frac{A^{\prime}_{0}}{A^{4}_{0}}$$
$${}-\frac{\Psi B^{\prime}_{0}}{B_{0}}\bigg{(}2q_{2}-bQ^{(s)}_{2}\bigg{)}+\bar{Z}_{2},$$

while for the nonstatic part of \(R\) we can write

$$\frac{\partial^{2}\Psi(t)}{\partial t^{2}}-Z^{2}_{4}(r)\Psi(t)=0,$$
(30)

where \(Z^{2}_{4}(r)\) is some lengthy expression given in the Appendix. The most general solution to the above second-order differential equation is

$$\Psi(t)=\mathcal{C}_{1}e^{Z_{4}t}+\mathcal{C}_{2}e^{-Z_{4}t},$$
(31)

The constants \(\mathcal{C}_{1}\) and \(\mathcal{C}_{2}\) in this situation are arbitrary. Thus Eq. (31) exhibits two unconnected reactions, one is stable while the other is unstable. We would like to understand more about the unstable spectrum of collapsing fluid compositions that are somewhat compact.

As a result, we assume that this relativistic compact structure was in a static state, characterized by \(\Psi(-\infty)=0\), a long time ago, and that it subsequently entered the present condition as time proceeded, continuing to collapse and also moving on by shrinking its radius. Only \(\mathcal{C}_{1}=-1\) and \(\mathcal{C}_{2}=0\), which represent diminishing over time, may yield such a result. The generalized solution also includes oscillating and nonoscillating features, which correspond to stable and unstable behaviors, respectively. Although we are interested in instabilities in this compact material arrangement, we choose the nonoscillating approach that meets our needs. If \(Z^{2}_{4}(r)<0\) is true, we will see oscillations, indicating that the system implodes at one point but bursts at another point.

This sort of dynamical arrangement of expansion and contraction happens as a result of oscillations generated by \(Z^{2}_{4}(r)\), which is difficult for a star to maintain for the rest of its existence. To reach its ultimate destination, which might be a white dwarf, neutron star, or black hole, the star should undergo collapse in its final phases of existence, this it demands the presence of \(Z^{2}_{4}(r)>0\). We need to keep the disturbances to restrict positive significant quantities such that \(Z^{2}_{4}(r)>0\) since we are seeking a meaningful solution to Eq. (30) describing a collapse. Consequently, the above solution to the partial differential equation indicates that both stable and unstable fluid configurations may be accommodated.

At the initial phase of this dynamic analysis or at a very large past time, i.e., \(\Psi(-\infty)=0\), we assume that our locally anisotropic charged gravitating system is in a static equilibrium. It is worth noting that the metric variables have the same temporal dependence, which means that at \(t=-\infty\) our charged symmetric star entered into a collapsing scenario. The goal of this paper is to investigate the (in)stability of a charged gravitating compact system in the context of a nonminimally coupled MGT gravitational model. Thus the solution of Eq. (30) can be written as

$$\Psi(t)=-e^{Z_{4}t},$$
(32)

with \(Z^{2}_{4}(r)>0\). To continue our study, we consider the Harrison et al. [67] EoS which is a relationship among the surface pressures, \(\Gamma\) and the energy density of our gravitating star and is given by

$$\bar{P}_{r}=\frac{\bar{\rho}P_{r0}}{\rho_{0}+P_{r0}}\Gamma.$$
(33)

Equation (28) yields the value of \(\bar{\rho}\) as

$$\bar{\rho}=-\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}\right.$$
$${}-\left.\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}-\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}\right.$$
$${}-\left.\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}\Psi.$$
(34)

By utilizing Eq. (34) in (33), we have the perturbed part of the surface pressure \(\bar{P}_{r}\) in the radial direction as

$$\bar{P}_{r}=-\frac{\Psi P_{r0}}{\rho_{0}+P_{r0}}\Gamma\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}\right.$$
$${}-\xi R_{0}\Big{(}\frac{b}{B_{0}}-\frac{c}{C_{0}}\Big{)}\rho_{0}-(1+\xi R_{0})$$
$${}\times\Big{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\Big{)}$$
$${}-\left.\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}-\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}.$$
(35)

From Eq. (9), we compute the nonstatic part of the pressure \(\bar{P}_{t}\) in the tangential direction as

$$\bar{P}_{t}=\frac{\xi_{1}}{A^{2}_{0}}\left\{\frac{b}{B^{2}_{0}}+\frac{c}{C^{2}_{0}}+\frac{2\beta e}{R_{c}}\sec h^{2}\left(\frac{e\Psi}{R_{c}}\right)\right.$$
$${}\times\left.\tanh\left(\frac{e\Psi}{R_{c}}\right)\right\}\ddot{\Psi}+\xi\xi_{1}\xi_{3}R_{0}\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}\right.$$
$${}-\left.\xi R_{0}\Big{(}\frac{b}{B_{0}}-\frac{c}{C_{0}}\Big{)}\rho_{0}-(1+\xi R_{0})\right.$$
$${}\times\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}$$
$${}-\left.\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}-\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}\Psi$$
$${}+\left(\frac{2b}{B_{0}}P_{t0}-\xi\xi_{3}e(\rho_{0}+P_{t0})+Z_{3}\right)\Psi\xi_{1}.$$
(36)

For simplicity, we have introduced the notations \(\xi_{1}\) and \(\xi_{3}\):

$$\xi_{1}=\bigg{[}1-\beta\sec h^{2}\Big{(}\frac{R_{0}}{R_{c}}\Big{)}+\xi T_{0}\bigg{]}$$
$${}\times\left[1+\xi R_{0}-\beta\sec h^{2}\Big{(}\frac{R_{0}}{R_{c}}\Big{)}-\xi T_{0}\right]^{-1},$$
$$\xi_{3}=\left[1+\beta\sec h^{2}\Big{(}\frac{R_{0}}{R_{c}}\Big{)}+\xi T_{0}\right]^{-1}.$$

The collapse equation is constituted with the help of the nonstatic parts of the continuity equations and the perturbed parts of surface pressures in the respective directions. It is worthy to note that the collapse equation helps us to study the (in)stability of the compact system under consideration in the \(\mathbb{N}\) and pN approximations. We use Eqs. (34)–(36) in (29), which yields

$$-\xi R^{\prime}_{0}\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}\right.$$
$${}-\left.\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}-\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}\right.$$
$${}-\left.\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}\Psi-\xi R^{\prime}_{0}\frac{\Psi P_{r0}}{\rho_{0}+P_{r0}}$$
$${}\times\Gamma\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}\right.$$
$${}-\left.\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}\right.$$
$${}-\left.\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}-\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}$$
$${}+\Psi\Gamma\big{(}1+\xi R_{0}\big{)}\left[\frac{P_{r0}}{\rho_{0}+P_{r0}}\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\rho_{0}\right.\right.$$
$${}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}-\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}$$
$${}\times\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}-\frac{2a}{A^{3}_{0}}Q^{(s)}_{1}$$
$${}-\left.\left.\frac{b}{B^{3}_{0}}Q^{(s)}_{2}-\frac{2c}{C_{0}}Q^{(s)}_{3}+\bar{Z}_{1}\right\}\right]^{\prime}-\frac{2\xi\Psi R_{0}}{B_{0}}$$
$${}\times\bigg{(}\rho_{0}+P_{r0}\bigg{)}\bigg{(}b^{\prime}-\frac{bB^{\prime}_{0}}{B_{0}}\bigg{)}$$
$${}-\frac{2C^{\prime}_{0}}{C^{3}_{0}}\left[\frac{\xi_{1}}{A^{2}_{0}}\ddot{\Psi}\left\{\frac{b}{B^{2}_{0}}+\frac{c}{C^{2}_{0}}+\frac{2\beta e}{R_{c}}\sec h^{2}\left(\frac{e\Psi}{R_{c}}\right)\right.\right.$$
$${}\times\left.\left.\tanh\left(\frac{e\Psi}{R_{c}}\right)\right\}+\xi\xi_{1}\xi_{3}R_{0}\left\{\left(\frac{c}{C_{0}A^{2}_{0}}-\frac{2a}{A^{3}_{0}}\right)\right.\right.$$
$${}\times\left.\left.\rho_{0}-\xi R_{0}\left(\frac{b}{B_{0}}-\frac{c}{C_{0}}\right)\rho_{0}-\frac{2cQ^{(s)}_{3}}{C_{0}}\right.\right.$$
$${}-\left(1+\xi R_{0}\right)\bigg{(}\frac{b}{B^{3}_{0}}P_{r0}+\frac{2c}{C_{0}}P_{t0}\bigg{)}-\frac{2aQ^{(s)}_{1}}{A^{3}_{0}}$$
$${}-\left.\frac{bQ^{(s)}_{2}}{B^{3}_{0}}+\bar{Z}_{1}\right\}\Psi+\left(\frac{2b}{B_{0}}P_{t0}\right.-\xi\xi_{3}e\big{(}\rho_{0}$$
$${}+P_{t0}\big{)}\left.+Z_{3}\right)\left.\Psi\xi_{1}\right]+\frac{a^{\prime}\Psi}{A^{3}_{0}}\left(\rho_{0}+Q^{(s)}_{1}\right)$$
$${}-\frac{2c^{\prime}\Psi}{C^{3}_{0}}P_{t0}-\frac{b^{\prime}\Psi}{B_{0}}Q^{(s)}_{2}+Y_{1}=0.$$
(37)

4 \(\mathcal{N}\)-APPROACH

Here, we explore the collapse equation in an \(\mathbb{N}\)-era, for which we modify this equation under the approximation \(A_{0}=1=B_{0}\), and \(C_{0}=r\). Thus the expression for \(\Gamma\) helps us to understand the behavior and the stability criteria for a charged gravitating spherically symmetric fluid configuration under some significant constraints. Also, the constraints on the energy density and pressure components, i.e., \(\rho_{0}\), \(P_{r0}\), and \(P_{t0}\) are \(P_{r0}\ll\rho_{0}\), and \(P_{t0}\ll\rho_{0}\). Furthermore, we consider in the \(\mathbb{N}\)-era, \(P_{r0}/\rho_{0}\to 0\), and \(P_{t0}/\rho_{0}\to 0\). The collapse equation under these constraints yields for \(\Gamma\) the inequality

$$\Gamma<\frac{2\left(\xi b-\frac{c^{\prime}}{r^{3}}\right)P_{t0}+a^{\prime}\rho_{0}+\Pi_{1}+Y_{1\mathbb{N}}}{P_{r0}\left(\xi R^{\prime}_{0}E_{1}+\beta W_{1}\right)+\Pi_{2}},$$
(38)

where

$$\Pi_{1}=\xi\left(E_{1}+W_{1}\right)\left(2\xi_{1}\xi_{3}R_{0}\frac{\rho_{0}}{r^{3}}-\xi_{4}\rho_{0}R^{\prime}_{0}\right)$$
$${}+E_{2}-2b\xi R_{0}\left(\rho_{0}+P_{r0}\right),$$
$$\Pi_{2}=\left(1+\xi R_{0}\right)\left\{P_{r0}\left(E_{1}+W_{1}\right)\right\}^{\prime},$$
$$\frac{1}{\xi_{3}}=1+\beta\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)+\xi T_{0},$$
$$\xi_{4}=b+\frac{ac}{r}+\xi bR_{0}.$$

In an \(\mathbb{N}\)-era, the metric and material variables as well as DS-terms play a vital role in determining the dynamical stability range of our charged spherical geometry. Also, \(\Gamma\) shows a dependence on \(P_{r}\), \(P_{t}\), \(\rho\), etc. This locally anisotropic charged spherical compact star will remain stable as long as it adheres to the \(\Gamma\) restrictions, which require that all terms should be positive. The following requirements must be met to meet the aforementioned criteria:

$$P_{r0}<P_{t0},\quad\xi\xi_{3}>\xi_{4},$$
$$\xi b>\frac{c^{\prime}}{r^{3}},\quad 2b\xi R_{0}\rho_{0}<a^{\prime}\rho_{0},$$

and also

$$\xi\left(E_{1}+W_{1}\right)\left(2\xi_{1}\xi_{3}R_{0}\frac{\rho_{0}}{r^{3}}-\xi_{4}\rho_{0}R^{\prime}_{0}\right)$$
$${}>2b\xi R_{0}\left(\rho_{0}+P_{r0}\right),$$

where

$$E_{1}=-\frac{1}{\rho_{0}}\bigg{(}2aQ^{(s)}_{1}+\frac{2cQ^{(s)}_{3}}{r}+bQ^{(s)}_{2}\bigg{)},$$
$$E_{2}=a^{\prime}Q^{(s)}_{1}+b^{\prime}Q^{(s)}_{2},$$
$$W_{1}=\frac{c}{r}-2a+\xi R_{0}\Big{(}b+\frac{c}{r}\Big{)}.$$

The anisotropic charged spherical star system’s stability zones are created by considering that every factor in the collapse calculation should be favorable. As a result, Eq. (40) for \(\Gamma\), which determines the stability condition, must be used to formulate the corresponding hydrodynamic equation. As a result, we observe that as long as the inequality (40) holds, this symmetric configuration would remain in a stable phase. Consequently, the adiabatic index demonstrates that the instability range of (40), as determined by the pressure components and the antigravitational force, depends on the pressure components and the anti-gravitational force. The radial properties of the energy density, anisotropy, and \(f(R,T)\) additional curvature components ultimately determine the variable values. The dynamic (un)stable phase of this charged compact fluid structure is disturbed due to some DS terms, so that the (in)stability in the \(\mathbb{N}\)-era is affected by these corrective terms.

For \(f(R)\) gravity in an \(\mathbb{N}\)-domain, we modify the collapse equation with \(A_{0}=1=B_{0}\), and \(C_{0}=r\). Thus the expression for \(\Gamma\) helps us to understand the behavior and stability criteria for the configuration under study with some significant constraints. Also, constraints on the energy density and pressure components \(\rho_{0}\), \(P_{r0}\), and \(P_{t0}\) are \(P_{r0}\ll\rho_{0}\), and \(P_{t0}\ll\rho_{0}\). Furthermore, we consider, in an \(\mathbb{N}\)-era, \(P_{r0}/\rho_{0}\to 0\) and \(P_{t0}/\rho_{0}\to 0\). The results found in Eq. (37) are well consistent with those in \(f(R)\) gravity in the \(\mathbb{N}\) regime with the usual limit \(\xi\to 0\) as in [69, 70]. The collapse equation under the above constraints yields an inequality for the adiabatic index \(\Gamma\):

$$\Gamma<\frac{-2\frac{c^{\prime}}{r^{3}}P_{t0}+\Pi_{3}+\beta q_{1}+2q_{2}+Z^{(s)}_{2\mathbb{N}}}{\beta P_{r0}\left(\frac{c}{r}-2a\right)+\Pi_{4}},$$
(39)

where

$$\Pi_{3}=+a^{\prime}Q^{(s)}_{1}+b^{\prime}Q^{(s)}_{2}+a^{\prime}\rho_{0}+\frac{6c}{r^{4}P_{t0}}$$
$${}+2e\rho^{\prime}_{0}+2\beta e^{\prime}\rho_{0},$$
$$\Pi_{4}=\bigg{[}-\frac{P_{r0}}{\rho_{0}}\Big{(}2aQ^{(s)}_{1}+\frac{2cQ^{(s)}_{3}}{r}+bQ^{(s)}_{2}\Big{)}$$
$${}+P_{r0}\left(\frac{c}{r}-2a\right)\bigg{]}^{\prime}.$$

The results found in Eq. (37) reduce to those of GR in the \(\mathbb{N}\) regime with the usual limit \(\xi\to 0\) and \(\beta\to 0\). The results obtained here are well consistent with the findings of Herrera et al. [32] for anisotropic spherical self-gravitating internal structures in standard GR. Consequently, the collapse equation under the above constraints yields the inequality for the adiabatic index \(\Gamma\)

$$\Gamma<\frac{\frac{6c}{r^{4}P_{t0}}+\Pi_{5}+Z^{(s)}_{2\mathbb{N}}}{\left\{P_{r0}\left(\Pi_{6}+c/r-2a\right)\right\}^{\prime}},$$
(40)

where

$$\Pi_{5}=-2\frac{c^{\prime}}{r^{3}}P_{t0}+a^{\prime}Q^{(s)}_{1}+b^{\prime}Q^{(s)}_{2}+a^{\prime}\rho_{0}$$
$${}+2e\rho^{\prime}_{0}+2q_{2},$$
$$\Pi_{6}=-\frac{1}{\rho_{0}}\bigg{(}2aQ^{(s)}_{1}+\frac{2cQ^{(s)}_{3}}{r}+bQ^{(s)}_{2}\bigg{)}.$$

5 pN APPROACH

Distinct components of specific gravitational systems may cause particular problems in real-world applications. This includes the nonlinear nature of the equations of motion and lack of a background geometry for considering physically significant variables such as energy. To arrive at physically appropriate results, certain approximation procedures are used. Linearized gravity, which ignores nonlinear parts of spacetime metrics, is an example of an approximation approach that eventually gives some beneficial acceptable conclusions. As a result of this method, linearized field equations expressing weak gravitational fields may be easily managed while relativistic gravitational theory’s \(\mathbb{N}\) and pN constraints are viewed as weak-field approximations.

In this section, the dynamical stability of charged spherically symmetric stars in a pN era is considered in nonminimally coupled gravity, i.e., in \(f(R,T)\) gravity. The relativistic consequences may be investigated up to \(O\left(\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)\) in this scenario by using post Newtonian approaches such as

$$A_{0}=1-\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}},\quad B_{0}=1+\frac{m_{0}}{r}-\frac{Q^{2}}{2r^{2}},$$
$$C_{0}=r,$$

where \(Q=Q_{1}=Q_{2}=Q_{3}\). From these expressions we find

$$\frac{A^{\prime}_{0}}{A_{0}}=\frac{2}{r}\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}-2r^{2}}\right\},$$
$$\frac{B^{\prime}_{0}}{B_{0}}=\frac{2}{r}\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right\}.$$

Under these assumptions, our established collapse equation modifies and helps in computing the inequality for \(\Gamma\), namely,

$$\Gamma<\frac{\Pi_{7}+\xi\left(2\xi_{1}\xi_{3}\frac{R_{0}}{r^{3}}-R^{\prime}_{0}\right)E_{3}+E_{4}+Y_{2(\mathbf{p}\mathbb{N})}}{\frac{R^{\prime}_{0}P_{r0}}{\rho_{0}+P_{r}0}\left(\beta W_{2}\rho_{0}-\xi W_{3}+\xi E_{3}\right)+\Pi_{8}},$$
(41)

where

$$\Pi_{7}=\xi\left(2\xi_{1}\xi_{3}\frac{R_{0}}{r^{3}}-R^{\prime}_{0}\right)\left(W_{2}\rho_{0}-W_{3}\right)$$
$${}-\frac{2c^{\prime}}{r^{3}}P_{t0}+W_{4}+\xi_{1}W_{5},$$
$$\Pi_{8}=(1+\xi R_{0})\bigg{\{}\frac{P_{r0}}{\rho_{0}+P_{r}0}\left(\rho_{0}W_{2}-W_{3}+E_{3}\right)\bigg{\}}^{\prime}.$$

The following constraints on the physical quantities in the case of positive-definite terms in \(\Gamma\) must be met:

$$\xi\xi_{1}\xi_{3}\frac{R_{0}}{r^{3}}>\xi R^{\prime}_{0},\quad W_{2}>W_{3},$$
$$\xi\left(2\xi_{1}\xi_{3}\frac{R_{0}}{r^{3}}-R^{\prime}_{0}\right)\left(W_{2}\rho_{0}-W_{3}\right)>\frac{2c^{\prime}}{r^{3}}P_{t0},$$
$$\frac{\xi R^{\prime}_{0}P_{r0}}{\rho_{0}+P_{r}0}\big{(}W_{2}\rho_{0}-W_{3}+E_{3}\big{)}$$
$${}>\left(\frac{P_{r0}}{\rho_{0}+P_{r}0}\left(\rho_{0}W_{2}-W_{3}+E_{3}\right)\right)^{\prime}.$$

These constraints must be met for charged stellar object under study to have a stable structure. It can be shown from Eq. (43) that \(\Gamma\) significantly depends on the stellar mass and radius as well as the electromagnetic field composition and some DS terms due to the MGT. To study the dynamic stability in a pN era, we examine the material and metric variables that have a key role for that: \(W_{2}\), \(W_{3}\), \(W_{4}\), \(W_{5}\), \(E_{3}\), \(E_{4}\), given as follows:

$$W_{2}=\frac{c}{r}\left(1+\frac{2m_{0}}{r}-\frac{Q^{2}}{r^{2}}\right)-2a\left(1+\frac{3m_{0}}{r}\right.$$
$${}-\left.\frac{3Q^{2}}{2r^{2}}\right)+\frac{c\xi R_{0}}{r}+b\xi R_{0}\left(1-\frac{3m_{0}}{r}+\frac{3Q^{2}}{2r^{2}}\right),$$
$$W_{3}=(1+\xi R_{0})\left\{b\left(1-\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)\right.$$
$${}+\left.\frac{2c}{r}P_{t0}\right\}-\bar{Z}_{1\mathbf{p}\mathbb{N}},$$
$$W_{4}=-2\xi R_{0}(\rho_{0}+P_{r0})\left(1-\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)$$
$${}\times\left\{b^{\prime}-\frac{2b}{r}\left(\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right)\right\},$$
$$W_{5}=\xi_{1}\left\{2b\left(1-\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)P_{t0}\right.$$
$${}-\left.\xi\xi_{3}e\left(\rho_{0}+P_{t0}\right)+Z_{3\mathbf{p}\mathbb{N}}\right\},$$
$$E_{3}=-2a\Big{(}1+\frac{3m_{0}}{r}\Big{)}Q+\frac{c}{r}Qc-b\Big{(}1-\frac{3m_{0}}{r}\Big{)}Q,$$
$$E_{4}=a^{\prime}(\rho_{0}+Q)\Big{(}1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\Big{)}$$
$${}+b^{\prime}\Big{(}1-\frac{m_{0}}{r}\Big{)}Q.$$

One can regain the results of \(f(R)\) gravity in both \(\mathbb{N}\) and pN regimes in the usual limit \(\xi=0\). The expression of \(\Gamma\) in GR is retrieved from the results of \(f(R,T)\)-gravity by substituting \(\beta=0=\xi\).

One can utilize the usual limit \(\beta\to 0\) to discuss the dynamic stability of a charged spherically symmetric star in a pN era in the framework of \(f(R)\) gravity. The relativistic consequences may be investigated up to \(O\left(\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)\) in this scenario by using the post-Newtonian approach as described above, with \(Q=Q_{1}=Q_{2}=Q_{3}\). Under these conditions on the metric coefficients \(A_{0},B_{0},C_{0}\), the results in Eq. (38) reduce to \(f(R)\) gravity in a pN regime with the usual limit \(\xi\to 0\) which are compatible with [69], thus the inequality for adiabatic index \(\Gamma\) becomes

$$\Gamma<\frac{-\frac{2c^{\prime}}{r^{3}}P_{t0}+\Pi_{9}+E_{4}+Y_{2(\mathbf{p}\mathbb{N})}}{\frac{\beta W_{2}\rho_{0}R^{\prime}_{0}P_{r0}}{\rho_{0}+P_{r}0}+\Pi_{10}},$$
(42)

where

$$\Pi_{9}=W_{4}+\left(1+\beta\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right)^{-1}W_{5},$$
$$\Pi_{10}=\left\{\frac{P_{r0}}{\rho_{0}+P_{r}0}\left(\rho_{0}W_{2}-W_{3}+E_{3}\right)\right\}^{\prime}.$$

Also, some intermediate terms, \(W_{2}\), \(W_{3}\), \(W_{4}\), \(W_{5}\), \(E_{3}\), \(E_{4}\) are given as follows:

$$W_{2}=\frac{c}{r}\Big{(}1+\frac{2m_{0}}{r}-\frac{Q^{2}}{r^{2}}\Big{)}-2a\Big{(}1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\Big{)},$$
$$W_{3}=b\left(1-\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)+\frac{2c}{r}P_{t0}-\bar{Z}_{1\mathbf{p}\mathbb{N}},$$
$$W_{5}=\xi_{1}\left\{2b\left(1-\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)P_{t0}+Z_{3\mathbf{p}\mathbb{N}}\right\},$$
$$E_{3}=-2a\Big{(}1+\frac{3m_{0}}{r}\Big{)}Q-b\Big{(}1-\frac{3m_{0}}{r}\Big{)}Q+\frac{c}{r}Q,$$
$$E_{4}=a^{\prime}\left(\rho_{0}+Q\right)\left(1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)$$
$${}+b^{\prime}\left(1-\frac{m_{0}}{r}\right)Q,$$
$$Y_{1\mathbf{p}\mathbb{N}}=\frac{6c}{r^{4}}P_{t0}+\frac{2}{r}\bigg{[}(\rho_{0}+2\beta q_{1}\bigg{)}\bigg{(}1+\frac{2m_{0}}{r}$$
$${}-\frac{Q^{2}}{r^{2}}\bigg{)}-a\bigg{(}\rho_{0}+Q^{(s)}_{1}\bigg{)}\left.\left(1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)\right]$$
$${}\times\left\{\frac{Q^{2}-m_{0}r}{Q^{2}-2m_{0}r+2r^{2}}\right\}+2\beta e\rho^{\prime}_{0}-\frac{2}{r}$$
$${}\times\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right\}\bigg{(}2q_{2}-bQ^{(s)}_{2}\bigg{)}+Z^{(s)}_{2\mathbf{p}\mathbb{N}}.$$

The expression for the adiabatic index \(\Gamma\) in GR can be retrieved from the results of \(f(R,T)\) gravity in Eq. (38) by substituting \(\beta=0=\xi\), and the one in standard GR can be retrieved in the following form [32]:

$$\Gamma<\frac{-\frac{2c^{\prime}}{r^{3}}P_{t0}+W_{4}+W_{5}+E_{4}+Y_{2(\mathbf{p}\mathbb{N})}}{\left\{\frac{P_{r0}}{\rho_{0}+P_{r}0}\left(\rho_{0}W_{2}-W_{3}+E_{3}\right)\right\}^{\prime}},$$
(43)

where the quantities \(W_{2}\), \(W_{3}\), \(W_{4}\), \(E_{3}\), \(E_{4}\) are given as previously, and

$$W_{5}=2b\left(1-\frac{m_{0}}{r}+\frac{Q^{2}}{2r^{2}}\right)P_{t0}+Z_{3\mathbf{p}\mathbb{N}},$$
$$Y_{2\mathbf{p}\mathbb{N}}=\frac{2}{r}\left\{\frac{Q^{2}-m_{0}r}{Q^{2}-2m_{0}r+2r^{2}}\right\}$$
$${}\times\bigg{[}\rho_{0}\bigg{(}1+\frac{2m_{0}}{r}-\frac{Q^{2}}{r^{2}}\bigg{)}-a\bigg{(}\rho_{0}+Q^{(s)}_{1}\bigg{)}$$
$${}\times\left(1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)\bigg{]}+\frac{6c}{r^{4}}P_{t0}$$
$${}-\frac{2}{r}\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right\}\bigg{(}2q_{2}-bQ^{(s)}_{2}\bigg{)}+Z^{(s)}_{2\mathbf{p}\mathbb{N}}.$$

The terms \(W_{2}\), \(E_{3}\), \(E_{4}\) are identical in both \(f(R)\) gravity and GR.

If the conditions in both \(\mathbb{N}\) and pN eras are met, the system will achieve a stable profile. These results also indicate that the energy density inhomogeneity and anisotropic pressure affect the system’s dynamic stability. Furthermore, Sharif and Bhatti discovered instability limits for cylindrical collapse with the expansion-free criterion [71], in which the adiabatic index \(\Gamma\) plays no role, and without the expansion-free constraint [72], in which it plays a critical part for continuing a systematic study of dynamic stability. We have investigated the dynamic stability of a charged spherically symmetric fluid configuration with anisotropic pressure in non-minimally coupled \(f(R,T)\) gravity, determined the instability range for fluid distributions in the absence of an expansion-free state and conceived that it depends on the adiabatic index, which is well consistent with [58, 69, 72, 73] and includes static terms in the configuration.

5.1 Graphic Interpretation

We study the dynamic stability of electrically charged spherical compact structures in which the matter sector represents an anisotropic configuration, in a specific hyperbolic mathematical formalism of \(f(R,T)\) gravity, \(f(R,T)=R-\beta R_{c}\tanh(R/R_{c})+\xi RT\). This functional shape of gravity, under parametric restrictions like \(\beta>0\) and \(0<\xi<1\), may provide relativistic consequences. Thus, it is possible that the physical entity \(R_{c}\) and the Hubble constant have a relationship. It is important to note that in this paper, the collapse equation is explicitly obtained from the non-conservation equations by utilizing the Harrison et al. [67] equation of state in Newtonian \((\mathbb{N})\) and post-Newtonian \((\mathbf{p}\mathbb{N})\) realms. We started by considering a hydrostatic profile for a charged stellar structure, which enters into a nonstatic phase with a linear perturbation parameter. For this anisotropic compact structure to start collapsing, the mathematical approach gives some significant stability limitations. In this study of a symmetric collapsing configuration, the adiabatic index \((\Gamma)\) determines the stability constraints.

Figure 1
figure 1

Schematic diagrams for the unstable and stable behavior of a charged spherically symmetric compact object for different values of model parameters in the \(\mathbb{N}\) domain.

Figure 2
figure 2

Schematic diagrams for the unstable and stable behavior of a charged spherically symmetric compact object for varying values of the model parameters in the pN domain.

The stable (unstable) behavior of our system is determined in the \(\mathbb{N}\) and pN eras via schematic diagrams. For both eras, we displayed all of the illustrative findings that were significant for a range of tthe parameter \(\xi\) and particular parametric values of \(\beta\). This demonstrates the importance of the stiffness parameter \(\Gamma\) and supports Chandrasekhar’s conclusions presented in [28]. We also describe how matter and the electric charge affect various elements in this scenario for the specific hyperbolic form of \(f(R,T)\) gravity. It indicates the importance of the adiabatic index and validates Chandrasekhar’s results, i.e., the system remains stable for \(\Gamma>4/3\) and unstable for \(\Gamma<4/3\). Schematic diagrams of our studied \(f(R,T)\) gravitational model for stable and unstable behavior are presented in Figs. 1 and 2 for the \(\mathbb{N}\) and pN eras, respectively.

A basic summary of what we have studied is given below:

  • According to the established results in (37) and (38), the existence of an anisotropy in fluid pressure appears to have a significant impact on the stability profile of the considered class of electrically charged spherical systems in \(\mathbb{N}\) and pN eras. We found that when the denominator’s absolute values are taken, the effective pressure anisotropy diminishes the stability regions.

  • Due to \(f(R,T)\) gravity, the extra curvature terms in the \(\mathbb{N}\) and pN eras always arise, which drastically affects the stability restrictions. We found that the system enters into a hydrostatic equilibrium if the stiffness parameter is equal to the right-hand sides of Eqs. (37) and (38).

  • The schematic representations denote an unstable (for \(\Gamma<4/3\)) or stable (for \(\Gamma>4/3\)) stellar structure. We obtain only unstable regions for the parameter values \(\beta=0.3\), \(Q=0\) and the range of \(\xi\) from \(0\) to \(1\), as indicated in Fig. 1a, in the \(\mathbb{N}\) era.

  • For the sets of parameters \(\beta=0.5\), \(Q=0.5\) (Fig. 1b) and \(\beta=0.7\), \(Q=0.7\) (Fig. 1c) both stable and unstable states are found, but the ranges of the adiabatic index are slightly different in both cases. In Fig. 1d, we observe only a stable behavior for the parametric values \(\beta=1\), \(Q=1\).

  • In Fig. 1b, we see a very small stable region as compared to an unstable one in the \(\mathbb{N}\) era for specific parametric values. In Fig. 1d, we observe that the index range begins from 2, which is larger than the standard value of the stiffness parameter for a stable stellar fluid configuration, i.e., \(\Gamma>4/3\).

  • We continued our study in the pN domain and observe only unstable graphical representations in Fig. 2a for the same parameter values as considered in the \(\mathbb{N}\) era, i.e., \(\beta=0.3\), \(Q=0\) and the range of \(\xi\) from \(0\) to \(1\).

  • In the Figs. 2b, 2c, 2d, we observe both stable and unstable states for the sets of parameters (\(\beta=0.5\), \(Q=0.5\)), (\(\beta=0.7\), \(Q=0.7\)) and (\(\beta=1\), \(Q=1\)), respectively. Also, the ranges of the adiabatic index are slightly different in all scenarios for the considered nonminimally coupled \(f(R,T)\) gravity.

  • Moreover, in Fig. 2b, we see a very small stable region as compared to the unstable one, however, Fig. 2d shows a very small unstable region for the considered values of the parameters in the pN domain.

  • According to the hyperbolic mathematical formalism of \(f(R,T)\) gravity, these outcomes are consistent with those found in GR as well as in the metric \(f(R)\) theory.

6 FINAL REMARKS

The consequences of massive collapse of compact fluids and investigation of (in)stability of cosmic geometries are new problems of GR and modified theories of gravity. A compact geometry’s collapse is reliant on the fuel supply, and the loss or depletion of all fuel causes gravitational collapse because the internal gravitational pull then overcomes the outward drawn forces. In this work, we investigated the mentioned problem, i.e., the stability of compact geometries, by considering a restricted class of nonstatic locally anisotropic spherical matter structures in the context of modified \(f(R,T)\) gravity [45]. We continue our comprehensive investigation of dynamical stability to get some constrained conclusions for this charged geometry.

It is interesting to note that the MFEs computed in \(f(R,T)\) gravitational theory have an extra term of \(T\), i.e., a scalar force, as compared to \(f(R)\) gravity [55], and this increment indicates that the relativistic theory of gravity is more generalized under this assumption. To arrive at dynamic continuity equations, the covariant divergence of the effective EMT is used. To fix this concern, we can choose a perturbation technique as considered by Herrera et al. [29, 32].

Examination of the stability spectrum of modified gravity theories reveals a gravitational impact in current time, which is one of the known universe’s expansions. This study explored the entire influence of the \(f(R,T)\) cosmological framework on the dynamic stability of our analyzed compact objects. For a dynamic analysis, a nonminimally coupled \(f(R,T)\) model can only have the general form \(f(R,T)=f(R)+\xi RT\), where \(\xi\) is a nonminimal coupling parameter and is considered as a correction to \(f(R)\) gravity. Using this nonminimally coupled model, we have here \(f(R)=R-\beta R_{c}\tanh(R/R_{c})\). This model provides significant conclusions for \(\beta>0\), \(1\gg\xi>0\) using \(R_{c}\) as a constant quantity storing the values of the Ricci scalar \(R\) effective order.

To overcome the later mentioned problem, we utilize a relevant perturbation scheme that provides approximate solutions of our calculated expressions of motion. We perturbed our considered modified gravitational \(f(R)+\beta RT\) mode, the conservation equations and extra ingredients which appear due to the MGTs.

To create a collapse equation, we employed a perturbation technique to distinguish static and nonstatic components of the MFEs and continuity equations. With the help of non-static parts of the conservation equations, surface pressures in different directions, and the Harrison et al. [67] equation of state, we created a collapse equation that demonstrates a correlation among the three physical parameters: (a) pressures, (b) energy density, and (c) the stiffness parameter \(\Gamma\). We obtained stability criteria for a charged spherically symmetric fluid in \(\mathbb{N}\) and pN epochs using the perturbed parts of continuity equations by establishing the expression for \(\Gamma\). To continue our theoretical investigation, we impose some substantial conditions on the physical entities to make them positive and retain the same criteria within \(\mathbb{N}\) and pN eras.

Many stellar systems, including clusters and galaxies as well as their constituent stars have densities higher than the universe’s average densities. As a consequence, these systems are now categorized as nonlinear ones. To acquire a thorough picture of their structural history, we have to examine their linear, nearly linear, or quasilinear iterations. In the literature, several mathematical approaches to dynamical aspects of nonlinear celestial systems have been presented. These methods will not, of course, explain all the unanswered problems of nonlinear stellar structure, but they may yield some interesting results. Since the gravitational field expressions in \(f(R,T)\) gravity are so complex, establishing a general solution is challenging. The development of linear perturbations may always be used to investigate gravitational changes by removing such contradictions. By executing a linear perturbation in dynamic equations against a static configuration that correspond to an instability spectrum, the relevant collapse equation may be produced. Fixed or comoving coordinates, such as in Eulerian or Lagrangian techniques, might be used to anticipate the dynamical analysis. Because the universe is nearly uniform at large scale, we used the comoving coordinates [74].

We continue our systematic investigation of dynamic stability of locally anisotropic charged stellar object by considering a nonminimally coupled cosmic \(f(R,T)\) model given as \(f(R,T)=R-\beta R_{c}\times\tanh\left(\frac{R}{R_{c}}\right)+\xi RT\). This functional form of \(f(R,T)\) gravity has significant results only for \(\beta>0\) and \(0<\xi<1\), \(R_{c}\) being a positive constant, and \(\xi RT\) demonstrates a correction term to \(f(R)\) gravity. We use a linear perturbation method to construct dynamical equations in this paper. The stability of a collapsing charged compact spherically symmetric structure with anisotropic environment has been investigated, with \(\Gamma\) determining instability ranges in both \(\mathbb{N}\) and pN domains. This highlights the importance of such an index in our research, which backs up Chandrasekhar’s first conclusions from 1964. Here is a brief overview of what we explored:

  • It is worth noting that the presence of anisotropy in the fluid pressure has a considerable influence on the instability of the class of relativistic structures under study in \(\mathbb{N}\) and pN eras, as reflected by the inequalities (40) and (43), respectively. By keeping the absolute values of the denominator, the effective pressure anisotropy tends to reduce the stability regions or eliminate hindrances for the mechanism to operate in the collapse stage.

  • Since many of the additional curvature elements in Eqs. (40) and (43) arise in the numerator with a negative sign, they are attributable to \(f(R,T)\) gravity. We can see that the existence of these variables tends to lower the stability range. This equation contains effective interpretations of matter quantities, implying that the factors coming from the relationship of matter and geometry have a considerable impact on the stability constraints owing to their nonattractive nature.

  • We have established two meaningful relations, one for the \(\mathbb{N}\) regime and the other for the pN regime, for tthe adiabatic index, (40) and (43). The system must fulfill these specifications to enter an unstable window. Thus non-compliance with these restrictions will result in stable configurations.

  • We found that the system achieves a state of hydrostatic equilibrium for this axial geometry if the stiffness parameter is equal to the right-hand sides of Eqs. (40) and (43).

  • As a result, the inequalities (40) and (43) reveal that the radial allocation of surface pressures in the respective directions, and also the extra degrees of freedom created as a direct consequence of minimally coupled \(f(R,T)\) gravitational theory, affect the dynamic instability ranges. These results for our axially symmetric star are similar to those obtained using metric \(f(R)\) gravity and GR.

By specifying such conditions as \(\xi\to 0\) and \(\beta\to 0\), one may readily acquire and relate findings in the backdrop of GR.

Appendix

The terms appearing due to MGT are given as

$$Z_{1}=\left\{\frac{1}{f_{R}A^{2}}\left(\frac{1}{2}\big{(}f-Rf_{R}\big{)}+Q_{11}+\varphi_{00}f_{R}\right)\right\}_{,0}$$
$${}-\frac{2\dot{A}}{A^{3}}\left(\frac{1}{2}\big{(}f-Rf_{R}\big{)}+\varphi_{00}f_{R}\right)-\frac{1}{B^{2}}\left\{\frac{\varphi_{01}}{f_{R}}\right\}_{,1}$$
$${}+\frac{\dot{B}}{A^{2}B}\varphi_{01}-\frac{\dot{B}}{2B^{3}}f_{R}\varphi_{11}-\frac{\dot{B}}{2B^{3}}\big{(}f-Rf_{R}\big{)}$$
$${}-\frac{2\dot{C}}{CA^{2}}f_{R}\varphi_{00}+\frac{\dot{C}}{CA^{2}}\big{(}f-Rf_{R}\big{)}+\frac{2\dot{C}}{C}f_{R}\varphi_{22}$$
$${}-\frac{\dot{C}}{C}\big{(}f-Rf_{R}\big{)}+\frac{1}{f_{R}(1+f_{T})}$$
$${}\times\left\{2\rho A^{2}\dot{f}_{T}+\frac{1}{2}A^{2}\dot{T}f_{T}+\dot{Q}_{11}f_{T}\right\},$$

where \(Q_{11}=-\rho A^{2}+\frac{sA^{2}}{8\pi C^{2}}\). Also,

$$Z_{2}=\frac{1}{A^{2}}\left\{\frac{\varphi_{01}}{f_{R}}\right\}_{,0}+\frac{1}{B^{2}}\left(\frac{1}{2}\big{(}f-f_{R}R\big{)}+Q_{2}\right.$$
$${}+\left.\varphi_{11}f_{R}\right)_{,1}-\frac{2B\dot{B}}{A^{2}}\left(\frac{\varphi_{01}}{f_{R}}\right)-\frac{2B^{\prime}}{B}\left(P_{r}-\frac{1}{2}\right.$$
$${}\times\left.\big{(}f-f_{R}R\big{)}+Q_{2}+\varphi_{11}f_{R}\right)$$
$${}+\frac{2\dot{C}}{CA^{2}}\left(\frac{\varphi_{01}}{f_{R}}\right)-\frac{1}{A^{2}}\left(\frac{\varphi_{01}}{f_{R}}\right)\left(\frac{\dot{A}}{A}+\frac{\dot{B}}{B}\right)$$
$${}+\left(\frac{2C^{\prime}}{CB^{2}}-\frac{A^{\prime}}{AB^{2}}\right)\left(P_{r}-\frac{1}{2}\ \big{(}f-f_{R}R\big{)}\right.$$
$${}+\left.\left(\rho+P_{r}\right)f_{T}+Q_{2}+\varphi_{11}f_{R}\right)$$
$${}-\frac{A^{\prime}}{2A^{3}}\big{(}2\varphi_{00}f_{R}+f-f_{R}R\big{)}$$
$${}+\frac{2C^{\prime}}{C^{3}}\left(\left(\rho+P_{t}\right)f_{T}-\frac{1}{2}\big{(}f-f_{R}R\big{)}+Q_{3}\right.$$
$${}+\left.\varphi_{22}f_{R}\right)+\frac{1}{1+f_{T}}\left\{\left(\rho+2P_{r}\right)B^{2}\frac{f^{\prime}_{T}}{f_{R}}\right.$$
$${}+\left.\frac{1}{2}B^{2}T^{\prime}\frac{f_{T}}{f_{R}}+Q^{\prime}_{22}\frac{f_{T}}{f_{R}}\right\},$$

where \(Q_{22}=B^{2}\left(\rho+3P_{r}+\frac{3s^{2}}{8\pi C^{2}}\right)\). Also,

$$Z_{3}=\frac{\Psi}{\xi_{3}B^{2}_{0}}\left\{\left(\frac{2A^{\prime}_{0}}{A_{0}}-\frac{B^{\prime}_{0}}{B_{0}}+\frac{C^{\prime}_{0}}{C_{0}}\right)\left(\frac{a}{A_{0}}\right)^{\prime}\right.$$
$${}+\left.\left(\frac{A^{\prime}_{0}}{A_{0}}-\frac{B^{\prime}_{0}}{B_{0}}+\frac{2C^{\prime}_{0}}{C_{0}}\right)\left(\frac{c}{C_{0}}\right)^{\prime}\right\}$$
$${}-\frac{1}{2}\bigg{[}\Psi e-\beta R_{c}\tanh\left(\frac{\Psi e}{R_{c}}\right)+\xi R_{0}\bar{T}$$
$${}+\xi\Psi eT_{0}+R_{0}\left(\beta\sec h^{2}\left(\frac{\Psi e}{R_{c}}\right)-\xi\bar{T}\right)$$
$${}-\Psi\left(1+\xi T_{0}\right)\bigg{]}+\frac{\Psi}{\xi_{3}B^{2}_{0}}\left[\left(\frac{a}{A_{0}}\right)^{\prime\prime}+\left(\frac{c}{C_{0}}\right)^{\prime\prime}\right]$$
$${}+2\dot{\Psi}^{2}\beta\frac{e^{2}}{R^{2}_{c}}\sec h^{2}\left(\frac{\Psi e}{R_{c}}\right)$$
$${}\times\left(2\tanh\left(\frac{\Psi e}{R_{c}}\right)+\sec h^{2}\left(\frac{\Psi e}{R_{c}}\right)\right)$$
$${}+\left(2\beta\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\left(\frac{R^{\prime\prime}_{0}}{R_{c}}\tanh\left(\frac{R_{0}}{R_{c}}\right)\right.\right.$$
$${}+\left.2\frac{R^{\prime 2}_{0}}{R^{2}_{c}}\tanh^{2}\left(\frac{R_{0}}{R_{c}}\right)+\frac{R^{\prime 2}_{0}}{R^{2}_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right)$$
$${}+\xi T_{0}^{\prime\prime}\bigg{)}\frac{2\Psi b}{B^{3}_{0}}-\frac{1}{B^{2}_{0}}\left(2\beta\sec h^{2}\left(\frac{\beta e}{R_{c}}\right)\right.$$
$${}\times\left.\left(\frac{e^{\prime\prime}\Psi}{R_{c}}\tanh\left(\frac{\Psi e}{R_{c}}\right)+2\frac{e^{\prime 2}\Psi}{R^{2}_{c}}\tanh^{2}\left(\frac{\Psi e}{R_{c}}\right)\right.\right.$$
$${}+\left.\left.\frac{e^{\prime 2}\Psi}{R^{2}_{c}}\sec h^{2}\left(\frac{\Psi e}{R_{c}}\right)\right)+\xi\bar{T}^{\prime\prime}\right)-\frac{\Psi\left(\frac{b}{B_{0}}\right)^{\prime}}{\xi_{3}B^{2}_{0}}$$
$${}\times\left(\frac{A^{\prime}_{0}}{A_{0}}+\frac{C^{\prime}_{0}}{C_{0}}\right)-\frac{1}{B^{2}_{0}}\left(\frac{A^{\prime}_{0}}{A_{0}}-\frac{B^{\prime}_{0}}{B_{0}}+\frac{C^{\prime}_{0}}{C_{0}}\right)$$
$${}\times\left[2\beta\frac{R^{\prime}_{0}}{R_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\tanh\left(\frac{R_{0}}{R_{c}}\right)+\xi T^{\prime}_{0}\right.$$
$${}-\left.2\beta\frac{e^{\prime}\Psi}{R_{c}}\sec h^{2}\left(\frac{e\Psi}{R_{c}}\right)\tanh\left(\frac{e\Psi}{R_{c}}\right)-\xi\bar{T}^{\prime}\right]$$
$${}-\left(\frac{a}{A_{0}}-\frac{aA^{\prime}_{0}}{A^{2}_{0}}-\frac{b}{B_{0}}+\frac{bB^{\prime}_{0}}{B^{2}_{0}}+\frac{c}{C_{0}}-\frac{cC^{\prime}_{0}}{C^{2}_{0}}\right)$$
$${}\times\frac{\Psi}{B^{2}_{0}}\left(2\beta\frac{R^{\prime}_{0}}{R_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right.$$
$${}\times\left.\tanh\left(\frac{R_{0}}{R_{c}}\right)+\xi T^{\prime}_{0}\right)+\frac{\xi\xi_{1}\ddot{\bar{\Psi}}}{A^{2}_{0}}$$

We considered \(Z^{2}_{4}(r)\) to simplify some lengthy computations, given as

$$Z^{2}_{4}=\frac{C_{0}A^{2}_{0}B_{0}}{bC_{0}+2B_{0}c}\left[\frac{e}{2}-\frac{2c}{C^{3}_{0}}\left\{A_{0}^{\prime\prime}\left(\frac{a}{A_{0}}+\frac{2b}{B_{0}}\right)\right.\right.$$
$${}-\left.\left.\frac{1}{B_{0}}\left(a^{\prime}B^{\prime}_{0}+a^{\prime\prime}+A^{\prime}_{0}b^{\prime}-B^{\prime}_{0}A^{\prime}_{0}\right)\left(\frac{a}{A_{0}}+\frac{3b}{B_{0}}\right)\right\}\right.$$
$${}+\frac{2}{C_{0}}\left(a^{\prime}+c^{\prime}A^{\prime}_{0}-A^{\prime}_{0}\left(\frac{a}{A_{0}}+\frac{2b}{B_{0}}+\frac{c}{C_{0}}\right)\right)\frac{A_{0}}{C_{0}}$$
$${}\times\left(c^{\prime\prime}-\frac{B^{\prime}_{0}c^{\prime}}{B_{0}}+\frac{3b}{B_{0}}+\frac{c}{C_{0}}\right)\left(c^{\prime\prime}-\frac{b^{\prime}}{B_{0}}-\frac{B^{\prime}_{0}c^{\prime}}{B_{0}}\right.$$
$${}-\left.\left.\frac{b^{\prime}}{B_{0}}+\frac{2}{C^{2}_{0}}\left(c^{\prime}-\frac{cb}{C_{0}B_{0}}\right)\right)\right].$$

In Newtonian domain, taking a flat background, and in pN domain, considering a Schwarzschild exterior, also applying some physical constraints in both domains, we get the values of \(Z_{3\mathbb{N}}\), \(Y_{1\mathbb{N}}\), and \(Y_{1\mathbf{p}\mathbb{N}}\):

$$Z_{3(\mathbb{N})}=-\frac{1}{2}\bigg{[}e-\beta R_{c}\tanh\left(\frac{e}{R_{c}}\right)+\xi R_{0}\bar{T}+\xi eT_{0}$$
$${}+R_{0}\left(\beta\sec h^{2}\left(\frac{e}{R_{c}}\right)-\xi T_{0}\right)-\left(1+\xi T_{0}\right)\bigg{]}$$
$${}+\frac{1}{\xi_{3}}\left[\left(a\right)^{\prime\prime}+\left(\frac{c}{r}\right)^{\prime\prime}\right]+\frac{1}{\xi_{3}}\left\{\frac{1}{r}\left(a\right)^{\prime}+\frac{2}{r}\left(\frac{c}{r}\right)^{\prime}\right\}$$
$${}+2\beta\frac{e^{2}}{R^{2}_{c}}\sec h^{2}\left(\frac{e}{R_{c}}\right)\times\left(2\tanh\left(\frac{e}{R_{c}}\right)\right.$$
$${}+\left.\sec h^{2}\left(\frac{e}{R_{c}}\right)\right)+\left(2\beta\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right.$$
$${}\times\left.\left(\frac{R^{\prime\prime}_{0}}{R_{c}}\tanh\left(\frac{R_{0}}{R_{c}}\right)+2\frac{R^{\prime 2}_{0}}{R^{2}_{c}}\tanh^{2}\left(\frac{R_{0}}{R_{c}}\right)\right.\right.$$
$${}+\left.\frac{R^{\prime 2}_{0}}{R^{2}_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right)+\xi T_{0}^{\prime\prime}\bigg{)}2b-\xi T_{0}^{\prime\prime}$$
$${}-2\beta\sec h^{2}\left(\frac{\beta e}{R_{c}}\right)\left(\frac{e^{\prime\prime}}{R_{c}}\tanh\left(\frac{e}{R_{c}}\right)\right.$$
$${}+\left.2\frac{e^{\prime 2}}{R^{2}_{c}}\tanh^{2}\left(\frac{e}{R_{c}}\right)+\frac{e^{\prime 2}}{R^{2}_{c}}\sec h^{2}\left(\frac{e}{R_{c}}\right)\right)-\frac{b^{\prime}}{\xi_{3}r}$$
$${}-\frac{2b}{r}\left[\left(2\beta\frac{R^{\prime}_{0}}{R_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\tanh\left(\frac{R_{0}}{R_{c}}\right)+\xi T^{\prime}_{0}\right)\right.$$
$${}-\left.2\beta\frac{e^{\prime}}{R_{c}}\sec h^{2}\left(\frac{e}{R_{c}}\right)\tanh\left(\frac{e}{R_{c}}\right)-\xi T_{0}^{\prime}\right]$$
$${}-\left(a-b+\frac{c}{r}-\frac{c}{r^{2}}\right)\left(2\beta\frac{R^{\prime}_{0}}{R_{c}}\sec h^{2}\left(\frac{R_{0}}{R_{c}}\right)\right.$$
$${}\times\left.\tanh\left(\frac{R_{0}}{R_{c}}\right)+\xi T^{\prime}_{0}\right)+\xi\xi_{1},$$
$$Y_{1\mathbb{N}}=\xi e^{\prime}\bigg{(}\rho_{0}-P_{r0}\bigg{)}+6\frac{c}{r^{4}P_{t0}}+2e\rho^{\prime}_{0}+\bar{\rho}^{\prime}\xi R_{0}$$
$${}+2\xi e\rho_{0}+\xi eP^{\prime}_{r0}-2\beta e^{\prime}\rho_{0}+\beta q_{1}+2q_{2}+Z^{(s)}_{2\mathbb{N}},$$
$$Y_{1\mathbf{p}\mathbb{N}}=\xi e^{\prime}\bigg{(}\rho_{0}-P_{r0}\bigg{)}+6\frac{c}{r^{4}}P_{t0}+2\beta e\rho^{\prime}_{0}$$
$${}+\bar{\rho}^{\prime}\xi R_{0}+4\xi\frac{e}{r}\bigg{(}\rho_{0}+P_{r0}\bigg{)}\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right\}$$
$${}+\xi eP^{\prime}_{r0}+\frac{2}{r}\left\{\frac{Q^{2}-m_{0}r}{Q^{2}-2m_{0}r+2r^{2}}\right\}\left[\bigg{(}\rho_{0}+2\beta q_{1}\bigg{)}\right.$$
$${}+\xi eP^{\prime}_{r0}\bigg{(}1+\frac{2m_{0}}{r}-\frac{Q^{2}}{r^{2}}\bigg{)}-a\bigg{(}\rho_{0}+Q^{(s)}_{1}\bigg{)}$$
$${}\times\left.\left(1+\frac{3m_{0}}{r}-\frac{3Q^{2}}{2r^{2}}\right)\right]-\frac{2}{r}\bigg{(}2q_{2}-bQ^{(s)}_{2}\bigg{)}$$
$${}\times\left\{\frac{Q^{2}-m_{0}r}{2m_{0}r-Q^{2}+2r^{2}}\right\}+Z^{(s)}_{2\mathbf{p}\mathbb{N}}.$$