A wormhole is a hypothetical object which acts like a bridge or tunnel to connect asymptotic regions of a single universe or two distinct universes. This imaginary, intuitive concept is one of the most popular and intensively studied areas of research in general relativity. The nature of wormholes studied so far can be classified as static wormholes and dynamic wormholes. Although there are wormhole solutions [1,2,3,4,5] in the literature since 1973, pioneering work related to static wormholes is due to Morris and Thorne [6]. Such a wormhole is characterized by the metric:

$$\begin{aligned} \mathrm{d}s^{2}=-e^{2\Phi (r)}\mathrm{d}t^{2}+\frac{\mathrm{d}r^{2}}{1-b(r)/r}+r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\phi ^{2})\qquad \quad \end{aligned}$$
(1)

with \(c=G=1.\) Here \(\Phi (r)\) is called the red-shift function. This red-shift function help us identify the event horizon, since \(g_{00}= -e^{2\Phi }\rightarrow 0\) on the event horizon. The function b(r) is called the shape function. It is indicative of the spatial shape of the wormhole. Normally wormhole geometries are not dictated by Einstein field equations but the red-shift and shape function (i.e. space-time metric) are chosen by hand and the Einstein field equations are used to evaluate the corresponding matter part. The matter part thus obtained satisfies the local conservation equation due to Bianchi identities and violates the NEC [7,8,9,10,11,12, 33]. However, for asymptotically flat space-time the violation of NEC is due to topological censorship [13, 14]. These wormholes are considered traversable as they can facilitate two way passage. For a wormhole to be traversable \(e^{2\Phi (r)}\) should be finite everywhere (no horizon condition). At the throat \(r=r_{0}\) the condition \(b(r_{0})=r_{0}\) holds. Since superluminal travel is possible through such a wormhole, the wormholes can be seen as hypothetical time machines [7, 15,16,17,18,19].

Generalizing the original Morris–Thorne metric (1) by inducting the scale factor a(t) gives the evolving relativistic wormholes. Evolving relativistic wormholes or rather dynamical wormholes are not very popular in literature. Hence there is only limited understanding on the topic. Various work on dynamical wormholes speculated their existence with matter satisfying WEC and DEC [20,21,22,23], while there exists other work [24, 25] speculating that matter threading the wormhole would violate NEC. Recently dynamical wormholes have been treated in terms of a two fluid system in [26, 27]. This is important from the perspective of accelerated expansion of the universe [28,29,30,31], while in [32] traversable wormholes have been considered in the context of non equilibrium thermodynamics in the presence of adiabatic particle creation.

In this work we extend the analysis of dynamic wormholes in scalar–tensor f(R) modified theories of gravity. Traversable wormholes have already been treated in modified gravity (for example in Einstein–Gauss–Bonnet gravity, in higher dimensional Lovelock theories [34,35,36,37,38], in f(R) gravity theories [39, 40, 43, 44] and in brane scenario like the Randall–Sundram brane [42]) without any exotic matter. However, such work is limited for their dynamic counterparts. Scalar–tensor f(R) gravity theory was developed by adopting a modification in the Einstein–Hilbert gravitational Lagrangean density involving an arbitrary function of the Ricci scalar R [45,46,47,48]. Essentially it is an higher order \((4{\mathrm{th}})\) gravity theory. In this context it can be stated that, since Einstein’s formulation of General Relativity several extensions of it have been introduced but with quite disparate reasons. Weil [49, 50] initiated such an attempt with the motivation of unifying electromagnetic and gravitational interaction geometrically. Also there were modifications, namely to the gravitational action in analogy to the quantum field theory in curved space-time, in order to have fundamental unification schemes and to obtain complete geometric explanation of the dark sector phenomenology [51]. f(R) gravity theory was probably one of the simplest of such an extension. It can act as natural model for inflation [52]. Also it has been shown to act as a geometrical dark energy model [53,54,55,56]. Scalar–tensor f(R) gravity theory has also been used to address the problem of dark matter and can be an alternative contributor of non-baryonic dark matter [57, 58]. More recently standard f(R) gravity theory has been used to explain the cosmic evolution since the Big Bang, starting from the early inflation to dark energy [59]. Hence f(R) gravity is an alternative framework based on general relativity that does not need any new scalar field to explain the accelerated expansion of the universe. The action in f(R) theory is given by

