1 Introduction

Studying relativistic radiating stars with the kinematical quantities of shear, expansion and acceleration is an important area of research in relativistic astrophysics and cosmology. Such models are important in investigating the physical features of radiating stars such as gravitational collapse, stability, surface luminosity, relaxation causal thermodynamic effects, temperature profiles and particle production at the surface. Several exact models have been investigated in the past where the interior spacetime with the heat flux matches smoothly to the exterior radiating Vaidya spacetime. For some recent investigations considering the physical activities linked with the gravitational collapse and dissipative processes see Sarwe and Tikekar [1], Sharma and Tikekar [2], Reddy et al. [3], Ivanov [4] and Tewari [5, 6]. In these and other analyses the interior energy momentum tensor is taken to be a neutral relativistic anisotropic fluid with heat flow. The presence of the electromagnetic field may substantially change the physical features in a relativistic radiating star and will affect the nature of gravitational interactions. For example, Sharif and Azam [7] showed that the electric field reduces the unstable spacetime region during dissipative collapse when studying the dynamical instability of an expansion-free radiating fluid sphere.

The junction conditions matching the interior radiating matter distribution to the Vaidya exterior were completed by Santos [8] for neutral matter. The junction conditions were later generalised to include the electromagnetic field by De Oliveira and Santos [9], Banerjee and Choudhury [10], Tikekar and Patel [11] and Maharaj and Govender [12]. Barreto and Da Silva [13] analysed charged and self-similar distributions and spheres in the diffusion approximations which is valid at the final stages of collapse. Barreto et al. [14] also considered self-similar radiating spheres in the presence of anisotropy in the diffusion limit. A systematic and extensive investigation of nonadiabatic charged spherical gravitational collapse in both the diffusion and free-streaming limits was completed by Di Prisco et al. [15]. Fayos et al. [16] and Fayos and Torres [17] considered the matching of a general spherical spacetime with a charged Vaidya exterior and applied the results to relativistic stars and voids. Barreto and Rosales [18], extending their earlier approach in the diffusion regime, considered charged and self-similar spheres in the free-streaming approximations which is applicable in the early stages of collapse. Cipolletta and Giambo [19] found a class of charged anisotropic collapsing models and demonstrated that the shell focussing singularities may be avoided. The presence of charge in the gravitational collapse delays back hole formation and can even prevent collapse as shown by Pinheiro and Chan [20] by numerically integrating the fluid equations and stellar boundary condition. A similar numerical integration allowed Sharif and Iftikhar [21] to model charged dissipative collapse which highlights the dominate role of the electric field. Thirukkanesh and Govender [22] found a class of exact models by investigating the boundary condition in the presence of charge and shear. These analyses highlight the prominent role that the electromagnetic field plays in the modelling of a radiating star in general relativity.

Charged radiating stars with anisotropic matter interiors have been recently studied by Ivanov [23] for geodesic flows, and also for accelerating matter [24]. In these studies several families of exact solutions have been obtained by transforming the boundary condition to a Riccati using a transformation related to formation of horizons. Here we generate exact solutions for a general charged accelerating, expanding and shearing radiating matter distribution using a symmetry approach. The Lie point symmetry approach has recently been used, under different physical situations, in solving the Einstein field equations for a general relativistic star. The junction condition relating the radial pressure with the heat flux for neutral fluids has been studied with the help of Lie symmetries. Govinder and Govender [25] were the first to study the junction condition in Euclidean stars. Subsequently Abebe et al. [26] analysed a conformally flat radiating star in the absence of charge. Abebe et al. [27] also studied a shearing neutral fluid model in geodesic motion. Recently Abebe et al. [28] considered the junction condition of an accelerating, expanding and shearing stellar in the absence of charge. Note that a comprehensive analysis of shear-free stellar models has been made by Abebe et al. [29] with the help of Lie point symmetries. Other recent treatments with shearing matter utilizing the Lie method include the works of Mohanlal et al. [30], and also [31]. It will be helpful if these investigations could be extended to include the effects of the electromagnetic field.

The main objective of this paper is to generate exact solutions to the boundary condition equation of a charged radiating star using transformations arising from the Lie symmetries of differential equations. In Sect. 2 we briefly discuss the general spherically symmetric spacetime and field equations. We present the junction condition equation for an accelerating, expanding and shearing star with charge. The resulting junction equation is a highly nonlinear partial differential equation which is difficult to solve directly using traditional methods. Thus we use the Lie symmetry approach to transform the partial differential to ordinary differential equations. In Sect. 3 we obtain the Lie point symmetries admitted by the junction condition. We transform the boundary condition to ordinary differential equations using the linear combination of the symmetries. Several explicit solutions are obtained. In Sect. 4 we discuss the role of equation of state and recover the earlier models for uncharged stars. Some concluding remarks are made in Sect. 5.

