1 Introduction

Finch and Skea (1989), making use of Duorah and Ray (1987) ansatz for the metric potential g rr corresponding to a static spherically symmetric perfect fluid space-time, developed a stellar model which was later shown to comply with all the physical requirements of a realistic star by Delgaty and Lake (1998). Consequently, the Finch-Skea model has been explored by many investigators in different astrophysical contexts, particularly for the studies of cold compact stellar objects (see for example, Hansraj and Maharaj 2006; Tikekar and Jotania 2009; Banerjee et al. 2013). One noticeable feature of the Finch and Skea (1989) model is that it assumes isotropy in pressure. However, theoretical investigations of Ruderman (1972) and Canuto (1974), amongst others have shown that anisotropy might develop in the high density regime of compact stellar objects. In other words, radial and transverse pressures might not be equal at the interior of ultra-compact stars. Bowers and Liang (1974) have extensively discussed the conditions under which anisotropy might occur at stellar interiors which include presence of type-3A super fluid, electromagnetic field, rotation etc. They have also established the non-negligible effects of local anisotropy on the maximum equilibrium mass and surface redshift of the distribution. Accordingly, different anisotropic stellar models have been developed and effects of anisotropy on physical properties of stellar configurations have been analyzed by many investigators, viz. Maharaj and Marteens (1989), Gokhroo and Mehra (1994), Patel and Mehta (1995), Tikekar and Thomas (1998, 1999, 2005), Thomas et al. (2005), Thomas and Ratanpal (2007). Impacts of anisotropy on the stability of a stellar configuration have been studied by Dev and Gleiser (2002, 2003, 2004). Sharma and Maharaj (2007) and Thirukkanesh and Maharaj (2008) have obtained analytic solutions of compact anisotropic stars by assuming a linear equation of state (EOS). To solve the Einstein-Maxwell system, Komathiraj and Maharaj (2007) have used a linear equation of state. By assuming a linear EOS, Sunzu et al. (2014) have reported solutions for a charged anisotropic quark star. Feroze and Siddiqui (2011) and Maharaj and Takisa (2012) have used a quadratic-type EOS for obtaining solutions of anisotropic distributions. Varela et al. (2010) have analyzed charged anisotropic configurations admitting a linear as well as non-linear equations of state. For a star composed of quark matter in the MIT bag model, Paul et al. (2011) have shown how anisotropy could effect the value of the Bag constant. For a specific polytropic index, exact solutions to Einstein’s field equations for an anisotropic sphere admitting a polytropic EOS have been obtained by Thirukkanesh and Ragel (2012). Maharaj and Takisa (2013) have used the same type of EOS to develop an analytical model describing a charged anisotropic sphere. Polytropes have also been studied by Nilsson and Uggla (2001), Heinzle et al. (2003) and Kinasiewicz and Mach (2007). Thirukkanesh and Ragel (2014) have used modified Van der Waals EOS to represent anisotropic charged compact spheres. For specific forms of the gravitational potential and electric field intensity, Malaver (2014) has prescribed solutions for a stellar configuration whose matter content admits a quadratic EOS. Malaver (2013a) and Malaver (2013b) have also found exact solutions to the Einstein-Maxwell system using the Van der Waals modified EOS.

Recently, Sharma and Ratanpal (2013), making use of the Finch and Skea (1989) ansatz, have generated a class of solutions describing the interior of a static spherically symmetric anisotropic star. In this paper, we have generalized the Sharma and Ratanpal (2013) model by incorporating a dimensionless parameter n (>0) in the Finch and Skea (1989) ansatz and assumed the system to be anisotropic, in general. We have shown that such assumptions can provide physically viable solutions which can be used to model realistic stars. Implications of the modified ansatz (by including an adjustable parameter n) on the size and physical properties of resultant stellar configurations have been analyzed. Based on physical requirement, we have put constraints on our model parameters and subsequently shown that a wide variety of observed pulsars can be accommodated within the prescribed bound of the model parameters. In particular, we have shown that the predicted masses and radii of pulsars like 4U 1820-30, PSR J1903+327, 4U 1608-52, Vela X-1, PSR J1614-2230, SAX J1808.4-3658 and Her X-1 can well be achieved by systematically fixing the parameter n. Most importantly, for a given mass, it is possible to constrain the radius so as to get the desired compactness by fixing the compactness parameter n in this model.