$$\begin{aligned} A=\frac{1}{2\kappa }\int \sqrt{-g}f(R)\mathrm{d}^{4}x+\int \mathrm{d}^{4}x\sqrt{-g}\mathcal {L}_{m}(g_{\mu \nu }\Psi ) \end{aligned}$$
(2)

where \(\kappa =8\pi G,~R\) is the usual Ricci Scalar, f(R) is an arbitrary function of R and \(\mathcal {L}_{m}\) is the matter Lagrangian density with the corresponding integral denoting matter action with metric \(g_{\mu \nu }\) coupled with collective matter field \(\Psi \). Now variations of the above action with respect to the metric coefficient gives the fourth order field equations

$$\begin{aligned} F(R)R_{\mu }^{\nu }-\frac{1}{2}f(R)\delta _{\mu }^{\nu }-\nabla _{\mu }\nabla ^{\nu }F(R)+\delta _{\mu }^{\nu }\Box F(R)=T_{\mu }^{\nu }\nonumber \\ \end{aligned}$$
(3)

where \(R_{\mu }^{\nu }\) is the Ricci tensor, \(T_{\mu }^{\nu }\) is the stress energy tensor of matter part and \(F(R)=\frac{\partial f}{\partial R}.\) Here we are interested in constructing dynamical wormholes having viable f(R) gravity solutions within the framework of standard cosmological assumptions. We use the classical reconstruction technique to obtain f(R) solutions. The reconstruction technique has been used in several contexts to get viable f(R) gravity forms mimicking the expansion history of the universe [60,61,62,63,64]. In this work we follow a method similar to that used in [41]. We assume some specific forms of the shape function and the scale factor in order to construct the f(R) gravity solutions with the prescribed matter content from the field equations. We consider the spherically symmetric inhomogeneous space-time metric given by

$$\begin{aligned} \mathrm{d}s^{2}=-\mathrm{d}t^{2}+a^{2}(t)\left[ \frac{\mathrm{d}r^{2}}{1-b(r)/r}+r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\phi ^{2})\right] . \end{aligned}$$
(4)

It is evident from the metric that the red-shift function \(\Phi (r)=constant,\) is considered, i.e. zero-tidal force wormhole solutions are considered. For a homogeneous FRW model it is now known that zero-tidal force wormholes are supported by anisotropic fluid [65]. Although there is no such general result for the inhomogeneous model considered, we still have considered these wormholes because of their mathematical tractability and simplicity. It makes them altogether interesting in order to study important properties of wormhole geometry.

Now taking trace of the field equation (3) we find (after simple algebraic manipulations)

$$\begin{aligned} G_{\mu \nu }=\frac{1}{F}T_{\mu \nu }+\frac{1}{F}[\nabla _{\mu }\nabla _{\nu }F-g_{\mu \nu }N] \end{aligned}$$
(5)

with

$$\begin{aligned} N(t,r)=\frac{1}{4}(RF+\Box F+T) \end{aligned}$$
(6)

and

$$\begin{aligned} T=T_{\mu }^{\mu }. \end{aligned}$$
(7)

Here the matter threading the wormhole is anisotropic, \(T=-\rho +p_{r}+2p_{t}\) and it satisfies the conservation equations \((T_{\mu ;\nu }^{\nu }=0)\) given by

$$\begin{aligned} \frac{\partial \rho }{\partial t}+H(3\rho +p_{r}+2p_{t})=0\end{aligned}$$
(8)
$$\begin{aligned} \frac{\partial p_{r}}{r}-\frac{2}{r}(p_{t}-p_{r})=0 \end{aligned}$$
(9)

For the metric Eq. (4) we find the explicit form of the field Eq. (5)

$$\begin{aligned} \left. \begin{array}{l} 3H^{2}+\frac{b^{'}}{a^{2}r^{2}}=\frac{\rho }{F}+\frac{\rho _{g}(r,t)}{F} \\ -(2\dot{H}+3H^{2})-\frac{b}{a^{2}r^{3}}=\frac{p_{r}}{F}+\frac{p_{rg}(r,t)}{F} \\ -(2\dot{H}+3H^{2})+\frac{b-rb^{'}}{2a^{2}r^{3}}=\frac{p_{t}}{F}+\frac{p_{tg}(r,t)}{F} \end{array} \right\} \end{aligned}$$
(10)