2 The model

The line element determining the interior spacetime of accelerating, expanding and shearing general relativistic radiating stars may be written as

$$\begin{aligned} ds^2=-A^2dt^2+B^2 dr^2+Y^2 \left( d\theta ^2+\sin ^2\theta d\phi ^2 \right) , \end{aligned}$$
(1)

with metric functions \(A=A(r,t)\), \( B=B(r,t)\) and \(Y=Y(r,t)\). The timelike, unit fluid four-velocity u is comoving and has the form \(u^a=\frac{1}{A}\delta ^a_0 \). The kinematical quantities have the specific forms

$$\begin{aligned} \dot{u}^a= & {} \left( 0,\frac{A_r}{AB^2},0,0 \right) , \end{aligned}$$
(2a)
$$\begin{aligned} \varTheta= & {} \frac{1}{A}\left( \frac{B_t}{B}+2\frac{Y_t}{Y} \right) , \end{aligned}$$
(2b)
$$\begin{aligned} \sigma= & {} -\frac{1}{3A}\left( \frac{B_t}{B}-\frac{Y_t}{Y}\right) , \end{aligned}$$
(2c)

where \(\dot{u}^a\) is the acceleration, \(\varTheta \) is the expansion scalar and \(\sigma \) is the magnitude of the shear scalar. Note that subscripts denote differentiation with respect to the coordinates r and t.

The energy momentum tensor for the general model has the form

$$\begin{aligned} T_{ab}=\left( \mu +p \right) u_au_b+pg_{ab}+ q_au_b+q_bu_a+\pi _{ab}+E_{ab}, \end{aligned}$$
(3)

where \(\mu \) is the density, p is the isotropic pressure, and \(q_a\) is the heat flux. The anisotropic stress tensor is

$$\begin{aligned} \pi _{ab}=\left( p_{\parallel }-p_{\perp }\right) \left( n_an_b-\frac{1}{3}h_{ab} \right) , \end{aligned}$$
(4)

where \(p_{\perp }\) is the radial pressure, \(p_{\perp }\) is the tangential pressure, \(h_{ab}=u_au_b+g_{ab}\) is the projection tensor and \(n^a=\frac{1}{B}\delta ^a_1\) is a unit radial vector orthogonal to u. Note that the isotropic pressure \( p=\frac{1}{3}\left( p_{\parallel }+2p_{\perp } \right) \). The tensor \(E _{ab}\) is the electromagnetic energy tensor which is given by

$$\begin{aligned} E _{ab}=F_ a {}^c F_{bc} -\frac{1}{4}F ^{cd} F _{cd} g _{ab} . \end{aligned}$$
(5)

Since the heat flow is directed radially the vector q has the form

$$\begin{aligned} q^a=(0,q,0,0), \end{aligned}$$
(6)

and \(q^au_a=0\).

The Einstein–Maxwell equations are given by

$$\begin{aligned}&G_{ab}=T_{ab}, \end{aligned}$$
(7a)
$$\begin{aligned}&F_{ab;c}+F_{bc;a}+F_{ca;b}=0, \end{aligned}$$
(7b)
$$\begin{aligned}&F^{ab}{}_{;c}=J^a, \end{aligned}$$
(7c)

where Faraday’s tensor \(F_{ab}={\tilde{\phi }}_{b;a}-{\tilde{\phi }}_{a;b}\) and the four-current \(J^a=\epsilon u^a\). Note that \(\epsilon \) is the proper charge density and \({\tilde{\phi }}_a\) is the four-potential. The simplest form for the four-potential is

$$\begin{aligned} {\tilde{\phi }}_a =(\varPhi (r,t),0,0,0), \end{aligned}$$
(8)

so that \(F_{01}=-F_{10}=-\varPhi _r\) is the nonzero component of F. From (7) we have

$$\begin{aligned}&\varPhi _{rr}+\left( 2\frac{Y_r}{Y}-\frac{B_r}{B} -\frac{A_{r}}{A}\right) \varPhi _r=\epsilon AB^2, \end{aligned}$$
(9a)
$$\begin{aligned}&\left( \frac{1}{A^2B^2}\varPhi _r\right) _t+\frac{1}{A^2B^2}\left( \frac{A_t}{A}+\frac{B_t}{B}\right) \varPhi _r\nonumber \\&\qquad +\frac{2}{A^2B^2}\frac{Y_t}{Y} \varPhi _r=0. \end{aligned}$$
(9b)

