1 Introduction

An extensively discussed gravity theory in the literature is f(R)-gravity [1,2,3,4,5,6,7]. Theoretical and observational motivations suggest that Einstein’s gravity should be extended to or corrected at UV/IR limits. The theoretical reason is that general relativity is nonrenormalizable. In 1977, Stelle showed that quadratic curvature gravitational actions are renormalizable [8]. This discovery was followed by a surge of interest, that was boosted again later on by the discovery of the potential cosmological consequences of these theories, as found by Starobinsky and others [9]. There is also a motivation for f(R) gravity that the theory avoids Ostrogradsky instability [10]. The current observations such as Type Ia Supernovae [11, 12], and cosmic microwave background (CMB) radiation [13], revealed that the universe is undergoing accelerated expansion. f(R)-gravity is proposed to explain the accelerated expansion of the universe [14,15,16,17,18,19].

Black holes (BHs) are believed to play a central role in many astrophysical processes, ranging from the evolution of stars and galaxies to powering Active Galactic Nuclei and extreme bursts of gravitational radiation in binary BH coalescence [20]. The first BH image [21] has consolidated the evidence for their physical reality. Central to our understanding of BH physics is the uniqueness theorems [22], stating that the only stationary, regular, asymptotically flat BH solution of the vacuum Einstein gravity is the Kerr metric. The uniqueness theorem becomes invalid in modified gravity. Non-Schwarzschild black hole in spherical symmetry and non-Kerr black hole in rotating symmetry are permitted in f(R)-gravity. Some BH solutions in f(R) gravity are studied in detail in the Refs. [23,24,25,26,27,28,29]. A great deal of attention has also been paid to the issue of spherically symmetric solutions of the gravitational field equations in f(R) gravity [30,31,32]. There exists a second branch of static, spherically symmetric black holes, over and above the Schwarzschild solutions in models of the f(R) gravity [32,33,34,35]. In Ref. [36], the authors present a class of exact spherically symmetric solutions for the specific choice \(f(R)=R^{\delta +1}\).

The LIGO and Virgo Collaborations successfully discover gravitational waves from a binary black hole merger [37]. The discovery of gravitational waves has opened up a new window to explore the Universe. The proposed space-based GW observatories Taiji, TianQin, and LISA detect GWs in the low-frequency regimes \( 10^{-4}\) to \(10^{-1} \) Hz [38, 39]. These facilities are expected to detect more and more gravitational wave events in the future. The exact solution of the first gravitational wave in history was discovered by Brinkmann in 1925 [40]. The subsequent rigorous solutions of gravitational waves attract a considerable amount of attention [41].

Vaidya finds an important model for a spherically symmetric spacetime in general relativity [42],

$$\begin{aligned} ds^{2}=-\left( 1-\dfrac{2M(u)}{r}\right) du^2+2 du dr+r^{2}d\Omega _2^2. \end{aligned}$$
(1)

In [26] Vaidya-like solutions in three or four dimensions are found in [23]. We aim to derive Vaidya-like solutions in the n-dimensional f(R) gravity. In some special cases, these BH solutions yield gravitational wave solutions. Then we study the properties of n-dimensional gravitational waves. We find that gravitational waves are shear-free, and twist-free but expanding.

The paper is organized as follows. In Sect. 2, the action of f(R) gravity is introduced, and the gravitational field equations are presented [26, 43,44,45,46,47]. In Sect. 3, we obtain the black hole solution in Vaidya-like coordinates in f(R) gravity. In Sect. 4, we obtain Vaidya-like black holes and gravitational waves in arbitrary dimensions. In Sect. 5, we discuss the properties of gravitational waves. In Sect. 6, we summarise our results.

2 Field equation in n-dimensional f(R) spacetime

The action of the gravitational field in the f(R) gravity model is,

$$\begin{aligned} S=\frac{1}{16\pi G }\left( \int d^ {n}x\sqrt{-\textrm{det}(g)}~f(R)\right) +S_{m}, \end{aligned}$$
(2)