where an over-dot indicates differentiation w.r.t. t and prime indicates differentiation w.r.t. r. \(\rho =\rho (r,t),~p_{r}=p_{r}(r,t),~p_{t}=p_{t}(r,t)\) are respectively the energy density and thermodynamic radial and transverse pressure of the anisotropic fluid that should satisfy the conservation equations (8) and (9). Further, \(\rho _{g},~p_{rg}\) and \(p_{tg}\) are the energy density, radial and transverse pressure of a hypothetical curvature fluid, satisfying the following:

$$\begin{aligned} \left. \begin{array}{l} \rho _{g}=N+\ddot{F} , \\ p_{rg}=-N-H\dot{F}+\frac{r-b}{a^{2}r}F^{''}-\frac{b-rb^{'}}{2a^{2}r^{2}}F^{'} ,\\ p_{tg}=-N-H\dot{F}+\frac{r-b}{a^{2}r^{2}}F^{'}. \end{array} \right\} \end{aligned}$$
(11)

Note that the field equation (10) can be interpreted as the Einstein field equations with non-interacting two-fluids. Now the scalar curvature for the space-time metric (4) has the expression

$$\begin{aligned} R=6(\dot{H}+2H^{2})+\frac{2b^{'}}{a^{2}r^{2}} \end{aligned}$$
(12)

i.e. \(R=R(r,t).\) In order to find expressions for f(R) we shall make some specific choices for the shape function b(r), as follows: Case 1. \(b=b_{0}\left( \frac{r}{r_{0}}\right) ^{3}+d_{0}\) and \(a=a_{0}\left( \frac{t}{t_{0}}\right) ^{n}\).

Regarding this choice of b(r) and a(t) we find

$$\begin{aligned} R=R(t)=\frac{6n}{t^{2}}(2n-1)+\frac{6b_{0}}{a^{2}r_{0}^{3}} \end{aligned}$$
(13)

so that F(R) is now a function of the t co-ordinate alone, i.e. \(F(R)=\psi (t).\)

Now from the field equation (10) and the conservation equations (8) and (9) we find

$$\begin{aligned} \left. \begin{array}{l} \rho =\frac{3n^{2}}{t^{2}}\psi (t) \\ p_{r}=\frac{n}{t^{2}}(2-3n)\psi (t)-\frac{d_{0}}{a^{2}r^{3}}\psi (t)-\frac{n}{t}\dot{\psi }(t) \\ p_{t}=\frac{n}{t^{2}}(2-3n)\psi (t)+\frac{d_{0}}{2a^{2}r^{3}}\psi (t)-\frac{n}{t}\dot{\psi }(t) \end{array} \right\} \end{aligned}$$
(14)

From Eq. (11) we get

$$\begin{aligned} \left. \begin{array}{l} \rho _{g}=\frac{3b_{0}}{a^{2}r_{0}^{3}}\psi (t) \\ p_{rg}=-\frac{b_{0}}{a^{2}r_{0}^{3}}\psi (t)+\frac{n}{t}\dot{\psi }(t) \\ p_{tg}=-\frac{b_{0}}{a^{2}r_{0}^{3}}\psi (t)+\frac{n}{t}\dot{\psi }(t) \end{array} \right\} \end{aligned}$$
(15)

Correspondingly the differential equation for \(\psi \) takes the following form:

$$\begin{aligned} t^{2n}\ddot{\psi }-2nt^{2n-1}\dot{\psi }-\frac{2b_{0}t_{0}^{2n}}{a_{0}^{2}r_{0}^{3}}\psi =0. \end{aligned}$$
(16)

This has a solution of the form:

$$\begin{aligned} \psi (t)= & {} \left( \frac{2a_{0}^{2}r_{0}^{3}t_{0}^{2n}(1-n)^{2}}{b_{0}}\right) ^{\frac{2n+1}{2(n-1)}}t^{\frac{2n+1}{2}}\Gamma \nonumber \\&\times \left( \frac{4n-1}{2n-2}\right) I_{\frac{2n+1}{2n-2}}\left[ \frac{\sqrt{2b_{0}}t_{0}^{n}t^{(1-n)}}{a_{0}(1-n)r_{0}^{3/2}}\right] , \quad n\ne 1.\nonumber \\ \end{aligned}$$
(17)

\(I_{\alpha }\) being the modified Bessel’s function of the first kind.

For two specific values of n given by \(n=1/2\) and \(n=2/3\) we find the following solutions for F(R), respectively:

$$\begin{aligned} F(R)=\frac{2R_{0}}{3R_{1}^{1/2}}I_{2}\left( 2\sqrt{\frac{R_{0}}{3R_{1}^{1/2}R}}\right) \end{aligned}$$
(18)

and

$$\begin{aligned} F(R)= & {} \left( 1+\frac{12\mathcal {R}}{5}\right) \cosh \left( 2\sqrt{\frac{\mathcal {R}}{3}}\right) -\sqrt{3\mathcal {R}}\left( \frac{8\mathcal {R}}{5}+3\right) \nonumber \\&\times \;\sinh \left( 2\sqrt{\frac{\mathcal {R}}{3}}\right) . \end{aligned}$$
(19)

(It can be noted that although the above two solutions of F(R) are chosen corresponding to the cosmological periods of radiation and matter dominated epochs of a homogeneous FRW universe. However, one must keep in mind that it bears no physical significance from the perspective of the present inhomogeneous model.) Here \(R_{0}=\frac{6b_{0}}{r_{0}^{3}a_{0}^{2}},~R_{1}=\frac{1}{t_{0}^{2}}\) and \(\mathcal {R}=\left\{ \left[ \frac{4R_{1}}{R}\right] \frac{[(12R_{1}^{2}R-R_{0})^{1/2}+(12R_{1}^{2}R)^{1/2}]^{4/3}+R_{0}^{2}}{[(12R_{1}^{2}R-R_{0})^{1/2}+(12R_{1}^{2}R)^{1/2}]^{2/3}}-1\right\} ^{-1}.\)

For \(n=1\) we have the simple power law form of solution given by

$$\begin{aligned} F(R)= & {} \left( \frac{6R_{1}+R_{0}}{R_{1}R}\right) ^{3/4}\left[ C_{1}\left( \frac{6R_{1}+R_{0}}{R_{1}R}\right) ^{\frac{m_{1}}{2}}\right. \nonumber \\&\left. +\;C_{2}\left( \frac{6R_{1}+R_{0}}{R_{1}R}\right) ^{\frac{m_{2}}{2}}\right] \end{aligned}$$
(20)

with \(m_{1,2}=\pm \frac{3}{2}\sqrt{1+\frac{4R_{0}}{27R_{1}}}\).

In the above solutions we note that viable f(R) solutions involving exponential of curvature R have been explored in [66, 67] and have been successfully used to explain cosmological dynamics. Also solutions involving the negative powers of curvature may be obtained from some time-dependent compactification of string/M-theory [68], further quantum fluctuations in nearly flat space-time may also include such terms [69]. Also the negative power terms can serve as gravitational alternative to Dark Energy and produce cosmic acceleration [71, 72], while positive powers can induce early inflation. Moreover, such modified gravity theories (of the type \(R+R^{m}+\frac{1}{R^{n}}\) with m,  n positive numbers) do not suffer from instabilities as compared to the ones given by \(R+\frac{1}{R}\), which can suffer from instability. Also it is claimed that they might pass the solar system tests for scalar–tensor gravity, however more quantitative analysis is required to establish the relevance of such models in a real cosmological scenario [70].

Special Case: \(b_{0}=0\) i.e. we get \(b(r)=d_{0}\)

Substituting \(b_{0}=0\) in Eqs. (14) and (15) we get the following equation:

$$\begin{aligned} \ddot{\psi }(t)-\frac{2n}{t}\dot{\psi }(t)=0, \end{aligned}$$
(21)

which has the solution:

$$\begin{aligned} F(R)=\frac{C_{1}}{1+2n}\left( \frac{R_{2}}{R}\right) ^{\frac{2n+1}{2}}+C_{2}, \quad n\ne -\frac{1}{2}, \end{aligned}$$
(22)

where \(R_{2}=6n(2n-1).\) As is evident in this case for \(n= \frac{1}{2}\) we get \(f(R)=R\) and then the system reduces to a case of Einstein’s GR corresponding to the radiation epoch.

For \(n=-\frac{1}{2}\) we get the solution

$$\begin{aligned} F(R)=C_{1}\log \left( \sqrt{\frac{6}{R}}\right) +C_{2} . \end{aligned}$$
(23)

Thus Eqs. (22) and (23) represents the possible F(R) gravity solutions corresponding to the evolving wormhole metric having constant throat radius \(d_{0}.\)

We shall consider another special case with \(b(r)=constant\) for which we find f(R) gravity solution for some special values of \(\rho ,~p_{r}\) and \(p_{t}.\)

Case 2. \(b(r)=b_{0}\) and \(a=a_{0}\left( \frac{t}{t_{0}}\right) ^{n}\):

From the field equations we find

$$\begin{aligned} \left. \begin{array}{ll} \rho &{}=0 ,\\ p_{r}&{}=-\frac{b_{0}}{a^{2}r^{3}}\psi (t) ,\\ p_{t}&{}=\frac{b_{0}}{2a^{2}r^{3}}\psi (t), \end{array} \right\} \end{aligned}$$
(24)

which further gives the solution

$$\begin{aligned} \left. \begin{array}{ll} \rho _{g}&{}=\frac{3n^{2}}{t^{2}}\psi (t) ,\\ p_{rg}&{}=-\frac{n(3n-2)}{t^{2}}\psi (t) ,\\ p_{tg}&{}=-\frac{n(3n-2)}{t^{2}}\psi (t), \end{array} \right\} \end{aligned}$$
(25)