The paper has been organized as follows: In Sect. 2, for a static spherically symmetric anisotropic fluid sphere, we have solved the relevant field equations by making a particular choice of the metric potential g rr which is a generalization of the Finch and Skea (1989) ansatz. In Sect. 3, we have laid down the boundary conditions and in Sect. 4, we have put constraints on the model parameters based on physical requirements, regularity conditions and stability. Physical applications of our model have been discussed in Sect. 5. In Sect. 6, we have concluded by pointing out the main results of our model.

2 Modified Finch and Skea model

We write the interior space-time of a static spherically symmetric distribution of anisotropic matter in the form

$$ ds^2 = e^{\nu(r)} dt^2 - e^{\lambda(r)}dr^2 - r^2 \bigl(d\theta^2 + \sin^2 \theta d \phi^2\bigr), $$
(1)

where,

$$ e^{\lambda} = \biggl(1 + \frac{r^2}{R^2} \biggr)^{n}. $$
(2)

In (2), n>0 is a dimensionless parameter and R is the curvature parameter having dimension of a length. Note that the ansatz (2) is a generalization of the Finch and Skea (1989) model which can be regained by setting n=1.

We follow the treatment of Maharaj and Marteens (1989) and write the energy-momentum tensor of the anisotropic matter filling the interior of the star in the form

$$ T_{ij} = (\rho+ p ) u_i u_j - p g_{ij} + \pi_{ij}, $$
(3)

where, ρ and p denote the energy-density and isotropic pressure of the fluid, respectively and u i is the 4-velocity of the fluid. The anisotropic stress-tensor π ij has the form

$$ \pi_{ij} = \sqrt{3}S \biggl[C_iC_j - \frac{1}{3}(u_iu_j - g_{ij}) \biggr], $$
(4)

where, C i=(0,−e λ/2,0,0). For a spherically symmetric anisotropic distribution, S(r) denotes the magnitude of the anisotropic stress. The non-vanishing components of the energy-momentum tensor are the following:

$$ \begin{aligned} & T_0^0 = \rho, \qquad T_1^1 = -\biggl(p + \frac{2S}{\sqrt{3}} \biggr), \\ & T_2^2 = T_3^3 = - \biggl(p - \frac{S}{\sqrt{3}} \biggr). \end{aligned} $$
(5)

Consequently, radial and tangential pressures of the fluid can be obtained as

$$\begin{aligned} &{p_r = -T_1^1 = \biggl(p + \frac{2S}{\sqrt{3}} \biggr), } \end{aligned}$$
(6)
$$\begin{aligned} &{p_\perp = -T_2^2 = \biggl(p - \frac{S}{\sqrt{3}} \biggr), } \end{aligned}$$
(7)

so that

$$ S = \frac{p_r - p_\perp}{\sqrt{3}}. $$
(8)

The potentials of the space-time metric (1) and physical variables of the distribution are related through the Einstein’s field equations

$$\begin{aligned} &{8\pi\rho= \frac{1 - e^{-\lambda}}{r^2} + \frac{e^{-\lambda} {\lambda }^\prime}{r}, } \end{aligned}$$
(9)
$$\begin{aligned} &{8\pi p_r = \frac{e^{-\lambda} - 1}{r^2} - \frac{e^{-\lambda}{\nu }^\prime}{r}, } \end{aligned}$$
(10)
$$\begin{aligned} &{8\pi p_\perp= e^{-\lambda} \biggl[\frac{\nu^{\prime\prime}}{2} + \frac{{\nu^\prime}^2}{4} - \frac{\nu^\prime\lambda^\prime}{4} + \frac {\nu^\prime- \lambda^\prime}{2r} \biggr]. } \end{aligned}$$
(11)

By defining the mass m(r) within a radius r as

$$ m(r) = 4\pi\int_{0}^{r} u^2 \rho(u) du, $$
(12)

we get an equivalent description of the system as

$$\begin{aligned} &{e^{-\lambda} = 1 - \frac{2m}{r}, } \end{aligned}$$
(13)
$$\begin{aligned} &{r (r - 2m) \nu^{\prime} = 8\pi p_r r^3 + 2m, } \end{aligned}$$
(14)
$$\begin{aligned} &{-\frac{4}{r} (8\pi\sqrt{3}S) = (8\pi\rho+ 8\pi p_r) \nu^{\prime} + 2 \bigl(8\pi p_r^{\prime} \bigr). } \end{aligned}$$
(15)