where G is the Newtonian constant, n is the dimension, g is the metric tensor, R is Ricci scalar, and f(R) is an arbitrary function of the Ricci scalar R and \(S_m\) denotes matter action. The corresponding field equations reads,

$$\begin{aligned} f_{R}R_{\mu \nu }-\frac{1}{2}fg_{\mu \nu }-\nabla _{\mu }\nabla _{\nu }f_{R}+g_{\mu \nu }\square f_{R}=8\pi G T_{\mu \nu }, \end{aligned}$$
(3)

where\(f_R=\frac{\partial f}{\partial R}\), and \(T_{\mu \nu }\) presents the stress-energy for matter fields. For \(f(R)=R^{d+1}\), the field equation becomes,

$$\begin{aligned}{} & {} \left( d+1\right) R^{d}R_{\mu \nu }-\frac{1}{2}R^{d+1}g_{\mu \nu }-(d+1)\nabla _{\mu }\nabla _{\nu }R^{d}\nonumber \\{} & {} \quad +g_{\mu \nu }\left( d+1\right) \square R^{d}=8\pi G T_{\mu \nu }. \end{aligned}$$
(4)

We investigate weak-field limit of f(R) gravity. The Poisson equation in f(R) gravity reads [36],

$$\begin{aligned} \nabla ^2\Phi \sim \rho R^{-d}. \end{aligned}$$
(5)

The Poisson’s equation for Newtonian gravitational potential is \(\nabla ^2\Phi \sim \rho \). Compared to the Poisson’s equation, f(R) gravity leads to an extra factor of \(R^{-d}\). This can be interpreted as a variable Newtonian constant. This is reasonable since scalar-tensor theory leads to a variable Newtonian constant, and f(R) gravity is conformally equivalent to scalar tensor theory.

3 Black hole solutions in arbitrary dimensions

In the following text, we set \(8\pi G = 1\). The limit \(d\rightarrow 0\) reduces Einstein–Hilbert Lagrangian. The black hole solutions have been found in the following coordinates [26],

$$\begin{aligned} ds^2=-A(r)dt^2+\frac{1}{B(r)}dr^2+r^2d\Omega _k^2, \end{aligned}$$
(6)

where the metric fields A and B are both functions of r. Here, \(d\Omega _k^2=h_{ij}(x)dx^{i}dx^{j}\) is the \(n-2\)-dimensional metric with constant curvature.

In this section, we re-explore the BH solutions in the n-dimensional f(R) gravity in Vaidya-like coordinates. The Vaidya solution [48] is important since it encodes some essential properties of the dynamical spherically symmetric spacetimes while remaining simple enough to handle. In the n-dimensional spacetime with a maximally symmetric (n-2)-subspace, exact generalized Vaidya and Vaidya-like solutions are considered in the context of f(R) gravity. We transform the coordinate (6)\((t,r,x^i)\) to \((u,r,x^i)\), where \(u=t-r_{*}\), \(r_{*}=\int \dfrac{dr}{\sqrt{AB}}\) [49]. The metric ansatz reads,

$$\begin{aligned} ds^{2}=-A(r)du^2-2\sqrt{{A(r)}/{B(r)}} du dr+r^{2}h _{ij}dx^{i}dx^{j}, \nonumber \\ \end{aligned}$$
(7)

where \(r^2h_{ij}dx^idx^j\) stand for the metrics of \(n-2\)-dimensional manifold with constant curvature.

The expression for \(h_{ij}dx^idx^j=d\Omega _k^2\) is given by,

