1 Introduction

The local embedding of a four-dimensional pseudo-Riemannian spacetime can be isometrically embedded in a higher dimensional Euclidean space. A discussion of the embedding equations and embedding conditions are given in Eisenhart [1]. The invariance of the embedding class generates a classification scheme for the exact solutions of the Einstein field equations. Examples of explicit embeddings and solutions of the Einstein field equations which are embeddable are given in the works of Rosen [2], Stephani [3] and Collinson [4]. The conditions for the integrability of the embeddings are determined by the Gauss–Codazzi–Ricci equations. A comprehensive review of explicit embeddings for particular spacetimes and solutions of the Gauss–Codazzi–Ricci equations, for embedding Classes I and II, are contained in Stephani et al. [5]. For Class I spacetimes the embedding space is a 5-dimensional Euclidean space, and for Class II spacetimes the embedding space is a 6-dimensional Euclidean space. An important reason for studying embeddings is that this approach may lead to new exact solutions of the field equations. In addition to applications in general relativity, embeddings are important for studies in extrinsic gravity, strings and membranes, and brane world cosmologies are pointed out by Pavsic [6].

Recently embeddings have been intensively studied in relativistic astrophysics and applied to models of compact objects. The Gauss–Codazzi–Ricci equations in spherically symmetric spacetimes provide a necessary and sufficient condition for the embedding to be Class I. For the embedding Karmarkar [7] found the explicit restrictions on the Riemann tensor components. Physically reasonable static stellar structures via embedding have been found by Maurya and Govender [8], Maurya et al. [9, 10], and Singh et al. [11]. Kuhfittig [12] used embeddings to study charged wormholes and flat rotation curves in spiral galaxies. The case of traversable wormholes was considered in Ref. [13] for a complete solution with both redshift and shape functions. Several other studies of stellar models with the embedding Class I condition are contained in the works [14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. A general algorithm to describe embeddable anisotropic compact stellar models was discovered by Murad [30]. These astrophysical applications apply to static spherically symmetric fields. An interesting nonstatic embeddable stellar interior was produced for the first time by Naidu et al. [31] which satisfies the Karmarkar condition. In this nonstatic model the star is radiating and the exterior atmosphere is given by the Vaidya spacetime.

We comment on embeddings and stellar exterior metrics which appear to be linked. The Schwarzschild exterior metric represents the vacuum exterior of a star. It is embeddable in a 6-dimensional space; consequently the Schwarzschild exterior is Class II embeddable as first established by Kasner [32]. The Vaidya spacetime may be used to model the exterior of a radiating object. The generalized Vaidya spacetime may be embedded in a 5-dimensional Euclidean space; this spacetime is Class I embeddable for particular mass functions as we establish in this paper. However it is interesting to observe that the conventional Vaidya metric is not Class I embeddable.

The generalized Vaidya geometry [33] is essential in describing the physical features of a radiating star in general relativity. The generalized Vaidya spacetime has applications in relativistic astrophysics as pointed out in recent investigations. As an example, we refer to the study of Maharaj et al. [34] who showed that the generalized Vaidya spacetime may be interpreted as a superposition of a null fluid and a null string fluid for the exterior of a radiating star. As a second example, we note that Naidu et al. [31], generated a specific model of a relativistic radiating star for a particular spacetime metric matching to the generalized Vaidya spacetime which satisfies the Karmarkar embedding condition. It is therefore possible to directly link the embedding condition to the evolution of a spherically symmetric radiating star.

A comprehensive analysis of the embedding of the generalized Vaidya spacetime may lead to new insights in the gravitational behavior of the system. It is therefore important to study the embedding properties of this geometry which is the objective of this paper. In Sect. 2 we review the generalized Vaidya geometry and the Einstein field equations. Two different approaches of embedding the generalized Vaidya metric into the 5-dimensional Euclidean geometry are considered in Sect. 3. The condition on the mass function is found as a nonlinear differential equation. In Sect. 4 we show that the embedding is characterised by an equation of state. The equations for a radiating star are considered in Sect. 6. Some concluding remarks are given in Sect. 6. The details of the embedding equations are given in the Appendix. For convenience we set \(c = 8\pi G = 1\) in this paper.

2 Vaidya geometry

The Vaidya metric can be written in the form

$$\begin{aligned} ds^2= & {} - \left( 1 - \frac{2m(\nu )}{r} \right) d\nu ^2 - 2d\nu dr \nonumber \\&+ r^2 \left( d\theta ^2 + \sin ^2\theta d\phi ^2 \right) , \end{aligned}$$
(1)

where the function \(m(\nu )\) is called the mass function. It is important in describing the exterior spacetime of a radiating star. For recent examples of radiating stellar structures see the works of Govinder and Govender [35], Reddy et al. [36] and Das et al. [37]. The Einstein field equations for the matter distribution

$$\begin{aligned} T_{\mu \nu } = \varepsilon k_\mu k_\nu , \end{aligned}$$
(2)

where \(\varepsilon \) is the density of the outgoing null radiation and \(k^\mu k_\mu = 0\), reduces to

$$\begin{aligned} \varepsilon = - 2 \frac{m_\nu }{r^2}, \end{aligned}$$
(3)

the function \(m(\nu )\) represents the mass of the star as measured by an observer at infinity.

The generalized Vaidya metric has the form

$$\begin{aligned} ds^2= & {} - \left( 1 - \frac{2m(\nu , r)}{r} \right) d\nu ^2 - 2d\nu dr,\nonumber \\&+ r^2 \left( d\theta ^2 + \sin ^2\theta d\phi ^2 \right) , \end{aligned}$$
(4)

where the mass function depends both on \(\nu \) and r. This metric is important in describing the exterior of a radiating star with a generalized atmosphere. The junction conditions at the stellar surface with the metric (4) where generated by Maharaj et al. [34]. The physics of generalized Vaidya atmosphere, and exact radiating models were investigated by Govender et al. [38], Naidu et al. [39] and Brassel et al. [40]. A consistent matter distribution for the spacetime (4) is

$$\begin{aligned} T_{\mu \nu } = \varepsilon k_\mu k_\nu + \left( \rho + P \right) \left( k_\mu l_\nu + k_\nu l_\mu \right) + P g_{\mu \nu }, \end{aligned}$$
(5)

where \(l^\mu l_\mu = 0\) and \(l^\mu k_\mu = -1\). In the above \(\rho \) is the null string energy density and P is the null string pressure. The matter tensor (5) describes an atmosphere which is a superposition of null dust (with \(\varepsilon \)), and null string fluid (with \(\rho \) and P). This interpretation was first given in the works of [41, 42]. The Einstein field equations then reduce to

$$\begin{aligned} \varepsilon&= -2\frac{\dot{m}}{r^2}, \end{aligned}$$
(6a)
$$\begin{aligned} \rho&= 2\frac{m'}{ r^2}, \end{aligned}$$
(6b)
$$\begin{aligned} P&= - \frac{m''}{r}, \end{aligned}$$
(6c)

with energy momentum (5). In the above dots and primes refer to differentiation with respect to \(\nu \) and r, respectively.

3 Embedding condition

The embedding condition of a 4-dimensional Riemannian metric into an pseudo-Euclidean 5-dimensional metric requires it to be Class I (see [5]). To achieve the embedding we need to solve the Gauss–Codazzi–Ricci equations. There is no known general method to solve these equations, and therefore the embedding has been demonstrated only in special cases. Sometimes the approach of finding a transformation directly embedding the Riemannian metric into the higher dimensional Euclidean metric is possible. We show that both approaches work for the generalized Vaidya metric.

3.1 Direct embedding approach

We seek to embed the curved generalized Vaidya metric (4) into a flat 5-dimensional metric

$$\begin{aligned} ds^2 = - (dx_0)^2 + (dx_1)^2 + (dx_2)^2 + (dx_3)^2 + (dx_4)^2, \end{aligned}$$
(7)

where \((x_\alpha ) = (x_0, x_1, x_2, x_3, x_4)\). Karmarkar [7] has suggested an algorithm which we follow, and assume

$$\begin{aligned} x_2&= r\sin \theta \cos \phi , \end{aligned}$$
(8a)
$$\begin{aligned} x_3&= r\sin \theta \sin \phi ,\end{aligned}$$
(8b)
$$\begin{aligned} x_4&= r\cos \theta . \end{aligned}$$
(8c)

Then (7) becomes

$$\begin{aligned} ds^2 = - \left( dx_0 \right) ^2 + \left( dx_1 \right) ^2 + dr^2 + r^2\left( d\theta ^2 + \sin ^2\theta d\phi ^2 \right) . \nonumber \\ \end{aligned}$$
(9)

Then from (4) and (9) we have

$$\begin{aligned}&- \left( 1 - \frac{2m\left( \nu , r \right) }{r} \right) d\nu ^2 - 2d\nu dr - dr^2 \nonumber \\&\quad = -(dx_0)^2 + (dx_1)^2, \end{aligned}$$
(10)

which places a restriction on the mass function \(m(\nu , r)\), and shows that the left hand side of the metric has to be flat.

A necessary and sufficient condition for metric being flat is that the Gaussian curvature be zero. The general Gaussian curvature is given by

$$\begin{aligned} K = \frac{P_{hijk}p^hq^ip^jq^k}{\left( \gamma _{hj}\gamma _{ik} - \gamma _{hk}\gamma _{ij} \right) p^hq^ip^jq^k}, \end{aligned}$$
(11)

where \(P_{hijk}\) is the Riemann tensor in two dimensions, \(p^h\) and \(q^i\) are vectors in the 2-surface (\(\gamma _{ij}\) is the metric in this space) according to Weatherburn [43]. In the above the tensor indices are defined on the 2-sphere and \(i=1,2\). According to theorem of Schur [44], the Riemannian curvature of a space is independent of the orientation chosen, thus (11) simplifies to the following

$$\begin{aligned} P_{hijk} = K \left( \gamma _{hj}\gamma _{ik} - \gamma _{hk}\gamma _{ij} \right) . \end{aligned}$$
(12)

For the left hand side of (10) we have only one independent Riemann tensor component

$$\begin{aligned} P_{1212} = \frac{r^2m'^2 + 2rmm' - 3m^2 - 2r^2mm''}{2mr^3}. \end{aligned}$$
(13)

Thus with (12) and (13) the embedding condition for the generalized Vaidya metric is

$$\begin{aligned} 2r^2mm'' - r^2m'^2 - 2rmm' + 3m^2 = 0, \end{aligned}$$
(14)

which is a nonlinear equation in m.

3.2 Gauss–Coddazzi–Ricci equations

The Gauss–Coddazzi–Ricci equations for Class I embedding have the general form

$$\begin{aligned} R^{\mu \nu }_{\ \ \gamma \delta }&= \pm \left( b^\mu _{\ \gamma }b^\nu _{\ \delta } - b^\mu _{\ \delta }b^\nu _{\ \gamma } \right) , \end{aligned}$$
(15a)
$$\begin{aligned} b^\mu _{\ \nu ;\gamma }&= b^\mu _{\ \gamma ;\nu }, \end{aligned}$$
(15b)

according to Stephani et al. [5] and \(b_{\mu \nu }\) is a symmetric tensor. Note that the quantities \(R_{\mu \nu \delta \gamma }\) and \(b_{\mu \nu }\) are defined in the 4-dimensional Riemannian manifold. In this case the tensor indices are defined on the 4-dimensional spacetime manifold and \(\mu = 0,1,2,3\). In the above (15a) corresponds to the Gauss equations and (15b) corresponds to the Codazzi equations. The Ricci equations are identically satisfied for Class I embedding. Effectively the embedding equations (15a) and (15b) will place restrictions on the components of the Riemann tensor \(R_{\mu \nu \delta \gamma }\).

The embedding restriction for a spherically symmetric spacetime to be Class I was first found by Karmarkar [7] which is a necessary condition; the sufficient condition for this result to hold was established by Pandey and Sharma [45]. We now find the restrictions on the Riemann curvature for the generalized Vaidya metric (4). The Gauss–Codazz–Ricci equations imply the result

$$\begin{aligned} R_{1220} = - \frac{\sqrt{-R_{1010}R_{2323}}}{\sin \theta }, \end{aligned}$$
(16)

which is an equation in terms of our independent Riemann tensor components. We can also write (16) in the equivalent form

$$\begin{aligned} R_{1220}R_{1330} + R_{1010}R_{2323} = 0, \end{aligned}$$
(17)

since \(R_{1220}\sin ^2\theta = R_{1330}\). The derivation of (17) is given in the Appendix. We observe that the values of the Riemann tensor components arising in (16) are

$$\begin{aligned} R_{1220}&= \frac{rm' - m}{r},\end{aligned}$$
(18a)
$$\begin{aligned} R_{1010}&= - \frac{r^2m'' - 2rm' + 2m}{r^3},\end{aligned}$$
(18b)
$$\begin{aligned} R_{2323}&= 2rm\sin ^2\theta . \end{aligned}$$
(18c)

Substituting (18a)–(18c) into (16) yields

$$\begin{aligned} 2r^2mm'' - r^2m'^2 - 2rmm' + 3m^2 = 0. \end{aligned}$$
(19)

Observe that the embedding condition (19) is the same as (14) obtained by the direct method.

We should point out that the restriction (17) can also be obtained from the Karmarkar embedding condition. For a spherically symmetric line element it is well known that embedding leads to the following equation

$$\begin{aligned} R_{1220}R_{1330} + R_{1010}R_{2323} - R_{1212}R_{3030} = 0, \end{aligned}$$
(20)

relating various components of the Riemann tensor. For the generalized Vaidya spacetime (4) we have

$$\begin{aligned} R_{1212} = 0, \end{aligned}$$
(21)

which is a further restriction. We observe that (20) become (17) when (21) holds.

3.3 The mass function

The embedding into 5-dimensional flat spacetime has generated the condition (14) on the mass function \(m(\nu , r)\). This is a nonlinear partial differential equation. However it can be integrated as the \(\nu \)-dependence is not explicit. We can rewrite (14) in the from

$$\begin{aligned} 2r^2\frac{m''}{m} - r^2\frac{m'^2}{m^2} - 2r\frac{m'}{m} + 3 = 0. \end{aligned}$$
(22)

If we let \(z = \frac{m'}{m}\) then (22) becomes

$$\begin{aligned} z' + \frac{1}{2}z^2 - \frac{1}{r}z = -\frac{3}{2r^2}, \end{aligned}$$
(23)

which is a Riccati equation. In general Riccati equations do not have a general solution. However in our case (23) admits the particular solution \(z=\frac{1}{r}\). Consequently the transformation

$$\begin{aligned} z = \frac{1}{r} + \frac{1}{u}, \end{aligned}$$
(24)

leads to the linear equation

$$\begin{aligned} u' = \frac{1}{2}. \end{aligned}$$
(25)

This has the solution

$$\begin{aligned} u = \frac{1}{2}r + \frac{1}{2}C_1(\nu ), \end{aligned}$$
(26)

where \(\frac{1}{2}C_1(\nu )\) is a function of integration. In terms of the variable z we have

$$\begin{aligned} z = \frac{1}{r} + \frac{2}{r + C_1(\nu )}. \end{aligned}$$
(27)

Using \(z = \frac{m'}{m}\) we can integrate (27) to obtain

$$\begin{aligned} \ln m = \ln r + \ln \left( r + C_1(\nu ) \right) ^2 + \ln C_2(\nu ), \end{aligned}$$
(28)

where \(C_2(\nu )\) is a second function of integration. We can write this result compactly as

$$\begin{aligned} m(\nu ,r) = rC_2(\nu )\left( r + C_1(\nu ) \right) ^2. \end{aligned}$$
(29)

Hence the embedding condition for the generalized Vaidya metric leads to a restriction on the mass function \(m(\nu , r)\) given by (29). Note that the condition (29) does not allow for the mass function to depend on the variable \(\nu \) only with \(m(\nu )\). Hence the conventional Vaidya metric (1) is not embeddable in 5-dimensional flat spacetime but particular forms of the generalized Vaidya metric are embeddable. It is interesting to observe that the dependence in the retarded time coordinate \(\nu \) is arbitrary in equation (29). The dependence in the radial coordinate r is fully known and the mass function has the form

$$\begin{aligned} m(\nu , r) = C_2(\nu )r^3 + 2C_1(\nu )C_2(\nu )r^2 + C_2(\nu )C_1^2(\nu )r, \end{aligned}$$
(30)

which is a cubic function in r.

Embedding leads to an explicit functional form for the mass function \(m(\nu ,r)\). The condition (29) was obtained from the Gauss and Codazzi equations which are necessary and sufficient conditions for the metric to be Class I embeddable. Thus we can state the following theorem:

Theorem 1

The necessary and sufficient condition for the generalized Vaidya metric to be Class I embeddable is that the mass function must have the form

$$\begin{aligned} m(\nu , r) = rg(\nu )\left( r + f(\nu ) \right) ^2, \end{aligned}$$
(31)

where \(g(\nu )\) and \(f(\nu )\) are arbitrary functions.

4 Application to general relativity

Theorem 1 was obtained using only geometry and no field equations were assumed. Consequently Theorem 1 holds in general relativity or any modified theory of gravity with relevant field equations. It will be interesting to consider the effect of this embedding in various modified theories in future work. As a first step we demonstrate an application to general relativity.

Using (31) and the field equations we obtain

$$\begin{aligned} \varepsilon&= - \frac{2\left( r + f \right) \left( \left( r + f \right) \dot{g} + 2g\dot{f} \right) }{ r},\end{aligned}$$
(32a)
$$\begin{aligned} \rho&= \frac{2g\left( r + f \right) \left( 3r + f \right) }{ r^2},\end{aligned}$$
(32b)
$$\begin{aligned} P&= - \frac{2g\left( 3r + 2f \right) }{ r}, \end{aligned}$$
(32c)

for the Class I embeddable generalized Vaidya spacetime. Equations (32a)–(32c) solve the Einstein field equations with the two free functions \(g(\nu )\) and \(f(\nu )\).

It is clear from the above equations that it is impossible to write an equation of state of the from \(P = P(\rho )\) in general. However it is possible to find a particular relationship between P and \(\rho \). We can eliminate the coordinate r from (32b) and (32c) to obtain

$$\begin{aligned} \rho = \frac{ 1}{8g}P^2 - \frac{1}{2}P - \frac{3}{2}g, \end{aligned}$$
(33)

which is of the form \(F(\rho , P, \nu ) = 0\). If we take \(g = \frac{1}{2}C\), a constant, then we have

$$\begin{aligned} \rho = \frac{ 1}{4C}P^2 - \frac{1}{2}P - \frac{3}{4}C, \end{aligned}$$
(34)

which is an equation of state of the form \(F(\rho , P) = 0\). Hence the embedding of the generalized Vaidya spacetime into 5-dimensional Euclidean space is characterized by the equation of state (34). Hence the null string density \(\rho \) can be written as an explicit function of the null string pressure P for the embeddable generalized Vaidya metric. As the equation of state in (34) is different from previous studies, our model will exhibit qualitatively different gravitational behaviour. Note that several equations of state of the form \(P = P(\rho )\) exist in the generalized Vaidya spacetime (in the absence of embedding). These have been widely studied by Husain [41], Wang and Wu [46], and Glass and Krisch [42, 47]. Many of the models with an equation of state can be used to describe diffusive processes in the stellar exterior as the null string density then satisfies the diffusion equation. Dawood and Ghosh [48] and Ghosh and Dawood [49] discovered a family of exact solutions characterising a type II fluid which contain the familiar dynamical black hole solutions. Brassel et al. [40, 50] considered various equations of state for collapsing stars in relation to the cosmic censorship hypothesis. We emphasize that the relationship (34) arises from the Einstein field equations; the energy conditions may place further restrictions.

We now consider the energy conditions following the approach of Wang and Wu [46] for the generalized Vaidya metric grouped by fluid type. The energy conditions for a type II fluid (\(m = m(\nu ,r)\)) are

  1. 1.

    The weak and strong energy conditions:

    $$\begin{aligned} \varepsilon \ge 0,\ \ \rho \ge 0,\ \ P \ge 0,\ \ (\varepsilon \ne 0). \end{aligned}$$
    (35)
  2. 2.

    The dominant energy condition:

    $$\begin{aligned} \varepsilon \ge 0,\ \ \rho \ge P \ge 0,\ \ (\varepsilon \ne 0). \end{aligned}$$
    (36)

The energy conditions for type I fluid (\(m = m(r)\)) are

  1. 1.

    The weak energy condition:

    $$\begin{aligned} \rho \ge 0,\ \ \rho + P \ge 0,\ \ (\varepsilon = 0). \end{aligned}$$
    (37)
  2. 2.

    The strong energy condition:

    $$\begin{aligned} \rho + P \ge 0,\ \ P \ge 0,\ \ (\varepsilon = 0). \end{aligned}$$
    (38)
  3. 3.

    The dominant energy condition:

    $$\begin{aligned} \rho \ge 0,\ \ -\rho \le P \le \rho ,\ \ (\varepsilon = 0). \end{aligned}$$
    (39)

From (32a)–(32c) we see that, without any additional restrictions, the conditions in (35) are violated. Conditions (36) are violated too because of negative pressure (\(P<0\)), all other inequalities are satisfied if \(\dot{g} \le 0\) and \(\dot{f} \le 0\). Thus in general \(P<0\), for arbitrary functions \(g(\nu )\) and \(f(\nu )\), and embedding provides dark energy type behavior.

It is interesting to note that we can generate type I metrics which are static (\(\varepsilon = 0\) and \(m=m(r)\)) and type II metrics (\(\varepsilon \ne 0\) and \(m=m(\nu ,r)\)) from embedding. Two of the metrics are well known and third metric appears to be new.

4.1 de Sitter and anti-de Sitter (type I)

To reproduce the de Sitter and anti-de Sitter solutions we set

$$\begin{aligned} f = 0, \ \ g = \frac{\lambda }{6}, \end{aligned}$$
(40)

in (31). As a result we find that

$$\begin{aligned} m&= \frac{\lambda }{6}r^3, \end{aligned}$$
(41a)
$$\begin{aligned} \rho&= -P = \lambda . \end{aligned}$$
(41b)

Thus we regain the case of the generalized Vaidya de Sitter or anti-de Sitter solutions depending on the sign of g.

4.2 Linear equation of state (type II)

To reproduce the solution with a linear equation of state we set

$$\begin{aligned} f = 0, \end{aligned}$$
(42)

in (31). We find that

$$\begin{aligned} m&= gr^3, \end{aligned}$$
(43a)
$$\begin{aligned} \rho&= -P = 6g,\ \ \varepsilon = - 2r\dot{g}. \end{aligned}$$
(43b)

We should note that in this case the weak and strong energy conditions (35) as well as dominant energy condition (36) are violated because of negative pressure (\(P < 0\)) but \(\varepsilon \) and \(\rho \) are positive if \(\dot{g}\le 0\).

4.3 Nonlinear equations of state (type I)

To study this case we should have that the mass function depends only on r, namely

$$\begin{aligned} f = \text{ constant },\ \ g = \text{ constant }. \end{aligned}$$
(44)

We then obtain

$$\begin{aligned}&m = rg\left( r + f \right) ^2, \end{aligned}$$
(45a)
$$\begin{aligned}&\rho = \frac{2g\left( r + f \right) (3r + f)}{r^2},\ \ P =-\frac{2g\left( 3r + 2f \right) }{r},\end{aligned}$$
(45b)
$$\begin{aligned}&\rho = \frac{1}{8g} P^2 - \frac{1}{2}P - \frac{3}{2}g, \end{aligned}$$
(45c)

which represents a Class I embeddable type I fluid in general relativity. The weak energy condition (37) and the dominant energy condition (39) are satisfied if \(f \ge 0\). The strong energy condition (38) is violated. The equations of state (45c) has the form \(\rho = F(P)\). This result appears to be new and is not shown in studies involving embedding.

Generalized Vaidya metrics have several astrophysical applications. These metrics may be used to model a radiating star, describe superposition of different fluid types and study gravitational collapse as shown by Naidu et al. [39], Maharaj et al. [34] and Brassel et al. [40]. An interesting astrophysical application is to interpret the generalized Vaidya spacetime as a diffusive medium as first shown by Glass and Krisch [42]. Here the component of the energy momentum tensor corresponding to the null string fluid is linked to point particle diffusion. From classical transport theory we consider the diffusion equation in the form

$$\begin{aligned} \dot{\rho } = \frac{D}{r^2}\frac{\partial }{\partial r}\left( r^2 \rho ' \right) , \end{aligned}$$
(46)

where D is a constant. We now impose the integrability condition for the mass function \(\frac{\partial }{\partial \nu }m' = \frac{\partial }{\partial r}\dot{m}\) and substitute into field equations (32a)–(32c) to obtain

$$\begin{aligned} \dot{\rho } = -\frac{1}{r^2}\frac{\partial }{\partial r}\left( r^2\varepsilon \right) . \end{aligned}$$
(47)

We substitute (47) into (46) and obtain after simplification

$$\begin{aligned} \dot{m} = D\left( m'' - \frac{2}{r}m' \right) . \end{aligned}$$
(48)

Hence interpretation of the generalized Vaidya spacetime as a diffusive medium leads to the condition to the mass function. If we substitute above (31) into (48) we obtain the consistency condition

$$\begin{aligned} r\left( r + f \right) ^2 \dot{g} + 2rg(r + f)\dot{f} + 4Dgf + \frac{2}{r}Dgf^2 = 0, \end{aligned}$$
(49)

which is satisfied only if \(f=0\) and \(\dot{g} = 0\). Thus we regain the de Sitter metric (40). Hence we conclude that embedding does place restrictions on the physical features of the system; embedding does not allow the interpretation of the generalized Vaidya spacetime as a diffusive medium.

5 Radiating stars

Several models of radiating stars undergoing dissipation in general relativity are known. The interior matter distribution is heat conducting and the exterior spacetime is given by the conventional Vaidya metric. For comprehensive treatments of recent exact solutions for radiating stellar models see Abebe and Maharaj [52], Mohanlal et al. [53] and Mohamed et al. [54,55,56]. The generalized Vaidya spacetime may also be used to model a radiating star in general relativity. For this general case the exterior spacetime may be interpreted as a a generalized external atmosphere consisting of a combination two fluids: a null dust fluid and a null string fluid. The interior spacetime remains heat conducting and the exterior spacetime is now given by (4). The relevant model, field equations and junction conditions were developed by Maharaj et al. [34].

The interior spacetime is given by the shear-free metric

$$\begin{aligned} ds^2 = -A^2 dt^2 + B^2 [dr^2 + r^2(d\theta ^2 + \sin ^2\theta d\phi ^2)], \end{aligned}$$
(50)

where A(tr) and B(tr) are the metric functions. The interior matter distribution has the form

$$\begin{aligned} T_{\mu \nu }=(\tilde{\rho }+ \tilde{p} )u_{\mu }u_{\nu }+ \tilde{p} g_{\mu \nu }+\tilde{q}_{\mu }u_{\nu }+ \tilde{q}_{\nu }u_{\mu }, \end{aligned}$$
(51)

where \(\tilde{\rho }\) is the energy density, \(\tilde{p}\) is the isotropic pressure, \(\tilde{q}_\mu \) is the radial heat flux vector and \(u^\mu =\frac{1}{A}\delta _{0}^{\mu }\) is the comoving fluid four-velocity. The Einstein field equations in the interior of the radiating star have the form

$$\begin{aligned} \tilde{\rho }= & {} 3\frac{\dot{B}^2}{A^2B^2}- \frac{1}{B^2}\left( 2\frac{B^{\prime \prime }}{B} - \frac{B^{\prime 2}}{B^2} + \frac{4}{r}\frac{B^{\prime }}{B}\right) , \end{aligned}$$
(52a)
$$\begin{aligned} \tilde{p}= & {} \frac{1}{A^2}\left( -2\frac{\ddot{B}}{B} - \frac{\dot{B}^2}{B^2} + 2\frac{\dot{A}}{A} \frac{\dot{B}}{B}\right) , \nonumber \\&+ \frac{1}{B^2}\left( \frac{B^{\prime 2}}{B^2} + 2\frac{A^{\prime }}{A}\frac{B^{\prime }}{B} + \frac{2}{r}\frac{A^{\prime }}{A} + \frac{2}{r}\frac{B^{\prime }}{B}\right) , \end{aligned}$$
(52b)
$$\begin{aligned} \tilde{p}= & {} -2\frac{\ddot{B}}{A^{2}B} + 2\frac{\dot{A}}{A^3}\frac{\dot{B}}{B} - \frac{\dot{B}^2}{A^2B^2} + \frac{1}{r}\frac{A^{\prime }}{AB^2}\nonumber \\&+ \frac{1}{r}\frac{B^{\prime }}{B^3} + \frac{A^{\prime \prime }}{AB^2} - \frac{B^{\prime 2}}{B^4} + \frac{B^{\prime \prime }}{B^3}, \end{aligned}$$
(52c)
$$\begin{aligned} \tilde{q}= & {} -\frac{2}{AB^2}\left( -\frac{\dot{B}^{\prime }}{B} + \frac{B^{\prime }\dot{B}}{B^2} + \frac{A^{\prime }}{A}\frac{\dot{B}}{B}\right) . \end{aligned}$$
(52d)

The exterior spacetime is given by the generalized Vaidya metric (4):

$$\begin{aligned} ds^2= & {} - \left( 1 - \frac{2m(\nu , r)}{r} \right) d\nu ^2 - 2d\nu dr \nonumber \\&+ r^2 \left( d\theta ^2 + \sin ^2\theta d\phi ^2 \right) , \end{aligned}$$
(53)

which depends on the mass function \( m(\nu , r)\). The exterior matter distribution has the form

$$\begin{aligned} T_{\mu \nu } = \varepsilon k_\mu k_\nu + \left( \rho + P \right) \left( k_\mu l_\nu + k_\nu l_\mu \right) + P g_{\mu \nu }, \end{aligned}$$
(54)

given in (5) for the external matter quantities \(\epsilon \), \(\rho \) and P. The embedding places a restriction on the form of the mass function m.

The line elements (50) and (53) must match at the the stellar surface \(\Sigma \). Also the extrinsic curvature has to match for a stable body. Matching generates the junction conditions at the stellar surface \(\Sigma \). The resulting important equation, that arises in the matching process, that governs the evolution of the radiating star is given by

$$\begin{aligned} \left( \tilde{p} - \tilde{q} \right) _{\Sigma } = \rho _\Sigma . \end{aligned}$$
(55)

This fundamental equation relates the external null string density \(\rho \) to the internal pressure \(\tilde{p}\) and the heat flux \(\tilde{q}\). at the surface of a star with a generalized atmosphere. As \(\rho \) is specified by (55) through embedding, and \(\tilde{p}\), \(\tilde{q}\) follow from the spherical metric, we observe that (55) is a second order nonlinear partial differential equation. An exact solution to (55) will determine the dynamical evolution of a radiating star with a generalized exterior atmosphere with embedding. Exact solutions to (55) will provide further insight into the process of gravitational collapse. The simpler case when \(m = m(\nu )\) has been mainly studied in the past so that

$$\begin{aligned} \left( \tilde{p} = \tilde{q} \right) _{\Sigma }. \end{aligned}$$
(56)

Observe that exact solutions of (55) and (56), without embedding, have been found by Govender et al. [38] and Govender [51] for nonadiabatic spherical collapse. As far as we are aware the only embeddable radiating stellar model known was found by Naidu et al. [39] - however this model holds only for the conventional Vaidya model. In future work we will investigate the particular solutions of (55) that are possible when the spacetime is embeddable.

6 Discussion

In this research we studied embedding of the generalized Vaidya spacetime into 5-dimensional Euclidean manifold. The conventional Vaidya metric is not Class I embeddable but we proved that particular forms of the generalized Vaidya metric are embeddable. Using two different methods we managed to obtain the embedding condition which is a second order partial differential equation for the mass function. Using a new variable we reduced this equation to the form of a Riccati equation. In general Riccati equations do not have a general solution, but we managed to linearise the embedding equation and solved it in general. It was shown that the embedding condition for the generalized Vaidya metric leads to restriction on the mass function which has arbitrary dependence in the retarded time coordinate and cubic dependence in the radial coordinate. We emphasize that the above calculations were made without assuming any theory of gravity. The result obtained may be applied to a particular theory of gravity such as Einsteins equations or the Einstein–Gauss–Bonnet theory, etc. As an application we applied the obtained result to the Einstein theory. We considered equations of state, the energy conditions, the boundary condition at the stellar surface, the diffusive model of a radiating star. We conclude that the generalized Vaidya spacetime is embeddable with specific form of the mass function and equation of state. The form of the mass function places restrictions on the physical behavior of the system such as allowing for negative pressure. Negative pressure is now a well accepted feature in cosmological models in classical general relativity to explain observations.