1 Introduction

In recent era, the investigation about the existence of wormholes is an interesting and attractive topic for researchers. Flamm [1] proposed the possibility of such solutions in 1916 but after some time it was realized that his proposed solutions were not relativistically applicable. A detailed investigation about the possible solutions is given by Einstein and Rosen [2] in 1935 and introduced a particle as a bridge (also known as Einstein-Rosen Bridge) connecting asymptotic regions of a single sheet or two identical sheets. In fact, wormhole is an imaginary topology which is featured as a tube-like tunnel between different space times away from each other. Theory of general relativity (GR) predicts the presence of exotic matter which seems to formulate the structure of wormholes. Exotic matter is such type of matter which violates the null energy condition (NEC) at least near the throat of the wormhole. In literature, a lot of articles are available to understand the physics of wormholes in detail [3,4,5,6]. Wormholes can be characterized as static or non-static depending on whether the throat is a constant or a variable.

In recent years, accelerated expansion of the universe has become an interesting and thought-provoking topic for researchers [7, 8]. According to the researchers, GR is a ahead of the game in cosmology but it explains dark energy and acceleration of the universe in weak regime. Qadir et al. [9] suggested that the modification of GR may serve the scientific explanation of accelerated expansion of the universe, flatness issues and the dark energy problems in a better way. Recently, Capozziello et al. [10] and Demianski et al. [11] demonstrated that these modified theories can provide such models which have the proficiency to reflect the Hubble diagram derived from SNelve surveys. Thus, these modified theories have yield multiple directions of cosmology for researchers. A well-known theory of modified gravity i.e. f(R) gravity is an extension of Einstein theory of GR. Buchdahl [13] proposed f(R) theory of gravity by varying the Einstein Hilbert action with an arbitrary function f(R). Further, Martin et al. [14] highlighted the issues associated with current cosmic acceleration. Nojiri and Odintsov [15], presented some f(R) models which included higher order curvature invariants as function of Ricci scalar R. Harko et al. [16] proposed a generalization of f(R) modified theories of gravity with an arbitrary coupling between matter and geometry. Rahaman and collaborators [17] explored exact solutions for noncommutative wormholes in f(R) gravity in which matter possessed with Lorentzian Distribution. Harko et al. [18] shown some results for wormholes in f(R) modification. Pavlovic and Sossich [19] discussed wormholes for different f(R) models and found solutions which do not demand exotic matter. Bahamonde et al. [20] used the approximation of small wormholes and formulated a non-static wormhole asymptotically approaching towards the Friedmann–Lemaître–Robertson–Walker universe. Zubair et al. [21] used three different types of equation of state to discuss wormhole solutions in \(f(R, \phi )\) gravity.

Bronnikov and Starobinsky [22] discussed that in general no wormhole can be formed if scalar function \(f(\phi )\) is positive every where in scalar-tensor models of dark energy (commonly known as non-existence theorem). Further, Bronnikov et al. [23] demonstrated the wormhole existence in the context of scalar-tensor and f(R) gravity. It was concluded that non-existence theorem could be violated when \(f(\phi )\) or equivalently \(\frac{df}{dR}=F(R)\) is negative.

Morris and Thorne [24] were the first who used principles of GR to discuss the static spherically symmetric wormholes. The space-time which describes the geometry of a static wormhole is known as Morris–Thorne metric given by:

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

The metric coefficient \(\psi (r)\) represents red-shift function which amplify the gravitational red-shift with respect to the radial coordinator r and

$$\begin{aligned} \lambda (r)=-ln \left[ 1-\frac{\epsilon (r)}{r}\right] , \end{aligned}$$
(2)