$$\begin{aligned} d\Omega _k^2=\left\{ \begin{array}{lr} d\theta _1^2+\sum \limits _{i=2}^{n-2}\prod \limits _{j=1}^{i-1}\sin ^2 \theta _j d\theta _i^2 &{} k=1~, \\ d\theta _1^2+\sum \limits _{i=2}^{n-2}\prod \limits _{j=1}^{i-1}\sinh ^2 \theta _j d\theta _i^2 &{}\qquad k=-1~, \\ \sum \limits _{i=1}^{n-2}d\theta _i^2 &{} k=0~. \\ \end{array} \right. \end{aligned}$$
(8)

There are three types of horizons, elliptic horizons with \(k = 1\), flat horizons with \(k = 0\), and hyperbolic horizons with \(k =-1\). The metric function \(h_{ij}\) is a function of the coordinates \(x^{i}\) only, and we shall refer to this metric as the horizon metric. The horizon is denoted by \(M^{n-2}\).

From the action and considering vacuum, the equations of motion are,

$$\begin{aligned} \chi _{\mu \nu }\equiv & {} \left( d+1\right) R^{d}R_{\mu \nu }-\frac{1}{2}R^{d+1}g_{\mu \nu }-(d+1)\nabla _{\mu }\nabla _{\nu }R^{d}\nonumber \\{} & {} +g_{\mu \nu }\left( d+1\right) \square R^{d}=0, \end{aligned}$$
(9)

and the corresponding components of \(\chi _{u u}\) and \(\chi _{i j}\)are

$$\begin{aligned}&(d+1) \left( A' \left( -\frac{B A'}{2 A}+\frac{B'}{2}+\frac{(n-2) B}{r}\right) +B A''\right) \nonumber \\&\quad -\frac{d (d+1) A \left( R'(r) \left( r B'+2 (n-2) B\right) +2 r B R''(r)\right) }{r R(r)}\nonumber \\&\quad -\frac{2 d \left( d^2-1\right) A B R'(r)^2}{R(r)^2}+A R(r)=0, \end{aligned}$$
(10)
$$\begin{aligned}&\frac{(d+1) r B A' \left( \frac{d r R'(r)}{R(r)}-1\right) }{A}\nonumber \\&\quad +\frac{d (d+1) r \left( R'(r) \left( r B'+2 (n-3) B\right) +2 r B R''(r)\right) }{R(r)}\nonumber \\&\quad -(d+1) r B'+\frac{2 d \left( d^2-1\right) r^2 B R'(r)^2}{R(r)^2}\nonumber \\&\quad +2 (d+1) (n-3) (k-B)-r^2 R(r)=0. \end{aligned}$$
(11)

Here a prime denotes derivative with respect r, where \( R_{ij}(h)\) is the Ricci tensor of the horizon metric,

$$\begin{aligned} R_{ij}(h)= k(n-3)h_{ij}. \end{aligned}$$
(12)

This makes it possible to construct black hole solutions with a non-spherical horizon topology.

The definition of the curvature scalar, provided from the metric, is given by

$$\begin{aligned} R&=-\frac{2 B \left( (n-2) A'+r A''\right) +r A' B'}{2 r A}+\frac{B A'^2}{2 A^2} \nonumber \\&\quad +\frac{-(n-2) r B'-(n-3) (n-2) B+{\mathcal{R}(h)}}{r^2}, \end{aligned}$$
(13)

where \(\mathcal{R}(h)\) is \(n-2\)-dimensional Ricci scalar, \(\mathcal{R}(h)= k(n-2)(n-3)\). For the moment, the non-vanishing Riemann tensor components are easy to obtain.

The Riemann tensor of \(n-2\)-dimensional maximum symmetric space is given by,

$$\begin{aligned} \mathcal{R}(h)_{ijkl}=k(h_{ik}h_{jl}-h_{il}h_{jk}). \end{aligned}$$
(14)

From the above equation, we can obtain the generalized BH solution in the n-dimensional f(R) gravity. For this case, the metric coefficients A and B from the relations (4) and (13) are obtained as,

$$\begin{aligned} A(r)= & {} r^{-\frac{4 d (2 d+1)}{2 d-n+2}} \left( C r^{\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}}+k\right) , \end{aligned}$$
(15)
$$\begin{aligned} B(r)\!=\! & {} \!-\frac{\left( (n-3) (\!-\!2 d+n\!-\!2)^2\right) \left( C r^{\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}}\!+\!k\right) }{\left( 4 d^2+4 d-n+2\right) \left( 8 d^2-4 d (n-3)+n^2\!-\!5 n\!+\!6\right) },\nonumber \\ \end{aligned}$$
(16)