Using (2) in (9) and (13), we obtain the energy-density and mass m(r) in the form

$$\begin{aligned} &{8\pi\rho = \frac{\frac{1}{r^2}{ (1 + \frac{r^2}{R^2} ) [ (1 + \frac {r^2}{R^2} )^n-1 ]}+\frac{2 n}{R^2}}{ (1 + \frac{r^2}{R^2} )^{n+1}}, } \end{aligned}$$
(16)
$$\begin{aligned} &{m(r) = \frac{\frac{r}{2} [ (1 + \frac{r^2}{R^2} )^n-1 ]}{ (1 + \frac {r^2}{R^2} )^n}. } \end{aligned}$$
(17)

To integrate Eq. (14), following Sharma and Ratanpal (2013), we write the radial pressure in the form

$$ 8\pi p_r = \frac{p_0 (1-\frac{r^2}{R^2} )}{R^2 (1 + \frac{r^2}{R^2} )^{n+1}}, $$
(18)

which is a reasonable assumption since the radial pressure vanishes at r=R. Consequently, the curvature parameter R in our model turns out to be the boundary of the star. Substituting (18) in (14) and integrating, we get

$$ \begin{aligned}[b] e^{\nu} &= C \biggl(1 + \frac{r^2}{R^2} \biggr)^{p_0} \\ &\quad {}\times \exp{ \Biggl[-\frac{p_0 r^2}{2 R^2} + \int_{0}^{r} \biggl[ \biggl(1 + \frac{u^2}{R^2} \biggr)^{n} - 1 \biggr] \frac{1}{u} du \Biggr]}, \end{aligned} $$
(19)

where, C is a constant of integration.

Finally, using Eqs. (15), (16) and (18), the anisotropy is obtained as

$$ 8\pi\sqrt{3}S = A_1 (r) - \bigl\{ A_2 (r) \bigl(A_3 (r) + A_4 (r) \bigr) \bigr\} , $$
(20)

where

$$\begin{aligned} &{A_1 (r) = \frac{p_0 \frac{r^2}{R^2} [(n+2)-\frac{n r^2}{R^2} ]}{R^2 (1 + \frac{r^2}{R^2} )^{n+2}},} \\ &{A_2 (r) = \frac{1}{4} \biggl[ \biggl(1 + \frac{r^2}{R^2} \biggr)^{n-1} \biggr]-\frac{p_0}{4} \frac{r^2}{R^2} + \frac{p_0}{2} \frac{\frac{r^2}{R^2}}{ (1 + \frac {r^2}{R^2} )},} \\ &{A_3 (r) = \frac{ (1 + \frac{r^2}{R^2} ) [ (1 + \frac{r^2}{R^2} )^n-1 ]\frac{1}{r^2}+ \frac{2 n}{R^2}}{ (1 + \frac{r^2}{R^2} )^{n+1}},} \\ &{A_4 (r) = \frac{p_0 (1-\frac{r^2}{R^2} )}{R^2 (1 + \frac{r^2}{R^2} )^{n+1}}.} \end{aligned}$$

Note that the anisotropy vanishes at the center r=0, as expected. Subsequently, the tangential pressure can be obtained from the relation

$$ 8\pi p_{\perp} = 8\pi p_r - 8\pi\sqrt{3} S. $$
(21)

Using the above relations, we also obtain

$$\begin{aligned} &{\begin{aligned} & \frac{d p_r}{d \rho} \\ &\quad = \frac{p_0 \frac{r^4}{R^4}[(n + 2) - n \frac {r^2}{R^2}]}{(1 + \frac{r^2}{R^2})^{n+2} - [1 + \{(n + 2) + (1 - n - 2 n^2)\frac{r^2}{R^2} \} \frac{r^2}{R^2} ]}, \end{aligned}} \\ &{\frac{d p_\perp}{d \rho} = \frac{1}{c^2}\frac{d p_r}{d \rho} - \frac{p_0 \frac{r^4}{R^4} [I(r) + D(r) ] + R^{6} B(r)}{4R^{6} (1 + \frac {r^2}{R^2} )^{n+3} E(r)},} \end{aligned}$$