where \(\epsilon (r)\) is known as shape function. To construct the wormholes, some key properties related to metric potential are listed below

  • It is assumed that the wormholes are free from event horizon. So, for the existence of traversable wormhole, the red-shift parameter \(\psi (r)\) must be finite everywhere.

  • For the required shape of wormhole throat, it is needed that the radial coordinate must not show the monotone behaviour i.e. it decrease from infinity to some minimal radius value \(r_0\) at the throat such that \(\epsilon (r_0) = r_0=r\), and then again goes to infinity.

  • l(r) is an appropriate radial distance which is related to the radial coordinate r, given by

    $$\begin{aligned} l(r)=\pm \int ^{r}_{r_0} \frac{dr}{\sqrt{1-\frac{\epsilon (r)}{r}}}, \end{aligned}$$
    (3)

    implies the condition \(1-\frac{\epsilon (r)}{r}\ge 0\).

  • For spatial geometry, space must be asymptotically flat i.e, \(\frac{\epsilon (r)}{r}\rightarrow 0\) as \(l\rightarrow \pm \infty \).

  • In wormhole geometry, at the throat \(\epsilon (r_0) = r_0=r\), the flaring out condition must be fulfilled which implies \(\frac{\epsilon (r)-r \epsilon '(r)}{\epsilon '(r)}>0\), here \(\epsilon '(r)=\frac{d\epsilon }{dr}\). Further, the condition \(\epsilon '(r)<1\) is essential for the wormhole structure.

According to the classical GR, presence of exotic matter in wormhole structure is the main cause of violation of weak energy condition (WEC) denoted as \(T_{\zeta \eta }u^{\zeta } u^{\eta }\ge 0\) for any space-like vector \(k^u\) [25]. Hochberg and Visser [6, 26] provided the generalization of results with exotic matter already reported by Morris–Thorne [24]. It was demonstrated that the wormhole throat does not obey the NEC. Raychaudhuri equation reads [27]

$$\begin{aligned} \frac{d \vartheta }{d \tau }= & {} - \frac{\vartheta ^2}{3}-R_{\zeta \eta } v^{\zeta } v^{\eta }-\sigma _{\zeta \eta } \sigma ^{\zeta \eta }-w_{\zeta \eta } w^{\zeta \eta }, \end{aligned}$$
(4)
$$\begin{aligned} \frac{d \vartheta }{d \tau }= & {} - \frac{\vartheta ^2}{2}-R_{\zeta \eta } u^{\zeta } u^{\eta }-\sigma _{\zeta \eta } \sigma ^{\zeta \eta }-w_{\zeta \eta } w^{\zeta \eta }. \end{aligned}$$
(5)

Here \(\vartheta \), \(w_{\zeta \eta }\) and \(\sigma _{\zeta \eta }\) stands for expansion, rotation and shear of the congurence associated by the vector field \(v^{\zeta }\). Now as \(\sigma ^2=\sigma _{\zeta \eta } \sigma ^{\zeta \eta }\) and for any hypersurface orthogonal congruences \(w_{\zeta \eta }\equiv 0\), due to that, the condition for attractive gravity scale down to \(R_{\zeta \eta } v^{\zeta } v^{\eta }\ge 0\). After some manipulations with GR field equations, one can rewrite the last expression in terms of energy momentum tensor as \(T_{\zeta \eta } v^{\zeta } v^{\eta }\ge 0\). The energy conditions named as NEC, weak energy conditions (WEC) are described as

$$\begin{aligned} NEC:&\rho + p_{r} \ge 0,~~ \rho +p_{t} \ge 0,\end{aligned}$$
(6)
$$\begin{aligned} WEC:&\rho \ge 0,~~ \rho + p_{r}\ge 0,~~ \rho +p_{t} \ge 0, \end{aligned}$$
(7)

respectively. For the formulation of wormhole structure the NEC must be violated due to the exotic matter. Note that the NEC is the weakest condition as compare to others.

2 f(R) gravity

In this section, we briefly explain the modified f(R) theory of gravity. f(R) gravity starts with the modified form of standard Einstein–Hilbert action defined as

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

Here \(\kappa = 8 \pi G\), for simplicity we consider \(\kappa =1\) for throughout this work. f(R) is a generic algebraic expression of the Ricci scalar R and \({\mathcal {L}}_m\) the matter of Lagrangian field. One may recover the standard Einstein–Hilbert action by replacing f(R) with R. By varying the above action with respect to the metric \(g_{\zeta \eta }\) yields the following field equations:

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

where \(\square =\nabla _\zeta \nabla ^\zeta \) with \(\nabla _\zeta \) as the covariant derivative. \(T^{(m)}_{\zeta \eta }\) is the standard matter energy-momentum tensor and F(R) is the derivative of f(R) with respect to the Ricci scalar R. As we have mentioned above, one may recover the field equation of GR from Eq. (9) by setting \(f(R)=R\). The energy-momentum tensor for anisotropic fluid is defined as :