where C is an integration constant. The situations of different k are in analogy to the three different spatial geometries at r = constant in the case of the topological Schwarzschild solution. In f(R) gravity, constant C is related to the mass of black hole. The solutions reduce to the Schwarzschild solutions in the limit \(d\rightarrow 0\) and \(n\rightarrow 4\), where \(C=-2m\), and m is the ADM mass of the black hole. When \(d\ne 0\), determining C is a complex problem. The constant is related to the Misner–Sharp mass through,

$$\begin{aligned} 2m=(-C)^{(1-d)/(1-2d+4d^2)}, \end{aligned}$$
(17)

where m is the Misner–Sharp mass, for detailed demonstration of this equation see [29]. The Ricci scalar vanishes when \(k=0\), while the Kretschmann scalar does not vanish. The result for the Kretschmann scalar [50] is

$$\begin{aligned}&R_{abcd}R^{abcd}\nonumber \\&\quad =\frac{(n-3)^2 (n-2) (n-1) (-2 d+n-2)^2}{(-4 d (d+1)+n-2)^2 \left( 8 d^2-4 d (n-3)\!+\!n^2\!-\!5 n\!+\!6\right) ^2}\nonumber \\&\qquad \times C^2 r^{\frac{4 (2 d+1) d}{2 d-n+2}+4 d-2 n+2}(32 d^3 (8-3 n)\nonumber \\&\qquad +4 d^2 (n (13 n-63)+76)+64 d^4\nonumber \\&\qquad -12 d (n-3) (n-2)^2+(n-3) (n-2)^3). \end{aligned}$$
(18)

Thus it still describes a curved spacetime. The apparent horizon l(r) is defined as the trapped surface, which satisfies,

$$\begin{aligned} \gamma ^{ab}\partial _{a}l\partial _{b}l=0, \end{aligned}$$
(19)

where \(\gamma \) metric is given by,

$$\begin{aligned} \gamma =-A(r)dt^2+\frac{1}{B(r)}dr^2. \end{aligned}$$
(20)

The apparent horizon dwells at

$$\begin{aligned} r_{a}=\left( -\frac{k}{C}\right) ^{\frac{2 d-n+2}{8 d^2-4 d n+12 d+n^2-5 n+6}}. \end{aligned}$$
(21)

4 Vaidya-like black holes and spherical gravitational waves in arbitrary dimensions

Inspired by the Vaidya metric, we consider a metric ansatz with the form,

$$\begin{aligned} ds^{2}= & {} -A(u,r)du^2\pm 2\sqrt{{A(u,r)}/{B(u,r)}} du dr\nonumber \\{} & {} +r^{2}h _{ij}dx^{i}dx^{j}. \end{aligned}$$
(22)

We write A and B as follows,

$$\begin{aligned} A(u, r)=r^{\frac{2 d (2 d+1)}{-d+\frac{n}{2}-1}} \left( \mathcal {G}(u) r^{\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}}+k\right) \end{aligned}$$
(23)

and

$$\begin{aligned} B(u,r)=-\frac{\left( (n\!-\!3) (\!-\!2 d\!+\!n\!-\!2)^2\right) \left( \mathcal {G}(u) r^{\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}}\!+\!k\right) }{\left( 4 d^2+4 d-n+2\right) \left( 8 d^2-4 d (n-3)+n^2-5 n+6\right) }. \end{aligned}$$
(24)

The function \(\mathcal {G}(u)\) is arbitrary smooth functions of u in the second order, where the Ricci scalar R is given by

$$\begin{aligned} R=\frac{4 d (d+1) k (n-3) (n-1)}{r^2 (4 d (d+1)-n+2)}. \end{aligned}$$
(25)

Substituting A and B into the field equation, one obtains,

$$\begin{aligned} T_{ab}=\Phi (u,r)(k)_{a}(k)_{b}, \end{aligned}$$
(26)

where,