On integration we obtain

$$\begin{aligned} \varPhi _{r}= & {} \frac{AB}{Y^2}l, \end{aligned}$$
(10a)
$$\begin{aligned} l(r)= & {} \int ^r\epsilon BY^2dr, \end{aligned}$$
(10b)

where l is strictly a function of r. Note that we can interpret l(r) as the total charge contained in the sphere up to the radius r.

Then the Einstein-Maxwell equations for the line element (1) and the four-potential (8) can be written as the system of nonlinear partial differential equations

$$\begin{aligned} \mu +\frac{1}{2}\frac{l^2}{Y^4}= & {} \frac{2}{A^2} \frac{B_t}{B}\frac{Y_t}{Y}+\frac{1}{Y^2} +\frac{1}{A^2}\frac{Y_t^2}{Y^2}\nonumber \\&-\frac{1}{B^2}\left( 2 \frac{Y_{rr}}{Y}+\frac{Y_r^2}{Y^2}-2\frac{B_r}{B}\frac{Y_r}{Y}\right) , \end{aligned}$$
(11a)
$$\begin{aligned} p_ \parallel -\frac{1}{2}\frac{l^2}{Y^4}= & {} \frac{1}{A^2}\left( -2\frac{Y_{tt}}{Y}-\frac{Y_t^2}{Y^2}+2\frac{A_t}{A}\frac{Y_t}{Y}\right) \nonumber \\&+\frac{1}{B^2}\left( \frac{Y_r^2}{Y^2}+2\frac{A_r}{A}\frac{Y_r}{Y}\right) -\frac{1}{Y^2}, \end{aligned}$$
(11b)
$$\begin{aligned} p_ \perp +\frac{1}{2}\frac{l^2}{Y^4}= & {} -\frac{1}{A^2}\left( \frac{B_{tt}}{B}-\frac{A_t}{A}\frac{B_{t}}{B}+\frac{B_t}{B}\frac{Y_t}{Y}\right. \nonumber \\&\left. -\frac{A_t}{A}\frac{Y_t}{Y}+\frac{Y_{tt}}{Y}\right) +\frac{1}{B^2}\left( \frac{A_{rr}}{A}\right. \nonumber \\&\left. -\frac{A_r}{A}\frac{B_r}{B}+\frac{A_r}{A}\frac{Y_{r}}{Y} -\frac{B_r}{B}\frac{Y_r}{Y}+\frac{Y_{rr}}{Y}\right) , \end{aligned}$$
(11c)
$$\begin{aligned} q= & {} -\frac{2}{AB^2}\left( -\frac{Y_{rt}}{Y} +\frac{B_t}{B}\frac{Y_r}{Y}+\frac{A_r}{A}\frac{Y_t}{Y}\right) , \end{aligned}$$
(11d)
$$\begin{aligned} \epsilon= & {} \frac{l'(r)}{BY^2}. \end{aligned}$$
(11e)

The matter variables \(\mu \), \(p_\parallel \), \(p_\perp \), q, and the proper charge density \(\epsilon \) can be determined explicitly once the potential functions A, B and Y are known. The function l(r) determines the charge distribution in the interior spacetime of the star. Equations (11) describe the gravitational and electromagnetic interactions in the interior of an accelerating, expanding and shearing charged star with heat flux and anisotropic pressure.

The surface of a spherically symmetric radiating star is the boundary between the interior and the exterior spacetimes. The interior spacetime (1) has to be matched at the surface of the star to the exterior charged Vaidya spacetime

$$\begin{aligned} ds^2= & {} -\left( 1-\frac{2m(v)}{R}+\frac{Q^2}{R^2} \right) dv^2-2dvdR\nonumber \\&+\,R^2\left( d\theta ^2+\sin ^2\theta d\phi ^2 \right) . \end{aligned}$$
(12)

In (12) the function m(v) is the mass of the star and Q is the total charge as measured by an observer at infinity. The metrics (1) and (12) have to be matched at the boundary of the star. The matching of the metrics and the extrinsic curvature at the surface of the star give the junction condition

$$\begin{aligned} (p_ \parallel )_{\varSigma }=(Bq)_{\varSigma }, \end{aligned}$$
(13)

at the hypersurface \(\varSigma \) of the charged radiating sphere. For more information on the matching and junction conditions in the presence of electric field see Maharaj and Govender [12]. From Eqs. (13), (11c) and (11e) we have the junction condition equation

$$\begin{aligned}&4AB^2Y^3Y_{tt}+2AB^2Y^2Y_t^2-4B^2Y^3A_tY_t\nonumber \\&\quad -\,4ABY^3A_rY_t+4A^2BY^3Y_{rt}-4A^2Y^3A_rY_r\nonumber \\&\quad -\,4A^2Y^3B_{t}Y_{r}-2A^3Y^2Y_r^2+2A^3B^2Y^2\nonumber \\&\quad -\,l^2A^3B^2=0, \end{aligned}$$
(14)

at the boundary of the star. The charged boundary condition (14) is similar to the uncharged condition derived by Ivanov [24] and Thirukkanesh et al. [32]. When we set \(l=0\) then we regain the result of [32]. However the presence of charge makes equation (14) very complicated. It is for this reason that very few exact solutions to (14) have been found when \(l\ne 0\). As the equation (14) holds at the boundary \(\varSigma \) we treat l as a constant quantity in the integration process; clearly in the interior of the star \(l=l(r)\).

3 Exact solutions

The method of applying Lie point symmetries in a group theoretical approach has proved to be very successful in generating new exact solutions for radiating stars in relativistic astrophysics. Some results are contained in analyses involving conformally flat stars [26], geodesic stars [27], generalised Euclidean stars [28] and shear-free stars with equation of state [29].

It is relatively straight forward to show that (14) admits the Lie symmetries

$$\begin{aligned} X_1= & {} A\beta '(t)\frac{\partial }{\partial A}-\beta (t)\frac{\partial }{\partial t}, \end{aligned}$$
(15a)
$$\begin{aligned} X_2= & {} B\alpha '(r)\frac{\partial }{\partial B}-\alpha (r) \frac{\partial }{\partial r}, \end{aligned}$$
(15b)

where \(\beta (t)\) and \(\alpha (r) \) are arbitrary functions. These symmetries may be used to generate group invariant solutions. With the linear combination of these symmetries

$$\begin{aligned} aX_2-bX_1= & {} -bA\beta '(t)\frac{\partial }{\partial A}+aB\alpha '(r)\frac{\partial }{\partial B}\nonumber \\&+b\beta (t)\frac{\partial }{\partial t}-a\alpha (r) \frac{\partial }{\partial r}, \end{aligned}$$
(16)

we can find the invariants from the conditions

$$\begin{aligned} \frac{dt}{b\beta (t)}=\frac{dr}{-a\alpha (r)}=\frac{dA}{-bA\beta '(t)}=\frac{dB}{aB\alpha '(r)}=\frac{dY}{0}. \end{aligned}$$
(17)

These invariants are

$$\begin{aligned} x= & {} \frac{1}{b}\int ^t\frac{dt}{\beta (t)}+\frac{1}{a}\int ^r\frac{dr}{\alpha (r) } , \end{aligned}$$
(18a)
$$\begin{aligned} A= & {} \frac{f(x)}{\beta (t)}, \end{aligned}$$
(18b)
$$\begin{aligned} B= & {} \frac{g(x)}{\alpha (r)}, \end{aligned}$$
(18c)
$$\begin{aligned} Y= & {} h(x), \end{aligned}$$
(18d)

for the generator \(bX_1-aX_2\). Here f, g and h are arbitrarily functions of the variable x. With the transformation (18), equation (14) becomes

$$\begin{aligned}&g'+ \left( \frac{f'}{f}-\frac{h''}{h'} \right) g\nonumber \\&\quad +\left( \left[ a \left( 4 h^3 h'f'-2 h^2 \left( 2 h h''+h'^2\right) f\right. \right. \right. \nonumber \\&\quad + \left. \left. \left. b^2 \left( l^2-2 h^2\right) f^3\right) \right] \left[ 4 b f^2 h^3 h'\right] ^{-1} \right) g^2\nonumber \\&\quad +\left( \frac{b \left( 2 h f'+f h'\right) }{2 a h} \right) =0. \end{aligned}$$
(19)

This can be written compactly as

$$\begin{aligned} g'+ \xi (x)g+\varphi (x)g^2+\psi (x)=0, \end{aligned}$$
(20)

where we have set

$$\begin{aligned} \xi (x)= & {} \frac{f'}{f}-\frac{h''}{h'}, \end{aligned}$$
(21a)
$$\begin{aligned} \varphi (x)= & {} \left[ a \left( 4 h^3 h'f'-2 h^2 \left( 2 h h''+h'^2\right) f\right. \right. \nonumber \\&\left. \left. +b^2 \left( l^2-2 h^2\right) f^3\right) \right] \left[ 4 b f^2 h^3 h'\right] ^{-1} , \end{aligned}$$
(21b)
$$\begin{aligned} \psi (x)= & {} \frac{b \left( 2 h f'+f h'\right) }{2 a h}. \end{aligned}$$
(21c)

Here the primes denote derivatives with respect to the new independent variable x. Equation (20) is a Riccati equation in g. It is difficult to complete the integration in general. We make assumptions to integrate and produce new exact solutions.

We observe that in the presence of the electric field \(l\ne 0\) there are only two Lie point symmetries (15); in the absence of charge three Lie point symmetries arise as shown by Abebe et al. [28]. This leads to a different nonlinear equation (20) governing the evolution of the charged radiating star. When \(l=0\) and \(a=1\) then we regain the boundary condition for a neutral radiating star in [28].

3.1 Linear equation

To progress we set

$$\begin{aligned} \varphi (x)=0, \end{aligned}$$
(22)

in (20). We note that (22) is a Bernoulli equation in f and can be integrated to give

$$\begin{aligned} f=\frac{\sqrt{2} h h'}{\sqrt{-2 b^2 h^2-b^2 l^2+k h}}, \end{aligned}$$
(23)

where k is a constant of integration. On substitution (20) becomes

$$\begin{aligned}&g'-\left( \frac{ h' \left( k h-2 b^2 l^2\right) }{2 h \left( 2 b^2 h^2+b^2 l^2-k h\right) }\right) g\nonumber \\&\quad -\left[ b \left( 2 h h'' \left( 2 b^2 h^2+b^2 l^2-k h\right) +h'^2 \left( 2 b^2 h^2+3 b^2 l^2\right. \right. \right. \nonumber \\&\quad - .2 k h\Big )\Big )\Big ] \left[ \sqrt{2} b \left( -2 b^2 h^2-b^2 l^2+k h\right) ^{3/2}\right] ^{-1}=0,\nonumber \\ \end{aligned}$$
(24)

which is linear in g. Equation (24) can be integrated to give

$$\begin{aligned} g= & {} \frac{\sqrt{2 b^2 h^2+b^2 l^2-k h}}{h} \nonumber \\&\quad \times \left( \int ^x \Bigg \lbrace \Bigg [ b h \left( h'^2 \left( 2 h \left( k-b^2 h\right) -3 b^2 l^2\right) \right. \right. \nonumber \\&\quad - \left. \left. 2 h h'' \left( 2 b^2 h^2-k h+b^2 l^2\right) \right) \right] \Bigg [ a \left( 2 b^2 h^2-k h \right. \nonumber \\&\quad +\left. \left. \left. \left. b^2 l^2\right) ^{3/2} \sqrt{2 h \left( k-2 b^2 h\right) -2 b^2 l^2}\right] ^{-1} \right\} \, dx\right. \nonumber \\&\quad + m\Bigg ), \end{aligned}$$
(25)

where m is a constant of integration.

Hence we have the gravitational potentials

$$\begin{aligned} A= & {} \frac{\sqrt{2} h h'}{\beta (t)\sqrt{-2 b^2 h^2-b^2 l^2+k h}}, \end{aligned}$$
(26a)
$$\begin{aligned} B= & {} \frac{\sqrt{2 b^2 h^2+b^2 l^2-k h}}{h\alpha (r)} \nonumber \\&\times \Bigg (\int ^x \Bigg \lbrace \Big [ b h \left( h'^2 \left( 2 h \left( k-b^2 h\right) -3 b^2 l^2\right) \right. \nonumber \\&-\left. 2 h h'' \left( 2 b^2 h^2-k h+b^2 l^2\right) \right) \Big ]\nonumber \\&\times \bigg [ a \left( 2 b^2 h^2-k h+ b^2 l^2\right) ^{3/2}\nonumber \\&\sqrt{2 h \left( k-2 b^2 h\right) -2 b^2 l^2}\bigg ] ^{-1} \Bigg \rbrace \, dx + m\Bigg ), \end{aligned}$$
(26b)
$$\begin{aligned} Y= & {} h, \end{aligned}$$
(26c)

which a solution to the master equation (14). Note that h is a function of \(x= \frac{1}{b}\int ^t\frac{dt}{\beta (t)}+\frac{1}{a}\int ^r\frac{dr}{\alpha (r) }\).

3.2 Bernoulli equation

In this case we set

$$\begin{aligned} \psi (x)=0, \end{aligned}$$
(27)

in (20). We observe that (27) is a linear in f and yields

$$\begin{aligned} f(x)=\frac{k}{\sqrt{h}}, \end{aligned}$$
(28)

on integration. Here k is a constant of integration. Substituting (28) into (20) we have

$$\begin{aligned}&g'+ \left( -\frac{h'}{2 h}-\frac{h''}{h'}\right) g\nonumber \\&\quad -\frac{ a \left( 2 b^2 k^2 h^2-b^2 k^2 l^2+4 h^4 h''+4 h^3 h'^2\right) }{4 b k h^{7/2} h'}g^2=0,\nonumber \\ \end{aligned}$$
(29)

which is a Bernoulli equation in g . It can be integrated to yield

$$\begin{aligned} g =\frac{\sqrt{h} h'}{m-\int ^x \frac{a }{4 b k}\left( \frac{b^2 k^2 \left( 2 h^2-l^2\right) }{h^3}+4 h h''+4 h'^2\right) \, dx}, \end{aligned}$$
(30)

where m is a constant of integration.

Therefore we have the metric functions

$$\begin{aligned} A= & {} \frac{k}{\beta (t)\sqrt{h}}, \end{aligned}$$
(31a)
$$\begin{aligned} B= & {} \frac{\sqrt{h} h'}{\alpha (r)\left[ m-\int ^x \frac{a }{4 b k}\left( \frac{b^2 k^2 \left( 2 h^2-l^2\right) }{h^3}+4 h h''+4 h'^2\right) \, dx\right] },\nonumber \\ \end{aligned}$$
(31b)
$$\begin{aligned} Y= & {} h, \end{aligned}$$
(31c)

which another solution to the master equation.

3.3 Riccati equation

Here we set

$$\begin{aligned} \xi (x)=0, \end{aligned}$$
(32)

in (20) for simplicity. Equation (32) is a separable equation and we find that

$$\begin{aligned} f(x)=k h', \end{aligned}$$
(33)

on integration where k is an arbitrary constant. Then on substitution (20) becomes

$$\begin{aligned} g'+\frac{ a \left( b^2 k^2 l^2-2 \left( b^2 k^2+1\right) h^2\right) }{4 b k h^3}g^2+\frac{b k \left( 2 h h''+h'^2\right) }{2 a h}=0, \end{aligned}$$
(34)

which is a simpler Riccati equation in g. Equation (34) is difficult to integrate in general. Abebe et al. [28] demonstrated a solution for a neutral fluid \((l=0)\) for a particular form of the function h.

3.4 Case: \(f(x)=cg(x)\)

Another Bernoulli equation can obtained if we set

$$\begin{aligned} f=cg, \end{aligned}$$
(35)

where c is an arbitrary constant. Then (20) becomes

$$\begin{aligned}&g'+\left( \frac{ (b c-a) h'^2-2 a h h''}{2 h (b c+a) h'}\right) g\nonumber \\&\quad +\left( \frac{ b^2 a^2 c^2 \left( l^2-2 h^2\right) }{4 h^3 (b c+a)^2 h'}\right) g^3=0, \end{aligned}$$
(36)

which is a Bernoulli equation in g. Although h is an unknown function of the new variable x we can integrate (36) to obtain

$$\begin{aligned}&g(x)= \nonumber \\&\quad \times \frac{h^{\frac{a-b c}{2 b c+2 a}} h'^{\frac{a}{b c+a}}}{ \left( \frac{b^2 a^2 c^2 }{2 (b c+a)^2}\int ^x \left( l^2-2 h^2\right) \frac{ h'^{\frac{ a-bc}{b c+a}}}{h^{\frac{2 a+4bc}{b c+a}}} \, dx+d\right) ^{1/2} }, \end{aligned}$$
(37)

where d is a constant of integration. Thus we have found an exact solution to the boundary condition (14).

The solution is expressible in terms of the function h which is arbitrary. Thus the potential functions become

$$\begin{aligned} A= & {} \frac{ch^{\frac{a-b c}{2 b c+2 a}} h'^{\frac{a}{b c+a}}}{ \beta (t)\left( \frac{b^2 a^2 c^2 }{2 (b c+a)^2}\int ^x \left( l^2-2 h^2\right) \frac{ h'^{\frac{ a-bc}{b c+a}}}{h^{\frac{2 a+4bc}{b c+a}}} \, dx+d\right) ^{1/2} },\nonumber \\&\end{aligned}$$
(38a)
$$\begin{aligned} B= & {} \frac{h^{\frac{a-b c}{2 b c+2 a}} h'^{\frac{a}{b c+a}}}{ \alpha (r)\left( \frac{b^2 a^2 c^2 }{2 (b c+a)^2}\int ^x \left( l^2-2 h^2\right) \frac{ h'^{\frac{ a-bc}{b c+a}}}{h^{\frac{2 a+4bc}{b c+a}}} \, dx+d\right) ^{1/2} },\nonumber \\&\end{aligned}$$
(38b)
$$\begin{aligned} Y= & {} h, \end{aligned}$$
(38c)