$$\begin{aligned} {T^{\zeta }_{\eta }}^{(m)}=(\rho + p_t)u^{\zeta } u_{\eta }-p_t g^{\zeta }_{\eta }+(p_r -p_t) v^\zeta v_\eta , \end{aligned}$$
(10)

where \(u_{\zeta }\) represent the velocity four vector, with \(u^{\zeta } u_{\eta }=-v^\zeta v_\nu =1\). Here the usual energy density is denoted as \(\rho \), \(p_r\) and \(p_t\) is the radial and tangential pressure respectively. We can rewrite the above equation in the standard form of Einstein field equations as

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

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

$$\begin{aligned} \rho= & {} \frac{F \epsilon '}{r^2}, \end{aligned}$$
(12)
$$\begin{aligned} p_r= & {} \frac{-F \epsilon }{r^3} + \frac{F'(r \epsilon '-\epsilon )}{2 r^2} - F''\left( 1- \frac{\epsilon }{r}\right) , \end{aligned}$$
(13)
$$\begin{aligned} p_t= & {} \frac{-F'}{r} \left( 1- \frac{\epsilon }{r}\right) + \frac{F}{2 r^3} (\epsilon - r \epsilon '). \end{aligned}$$
(14)

Bronnikov et al. [23] discussed the stability and ghost-free scalar-tensor phantom for static traversable wormhole solutions. Further, Bronnikov et al. [23] demonstrated the wormhole existence in the context of scalar-tensor and f(R) gravity. It was concluded that non-existence theorem could be violated when \(f(\phi )\) or equivalently \(\frac{df}{dR}=F(R)\) is negative. This also implies that for \(f(\Phi ),~ F(R)~>0\), there does not exist a static wormhole that satisfy the NEC.

Due to the problematic nature of exotic matter, it is suggested to minimize the presence of exotic matter to make it appropriate for travelling [37, 40, 41]. In classical GR the wormhole geometry is supported by the presence of exotic matter that violates the NEC and WEC. Whereas, in modified theories the scenario may be different. Specifically in f(R) gravity, it is possible to find the wormhole solutions that obey the energy conditions due to its higher order curvature terms [37]. One can observe from Eqs. (12) and (13)