$$\begin{aligned} k_{a}=-(du)_{a},\quad k^{a}=\sqrt{\frac{B}{A}}\left( \frac{\partial }{\partial r}\right) ^a. \end{aligned}$$
(27)

\(k_{a}\) satisfies \(k_{a}k^{a}=0\). A null matter propagating along \(k^{a}\) is described by (26). And the function \(\Phi (u,r)\) reads,

$$\begin{aligned} \Phi (u,r)=\mp \frac{ (d+1) (2 d-n+2) r^{2 d-n+2} \left( R\right) ^d}{2\sqrt{-\frac{(4 d (d+1)-n+2) \left( 8 d^2-4 d (n-3)+n^2-5 n+6\right) }{(n-3) (-2 d+n-2)^2}}}\frac{d\mathcal {G}}{du}. \end{aligned}$$
(28)

One sees that the cases \(k=\pm 1\) describes dynamical spacetime with sources (26, 28). Both the cases of ± in the metric (22) solve the field equation. Lindquist et al [42] find that \(-\frac{dm}{du}\) is exactly the total power output for the Vaidya metric. Equation (26) belongs to the following class of stress energy,

$$\begin{aligned} T_{a b}=\varphi ^{2}(k)_{a}(k)_{b}, \end{aligned}$$
(29)

where \(\varphi ^{2}\) is a positive define function on the manifold. The stress energy of a massless scalar field can be written in this form (29). So when \(\Phi (u,r)\) with the “−” sign, the equation (29) requires \(\frac{d\mathcal {G}}{du}<0\). When the case of \(\Phi (u,r)\) is taken as “−” and \(\frac{d\mathcal {G}}{du}<0\), it describes a shining star whose mass is decreasing. While “+” and \(\frac{d\mathcal {G}}{du}>0\) for an absorbing star in n-dimensional spacetime [42, 48].

The situation where \(k=0\) is particularly intriguing, as it pertains to a purely spherically symmetric gravitational wave. It is clear that gravitational waves propagate in n-dimensional spacetime. Both the Ricci scalar and \(T_{\mu \nu }\) are zero when k=0. We obtain a non-perturbative vacuum gravitational wave solution in \(R^{d+1}\) gravity without general relativity limit. The solution proves the existence of n-dimensional \(R^{d+1}\) gravitational waves. We check the Kretschmann scalar,

$$\begin{aligned}&R_{abcd}R^{abcd}\nonumber \\&\quad = \frac{(n\!-\!3)^2(n\!-\!2)(\!-\!2d\!+\!n\!-\!2)^2 r^{\frac{2(8d^2-4d(n-2)+n^2-3n+2)}{2d-n+2}}}{(4d^2+4d-n\!+\!2)^2(8d^2\!-\!4d(n\!-\!3)+n^2\!-\!5n\!+\!6)^2} \nonumber \\&\quad \times \left\{ (n-1)\mathcal {G}^2 \bigg [4d^2(13n^2-63n+76) - 32d^3(3n-8)\right. \nonumber \\&\quad \left. + 64d^4- 12d(n-3)(n-2)^2 + (n-3)(n-2)^3\bigg ] \right. \nonumber \\&\quad \left. + 4\sqrt{2}d(2d+1)(2d-n+2)\frac{d\mathcal {G}}{du}r^{\frac{(n-2)(4d-n+3)}{2d-n+2}+1}\right. \nonumber \\&\quad \left. \times \sqrt{\frac{A(u,r)}{B(u,r)}}\right\} , \end{aligned}$$
(30)

which shows that the spacetime is not flat.

The solution of GW is important. In fact, we can credibly demonstrate the GW solution in a clearly looking forward way. Now we show it in details.

Inspired by the Brinkmann GW solution, we consider a metric ansatz,

$$\begin{aligned} ds^{2}= & {} -A(u,r)du^2\pm 2\sqrt{{A(u,r)}/{B(u,r)}} du dr\nonumber \\{} & {} +r^{2}h _{ij}dx^{i}dx^{j}, \end{aligned}$$
(31)