and \(T=T_{\mu }^{\mu }=0.\) We note that conservation equations (8) and (9) are identically satisfied. Now using (25) in (11) we get the following equation:

$$\begin{aligned} t^{2}\ddot{\psi (t)}-nt\dot{\psi (t)}-2n\psi (t)=0. \end{aligned}$$
(26)

Hence for any n we have the solution

$$\begin{aligned}&F(R) \nonumber \\&\quad = \left( \frac{R_{2}}{R}\right) ^{\frac{n+1}{4}}\left[ C_{1}\left( \frac{R_{2}}{R}\right) ^{-\frac{n_{1}}{4}}+C_{2}\left( \frac{R_{2}}{R}\right) ^{-\frac{n_{2}}{4}}\right] , \quad n>\frac{1}{2} \nonumber \\ \end{aligned}$$
(27)

with \(n_{1,2}=\mp \sqrt{n^2+10n+1}\) and \(R_{2}\) defined as before. Therefore we get the F(R) gravity solution for the above evolving wormhole with a constant throat radius \(b_{0},\) although the matter here may not be considered real.

We note that such solutions for f(R) have been previously obtained in [70,71,72]. As has already been stated such f(R) gravity models containing both positive and negative powers of the scalar curvature can in fact describe both early time inflation and late time cosmic acceleration [70, 72]. Although here one must keep in mind that such an account is purely qualitative in nature and lacks any rigorous quantitative verification.