$$\begin{aligned} \rho + p_r \mid _{r=r_0}>0~~~ if~~~ F(r \epsilon '-\epsilon )\mid _{r=r_0} + F' (r \epsilon '-\epsilon ) \mid _{r=r_0} >0.\nonumber \\ \end{aligned}$$
(15)

In wormhole geometry, at the throat \(\epsilon (r_0) = r_0=r\), the flaring out condition \(\frac{\epsilon (r)-r \epsilon '(r)}{\epsilon '(r)}>0\) is a fundamental property. We can also take its negative as \(r \epsilon '(r)-\epsilon (r)<0\) and choose the parameters that formulate the violation of non-existence theorem \(F=\frac{df}{dR} <0\) at the throat. By imposing these conditions on \(\rho + p_r >0\), one can find the key point that if \(F' <0\) at \(r=r_0\), we get a wormhole solution that obeys the NEC at the throat in the context of logarithmic corrections. It is clear from Eq. (12) that the particular solution in the context of f(R) gravity that violates the non-existence theorem can also obey WEC if \(\epsilon '<0\).

2.1 Logarithmic-corrected \(R^2\) gravity

It is possible to develop fruitful models of inflation with the help of eminent Starobinsky model [28]. In present paper, we are using \(R^2\) Starobinsky inflation model, which may clarify both the early-time and the late-time acceleration cycles . In constant-roll inflation, use of logarithmic corrections helps to obtain observational indices which are compatible with the latest Planck data. Particularly, the constant-roll condition enlarges the space of parameters, and it helps to make it feasibly compatible with the observational constraint. Our main focus is to check the energy conditions test and violation of non-existence theorem for static spherically wormholes by using this model defined by Elizalde et al. [29]

$$\begin{aligned} f(R)=R+ \alpha R^2+ \beta R^2 Log(\beta R), \end{aligned}$$
(16)

where \(\alpha \) and \(\beta \) are constant free parameters with some appropriate dimensions. It has been demonstrated that this model may provide compatibility with the latest observational data [29]. In particular, due to fact that logarithmic corrections are induced by one-loop effects in quantum gravity, there is still much interest to inflationary phenomenology in the context of logarithmic corrected modified gravity [30, 31]. Moreover, models may become ghost-free and the cosmological solutions may correspond inflation when the model parameters \(\alpha \) and \(\beta \) are both positive. The cosmological solutions in the context of f(R) theories of gravity may justify the existence of accelerating universe when \(\beta <0\) [15]. However, with negative \(\beta \) one has to restrict with negative curvature scenarios to obtain a real logarithmic value. It has been shown that some wormholes can be described by negative curvature and such wormholes have throat sections in the form of tori and are traversable and stable in the cosmological context [32].

As mentioned in key properties that for the existence of traversable wormhole, the red-shift parameter \(\psi \) must be finite everywhere. Moreover, the conditions \(\psi =d\rightarrow 0\) as \(r\rightarrow \infty \) suggested that \(\psi \) should be asymptotically flat as well. To preserve these conditions we fix the red-shift parameter as a constant function i.e, \(\psi =d\). Now, after substituting Eqs.(3) and (16) along with assumption \(\psi =d\) in Eqs. (12)-(14), we get the following set of equations

$$\begin{aligned} \rho= & {} \frac{\epsilon '}{r^4} \left[ r^2 +4\left( \alpha + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' \right] , \end{aligned}$$
(17)
$$\begin{aligned} p_r= & {} \frac{1}{r^5 \epsilon '} \left[ -\epsilon ~\epsilon ' \left( r^2 +4\left( \alpha + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '\right) \right. \nonumber \\&+ 2\left( \alpha + \beta + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' (\epsilon - r \epsilon ') (2 \epsilon '- r \epsilon '')-4 (r - \epsilon )\nonumber \\&\times \left( 2 \left( 3 \alpha + \beta (5+ 3 \beta )+ 3 \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '^2 \right. \nonumber \\&+ r^2 \beta ~ \epsilon ''^2 + r~ \epsilon ' \left( -4\left( \alpha + \beta (2+ \beta )+ \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ''\right) \nonumber \\&+ \left. \left. r \left( \alpha + \beta + \beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] ~ \epsilon ''' \right) \right) \right] , \end{aligned}$$
(18)
$$\begin{aligned} p_t= & {} \frac{1}{2 r^5} \left[ (\epsilon - r \epsilon ') \left( r^2 + 4 \left( \alpha + \beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' \right) \right. \nonumber \\&\left. -8\left( \alpha + \beta +\beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) (r - \epsilon ) (-2 \epsilon ' + r \epsilon '' ) \right] .\nonumber \\ \end{aligned}$$
(19)

In the following work, we are interested for solutions where \(\frac{df}{dR} <0\), to get the wormhole geometry that violates the non-existence theorem. In next section, we have shown the region plots for \(\frac{df}{dR} <0\), according to the shape functions and discussed NEC and WEC.

3 Numerical solutions

In this section, our main focus is to discuss the evolution of static wormholes by using specific choices of shape functions for anisotropic fluid. Further, we discuss the numerical solutions of shape function for perfect fluid and barotropic fluid. It is worthy to mention here that we analyze \(\rho \) (\(g/cm^3\)), \(p_r\) and \(p_t\) (\(dyne/cm^2\)) units with radial coordinate r in kilometers [Km].

3.1 Anisotropic fluid

The investigation of spherically symmetric traversable wormhole spacetimes has been mostly focused in matter sources with anisotropic pressures. For anisotropic case, different researchers use various types of shape functions to discuss static wormholes. Firstly, we use the following shape function [33,34,35]

$$\begin{aligned} \epsilon (r)=(r_0)^{n+1} r^{-n}, \end{aligned}$$
(20)

where n and \(r_0\) are arbitrary constants. One can observe that for different choices of n, we can get different shape parameters. So many authors use different values for r as per requirement. For example Zubair et al. [36] investigate the static spherically symmetric wormhole evolution in detail for \(n=1/2\) in f(RT) gravity while Pavlovic and Sossich [19] use same value to discuss wormholes in f(R) theory of gravity. On the other hand, Lobo and Oliveira [37] discussed the wormhole structure in f(R) gravity for \(n=1\) and \(-1/2\). As mentioned above that for spatial geometry, space must be asymptotically flat i.e, \(\frac{\epsilon (r)}{r}\rightarrow 0\) as \(l\rightarrow \infty \). The shape function Eq. (20) fulfills this condition.

Fig. 1
figure 1

Red Region shows that \(F=\frac{df}{dR}<0\) (left side) and gray region shows \(F'>0\) (right side), for shape function \(\epsilon (r)=(r_0)^{n+1} r^{-n}\) with \(r_0=2\) Km, \(\alpha =20,~~ \beta =-0.1\) and \(0 \le n\le 2\). So, we get the violation of nonexistence theorem at the throat and \(F'>0\) provides the wormhole geometry which is filled with exotic matter at the throat

Fig. 2
figure 2

For shape function \(\epsilon (r)=(r_0)^{n+1} r^{-n}\) with \(r_0=2\) Km, \(\alpha =20,~~ \beta =-0.1\) and \(0 \le n\le 2\). Above three plots shows the behaviour of \(\rho \), \(\rho + p_r\) and \(\rho +p_t\), and below three plots are their corresponding regions. It is clear that at the throat \(\rho <0\), \(\rho + p_r <0\) and \(\rho + p_t >0\), but outside the throat \(\rho >0\), \(\rho + p_r >0\) and \(\rho + p_t <0\). It shows the presence of exotic matter in wormhole geometry

The involvement of free parameters in f(R) models has a momentous role in the question of existence of wormhole. The wormhole solution corresponding to the parameters \(\alpha =20,~~ \beta =-0.2\) and \(0 \le n\le 2\) is given in Figs. 1 and 2 . For the violation of non-existence theorem, \(\frac{df}{dR}\) must be negative. In Fig. 1, we have plotted the region for \(\frac{df}{dR} <0\) corresponding to the shape function Eq. (20) with \(r_0=2\) Km. It is clear from Fig. 1, \(\frac{df}{dR} <0\) at the throat and shows the existence of static spherically symmetric wormhole geometry. In Fig. 2, we evaluate the corresponding behaviours of \(\rho ,~~ \rho + p_r\) and \( \rho + p_t\) along with their region plots. It can be seen that the condition \(\rho + p_r\) is violated at the throat. We also observe that any combination of free parameters that violates the non-existence theorem, violates the WEC. Thus, we can say that one cannot avoid the presence of exotic matter for static spherically symmetric wormhole for shape function Eq. (20) in the context of logarithmic corrected f(R) model.

Similarly, Samanta et al. [38] introduced exponential shape function as

$$\begin{aligned} \epsilon (r)= \frac{r}{e^{(r-r_0)}}. \end{aligned}$$
(21)

They discussed its feasibility in GR and modified f(R) and f(RT) theories as well. Firstly, by using this shape function, we found the feasible region where \(\frac{df}{dR} <0\) for the parameters \(\alpha =20\) and \(-2 \le \beta \le 0\). Here we set \(r_0=2\) Km and it can be seen from Figs. 3 and 4 that \(\frac{df}{dR} <0\), \(\rho >0\), \(\rho + p_r >0\) at the throat and \(\rho + p_t >0\) near the throat. It is also observed that as we increase the value of parameter \(\alpha \), our wormhole solution avoids exotic matter (or avoid violation of WEC and NEC) and provides more appropriate solution of wormhole geometry. Due to the problematic nature of exotic matter, it is suggested to minimize the presence of exotic matter to make it appropriate for travelling [37, 40, 41]. We observe that exponential function violates the non-existence theorem and supports the wormhole formulation with less amount of exotic matter with the higher values of parameter \(\alpha \).

Recently, Godani and Samanta [39] introduced new shape function as

$$\begin{aligned} \epsilon (r)= \frac{r_0 Log[1+r]}{Log[1+r_0]}, \end{aligned}$$
(22)

where \(r_0\) is a throat radius. The red region in Fig. 5 shows that \(\frac{df}{dR} <0\) at the throat \(r_0=2\,\hbox {Km}\). Figure 6 have shown the violation of WEC and NEC at the throat which indicate that geometry of wormhole fills with exotic matter at the throat. For this analysis we set \(\alpha =-10\) and \(0 \le \beta \le 1\). Further, we found that as we decrease the value of \(\alpha \), wormhole solution has shown violation of WEC and NEC in more of the region of wormhole space and increase in \(\alpha \) provides \(df/dR >0\) i.e. there is no realistic wormhole. So, we conclude that by using \(\epsilon (r)= \frac{r_0 Log[1+r]}{Log[1+r_0]}\) with the logarithmic corrections, one can not found the static spherically symmetric wormhole solutions without exotic matter which satisfies the non-existence theorem for any combination of free parameters.

3.2 Isotropic fluid

It is clear that for isotropic fluid \(p_r = p_t\). By imposing this condition on Eqs. (18) and (19), we get

$$\begin{aligned} 0= & {} \frac{1}{2 r^5} \left[ \frac{2}{\epsilon '^2} \left( -\epsilon ~\epsilon ' \left( r^2 +4\left( \alpha + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '\right) \right. \right. \nonumber \\&+\, 2\left( \alpha + \beta + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' (\epsilon - r \epsilon ') (2 \epsilon '- r \epsilon '') \nonumber \\&-\,4 (r - \epsilon ) \left( 2 \left( 3 \alpha + \beta (5+ 3 \beta )+ 3 \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '^2 \right. \nonumber \\&+\, r^2 \beta ~ \epsilon ''^2 + r~ \epsilon ' \left( -4\left( \alpha + \beta (2+ \beta )+ \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ''\right) \nonumber \\&\left. \left. +\, r \left( \alpha + \beta + \beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] ~ \epsilon ''' \right) \right) \right) \nonumber \\&-\, \left( (\epsilon - r \epsilon ') \left( r^2 + 4 \left( \alpha + \beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' \right) \right. \nonumber \\&-\,8\left( \alpha + \beta +\beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \nonumber \\&\left. \left. (r - \epsilon ) (-2 \epsilon ' + r \epsilon '' ) \right) \right] , \end{aligned}$$
(23)

Now, we want to find shape function from this equation. It is a nonlinear differential equation and cannot be solved analytically. Thus, we find its numerical solution, shown in Fig. 7. It can be seen from Fig. 7 that our numerical shape function fulfills all the requirements and throat lies at \(r_{0}=1.2\) Km as evident from the magnified view of second plot in Fig. 7. Subsequently, we observe that our wormhole solution respects WEC for throughout the wormhole geometry. It means the entire wormhole geometry is sustained on ordinary matter. Our observation shows that \(df/dR >0 \) (first plot in Fig. 7), which means our solution represents non-asymptotically flat wormhole geometry in case of isotropic pressure with logarithmic correction. As shown in third plot of Fig. 7, the rapid increase of pressure and density away from the throat and very large values of density \(~10^{145} g/cm^3\) (which extremely exceed the Planck density) indicates that in this case the wormhole configuration will be at least unstable. In fact, it has been shown that in some situations no realistic wormholes can be formed, for example while studying viable scalar-tensor models of dark energy [22]. Moreover, some studies show that wormhole configurations may be unstable under non-static monopole (spherically symmetric) perturbations [42,43,44].

Fig. 3
figure 3

Region plot \(F=\frac{df}{dR}<0\), for shape function \(\epsilon (r)=\frac{r}{e^{(r-r_0)}}\) with \(r_0=2\) Km, \(\alpha =20\), and \(-2 \le \beta \le 0\). For this particular shape function we get \(F'=0\) for \(\beta <0\). So, the positivity of NEC totally depends on the \(F=\frac{df}{dR}>0\)

3.3 Barotropic equation of state

Many researchers have investigated the wormhole solutions for barotropic fluid i.e, radial pressure is a function of density. Here, we consider \(p_r= \omega \rho \), where \( \omega \) is a constant. By employing this condition on Eqs. (17) and (18), we get

$$\begin{aligned}&\frac{1}{r^5 \epsilon '} \left[ -\epsilon ~\epsilon ' \left( r^2 +4\left( \alpha + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '\right) \right. \nonumber \\&\quad +\, 2\left( \alpha + \beta + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' (\epsilon - r \epsilon ') (2 \epsilon '- r \epsilon '')\nonumber \\&\quad -4 (r - \epsilon ) \left( 2 \left( 3 \alpha + \beta (5+ 3 \beta )+ 3 \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon '^2 \right. \nonumber \\&\quad +\, r^2 \beta ~ \epsilon ''^2 + r~ \epsilon ' \left( -4\left( \alpha + \beta (2+ \beta )+ \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ''\right) \nonumber \\&\quad \left. \left. +\, r \left( \alpha + \beta + \beta ^2 + \beta Log \left[ \frac{2 \beta \epsilon '}{r^2}\right] ~ \epsilon ''' \right) \right) \right] \nonumber \\&\quad = \frac{ \omega \epsilon '}{r^4} \left[ r^2 +4\left( \alpha + \beta ^2 + \beta Log\left[ \frac{2 \beta \epsilon '}{r^2}\right] \right) \epsilon ' \right] . \end{aligned}$$
(24)

This is again a nonlinear differential equation. So, in the same manner, we apply some numerical techniques and find its numerical solution. Our presented shape function obeys all the physical requirements and we also verify the violation of non-existence theorem in neighborhood of throat which lies at \(r_0 =1.39\) Km by using parameters \(\alpha =- 1\), \(\beta =-0.01\) (see in Fig. 8, plot 1). The equation of state \(p_r / \rho = \omega \) for \(\omega < -1\) dubbed as “\({\textit{phantom energy}}\)” and contains some strange properties [45]. The presence of phantom energy causes the increase of density up to infinity in finite time [46]. In the following work, we consider \(\omega =-1.1\) and observe that energy density is negative at the throat and then goes to negative infinity outside the throat. The wormhole solution violates NEC and WEC in case of barotropic pressure (see last plot in Fig. 8) with logarithmic correction.

Fig. 4
figure 4

Exponential shape function \(\frac{r}{e^{(r-r_0)}}\) with \(r_0 =2\) Km, \(\alpha =20\), and \(-2 \le \beta \le 0\). First row shows the evaluation of \(\rho \), \(\rho + p_r\) and \(\rho +p_t\). 2nd row shows their corresponding regions, where \(\rho > 0\) \(\rho +p_r >0\) and \(\rho +p_t<0\) at the throat

Fig. 5
figure 5

Red Region shows that \(F=\frac{df}{dR}<0\) (left side) and gray region shows \(F'>0\), for shape function \(\epsilon (r)= \frac{r_0 Log[1+r]}{Log[1+r_0]}\) at the throat \(r_0=2\) Km with \(\alpha =-10\) and \(0 \le \beta \le 1\)

Fig. 6
figure 6

Exponential shape function \(\epsilon (r)= \frac{r_0 Log[1+r]}{Log[1+r_0]}\) with \(r_0 =2\) Km, \(\alpha =-10\), and \(0 \le \beta \le 1\). First row shows the evaluation of \(\rho \), \(\rho + p_r\) and \(\rho +p_t\). 2nd row shows the feasible regions, where \(\rho > 0\) \(\rho +p_r >0\) and \(\rho +p_t<0\) at the throat

4 Comparison and conclusion

Fig. 7
figure 7

First plot shows the behaviour of df/dR, \(\epsilon \) and \(\frac{\epsilon }{r}\) by using \(\alpha =0.00001~~ \beta =1\) for isotropic pressure. Second plot verify the position of throat at \(r_0 = 1.2\) Km and third plot shows that NEC is respected for wormhole geometry. Thus, we get wormhole solution without exotic matter for isotropic pressure

In present paper, we examine suitable shape functions for the formation of relativistic wormholes in the frame work of logarithmic corrected \(R^2\) gravity i.e., \(f(R)=R+ \alpha R^2+ \beta R^2 Log(\beta R)\). To describe the relativistic wormholes geometry, it is necessary that shape function match all the physical requirements (already discussed in Sect. 1). As for the existence of traversable wormhole, the red-shift parameter \(\psi \) must be finite everywhere. Moreover, the condition \(\psi =d\rightarrow 0\) as \(r\rightarrow \infty \) suggests that \(\psi \) should be asymptotically flat as well. To preserve these conditions, we fix the red-shift parameter as a constant function i.e, \(\psi =d\), throughout our work. For anisotropic case, different researchers use various types of shape functions to discuss static wormholes. Here, we examine wormholes for anisotropic fluid with three different shape functions by assuming appropriate combinations of parameters \(\alpha \) and \(\beta \). The main results of present study are itemized below.

Fig. 8
figure 8

First plot shows the behaviour of \(\epsilon -r\) (1st), \(1-\frac{\epsilon }{r}\) and \(\epsilon '\) by using \(\alpha =-1,~~ \beta =-0.2\) and \(\omega =-1.1\) for barotropic pressure. Second plot verify the violation of non-existence theorem and third plot shows that NEC is respected at the throat but WEC is violated at the throat

  • Firstly, we consider shape function \(\epsilon (r)=(r_0)^{n+1} r^{-n}\), where n is an arbitrary constants. The violation of non-existence theorem for parameters \(r_0=2\), \(\alpha =20,~~ \beta =-0.1\) and \(0 \le n\le 2\), have shown in Fig. 1. One can notice that \(\frac{df}{dR}\) is negative at the throat which shows the existence of wormhole geometry. Further, we evaluate the energy conditions in Fig. 2. It can be seen that \(\rho \) and \(\rho + p_r\) are negative at the throat and \(\rho + p_t\) is positive at the throat but it becomes negative outside the throat. We also observe that any combination of free parameters that violates the non-existence theorem, violates the WEC. Thus, we can say that one cannot avoid the presence of exotic matter for static spherically symmetric wormhole for shape function Eq. (20) in the context of logarithmic corrected f(R) model.

  • Secondly, we assume exponential shape function \(\epsilon (r)= \frac{r}{e^{(r-r_0)}}\). One may notice that region plot in Fig. 3, for \(r_0 =2\), \(\alpha =20\) and \(-2 \le \beta \le 0\), provides wormhole solution with the violation of non-existence theorem. Moreover, \(\rho \) and \(\rho +p_r\) are positive at the throat. Subsequently, we observed that wormhole geometry has positive energy density in space, whereas \(\rho + p_t\) is also positive near the throat. Thus, we can say that for this particular choice of shape function, exotic matter can be avoided (or may be with less amount of exotic matter) for the construction of wormhole geometry.

  • Thirdly, we consider shape function \(\epsilon (r)= \frac{r_0 Log[1+r]}{Log[1+r_0]}\). It is clear from Fig. 6 that NEC is violated at the throat. Figure 5 shows \(df/dR <0\), which violates the condition for non-existence theorem. Further, we find that with the logarithmic corrections, one can not found the static spherically symmetric wormhole solutions without exotic matter which satisfies the non-existence theorem for any combination of free parameters for this particular shape function.

    Thus, one may conclude that for anisotropic case exponential shape function is more suitable as compare to other shape function. Exponential shape function provides traversable wormhole solutions with less amount of exotic matter in the context of logarithmic corrected \(R^2\) gravity.

  • In the same manner, we can also find the wormhole solutions which are maintained principally by matter sources with isotropic pressure i.e., \(p=p_{r}=p_{t}\). We have plot the numerical behaviour of shape function for isotropic case in Fig. 7 (first and 2nd plot) for \(\alpha =0.00001\) and \(\beta = 1\). In second plot of Fig. 7, we verify that \(\frac{df}{dR} <0\) which provides static spherically symmetric solution in f(R) gravity. Whereas, third plot in Fig. 7, shows that our solution respects WEC. Logarithmic correction provides the wormhole geometry filled with ordinary matter.

  • lastly, we also discuss wormhole solutions for barotropic fluid i.e, \(\rho = \omega p_r= \omega p\). Our presented shape function obeys all the physical requirements (see in Fig. 8, plot 1). We find that throat lies at \(r_0 =1\) by using parameters \(\alpha = -1\), \(\beta =-0.1\). The equation of state \(p_r / \rho = \omega \) for \(\omega < -1\) dubbed as “\({\textit{phantom energy}}\) and contains some strange properties [45]. The presence of phantom energy causes the increase of density up to infinity in finite time [46]. In the following work, we consider \(\omega =-1.1\) and observe that energy density is negative at the throat and then goes to positive infinity outside the throat. In Fig. (8) (middle part), we also verify the violation of non-existence theorem.

    Thus, we can say that in barotropic case, exotic matter can not be avoided in the context of logarithmic corrected \(R^2\) gravity.

Conclusively, logarithmic-corrected \(R^2\) gravity model provides very interesting results which shows that this model can be helpful to find the solutions for many other cosmic issues like dark energy, dark matter halo, formation of black holes and strange stars. As black hole mergers produces gravitational waves may further provide alluring constraints on parameters involved in modified gravity models.