where \({{h}_{ij}}d{{x}^{i}}d{{x}^{j}}=\sum \nolimits _{i=1}^{n-2}d\theta _i^2\). It describes a space of flat horizons of \(n-2\)-dimensional submanifold of manifold M.

The Ricci scalar provided from the metric (22) is given by

$$\begin{aligned} R(u,r)= & {} -\frac{B(n^2-5n+6)}{r^2}-\frac{(n-2)BA'}{rA}+\frac{BA'^2}{2A^2}\nonumber \\{} & {} -\frac{(n-2)B'}{r}-\frac{A'B'}{2A}-\frac{BA''}{A} \nonumber \\{} & {} +\sqrt{\frac{A}{B}}\left( -\frac{BA'\dot{A}}{A^3}+ \frac{B'\dot{B}}{AB}+\frac{B\dot{A}'}{A^2}-\frac{\dot{B}'}{A}\right) \end{aligned}$$
(32)

Then, according to the above quantities, we solve field equation (9) without source,

$$\begin{aligned} \chi _{uu}= & {} \frac{2A \left( d(d+1)R(u,r) \left( R'(u,r) \left( -rB' - 2(n-2)B \right) - 2rBR''(u,r) \right) - 2d(d^2-1)rBR'(u,r)^2 \right) }{rR(u,r)^2} \nonumber \\{} & {} \quad + 2AR(u,r) + \frac{2(d+1)A'\dot{A}}{A\sqrt{\frac{A}{B}}}-\frac{(d+1) B \left( 2 \dot{A}' \sqrt{\frac{A}{B}}+A'^2\right) }{A}+\frac{d+1}{rBR(u,r)}\left( 2drB \dot{B} R'(u,r) \sqrt{\frac{A}{B}} \right) \nonumber \\{} & {} \quad +\frac{d+1}{rB}\left( 2 B^2 \left( (n-2) A'+r A''\right) -2 r B' \dot{B} \sqrt{\frac{A}{B}}+B\left( r A' B'+2 \sqrt{\frac{A}{B}} \left( (n-2) \dot{B}+r \dot{B}'\right) \right) \right) =0, \end{aligned}$$
(33)
$$\begin{aligned} \chi _{ij}= & {} -r^2 R(u,r)-(d+1)\left( \frac{r A' B}{A}+(2(n-3)B+rB')\right) +\frac{2 d \left( d^2-1\right) r^2 B R'(u,r)^2}{R(u,r)^2}\nonumber \\{} & {} \quad +\frac{d (d+1) r}{A R(u,r)}\left( R'(u,r) \left( r A' B+A \left( r B'+2 (n-3) B\right) \right) +2 r A B R''(u,r)+2 B \dot{R}(u,r) \sqrt{\frac{A}{B}}\right) =0. \end{aligned}$$
(34)

Here a prime denotes derivative with respect r, a dot denotes derivative with respect u. From the above equation, we obtain vacuum dynamic solutions in the n-dimensional f(R) gravity,

$$\begin{aligned} A(u, r)=r^{-\frac{(n-2) (4 d-n+3)}{2 d-n+2}} \mathcal {G}(u) \end{aligned}$$
(35)

and

$$\begin{aligned} B(u, r)=-\frac{\left( (n\!-\!3) (\!-\!2 d\!+\!n\!-\!2)^2\right) \left( \mathcal {G}(u) r^{\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}}\right) }{\left( 4 d^2\!+\!4 d\!-\!n\!+\!2\right) \left( 8 d^2\!-\!4 d (n\!-\!3)\!+\!n^2\!-\!5 n\!+\!6\right) }. \end{aligned}$$
(36)

\(\mathcal {G}(u)\) is an arbitrary second-order differentiable smooth function. A(ur) and B(ur) describe arbitrary spherically symmetric gravitational wave, including the soliton. For example, when \(\mathcal {G}(u)=\sin (u)\), the solution describes ordinary gravitational wave, and when \(\mathcal {G}(u)= e^{-u^2}\), the energy is distributed in a finite space, so the solution describes soliton. We do not use any approximation in solving the field equation, so it is a non-perturbative gravitational wave solution. When \(k=0\), the GW solution (23, 24) is consistent with the GW solution (35, 36).