Interestingly this case has no physical significance because matter here is exotic (a consequence of the choice of solution), although the case is important mathematically considering viable f(R) gravity solutions can exist in an otherwise unrealistic situation.

Admissibility of the obtained F(R) solutions

We shall now examine whether the present f(R) models are viable or not i.e. whether the above f(R) models are consistent with the existing experimental and observational data.

Fig. 1
figure 1

The above panels shows the variations in \(\rho \pm p_{r}\) and \(\rho \pm p_{t}\) w.r.t \(C_{1}\) corresponding to Eq. (18). Here \(C_{1}=\sqrt{\frac{R_{0}}{3R^{\frac{1}{2}}_{1}}}\) is taken such that it is constrained by f(R) viability conditions

It is commonly known that in metric formulation f(R) the gravity theory is equivalent to the scalar–tensor gravity [73,74,75,76] with coupling parameter \(\omega =0\) [75] (as in Brans–Dicke Theory). As solar system tests rule out small values of \(\omega ,\) so f(R) theory is not a realistic one. However, it is known [77,78,79] that in a strongly massive region the non-minimally coupled scalar degree of freedom can be largely suppressed due to the acquisition of excess mass. Hence it is not possible to make such a simple equivalence between the two gravity theories. Thus one should impose a set of constraints on the f(R) model to pass all of the tests. The following are the conditions that any viable f(R) models must satisfy [79,80,81,82,83].

  1. (a)

    To prevent the sign change of the effective Newton’s constant: \(G_{\mathrm{eff}}=\frac{G}{F(R)},~F(R)\) should be positive for all finite R. Also in microscopic level, it forbids the graviton to turn to ghost models [83].

  2. (b)

    The existence of a stable high-curvature regime i.e. matter dominated universe implies \(\frac{dF}{dR}>0\) for higher values of R. Quantum mechanically it ensures that scalaron models are not Tachyonic.

  3. (c)

    \(F(R)<1\) due to tight constraints from Big Bang nucleosynthesis and cosmic microwave background.

  4. (d)

    Recent galaxy formation surveys have constrained \(|F(R)-1|\) to be smaller than \(10^{-6}.\) As galaxy formation has not yet being studied in F(R) model using \(N-\)body simulation so the above statement is yet to be confirmed.

