1 Literature survey

Wormholes are assumptive tube-like geometrical structures connecting two widely separated asymptotically flat distant universes, or two different asymptotically flat portions of the same universe and have no horizon. The concept of a tube-like or bridge-like structure connecting two spacetimes was firstly presented by Einstein and Rosen [1]. Further, they explored the exact solution that describe the geometrical structure of the bridge. The solution presented by Einstein and Rosen is linked with the work of Flamm [2], who first time developed the isometric embedding of Schwarzschild solution. Ellis [3] introduced another term for wormholes which is known as “Drainhole”. Wheeler [4] named them as “Geons” and predicted the shape of a wormhole which offers a twofold space. Static wormhole configurations have a constant throat radius while non-static wormhole configurations have a variable throat radius. Kar [5] discussed the static wormhole and examined their properties along with examples. Kar and Sahdev [6] explored evolving Lorentzian wormholes and discussed some results for exponential and Kaluza–Klein inflation. The locally anisotropic wormhole and flux tube like solutions have been studied using the technique of anholonomic frames [7]. Dzhunushaliev et al. [8] have investigated the linear stability analysis for wormhole configurations with and without electric and/or magnetic fields. Visser et al. [9] have shown that the violation of null energy condition (NEC) can be restricted to an arbitrarily small region by an appropriate choice of the wormhole geometry. The static and spherically symmetric Lorentzian wormhole solutions are discussed within the frame work of general theory of relativity (GR) [10].

Morris–Thorne [11] were the first who gave the idea that human being can travel through wormhole tunnels. They investigated the static spherically symmetric wormholes by using the principles of GR and presented the fundamental theory for traversable wormholes. According to Morris et al. [12] investigation, for the formation of wormhole structure, the presence of exotic matter plays an important role in the context of GR. Exotic matter is a form of dark energy (having an EoS with \(\omega <-1/3\)), produces a repulsive force. Recent observations have shown that the dark energy is the main reason for the accelerated expansion of the universe. A few candidates have been proposed in the literature to presenting dark energy, like, a positive cosmological constant, Chaplygin gas, the quintessence fields etc. GR has been the most successful theory of last century. One may simply needs to add a cosmological constant or some other exotic source to explain the accelerated expansion. However, there are models which may also explain dark energy by modifying gravity. Recently, different researchers discussed wormholes geometry in different modified theories of gravity [13,14,15,16,17,18,19]. In 1970, Buchdahl [20] proposed one of the most well known and simplest modified theory of gravity i.e., f(R) gravity which can be obtained by adopting a modification in the Einstein Hilbert action with an arbitrary function of the Ricci scalar R. Following in this way, several modifications of GR have been developed by considering different approaches. The geometry of dark energy model can be depicted by f(R) gravity [21, 22]. Harko et al. [23] discussed static spherically symmetric wormholes with non-exotic matter (respected energy conditions) in the framework of f(R) gravity. Rahaman and collaborators [24, 25] developed new solutions for static wormholes in f(R) gravity and acknowledged the existence of wormhole solutions that do not require exotic matter. Bronnikov and Starobinsky [26] discussed the very well known non-existence theorem for wormhole geometry and observed that no realistic wormhole can be formulated in scalar–tensor models for a positive scalar function. Further, Bronnikov et al. [27] showed that for \(\frac{df}{dR}=F(R)<0\), the non-existence condition of wormhole could be violated in f(R) theory of gravity. Bahamonde et al. [28] discussed the existence of wormholes in galactic halos. Moreover, they described a non-static wormhole geometry that asymptotically impending towards the Friedmann Lemaître Robertson Walker universe.