where

$$\begin{aligned} &{B(r) = F(r) + G(r) + H(r),} \\ &{F(r) = \biggl[ \biggl\{ 1 + \frac{r^2}{R^2} \bigl(1 - n - 2n^2 \bigr) \biggr\} \biggl(1 + \frac{r^2}{R^2} \biggr) \frac{r^2}{R^2} \biggr],} \\ &{G(r) = \biggl[1 - (n-1)\frac{r^2}{R^2} \biggr] \biggl(1 + \frac{r^2}{R^2} \biggr)^{2n+2},} \\ &{H(r) = -2 \biggl(1 + \frac{r^2}{R^2} \biggr)^{n+1} \biggl[1 + 2 \frac{r^2}{R^2} - (n - 1) \frac{r^4}{R^4} \biggr],} \\ &{\begin{aligned} I(r) & = 2 \biggl[R^6 \biggl\{ \biggl(1 - \frac{3r^2}{R^2} \biggr)- \biggl(7 - \frac{r^2}{R^2} \biggr)\frac{nr^2}{R^2} \\ &\quad {}+ 2 \biggl(1 + \frac{r^2}{R^2} \biggr)^{n+1} \biggr\} - n^2 r^2 \biggl(1 - \frac{r^2}{R^2} \biggr) \biggr],\end{aligned}} \\ &{\begin{aligned} D(r) &= -{p_0} {R^6} \biggl(1 - \frac{r^2}{R^2} \biggr) \\ &\quad {}\times \biggl[1 - \biggl\{ (n + 4) \frac{r^2}{R^2} + (n - 1) \frac{r^4}{R^4} \biggr\} \biggr], \end{aligned}} \\ &{E(r) = \frac{1 + (n + 2)\frac{r^2}{R^2} - (2 n^2 + n - 1)\frac {r^4}{R^4}}{ (1 + \frac{r^2}{R^2} )^{n + 2}}-1.} \end{aligned}$$

Thus, our model has four unknown parameters namely, C, p 0, R and n which can be fixed by the appropriate boundary conditions as will be discussed the following sections.

3 Boundary conditions

At the boundary of the star r=R, we match the interior metric (1) with the Schwarzschild exterior

$$\begin{aligned} \begin{aligned}[b] ds^2 &= \biggl(1 - \frac{2M}{r} \biggr) dt^2 - \biggl(1 - \frac{2M}{r} \biggr)^{-1}dr^2 \\ &\quad {}- r^2 \bigl(d\theta^2 + \sin^2 \theta d \phi^2\bigr), \end{aligned} \end{aligned}$$
(22)

which yields

$$\begin{aligned} &{R = \frac{2^{n+1} M}{2^{n} - 1}, } \end{aligned}$$
(23)
$$\begin{aligned} &{\begin{aligned}[b] C &= 2^{- (n + p_0 )} \\ &\quad {}\times \exp \Biggl[{\frac{p_0}{2} - \int_{0}^{R} \biggl[ \biggl(1 + \frac{r^2}{R^2} \biggr)^n-1 \biggr] \frac{1}{r} dr} \Biggr], \end{aligned} } \end{aligned}$$
(24)

where M=m(R) denotes the total mass enclosed within a radius R. Equation (23) clearly shows that the compactness of the stellar configuration M/R will depend on the parameter n which was not the case in the model previously developed by Sharma and Ratanpal (2013).

4 Bounds on the model parameters

For a physically acceptable stellar model, the following conditions should be satisfied:

  1. (i)

    ρ(r)≥0, p r (r)≥0, p (r)≥0;

  2. (ii)

    ρ(r)−p r (r)−2p (r)≥0;

  3. (iii)

    \(\frac{d\rho(r)}{dr} < 0\), \(\frac{dp_{r} (r)}{dr} < 0\), \(\frac{dp_{\perp} (r)}{dr} < 0 \);

  4. (iv)

    \(0 \leq\frac{dp_{r}}{d\rho} \leq1 \), \(0 \leq\frac{dp_{\perp}}{d\rho} \leq1 \).

Due to mathematical complexity, it is difficult to show analytically that our model complies with all the above mentioned conditions. However, by adopting numerical procedures, we have shown that for a specified bound all the above requirements can be fulfilled in this model.