Thus, for our solutions in Eqs. (18), (20), (22), (23) and (27) the above constraints restrict the arbitrary parameters as

Sl. no.

Solution for F(R)

Parameter restrictions

1.

\(\frac{2R_{0}}{3R_{1}^{1/2}}I_{2}\left( 2\sqrt{\frac{R_{0}}{3R_{1}^{1/2}R}}\right) \)

\(\sqrt{\frac{R_{0}}{3R_{1}^{\frac{1}{2}}}}<0\)

2.

\(\hat{C}_{1}\left( \frac{1}{R}\right) ^{\alpha _{1}}+\hat{C_{2}}\left( \frac{1}{R}\right) ^{-|\alpha _{2}|}\)

\(0<\hat{C_{1}}<\mathrm{min}\left\{ \hat{C_{2}}\frac{|\alpha _{2}|}{\alpha _{1}}R^{\alpha _{1}+|\alpha _{2}|},R^{\alpha _{1}}-\hat{C_{2}}R^{\alpha _{1}+|\alpha _{2}|}\right\} \) and \(\hat{C}_{1,2}>0\)

 

\(\alpha _{1}=\frac{3+2m_{1}}{4},~\alpha _{2}=\frac{3-2m_{2}}{4}\)

 
 

\(\hat{C}_{1,2}=C_{1,2}\left( \frac{6R_{1}+R_{0}}{R_{1}}\right) ^{\alpha _{1,2}}\)

 

3.

\(\frac{C_{1}}{1+2n}\left( \frac{R_{2}}{R}\right) ^{\frac{2n+1}{2}}+C_{2},\)

\(\frac{\vert C_{1}\vert }{1+2n}\left( \frac{R_{2}}{R}\right) ^{\frac{1+2n}{2}}<C_{2}<1+\frac{\vert C_{1}\vert }{1+2n}\left( \frac{R_{2}}{R}\right) ^{\frac{1+2n}{2}}\) and \(C_{1}<0,~(1+2n)>0\)

 

\(n\ne -\frac{1}{2}\)

 

4.

\(C_{1}\log \left( \sqrt{\frac{6}{R}}\right) +C_{2}\)

\(-\frac{C_{1}}{2}\log \left( \frac{6}{R}\right)<C_{2}<1-\frac{C_{1}}{2}\log \left( \frac{6}{R}\right) \) and \(C_{1}>0\)

5.

\(C_{1}\left( \frac{R_{2}}{R}\right) ^{\beta _{1}}+C_{2}\left( \frac{R_{2}}{R}\right) ^{\beta _{2}}\)

\(0<C_{1}<\mathrm{min}\left\{ C_{2}\frac{|\beta _{2}|}{\beta _{1}}\left( \frac{R}{R_{2}}\right) ^{\beta _{1}+|\beta _{2}|},\left( \frac{R}{R_{2}}\right) ^{\beta _{1}}-C_{2}\left( \frac{R}{R_{2}}\right) ^{\beta _{1}+|\beta _{2}|}\right\} \) and \(C_{1,2}>0\)

 

\(\beta _{1,2}=\frac{(n+1)- n_{1,2}}{4}\)

 
Fig. 2
figure 2

The above panels shows the variations in \(\rho \pm p_{r}\) and \(\rho \pm p_{t}\) w.r.t changing parameters corresponding to Eq. (20). Here \(C_{1},~C_{2}\) is taken with agreement to the constraints set by f(R) viability conditions

Fig. 3
figure 3

The above panels shows the variations in \(\rho \pm p_{r}\) and \(\rho \pm p_{t}\) w.r.t changing parameters corresponding to Eq. (22). Here \(C_{1},~C_{2}\) is taken with agreement to the constraints set by f(R) viability conditions

Fig. 4
figure 4