One interesting topic in traversable wormhole geometry is the study of wormhole shape function (WSF) \(\epsilon (r)\) for asymptotically flat wormhole with their essential properties (see detail in Sect. 2). Recently, many authors have discussed various ansatz shape functions to describe the wormhole structure. Godani and Samanta [29] explored asymptotically flat wormhole with WSF \(\epsilon (r)=\frac{r_0 Log(r+1)}{Log(r_0 +1)}\). Jahromi and Moradpour [30] introduced a WSF \(\epsilon (r)= a ~tanhr\). The WSF \(\epsilon (r)=\alpha + \beta (r)\) is proposed by Cataldo and Liempi [31]. Samanta et al. [32] defined \(\epsilon (r)= \frac{r}{e^{(r-r_0)}}\), known exponential WSF. Some authors [33,34,35] used \(\epsilon (r)=(r_0)^{n+1} r^{-n}\), for different values of n. Recently, Golchin and Mehdizadeh [36] have considered a special class in f(R) theory of gravity (\(F(R_0) = 0\) and \(\frac{df}{dR}|_{(R_0)} = 0\), where \(R_0\) is a fixed quantity) and construct a WSF.

Motivating from this, in this article, we calculate a WSF by employing the Karmarkar condition (KMc). Karmarkar [37] developed a mandatory condition for a static and spherically symmetric line element to be of class one. In recent years, different researchers have considered the KMc to discussed the configurations of spherically symmetric compact objects [38,39,40,41,42]. Kuhfittig [43] developed wormhole geometry using KMc and shown that the embedding theory may provide the basis for a complete wormhole solution. Recently, Fayyaz and Shamir [44] constructed a WSF by applying KMc and analysed that it obeys all the required conditions and exhibit the presence of exotic matter in the context of GR. To the best of our knowledge, we first time apply this shape function in modified f(R) theory of gravity. This paper is composed as follows: In Sect. 2, we construct a WSF by employing KMc and discuss the embedding diagram for wormhole geometry into three-dimensional Euclidean space. In Sect. 3, we discuss the formulation of f (R) theory of gravity. Further, we consider three different well known viable f (R) gravity models and examine the NEC and weak energy condition (WEC) via graphical representation. Conclusion is given in Sect. 4.

2 The geometry of traversable wormhole and embedding diagram

In the present work, our main focus is to develop a WSF using the KMc that describes wormhole geometry. For this purpose, we assume static spherically symmetric spacetime defined as:

$$\begin{aligned} ds^2=-e^{\chi (r)} dt^2 +e^{\eta (r)} dr^2 +r^2 d\theta ^2 +r^2\sin ^2\theta d\phi ^2. \end{aligned}$$
(1)

The non-zero Riemann curvature components corresponding to the above spacetime (1), are given below:

$$\begin{aligned}&R_{1414}=\frac{e^{\chi } (2 \chi '' + \chi '^2-\chi ' \eta ')}{4},\\&R_{1212}=\frac{r \eta '}{2},\quad R_{1334}=R_{1224} Sin^2 \theta ,\\&R_{2323}=\frac{r^2 Sin^2 \theta (e^\eta -1)}{e^\eta },\\&R_{3434}=\frac{r Sin^2 \theta \eta ' e^{\chi -\eta }}{2},\quad R_{1224}=0. \end{aligned}$$

These components satisfy the very well known Karmarkar relation

$$\begin{aligned} R_{1414}=\frac{R_{1212} R_{3434} + R_{1224} R_{1334}}{R_{2323}}, \end{aligned}$$

with \(R_{2323}\ne 0\). The form of spacetime, satisfying the KMc is known as embedding class I. By substituting the non-zero components of Riemann curvature in Karmarkar relation, we get the following differential equation:

$$\begin{aligned} \frac{\chi ' \eta '}{1-e^{\eta }}=\chi ' \eta '-2 \chi ''-\chi '^2, \end{aligned}$$

where \(e^{\eta }\ne 1\). The solution of the above differential equation is given as

$$\begin{aligned} e^{\eta }=1+ A e^{\chi } \chi '^2. \end{aligned}$$
(2)

Here, A is an integrating constant. Now, to construct the shape function, we assume Morris–Thorne metric defined as:

$$\begin{aligned} ds^2=-e^{\chi (r)} dt^2 + \frac{1}{1-\frac{\epsilon (r)}{r}} dr^2 +r^2 d\theta ^2 +r^2\sin ^2\theta d\phi ^2. \end{aligned}$$
(3)

The metric co-efficient \(\chi (r)\) is known as redshift function such that \(\chi (r)\rightarrow 0\) as \(r \rightarrow \infty \). Here, we assume the redshift function \(\chi (r)\), defined as [35, 45]

$$\begin{aligned} \chi (r)=\frac{-2 \xi }{r}, \end{aligned}$$
(4)

where \(\xi \) is an arbitrary constant. By comparing the Eqs. (1) and (3), we obtain

$$\begin{aligned} \eta (r)= Log \left[ \frac{r}{r-\epsilon (r)}\right] . \end{aligned}$$
(5)

Here, \(\epsilon (r)\) is a WSF. Now, by using Eqs. (2), (4) and (5), we calculate the following WSF

$$\begin{aligned} \epsilon (r)=r- \frac{r^5}{r^4 + 4 \xi ^2 A e^{\frac{-2 \xi }{r}}}. \end{aligned}$$
(6)

According to Morris and Thorne [11], to get a traversable wormhole solution, shape function should satisfy the following essential properties:

  1. 1.

    \(\epsilon (r) - r = 0\) at \(r=r_0\),

  2. 2.

    The condition \(\frac{\epsilon (r)-r \epsilon '(r)}{\epsilon '(r)}>0\) must be fulfilled at \(r=r_0\),

  3. 3.

    \(\epsilon '(r)<1\),

  4. 4.

    \(\frac{\epsilon (r)}{r} \rightarrow 0\) at \(r\rightarrow \infty \),

where \(r_0\) is known as a wormhole throat radius and r is the radial coordinate such that \(r_0 \le r \le \infty \). When we evaluate Eq. (6) at the throat i.e., \(\epsilon (r_0)-r_0=0\), we get a trivial solution \(r_0 =0\). To handle this problem we add a free parameter “C” in Eq. (6). Now, Eq. (6) takes the form \(\epsilon (r)=r- \frac{r^5}{r^4 + 4 \xi ^2 A e^{\frac{-2 \xi }{r}}}+C\). Condition (1) provides \(A= \frac{r_{0}^{4}(r_0-C)}{4 \xi ^2 e^{\frac{-2\xi ^2}{r_0}}}\). After substituting the value of A in Eq. (6), one can find the expression for WSF \(\epsilon (r)\) as

$$\begin{aligned} \epsilon (r)=r- \frac{r^5}{r^4 + r_{0}^4 (r_0 -C)}+C,\quad 0<C<r_0. \end{aligned}$$
(7)

Conditions (2) and (3) also satisfy for the given range of C. Applying condition (4) on Eq. (7), we found that

$$\begin{aligned} \lim _{r \rightarrow \infty } \frac{\epsilon (r)}{r}=0. \end{aligned}$$
(8)
Fig. 1
figure 1

Evaluation of wormhole shape function \(\epsilon (r)\) (1st plot) and its required conditions \(\epsilon (r ) -r = 0\) at \(r=r_0\) (2nd plot), \(\frac{\epsilon (r)}{r} \rightarrow 0\) for \(r\rightarrow \infty \) (3rd plot) for \(r_0=2\) and \(C= 1.9\) to present the realistic wormhole geometry

Fig. 2
figure 2

Condition \(\frac{\epsilon (r)-r \epsilon '(r)}{\epsilon '(r)}>0\) (1st plot) and \(\epsilon '(r)<1\) (2nd plot), for \(r_0=2\) and \(C= 1.9\)

Fig. 3
figure 3

Plot of embedding diagram for upper universe \(h(r)>0\) with respect to radial coordinate with slice \(t = const\) and \(\theta = \pi /2\). For a full visualization of the wormhole surface, took a \(2\pi \) rotation around the h-axis

Fig. 4
figure 4

Plot of embedding diagram for lower universe \(h(r)<0\) with respect to radial coordinate with slice \(t = const\) and \(\theta = \pi /2\). For a full visualization of the wormhole surface, took a \(2\pi \) rotation around the h-axis

Thus Eq. (7) provides asymptotically flat traversable wormholes. We have plotted all the mentioned conditions in Figs. 1 and 2. It can be clearly seen from these figures that our proposed WSF fulfils all the required conditions. To represent the wormhole geometry, we used embedding diagram and excerpt some fruitful information. The spherical symmetry allows us to take an equatorial slice \(\theta = \frac{\pi }{2}\) with a rigorous part of time \(t=const\). Using these assumptions in Eq. (3), we get

$$\begin{aligned} ds^2=\frac{1}{1-\frac{\epsilon (r)}{r}} dr^2+r^2 d\phi ^2. \end{aligned}$$
(9)

To visualize this part, embedded Eq. (9) into three-dimensional Euclidean space with cylindrical coordinates (\(r,~h,~\phi \)), given by

$$\begin{aligned} ds^2= dr^2 + dh^2 +r^2 d\phi ^2. \end{aligned}$$
(10)

The embedded surface \(h\equiv h(r)\) in three-dimensional space with axially symmetry can be written from last equation as

$$\begin{aligned} ds^2= \bigg [1+ \bigg (\frac{dh}{dr} \bigg )^2 \bigg ]dr^2 +r^2 d\phi ^2. \end{aligned}$$
(11)

By comparing Eqs. (10) and (11), one can easily find that

$$\begin{aligned} \frac{dh}{dr}=\pm \bigg ( \frac{r}{\epsilon (r) } -1 \bigg )^{\frac{-1}{2}}. \end{aligned}$$
(12)

From Eq. (12), we investigate that at the throat the embedded surface is vertical i.e. \(\frac{dh}{dr} \rightarrow \infty \). We also examine that away from the throat the space is asymptotically flat because \(\frac{dh}{dr}\) tends to 0 as r tends to infinity. We have shown the embedded diagram in Figs. 3 and 4. Moreover, one can visualize the upper universe for \(h>0\) and the lower universe \(h<0\) in Figs. 3 and 4.

3 f(R) gravity

Our starting point for the f(R) theory of gravity is the Einstein-Hilbert action for modified f(R) gravity,

$$\begin{aligned} {\mathcal {S}} = \int \sqrt{-g}\left( \frac{1}{16\pi G}[f(R)]+{\mathcal {L}}_m\right) d^4x. \end{aligned}$$
(13)

Here, \({\mathcal {L}}_m\) stands for the matter Lagrangian field and f(R) is a function of the Ricci scalar R. One can derive the field equations by varying the above action with respect to the metric \(g_{\zeta \eta }\) as:

$$\begin{aligned}&F(R)R_{\zeta \eta }-\frac{1}{2}f(R)g_{\zeta \eta }-\nabla _\zeta \nabla _\eta F(R)\nonumber \\&\quad +g_{\zeta \eta }\square F(R)=8\pi T^{(m)}_{\zeta \eta }, \end{aligned}$$
(14)

where \(\square =\nabla _\zeta \nabla ^\zeta \) and \(\nabla _\zeta \) denotes the covariant derivative. \(T^{(m)}_{\zeta \eta }=(\rho , -p_r, -p_t, -p_t)\) represents stress energy momentum tensor, where \(\rho \), \(p_r\) and \(p_t\) are the radial and tangential pressures respectively, and \(F(R)=\frac{df}{dR}\). Now by using the trace of energy momentum tensor in above equation and after some manipulations, the above equation can also be written as

$$\begin{aligned}&G_{\zeta \eta }=R_{\zeta \eta }-\frac{1}{2}R g_{\zeta \eta }=T^{(eff)}_{\zeta \eta }=\frac{8 \pi }{F} T^{(m)}_{\zeta \eta }\nonumber \\&\quad +\frac{1}{F}\left[ \nabla _\zeta \nabla _\eta F(R){-}\left( \square F(R){+} \frac{1}{2} R F(R){-}\frac{1}{2} f(R)\right) g_{\zeta \eta }\right] .\nonumber \\ \end{aligned}$$
(15)

Now using Eq. (15) along with Eq. (1), one can find the following field equations as [28]:

$$\begin{aligned}&\rho = \frac{f}{2} - \left( 1- \frac{\epsilon }{r}\right) R'^2 f_{RRR} - \frac{f_R}{2 r^2} \nonumber \\&\quad \times \bigg [ r ( (\epsilon '-4)+ 3 \epsilon ) \chi ' -2 r (r-\epsilon ) \chi '^2 + 2 r (\epsilon -r) \chi '' \bigg ] \nonumber \\&\quad - \frac{f_{RR}}{2 r^2} \bigg [2 r (r - \epsilon ) R'' \nonumber \\&\quad - (r (\epsilon '-4) +3 \epsilon ) R' \bigg ] \end{aligned}$$
(16)
$$\begin{aligned}&p_r = \frac{-f}{2} + \frac{\epsilon f_R}{2 r^3} \bigg [2 r^2 \chi '^2 + 2 r^2 \chi '' - r \chi ' -2 \bigg ] \nonumber \\&\quad +\frac{e^{-2 \chi } f_R}{2 r^2} \bigg [e^{2 \chi } (\epsilon ' (r \chi ' +2) -2 r^2 (\chi '^2 + \chi '')) \bigg ] \nonumber \\&\quad + f_{RR} R' \left( 1-\frac{\epsilon }{r}\right) \left( \chi '+ \frac{2}{r}\right) , \end{aligned}$$
(17)
$$\begin{aligned}&p_t = \frac{-f}{2} + \frac{f_R}{2 r^3} \bigg [ \epsilon (2 r \chi ' +1) + (\epsilon ' - 2 r \chi ')r \bigg ] \nonumber \\&\quad + \frac{f_{RR}}{2 r^2} \bigg [ R' (r (2 r \chi '- \epsilon ' +2)- \epsilon (2 r \chi ' +1)) +2 r (r- \epsilon ) R'' \bigg ] \nonumber \\&\quad + f_{RRR} \left( R'^2 \left( 1- \frac{\epsilon }{r}\right) \right) . \end{aligned}$$
(18)

Here prime denotes the derivative with respect to the radial coordinate r. \(f_R,~ f_{RR},~ f_{RRR}\) are the first, second and third derivatives of f(R) with respect to the Ricci scalar R respectively. Bronnikov and Starobinsky [26] discussed the stability condition for wormhole geometry which is also free from ghosts. It is shown that no realistic wormhole can be formulated in scalar–tensor models for a positive scalar function. In the context of f(R) theory of gravity, the non-existence of wormhole could be violated if \(\frac{df}{dR}=F(R)\) is negative [27]. According to the classical GR, presence of exotic matter in wormhole structure is the main cause of violation of NEC denoted as \(\rho + p_{r} \ge 0,~~ \rho +p_{t} \ge 0\), and WEC denoted as \(\rho \ge 0,~~ \rho + p_{r}\ge 0,~~ \rho +p_{t} \ge 0\). Hochberg and Visser [46, 47] extended the results for wormhole solutions, which was earlier described by Morris–Thorne [11], with exotic matter and provided the result that wormhole throat does not respect NEC. In recent work, our main focus is to calculate the wormhole solutions that respects NEC and also violates the non-existence theorem in the context of f(R) theory of gravity. In view of this approach, we further simplify our calculation for \(\rho +p_r\) and \(\rho +p_t\). We found that to respect the NEC

$$\begin{aligned} \rho + p_r= & {} \frac{\epsilon ' r- \epsilon }{2 r^3} (f_{RR} R' r + 2 f r ), \end{aligned}$$
(19)
$$\begin{aligned} \rho +p_t= & {} f_R \frac{(\epsilon ' r+ \epsilon )}{2 r^3} - \frac{ \chi '(\epsilon ' r- \epsilon )}{2 r^2}, \end{aligned}$$
(20)

should be positive at the throat. One can notice that first part in Eq. (19) involves flaring out condition which gives \(\epsilon ' r- \epsilon <0\). Thus 2nd part must be negative for \(\rho + p_r >0\), i.e., \(f_{RR} R' r + 2 f_R <0\). Equation (20) involves term \(f_R= df/dR\), as we consider violation of non-existence theorem (i.e., \(df/dR <0\)) for spherically symmetric wormhole structure, therefore, for \(\rho + p_t >0\) the remaining term should also be negative. This examination shows the importance of flaring out condition and selection of f(R) gravity model. In next section, we discuss wormhole solutions under the influence of three different viable f(R) gravity models. It is important to mention that we use \(\xi =-1\), \(r_0=2\) and \(C=1.9\) throughout our further analysis.

3.1 The exponential gravity model

Fig. 5
figure 5

The both terms of NEC \(\rho + p_r\) (upper left) and \(\rho + p_t\) (upper right) are respected at the throat for wormhole geometry for all the considering combinations of free parameters. The first term of WEC \(\rho \) (lower left) also shows the validation at the throat. While, we get the violation of non-existence theorem when \(\mu >0\), \(R_* >0\) (lower right)

Fig. 6
figure 6

\(\rho + p_r>0\) (upper left), \(\rho + p_t>0\) (upper left) and \(\rho >0\) (lower left) for all are considering combinations of \(\lambda , R_*\) and n. Whereas, \(F<0\) for \(\lambda<0, R_* <0\) and \(n>0\)

Cognola et al. [48] introduced and investigated the exponential gravity model. This model describes the inflation of early universe and accelerated expansion of the current universe in a natural way. The exponential model is defined as

$$\begin{aligned} f(R)=R- \mu R_{*} \left[ 1-e^{\frac{-R}{R_*}}\right] , \end{aligned}$$
(21)

where \(R_*\) and \(\mu \) are arbitrary constants. In particular, we use \(\mu =1.8\), \(R_* =2\) and evaluate the graphical behaviour of \(F=\frac{df}{dR}\), \(\rho \), \(\rho + p_r\) and \(\rho + p_t\). It can be clearly seen from Fig. 5 that the existence of exotic matter can be avoided at the throat for the traversable wormhole geometry. We itemize the analysis below, in the light of exponential f(R) gravity model as:

  • For \(R_*< 0\) and \(\mu >0\), WEC is respected for throughout the wormhole geometry, whereas, \(F=df/dR >0\) i.e., there is no spherically symmetric wormhole configurations. Such solutions may be interesting for non-static or thin-shell wormholes due to its stable spherically symmetric perturbations [26].

  • For \(R_*< 0\) and \(\mu <0\), we found that \(\frac{df}{dR} <0\), whereas, violation of NEC have shown that the wormhole space is filled with exotic matter.

  • For \(R_*> 0\) and \(\mu <0\), we get the same result as for \(R_*< 0\) and \(\mu >0\).

  • For \(R_*> 0\) and \(\mu >0\), we found that the existence of exotic matter can be avoided at the throat for the traversable wormhole geometry. It can be clearly seen from Fig. 5, the term \(\rho + p_r\) is positive for \(1 \le r/r_0 <1.4\), \(\rho + p_t>0\) for \(1 \le r/r_0 <1.7\) and \(\rho >0\) for \(1 \le r/r_0 <1.3\). Therefore, NEC is respected for \(r/r_0 \in [1,1.4)\) and WEC is respected for \(r/r_0 \in [1,1.3)\).

Thus, we conclude that \(\mu =1.8 \), \(R_* =2 \) are the appropriate values to get wormhole solution which violates the non-existence theorem with the presence of negligible amount of exotic matter by using exponential f(R) gravity model with our proposed shape function.

3.2 Starobinsky f(R) gravity model

One of the most well known f(R) gravity model which is consistent with cosmological conditions and satisfies solar system and laboratory tests, proposed by Starobinsky [49], defined as

$$\begin{aligned} f(R)=R + \lambda R_* \left[ \left( 1+\frac{R^2}{R_{*}^{2}}\right) ^{-n} -1 \right] , \end{aligned}$$
(22)

where \(\lambda ,~ R_*\) and n are free parameters. Model (22) contains properties of dark energy models and is consistent with cosmological and local gravity constraints [50]. In investigation, we get the following analysis:

  • For \(n<0\),

    • if \(R_* <0\) and \(\lambda <0\), we get the non-spherically symmetric wormhole geometry with the presence of ordinary matter at the throat i.e., validation of WEC,

    • we get the same result for \(R_* <0\) and \(\lambda >0\),

    • further, we analyze that for \(R_* >0\) and \(\lambda <0\), again WEC is respected at the throat, whereas, \(f>0\).

    • for \(R_* >0\) and \(\lambda >0\), we get some interesting results. For \(\lambda \in (0,~6)\) have shown an attractive geometry which is feasible for traversable wormhole without exotic matter as \(f<0\) with the validation of WEC at the throat. Moreover, when \(\lambda >6\), we found that \(\rho + p_r >0\), \(\rho + p_t >0\) with \(\rho <0\).

  • For \(n>0\),

    • for the combinations, \(R_* <0\), \(\lambda <0\) and \(R_* >0\), \(\lambda <0\), we get the non-existence condition i.e., \(F>0\) with \(\rho + p_r >0\), \(\rho + p_t >0\) and \(\rho >0\),

    • for the combinations, \(R_* <0\), \(\lambda >0\) and \(R_* >0\), \(\lambda >0\), we found the violation of non-existence theorem \(F>0\). As, WEC is respected at the throat for both the combinations, so, the traversable wormhole inner space is filled with ordinary matter .

Thus, we can find the wormhole solutions that may have negligible amount of exotic matter. In particular, we choose \(R_*=-2,~~ \lambda =-3.5\) and \(n=2\) to show the feasible traversable wormhole structure which have an ordinary matter at the throat of the wormhole (see Fig. 6). Further, we have also shown some other combinations which are respected the WEC at the throat with non-asymptotically flat wormhole geometry by using our proposed WSF.

3.3 Tsujikawa f(R) gravity model

Fig. 7
figure 7

The both terms of NEC \(\rho + p_r\) (upper left) and \(\rho + p_t\) (upper right) are respected at the throat for wormhole geometry for all the considering combinations of free parameters. The first term of WEC \(\rho \) (lower left) also shows the validation at the throat. While, we get the violation of non-existence theorem when \(R_* <0\) and \(\mu _c >0\) (lower right)

Another viable f(R) model that we consider is known as Tsujikawa model [51] and it is defined as

$$\begin{aligned} f(R)=R- \mu _c R_* Tanh \left( \frac{R}{R_*}\right) . \end{aligned}$$
(23)

Here \(R_*\) and \(\mu _c \) are arbitrary constants. Tsujikawa [51] described that \(\mu _c \in (0.905,1)\) to sustain the viability of the model i.e., \( F=\frac{df}{dR} >0\). Whereas for the violation of non-existence theorem of static spherically symmetric wormhole \(F=\frac{df}{dR} <0\). To get that requirement we have chosen \(\mu _c\) in the neighbourhood of defined range. We assessed the geometric nature of wormhole structure through energy conditions for \(\mu _c=1.0135\) and \(R_* = -2\). We analyzed the following points during investigation:

  • For the combinations \(R_* <0\), \(\mu _c <0\) and \(R_* >0\), \(\mu _c <0\), WEC is respected for \(r/r_0 \in (1,~ \infty )\). This shows that the wormhole inner space is filled with normal matter. Whereas \(F>0\) shows the non-spherically symmetric wormhole geometry

  • For the combinations \(R_* <0\), \(\mu _c >0\) and \(R_* >0\), \(\mu _c >0\), we found that \(F<0\) and WEC is at the throat. This shows the existence of an attractive wormhole geometry whose vicinity of the throat is filled with ordinary matter.

Therefor, it can be seen from the Fig. 7, for the chosen combination of parameters, we get the violation for non-existence theorem i.e., \(F<0\). \(\rho + p_r\) and \(\rho + p_t\) both are positive at the wormhole throat therefore NEC is respected which shows the absence of exotic matter at the throat. Moreover, \(\rho >0\) also reduces the presence of exotic matter and provides stable and traversable wormhole structure.

4 Concluding remarks

In recent years, different researchers proposed WSF that are either ansatz or based on specific theory. Main purpose of this article is to construct a shape function by employing the KMc. This condition is mandatory for the spacetime of class I. Several authors extensively consider the KMc to discuss the configurations of spherically symmetric compact objects. In Sect. 2, we discuss the construction of shape function in detail. Our proposed WSF fulfils all necessary requirements and provide a viable relativistic configuration for wormhole geometry. We have shown the graphical behaviour of shape function and its properties in Figs. 1 and 2. Further, we discuss embedded diagram to represent the wormhole structure. We consider equatorial slice \(\theta =\frac{\pi }{2}\), and a fixed moment of time i.e., \(t=constant\) for spherical symmetry, and for the visualization we embed it into three dimensional Euclidean space. Moreover, one can visualize the upper universe for \(h>0\) and the lower universe \(h<0\) in Figs. 3 and 4.

Further, we investigate exact solutions for static spherically symmetric traversable wormhole geometry in the framework of f(R) gravity. For this purpose, we consider four viable f(R) gravity models named as exponential gravity model, Starobinsky gravity Model and Tsujikawa f(R) gravity model to discuss energy conditions and violation of non-existence theorem for wormhole geometry.

  • Firstly, we consider exponential gravity model which shows the possibility of static spherically symmetric traversable wormhole with violation of non-existence theorem. Figure 5 have shown that WEC is respected at the throat. Further we investigate that with the variation of \(\mu \) either we get the violation of WEC and non-traversable wormhole structure i.e., \(df/dr >0 \). Thus we conclude that \(\mu >0\), \(R_* >0\) is the appropriate combination to get wormhole solution which violates the non-existence theorem with the presence of negligible amount of exotic matter.

  • Secondly, we discuss wormhole structure using Starobinsky f(R) gravity model. We discuss different combinations of free parameters in detail and investigate that for the maximum range of free parameters, non-spherically symmetric wormhole geometry is respected the WEC at the vicinity of the throat, such solutions may be interesting for non-static or thin-shell wormholes due to its stable spherically symmetric perturbations [26].

  • Finally, we consider Tsujikawa gravity model. It can be seen from Fig. 7, for the chosen combination of parameters, we get the violation for nonexistence theorem i.e., \(F<0\). \(\rho + p_r\) and \(\rho + p_t\) both are positive at the wormhole throat therefore NEC is respected which shows the absence of exotic matter at the throat. Moreover, \(\rho >0\) for larger range of radial coordinate r which also reduce the presence of exotic matter and provides stable and traversable wormhole structure.

Thus, in comparison with Fayyaz and Shamir [44], discussed the WSF Eq. (7) in the context of GR and investigated the presence of exotic matter in the formulation of wormhole. While in the framework of f(R) theory of gravity our results respects NEC and even WEC not at the throat but the larger values of radial coordinate r. So, our proposed WSF shows the formation of wormhole geometry with negligible amount of exotic matter. In future, it would be interesting to check the stability of wormhole solution in other modified gravities for this suggested shape function. As a first step, the study of wormhole geometries using KMc in modified theories with matter coupling is under process.