5 Properties of the GW

It should be emphasized that (35, 36) describes a spherically symmetric gravitational wave. This section provides a detailed analysis of the properties of gravitational waves. We consider a congruence of graviton rays analogous to a congruence of light rays. The out going wave vector is,

$$\begin{aligned} K_{a}=-(du)_{a}. \end{aligned}$$
(37)

To obtain a detailed description of the null congruence of the graviton ray, we use the formalism method to redefine (22),

$$\begin{aligned} \tau _{1}=du,\quad \, \tau _{2}=-[g_{00}du+2g_{01}dr]\frac{1}{2},\quad \, \tau _{\mu }=rdx^{i},\nonumber \\ \end{aligned}$$
(38)

where the range of values for \(\mu \) is from 3 to n. The metric for (22) can be expressed as,

$$\begin{aligned} g=-\tau _{1}\tau _{2}-\tau _{2}\tau _{1}+\sum _{\mu =3}^{n}\tau _{\mu }^{2}. \end{aligned}$$
(39)

The graviton congruence is geodesic congruence,

$$\begin{aligned} K^{a}\nabla _{a}K_{b}= 0. \end{aligned}$$
(40)

Unlike the pp-wave case, the vector field K does not satisfy Killing’s equation in this context,

$$\begin{aligned} \nabla K=\nabla _{a}K_{b}=\frac{-1}{rg_{01}} \bigg (\sum _{\mu =3}^{n}\tau _{\mu }^{2}\bigg )+\frac{-{g'}_{00}+2\dot{g}_{01}}{2g_{01}} \tau _1^2. \end{aligned}$$
(41)

Here a prime denotes derivative with respect r, and a dot for u. As the equations become lengthy, we present them directly as components of the metric in (22). To study the motion of the congruence, we explore its expansion, shear, and twist on the sectional \(n-2\)-dimensional volume. We denote the projection of a tensor on the sectional volume using a hat symbol. The expansion, shear, and twist are expressed as,

$$\begin{aligned} \hat{\theta }= & {} \hat{g}_{ab}(\nabla ^a K^b){\hat{}}=-\frac{(n-2)}{rg_{01}}, \end{aligned}$$
(42)
$$\begin{aligned} \hat{\sigma }_{ab}= & {} (\nabla _{(a} K_{b)}){\hat{}}-\frac{1}{2}\hat{\theta }\hat{g}_{ab}=0, \end{aligned}$$
(43)

and,

$$\begin{aligned} \hat{\omega }_{ab}=(\nabla _{[a} K{_b]}){\hat{}}=0. \end{aligned}$$
(44)

It can be demonstrated straightforwardly that the metric given by (22) exhibits no shearing or twisting but expansion, which is in agreement with our physical understanding of radial gravitational waves. The corresponding variation ratios are expressed by \(\hat{\theta }\). The Raychaudhuri equation [51] for the affine parameterized null congruence can be employed to describe the behavior,

$$\begin{aligned} K^a\nabla _a \hat{\theta }= & {} -\frac{1}{2}\hat{\theta }^2-\hat{\sigma }_{ab}\hat{\sigma }^{ab}+ \hat{\omega _{ab}}\hat{\omega ^{ab}}-R_{ab}K^aK^b\nonumber \\= & {} -\frac{1}{2}\frac{(n-2)^2}{r^2g^2_{01}}-\frac{(n-2)g'_{01}}{rg^3_{01}}. \end{aligned}$$
(45)

Under the condition \(k = 0\), the resulting values for \(g_{01}\) and \(\hat{\theta }\) are given by,

$$\begin{aligned}&g_{01}=-\sqrt{-\frac{\left( 4 d^2+4 d-n+2\right) \left( 8 d^2-4 d (n-3)+n^2-5 n+6\right) r^{-\frac{8 d^2-4 d (n-3)+n^2-5 n+6}{2 d-n+2}-\frac{(n-2) (4 d-n+3)}{2 d-n+2}}}{(n-3) (-2 d+n-2)^2}}, \end{aligned}$$
(46)
$$\begin{aligned}&\hat{\theta }=\frac{(n-2) r^{\frac{4 d^2+n-2}{2 d-n+2}}}{\sqrt{-\frac{\left( 4 d^2+4 d-n+2\right) \left( 8 d^2-4 d (n-3)+n^2-5 n+6\right) }{(n-3) (-2 d+n-2)^2}}}. \end{aligned}$$
(47)

The explicit calculation result of the Raychaudhuri equation is obtain,

$$\begin{aligned} K^a\nabla _a \hat{\theta }=\!-\frac{(n\!-\!3) (n\!-\!2) \left( 8 d^2\!-\!2 d (n\!-\!4)\!+\!(n\!-\!2)^2\right) (2 d\!-\!n\!+\!2) r^{\frac{2 \left( 4 d^2+n-2\right) }{2 d-n+2}}}{2 \left( 4 d^2\!+\!4 d\!-\!n\!+\!2\right) \left( 8 d^2\!-\!4 d (n\!-\!3)\!+\!n^2\!-\!5 n\!+\!6\right) }. \end{aligned}$$
(48)

Note that \(\hat{\theta }\) and \(K^a\nabla _a \hat{\theta }\) are not related to u. Based on the studies of Vaidya and Kinnersley metrics, one can interpret the parameter u as a time coordinate to some extent. One finds,

$$\begin{aligned} \lim _{d\rightarrow 0}\hat{\theta }=\frac{n-2}{r}, \end{aligned}$$
(49)

and,

$$\begin{aligned} \lim _{d\rightarrow 0}K^a\nabla _a \hat{\theta }=-\frac{(n-2)^2}{2 r^2}, \end{aligned}$$
(50)

which means that they do not vanish even in the limit \(d\rightarrow 0\), implying that \(d=0\) is a point of discontinuity. This result supports the non-perturbative nature of gravitational waves in the f(R) theory. This discontinuity can be interpreted from the field equation (3). We study \(f_R=(1+d)R^{d}\), when \(d\ne 0\),

$$\begin{aligned} \square f_{R}\sim R^{d-2}, \quad \nabla _{\mu } \nabla _{\nu } f_{R}\sim R^{d-2}. \end{aligned}$$
(51)

These two terms can be very large for a tiny R. But when \(d=0\), we directly have

$$\begin{aligned} \square f_{R}=0, \quad \nabla _{\mu } \nabla _{\nu }f_{R}=0. \end{aligned}$$
(52)

This means that these two terms can jump from very large values to zero when d runs from very small value to zero. This is the reason why the discontinuity appears.

6 Conclusion

This article is summarized as follows. We analyze vacuum solutions of f(R) theories of gravity in d-dimensional spherically symmetric spacetime. We consider here the modification to the gravitational Lagrangian \(R \rightarrow R^{1+d}\). Finding exact solutions in f(R) gravity theory is crucial but challenging because the equations of motion are very complex with higher derivative terms. We find the vaidya-like black hole sourced by null dust in f(R)-gravity in arbitrary dimensions. The black hole solutions reduce to the Schwarzschild solution in four-dimensional spacetime in the limit \(d\rightarrow 0\). We obtain exact spherical gravitational wave solutions in f(R)-gravity in arbitrary dimensions. We do not use any approximation in solving the field equation, so it is a non-perturbative gravitational wave solution. When \(k=0\), the Ricci scalar and \(T_{\mu \nu }\) are both zero, (35, 36) describes a spherically symmetric gravitational wave. We check the Kretschmann scalar show that the space is not Minkowski space. When \(k=\pm 1\), the solution describes dynamic spacetimes with sources. The case that \(\Phi (u,r)\) is taken as “−” and \(\frac{d\mathcal {G}}{du}<0\) describes a shining star, while “+” and \(\frac{d\mathcal {G}}{du}>0\) for an absorbing star in n-dimensional spacetime. We investigate the propagating properties of the wave, and find that it is shear-free, twist-free, but expanding.