The above panels shows the variations in \(\rho \pm p_{r}\) and \(\rho \pm p_{t}\) w.r.t changing parameters corresponding to Eq. (23). Here \(C_{1},~C_{2}\) is taken with agreement to the constraints set by f(R) viability conditions

Energy conditions

In wormhole physics one of the basic ingredients is the violation of the null energy condition. However, in the modified gravity theory the situation changes due to extra terms (curvature related in f(R) gravity) in the field equations. In Einstein gravity, the validity of null energy condition can be interpreted geometrically through the Raychaudhuri equations by the geodesic focussing theorem [84, 85] which ensures \(R_{\mu \nu }\kappa ^{\mu }\kappa ^{\nu }\ge 0,\) where \(\kappa ^{\mu }\) is a null vector tangent to the null geodesics. Thus in turn from Einstein field equations we have the null energy condition. However, in modified gravity theories, if the field equations are written as \(G_{\mu \nu }=T_{\mu \nu }^{(\mathrm{eff})}\), focusing on the congruence of null geodesics will imply that \(T_{\mu \nu }^{(\mathrm{eff})}\kappa ^{\mu }\kappa ^{\nu }\ge 0\) [86,87,88]. For the wormhole configuration in the modified gravity theory with violation of energy conditions this would imply \(T_{\mu \nu }^{(\mathrm{eff})}\kappa ^{\mu }\kappa ^{\nu }<0\). Thus in principle the condition can be supposed that \(T_{\mu \nu }^{(m)}\kappa ^{\mu }\kappa ^{\nu }\ge 0\) for normal matter threading the wormhole. In f(R) modified gravity theories we therefore infer that it is the higher order curvature term that is interpreted as the gravitational fluid sustaining the non-standard wormhole geometries. For the present wormhole geometry we have considered the energy conditions graphically, as follows:

The matter threading the wormhole has components given by (14) for case 1. We check for possible weak energy conditions (WEC) violations related to both pressures. F(R) solutions as obtained in Eqs. (18), (20), (22) and (23) are used to evaluate \(\rho -p_{r},~\rho -p_{t},~\rho +p_{r},~\rho +p_{t}\).

Figure 1 corresponding to (18) shows that null energy conditions (NEC) is in general satisfied for the range of parameters shown.

In Fig. 2 we have considered Eq. (20). Variations of NEC w.r.t. the constants \(C_{1}\) and \(C_{2}\) show that NEC is not violated for a large range of the considered parameter. Similar behavior in NEC variation is observed w.r.t parameters \(a_{0},~t_{0}\) and \(d_{0},~r_{0}\). Also there is not much variation in the values of \(\rho \pm p_{t}\) or \(\rho \pm p_{r}\) with changes in the last couple of parameters.

Figure 3 shows the variations corresponding to Eq. (22). The first panel shows the variation for different n such that \(1+2n>0\). The next two panels correspond to the specific value for \(n=\frac{1}{2}\). In this varying \(C_{1},~C_{2}\) or \(a_{0},~t_{0}\) can cause NEC violation in certain parameter ranges. Again there is not much variation in the values of \(\rho \pm p_{t}\) or \(\rho \pm p_{r}\) with changes in the parameters. One must also keep in mind that \(n=1/2\) is the limiting case \(f(R)=R\) and actually gives wormhole solution in Einstein gravity.

Figure 4 considers Eq. (23) corresponding to \(n=-\frac{1}{2}.\) Here NEC is found to be violated mostly for large ranges of parameters.

In the present work we have considered a simple inhomogeneous space-time metric. Using the usual reconstruction technique we have found viable f(R) gravity solutions. The ensuing geometry was found to physically describe dynamical wormhole solution with variable (inhomogeneous) or constant throat radius. The resulting evolving wormhole is supported by two matter components, one being homogeneous and isotropic, the other being inhomogeneous and anisotropic. The viability of the obtained f(R) solutions is examined using existing experimental and observational data. Some of the consistency conditions that are obtained for the admissibility of the f(R) solutions have been presented in a tabular form above. Finally we have examined the energy conditions graphically corresponding to the various f(R) solutions at the wormhole throat. From the figures it can be asserted that NEC in general can be obeyed by normal matter surrounding the throat in the presence of f(R) gravity. Concluding we state that dynamical wormholes can be made possible in f(R) gravity without the violations of NEC.