which is a solution to the master equation (14). Note that h is an arbitrary function of the variable \(x= \frac{1}{b}\int ^t\frac{dt}{\beta (t)}+\frac{1}{a}\int ^r\frac{dr}{\alpha (r) }\). This solution consists of the arbitrary functions \(\alpha (r)\), \(\beta (t)\), and arbitrary constants abc and d. This may help us to generate infinitely many solutions for particular choices of these functions and constants.

4 Equation of state

The solutions found in this paper are physically reasonable. An important physical feature for an astrophysical object is an equation of state. The potentials in (38) produce this feature. For this case the Einstein-Maxwell field equations for the interior matter distribution become

$$\begin{aligned} \mu= & {} \frac{b^2 c^2+b a c+a^2}{b a c}\left[ \frac{ 2 (a-b c) \left( h h''+h'^2\right) \zeta (x)}{b a c(b c+a) h^{\frac{3 a+bc}{b c+a}} h'^{\frac{2 a}{b c+a}}}\right. \nonumber \\&\quad \left. +\frac{b a c\left( 2 h^2-l^2\right) }{(b c+a)^2 h^4}\right] , \end{aligned}$$
(39a)
$$\begin{aligned} p_ \parallel= & {} \frac{2 (b c-a) \left( h h''+h'^2\right) \zeta (x)}{b a c (b c+a)h^{\frac{3 a+bc}{b c+a}} h'^{\frac{2 a}{b c+a}}}+\frac{b a c \left( l^2-2 h^2\right) }{(b c+a)^2 h^4},\nonumber \\ \end{aligned}$$
(39b)
$$\begin{aligned} p_ \perp= & {} \frac{b^2 a^2 c^2 (b c-a) \left( l^2-2 h^2\right) ^2 }{8 (a+b c)^3h^{\frac{5 a+7bc}{a+b c}} h'^{\frac{2 b c}{a+b c}}\zeta (x) }+\frac{(a-b c)^2 l^2 h''}{4 (a+b c)^2 h^3 h'^2}\nonumber \\&\quad +\left[ (b c-a) \zeta (x) \left( (b c-a) h'^4+(3 a+b c) h h'' h'^2\right. \right. \nonumber \\&\quad \left. \left. +2 a h^2 h^{(3)} h'-2 a h^2 h''^2\right) \right] \left[ 2 b^2 a^2 c^2h^{\frac{3 a+bc}{a+b c}}\right. \nonumber \\&\quad \left. \times h'^{\frac{4 a+2bc}{a+b c}}\right] ^{-1} +\frac{b c (a-b c)}{(a+b c)^2 h^2}-\frac{l^2}{2 h^4}\nonumber \\&\quad -\frac{(a-b c) (a+2 b c) l^2}{2 (a+b c)^2 h^4}-\frac{(a-b c)^2 h''}{2 (a+b c)^2 h h'^2}, \end{aligned}$$
(39c)
$$\begin{aligned} q= & {} \frac{\zeta (x) \alpha (r) }{b a c (b c+a)^2h^{\frac{3 a}{b c+a}+\frac{7}{2}} h'^{\frac{3 a}{b c+a}}} \left( b^2 a^2 c^2 \left( l^2-2 h^2\right) \right. \nonumber \\&\quad \left. \times h^{\frac{2 a}{b c+a}} h'^{\frac{2 a}{b c+a}} -2\zeta (x) h^3 (a-b c) (b c+a)\right. \nonumber \\&\quad \left. \times \left( h h''+h'^2\right) \right) , \end{aligned}$$
(39d)
$$\begin{aligned} \epsilon= & {} \frac{\alpha (r) l'(r)}{h^{\frac{3 b c+5 a}{2 (b c+a)}} h'^{\frac{a}{b c+a}}} \zeta (x) ^{1/2}, \end{aligned}$$
(39e)

where we set \(\zeta (x) = d+\frac{b^2 a^2 c^2 }{2 (b c+a)^2}\int ^x \left( l^2-2 h^2\right) \frac{ h'^{\frac{ a-bc}{b c+a}}}{h^{\frac{2 a+4bc}{b c+a}}} \, dx \). We observe that

$$\begin{aligned} p_ \parallel =\lambda \mu , \qquad \lambda =-\frac{b a c}{b^2 c^2+b a c+a^2}. \end{aligned}$$
(40)

Therefore the charged stellar model (39) satisfies a linear equation of state (40) which barotropic. It is remarkable that an equation of state exists even though h(x) is an arbitrary function; we are free to select any analytic form for h. The Lie theory of differential equations has generated a rich family of of new solutions for radiating charged stellar models which satisfies a barotropic equation of state.

If we omit the charge, \((l=0)\) and set \(a=1\) in (38) then we have

$$\begin{aligned} A= & {} \frac{c h^{\frac{1-bc}{2 (bc+1)}} h'^{\frac{1}{bc+1}}}{\beta (t)\left( d - \frac{b^2 c^2 }{ (bc+1)^2 } \int _1^x h^{\frac{-2bc}{bc+1}}h'^{\frac{1-bc}{bc+1}} \, dx\right) ^{1/2} }, \end{aligned}$$
(41a)
$$\begin{aligned} B= & {} \frac{ h^{\frac{1-bc}{2 (bc+1)}} h'^{\frac{1}{bc+1}}}{\alpha (r)\left( d - \frac{b^2 c^2 }{ (bc+1)^2 } \int _1^x h^{\frac{-2bc}{bc+1}}h'^{\frac{1-bc}{bc+1}} \, dx\right) ^{1/2} }, \end{aligned}$$
(41b)
$$\begin{aligned} Y= & {} h, \end{aligned}$$
(41c)

The model (41) for an uncharged generalised Euclidean star was obtained by Abebe et al. [28]. In an Euclidean star the gravitational potentials are related by \(B=Y_r\) which was first introduced by Herrera and Santos [33]. Therefore our model (38) may be interpreted as a charged generalised Euclidean star. Note that the particular Govinder and Govender [25] solution

$$\begin{aligned} A= & {} \frac{x^{n-1}}{\beta (t)}, \end{aligned}$$
(42a)
$$\begin{aligned} B= & {} kn\frac{x^{n-1}}{\alpha (r)}, \end{aligned}$$
(42b)
$$\begin{aligned} Y= & {} kx^n,\quad \text {where } x= \int \frac{dt}{\beta (t)}+\int \frac{dr}{\alpha (r)}, \end{aligned}$$
(42c)

where \( k^2 n^3 - 2 k n^2+ 2n (k-1 ) + 2=0\) is contained in (41) if we set the functional value \(h(x)=kx^n\). The solution (42) is an example of an Euclidean general relativistic star. Note that the particular uncharged models (41) and (42) also admit an equation of state; these can be regained from our general equation of state (40). The various possible models with equation of state are given in Table 1. It is interesting to note that separable metric potentials also yield an equation of state as shown by Abebe and Maharaj [34]

Table 1 Stars, metric functions and equations of state

5 Conclusion

Earlier studies involving group theoretical approaches to study bounded matter distributions were completed in the absence of charge. In this study we have attempted to include the effect of the electric field in the stellar model. We studied the junction condition of an accelerating, expanding and shearing radiating star in the presence of charge. We found that the boundary equation admits two Lie point symmetries. In the uncharged limit there are three Lie point symmetries; only two symmetries have the consequence of producing a completely different form for the boundary equation, in the presence of charge, which is difficult to analyse. Using the two Lie symmetries we transformed the partial differential equations into ordinary differential equations with new variables. We solved the transformed ordinary equation and produced new solutions in terms of the original variables.We showed that one family of solutions admits a linear barotropic equation of state. We can interpret this family as a charged generalised Euclidean star model. The uncharged Euclidean and generalised Euclidean models of Govinder and Govender [25] and Abebe et al. [28] respectively were regained in the uncharged limit. Our analysis in the presence of the electromagnetic field shows the relevance of using a group theoretic approach in solving problems with the electromagnetic field. It is interesting to observe that the group theoretical approach selects important physical models, namely Euclidean stars and the equation of state.