Now, to get an estimate on the bounds of the model parameters, we note that p r p ≥0 at r=R if we have

$$ p_0 \leq\frac{(2^n - 1)(2^n - 1 + n)}{2}. $$
(25)

The strong energy condition ρp r −2p ≥0 at r=R puts a further constraint on the parameter p 0 given by

$$ p_0 \geq\frac{3(1-n)}{2} + \bigl(n - 4 + 2^n \bigr)2^{n-1}. $$
(26)

The condition \(\frac{dp_{\perp}}{dr}\mid_{r = R} < 0 \) imposes the following constraint on p 0

$$ p_0 > \frac{ (n^2 - 2 (2^n-1 )^2+2^n n (2^n-1 ) )}{ (2 - 3n + 2^{n+1} )}. $$
(27)

The requirement \(\frac{dp_{\perp}}{d\rho}\mid_{r = R} < 1 \) puts the following bound

$$ p_0 < 2^{n + 1} + n^2 - 2. $$
(28)

Similarly, the conditions \(\frac{dp_{\perp}}{d\rho}\mid_{r = 0} < 1 \) and \(\frac{dp_{\perp}}{d\rho}\mid_{r = R} < 1 \), respectively puts the following constraints on p 0:

$$\begin{aligned} &{p_0 < 8 + 2n - \sqrt{64 + 22n - 9n^2}, } \end{aligned}$$
(29)
$$\begin{aligned} &{p_0 < \frac{4(2^{n+1}+n^2 - 2) - 2(2^n - 1)^2 + 2^n (2^n - 1) + n^2}{2^{n + 1} - 3n + 2}. } \end{aligned}$$
(30)

All the above constraints when put together provides an effective bound

$$ \begin{aligned}[b] & \frac{n^2 - 2 (2^n-1 )^2+2^n n (2^n-1 )}{2 - 3n + 2^{n+1}} \\ &\quad < p_0 \leq \frac{(2^n - 1)(2^n - 1 + n)}{2} \end{aligned} $$
(31)

on p 0 and n.

4.1 Stability

Though we have obtained an effective bound on p 0 and n based on requirements (i)–(iv), a more stringent bound on these parameters may be obtained by analyzing the stability of the system. To check stability, we have followed the method of Herrera (1992) which states that for a potential stable configuration we should have \({(\upsilon ^{2}_{\perp} - \upsilon^{2}_{r})}\mid_{r = 0} < 0 \). In our case, the difference between the radial speed of sound \(\upsilon^{2}_{r}\) (\(= \frac {dp_{r}}{d\rho}\)) and tangential speed of sound \(\upsilon^{2}_{\perp}\) (\(= \frac{dp_{\perp}}{d\rho}\)) evaluated at the center r=0 is obtained as

$$ \bigl(\upsilon^2_{\perp} - \upsilon^2_{r} \bigr)\mid_{r = 0} = -\frac{3 n^2+ (p_0-8 ) p_0}{10 n (n+1)}. $$
(32)

Then Herrera’s stability condition implies

$$ p_0 < 4 - \sqrt{16 - 3n^2}. $$
(33)

Similarly, \({(\upsilon^{2}_{\perp} - \upsilon^{2}_{r})}\mid_{r = R} < 0 \) yields

$$ p_0 < n^2 - 2^n {(n - 4)} + 4^n {(n - 2)} - 2. $$
(34)

Combining (31), (33) and (34), the most appropriate bound on the model parameters is finally obtained in the form

$$\begin{aligned} \frac{n^2 - 2 (2^n-1 )^2+2^n n (2^n-1 )}{2 - 3n + 2^{n+1}} < p_0 < 4 - \sqrt{16 - 3n^2}. \end{aligned}$$
(35)

It is to be noted that for a real valued upper bound on p 0 we must have \(n \leq\frac{4}{\sqrt{3}} \). In Fig. 1, we have shown the possible range of p 0 and n (shaded region) for which a physically acceptable stable stellar configuration is possible.

Fig. 1
figure 1

Bounds on the model parameters p 0 and n based on physical requirements and stability

5 Physical analysis

Having derived a physically plausible model, let us now analyze the implications of the modified Finch and Skea (1989) ansatz. Note that in our description, two of the four unknown parameters can be determined from the boundary conditions (23) and (24) provided the mass is known. Since the condition p r (R)=0 is automatically satisfied, it provides no additional information about the unknowns. Therefore, n and p 0 remain free parameters in our construction. For a chosen value of n, the parameter p 0 can be appropriately fixed from within the bound provided in (35). Thus, all the physically interesting quantities of the model can be evaluated if the mass M is supplied.

To examine the nature of physical quantities, we have considered the pulsar 4U 1820-30 whose estimated mass and radius are given by M=1.58 M and R=9.1 km, respectively Güver et al. (2010). Assuming M=1.58 M , we note that if we set the dimensionless parameter n=0.6154 and p 0=0.1211 Mev fm−3, we get exactly the same radius as estimated by Güver et al. (2010). Moreover, the compactness of the star can be made as high as ∼0.4543 for an upper limit of n∼1.38. Similarly, we have considered some other well studied pulsars like PSR J1903+327 (Freire et al. 2011), 4U 1608-52 (Rawls et al. 2011), Vela X-1 (Rawls et al. 2011), PSR J1614-2230 (Demorest et al. 2010), SAX J1808.4-3658 (Elebert et al. 2009) and Her X-1 (Abubekerov et al. 2008) and shown that the estimated masses and radii of these stars can also be obtained by making necessary adjustments in the values of n. In Table 1, we have given the appropriate values of the adjustable compactness parameter n for which one can obtain the predicted masses and radii of the stars considered here. Respective central density (ρ 0), surface density (ρ R ), central pressure (p 0) and compactness (\(u = \frac{M}{R}\)) have also been shown in the table. The difference in the values of these parameters for different choices of n has also been shown.

Table 1 Estimation of physical values based on observational data

For a particular mass M=1.58 M , we have also shown that all the physical quantities are well behaved at all interior points of the star within the specified bounds on n and p 0. In Fig. 2, we have shown the variation of density which shows that the density decreases from its maximum value at the center towards the boundary. Moreover, the central density increases if the value of n increases. In Fig. 3, radial variation of the two pressures has been shown. As expected, the radial pressure p r vanishes at the boundary; however the tangential pressure p remains finite at the boundary. As in the case of density, both pressures increase as n increases. In Fig. 4, radial variation of anisotropy has been shown which shows that anisotropy is zero at the center and is maximum at the surface. In Fig. 5, radial variations of sound speed in the radial and transverse directions have been shown which confirms that the causality condition is not violated throughout the configuration. In Fig. 6, we have plotted (ρp r −2p ) which was shown to remain positive thereby implying that the strong energy condition is not violated in this model. Though we have not assumed any explicit EOS in our model, Fig. 7 shows how the radial pressure varies against the density for different values of n.

Fig. 2
figure 2

Variation of density (ρ) against the radial parameter r

Fig. 3
figure 3

Variation of radial (p r ) and transverse (p ) pressure against the radial parameter r

Fig. 4
figure 4

Variation of anisotropy (p p r ) against r

Fig. 5
figure 5

Variation of \(\frac{dp_{r}}{d\rho} \) and \(\frac{dp_{\perp}}{d\rho} \) against the radial parameter r

Fig. 6
figure 6

(ρp r −2p ) plotted against the radial parameter r

Fig. 7
figure 7

Variation of radial pressure (p r ) against density (ρ)

6 Discussion

In this paper, we have solved the Einstein’s field equations describing a spherically symmetric anisotropic matter composition by assuming the form of one of the metric potentials of the associated space-time and also by choosing a particular radial pressure profile. The assumed form of the metric potential is a generalization of the Finch and Skea (1989) anzatz, which has so far been utilized successfully by many authors to generate solutions to the Einstein’s field equations in different astrophysical contexts. We note that a modification of the Finch and Skea (1989) ansatz for the metric potential g rr allows us to fit the theoretically obtained compactness to the observed compactness of a given star. We have shown that in the presence of such an adjustable parameter, it is possible to accommodate a large class of observed pulsars in our model. Another interesting feature of our approach is that though no a priori knowledge of the EOS is required in our set up, we have been able to show that the predicted masses and radii of the pulsars based on the exotic strange matter EOS formulated by Dey et al. (1998) and examined by Gangopadhyay et al. (2013) can also be fitted into our model.