1 Introduction

At the end of the last century, the discovery that our universe is accelerating the expansion as a result of supernova Type Ia observations made by two independent groups has been an important discovery in cosmology [1, 2]. It is thought that there must be some kind of energy with negative pressure as the source of this expansion. Thus, the \(\Lambda CDM\) model has been widely accepted as the standard model of cosmology. However, this model suffers from fine-tuning and coincidence problems, and in addition, the nature of dark energy cannot be fully explained [3,4,5,6]. For this reason, modified gravity theories have been extensively studied in the literature in order to create a more general theory of gravity that can solve the problems of the standard cosmological model and enable us to better understand the structure of the universe [7,8,9,10].

One of the most fundamental modifications is that based on changing the geometry of the GR, where the Ricci scalar R is replaced by the f(R) function [5, 11, 12, 14, 15]. The f(R) theory has applications to explain the cosmic acceleration in the early universe, for example, in Refs. [16,17,18,19,20]. The thermodynamics of the visible horizon [21, 22] and the curvature singularity that occurs during the stellar collapse process are also studied in f(R) gravity [23]. For the f(R) gravity, future transitions of the phantom divide line for dark energy and the variation of acceleration in the expansion are shown in Ref. [24]. Also, reconstruction of the f(R) gravity models with bounce cosmology is performed in [25].

The anisotropies in the CMB observations suggest that the universe is homogeneous but anisotropic [26]. For this reason, it is important to examine the cylindrically symmetric and plane-symmetric space-times within the framework of both GR and modified gravitational theories [27,28,29,30,31,32,33,34,35]. A recent comprehensive review has examined cylindrical systems in GR [36]. Once again, these backgrounds are very useful for studying compact objects and investigating gravitational waves [33, 37,38,39,40,41]. Also, since cylindrical symmetry has an important geometric structure, it is often used for string theory and wormhole studies [36, 42, 43]. Therefore, it is valuable to obtain analytical solutions for cylindrical and plane-symmetric space-times in GR and/or modified gravitational theories.

Modified theories are highly non linear, so symmetry method is considered to be a powerful tool for calculating the solutions of their field equations. An imperative feature of Lie theory is Noether symmetry approach. Emmy Noether in 1918 [44] determined that there is a conserved quantity for every corresponding symmetry. The importance of conserved quantity is because of laws of conservation, such as energy, momentum, angular momentum, etc., that give the conserved quantity for a given dynamical system. In the literature, there are f(R) and some modified gravitational theories solutions studied by the Noether symmetry approach for spherical symmetric space-time [45,46,47, 63,64,65,66]. Some black hole solutions investigated under f(R) theory using Noether symmetry are also available in the literature [48, 49]. In our previous work, analytical solutions were obtained for some unfamiliar EoS parameters in the GR case for cylindrically symmetric space-time [13]. In this work, we wanted to investigate the Noether symmetric general solutions for f(R) gravity with a cylindrical and plane symmetrical background. We concentrated on obtaining more inclusive general solutions for a model of type \(f(R)=R^n\) rather than doing examined under various assumptions.

The article is organized as follows. In the first section, we construct the theory of f(R) gravity with a static cylindrical symmetric and a static cylindrical symmetric background. Then, we obtained the solutions respectively in the following subsections. Finally, in the conclusion section, we summarize the findings of this study. Additionally in the appendix, first we explain the Noether symmetry approach, then give the Noether symmetry equations and vector components respectively for each cases.

2 Field equations and solutions

In this section, we consider the construction of cosmological models within the framework of the metric f(R) theory. The f(R) theory of gravity is an interesting and relatively simple alternative to the modification of the GR. There are some basic works on the metric f(R) gravity see here [14, 43, 50, 51], and for alternative theories of gravity, including a comprehensive analysis of f(R) gravity, see also [7, 11, 12, 15]. Starting from the action GR and containing the term f(R) instead of the R term and the matter term Sm, the 4-dimensional total action for the f(R) theory of gravity takes the following form:

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

where \(\kappa =8\pi G\) and \({\mathcal {L}}_m\) is Lagrangian related to matter content of any kind in the universe. f(R) is a function dependent on the scalar curvature R, while \( f(R)=R \) the theory is clearly reduced to the General Relativity [14].

2.1 Static cylindrically symmetric space-time

The static cylindrical symmetric space-time metric is as follows [52, 53].

$$\begin{aligned} ds^2=A(r)dt^2-dr^2-B(r)( d\theta ^2+\alpha ^2 dz^2), \end{aligned}$$
(2)

where A(r) and B(r) are the metric coefficients of taken depending on the radial coordinate r. For such higher-order modified theories, with the help of the Lagrangian Multiplier Method and the integration by parts method, which are used to obtain the Lagrangian, the point-like Lagrangian is derived as follows [54].

$$\begin{aligned} {\mathcal {L}}&=-\frac{\alpha f_{R}}{\sqrt{A}}A'B'-\alpha f_{RR}\frac{B}{\sqrt{A}}A'R'-\frac{\alpha f_{R}}{2B}\sqrt{A}B'^2\nonumber \\&\quad -2\alpha f_{RR}\sqrt{A}B'R'+\alpha \sqrt{A}B[f-R f_{R} -\kappa \rho _{0} A^{-\frac{1+w}{2w}}], \nonumber \\&\quad \times (w \ne 0) \end{aligned}$$
(3)

where (\('\)) denotes the derivative with respect to r and \(f_R\equiv df/dR\), \(f_{RR}\equiv d^2f/dR^2\). Also, configuration space of the (3) Lagrangian is \(Q=\{A, B, R\}\). In this study we are taking the matter Lagrangian density as \({\mathcal {L}}_m=-\rho \) for the perfect fluid. Taking the perfect-fluid equation of state of the form \(p=w \rho \) the usual conservation equation gives the matter density as \(\rho = \rho _{0} A^{-\frac{1+w}{2w}}\) for the metric (2). As it is known, the equation of state parameter takes the \(w=\frac{1}{3}\), \(w=0\) and \(w=-1\) values respectively for the radiation, matter, and cosmological constant dominate cases. Also, \(w=-\frac{1}{3}\) related to a gas of cosmic strings and \(w=1\) to stiff matter. Here, due to the restriction from Lagrange, only cases where \(w=0\) can be examined. From the variation with respect to the configuration space elements A, B and R for the Lagrangian (3), the field equations of the theory of gravity obtained are as follows:

$$\begin{aligned}&\frac{f_{R}}{4} \, \left( 2 \frac{A''}{A} +2\frac{A'B'}{AB}-\frac{A'^2}{A^2}\right) \nonumber \\&\quad -\left( f_{RR} R'\frac{B'}{B}+f_{RR}R''+f_{RRR}R'^2\right) \nonumber \\&\quad -\frac{f}{2}+\frac{1}{w}\kappa \rho _0A^{-\frac{1+w}{2w}}=0, \end{aligned}$$
(4)
$$\begin{aligned}&\quad -\frac{f_{R}}{4} \, \left( 2 \frac{A''}{A}-\frac{A'^2}{A^2}+ 4\frac{B''}{B}-2\frac{B'^2}{B^2}\right) \nonumber \\&\quad +\frac{f_{RR} R'}{2}\left( \frac{A'}{A}+2\frac{B'}{B}\right) \nonumber \\&\quad +\frac{f}{2}-\kappa \rho _0A^{-\frac{1+w}{2w}}=0, \end{aligned}$$
(5)
$$\begin{aligned}&\quad -\frac{f_{R}}{4} \, \left( 2 \frac{B''}{B}+\frac{A'B'}{AB}\right) +\frac{f_{RR} R'}{2}\left( \frac{A'}{A}+\frac{B'}{B}\right) \nonumber \\&\quad +\frac{f}{2}+f_{RR}R''+f_{RRR}R'^2-\kappa \rho _0A^{-\frac{1+w}{2w}}=0. \end{aligned}$$
(6)

These equations are fourth-order nonlinear differential equations and it is not easy to find an exact solution without making any approach. In this study, we use the Noether symmetry approach given in Appendex A to find a solution. First, it is aimed to search for Noether symmetric solutions in GR case for \(w=-1\) with \(f_0, \rho _0 >0\) condition. One can obtain the following Noether symmetries by applying the Noether symmetry conditions in the Appendix B.1.1.

$$\begin{aligned} \mathbf{X }_1= & {} \partial _r, \nonumber \\ \mathbf{X }_2= & {} e^{\ell r/2}\left[ \partial _r+\frac{\ell }{3}\left( A \partial _A+B \partial _B\right) \right] , \nonumber \\ G= & {} -\frac{\alpha f_0}{3} \sqrt{A}B \ell ^2e^{\ell r/2} ,\nonumber \\ \mathbf{X }_3= & {} e^{-\ell r/2}\left[ \partial _r-\frac{\ell }{3}\left( A \partial _A+B \partial _B\right) \right] , \nonumber \\ G= & {} -\frac{\alpha f_0}{3} \sqrt{A}B \ell ^2e^{-\ell r/2} ,\nonumber \\ \mathbf{X }_4= & {} e^{\ell r/4}\frac{\sqrt{A}}{B^{1/4}} \partial _A, \nonumber \\ G= & {} -\frac{\alpha f_0}{3} B^{3/4} \ell e^{\ell r/4} ,\nonumber \\ \mathbf{X }_5= & {} e^{-\ell r/4}\frac{\sqrt{A}}{B^{1/4}} \partial _A, \nonumber \\ G= & {} -\frac{\alpha f_0}{3} B^{3/4} \ell e^{-\ell r/4}, \nonumber \\ \mathbf{X }_6= & {} e^{\ell r/4}\left( -\frac{A}{2B^{3/4}}\partial _A+B^{1/4} \partial _B\right) , \nonumber \\ G= & {} -\frac{\alpha f_0}{2} \sqrt{A}B^{1/4} \ell e^{\ell r/4} ,\nonumber \\ \mathbf{X }_7= & {} e^{-\ell r/4}\left( -\frac{A}{2B^{3/4}}\partial _A+B^{1/4} \partial _B\right) , \nonumber \\ G= & {} -\frac{\alpha f_0}{2} \sqrt{A}B^{1/4} \ell e^{-\ell r/4} , \nonumber \\ \mathbf{X }_8= & {} 2A \partial _A-B\partial _B, \end{aligned}$$
(7)

where \(\ell =\sqrt{\frac{6\kappa \rho _0}{f_0}}\). The following Noether integrals corresponding to each Noether symmetry are determined,

$$\begin{aligned} I_1&=-E_{{\mathcal {L}}}=0, \nonumber \\ I_2&=-e^{\ell r/2}\frac{\ell }{3}\alpha f_0 \sqrt{A}B\left( \frac{A'}{A}+2\frac{B'}{B}-\ell \right) ,\nonumber \\ I_3&=e^{-\ell r/2}\frac{\ell }{3}\alpha f_0 \sqrt{A}B\left( \frac{A'}{A}+2\frac{B'}{B}+\ell \right) ,\nonumber \\ I_4&=-e^{\ell r/4}\alpha f_0 B^{3/4}\left( \frac{B'}{B}-\frac{\ell }{3}\right) ,\nonumber \\ I_5&=e^{-\ell r/4}\alpha f_0 B^{3/4}\left( \frac{B'}{B}+\frac{\ell }{3}\right) ,\nonumber \\ I_6&=-e^{\ell r/4}\alpha f_0 \sqrt{A}B^{1/4}\left( \frac{A'}{A}+\frac{B'}{2 B}-\frac{\ell }{2}\right) , \nonumber \\ I_7&=-e^{-\ell r/4}\alpha f_0 \sqrt{A}B^{1/4}\left( \frac{A'}{A}+\frac{B'}{2 B}+\frac{\ell }{2}\right) , \nonumber \\ I_8&=\alpha f_0 \sqrt{A}B\left( \frac{A'}{A}-\frac{B'}{B}\right) , \end{aligned}$$
(8)

Using the Noether integrals given above, the following relationships comes out.

$$\begin{aligned} I_2e^{-\ell r/2}+I_3e^{\ell r/2}&=\frac{2}{3}\ell ^2\alpha f_0\sqrt{A}B,\nonumber \\ I_6e^{-\ell r/4}-I_7e^{\ell r/4}&=\ell ^2\alpha f_0\sqrt{A}B^{1/4},\nonumber \\ \frac{I_4e^{-\ell r/4}-I_5e^{\ell r/4}}{\ell \alpha f_0}&=\frac{I_2e^{-\ell r/2}+I_3e^{\ell r/2}}{I_6e^{-\ell r/4}-I_7e^{\ell r/4}}, \end{aligned}$$
(9)

Then, A(r) and B(r) metric coefficients are obtained as follows.

$$\begin{aligned} A(r)&=A_0\frac{\left( I_6e^{-\ell r/4}-I_7e^{\ell r/4}\right) ^2}{\left( I_4e^{-\ell r/4}-I_5e^{\ell r/4}\right) ^{2/3}},\nonumber \\ B(r)&=B_0\left( I_4e^{-\ell r/4}-I_5e^{\ell r/4}\right) ^{4/3}, \end{aligned}$$
(10)

where \(B_0=(\frac{3}{2\ell \alpha f_0})^{4/3}\) and \(A_0=(\frac{2}{3})^{2/3}\frac{1 }{\ell ^2(\ell \alpha f_0)^{4/3}}\). Also, according to these solutions, the conditions \(\rho _0=\frac{\ell ^2f_0}{6\kappa }\) and \(I_4 I_7+I_5 I_6=0\) arise.

After the above stage, when \(w=-1\) under the \(f(R)=f_0R^n\) choosing, solutions in the with matter and non-matter cases are searched as following subsections.

2.1.1 \(f(R)=f_0R^n\),\(w=-1\), \(f_0,\rho _0 >0\) case:

Here, we have investigated solutions with the matter for the case of \(w=-1\) at higher orders gravity model than GR. The Noether symmetry equations and the components of the Noether symmetry vectors obtained for this case are given in the Appendix B.1.2–B.1.3. Then the Noether symmetries are found as follows,

$$\begin{aligned}&\mathbf{X }_1=\partial _r , \qquad \mathbf{X }_2=-2A\partial _A+B\partial _B. \end{aligned}$$
(11)

The corresponding Noether integrals for these Noether symmetries are\(I_1=-E_{{\mathcal {L}}}=0\) and

$$\begin{aligned}&I_2=\alpha n f_0\sqrt{A}BR^{n-1}\left[ \frac{B'}{B}-\frac{A'}{A}\right] , \end{aligned}$$
(12)

The following expression is obtained with the help of constant of motion \(I_2\).

$$\begin{aligned} A = A_0 B + e^{-\frac{I_2}{2n\alpha f_0} \int {\frac{dr}{\sqrt{A}BR^{(n-1)}}} }, \end{aligned}$$
(13)

where \(A_0\) is the integration constant for this case.

It is obvious that when \(n = 1\), it will be reduced to the Einstein theory. Thus, it is clearly seen that the solution is obtained independently of R as follows.

$$\begin{aligned} A = A_0 B + e^{-\frac{I_2}{2\alpha f_0} \int {\frac{dr}{\sqrt{A}B}} }, \end{aligned}$$
(14)

2.1.2 \( f(R)=f_0R^n \), \(f_0 >0\), \(\rho _0 =0\) case:

Here, we searched for non-matter solutions for the \(w=-1\) case in the gravitational model with higher order than GR. From the Noether symmetry vectors giving in Appendix B.1.4, the Noether symmetries are determined as follows;

$$\begin{aligned} \mathbf{X }_1&=r\partial _r +2(2n-1)A\partial _A-2R\partial _R, \nonumber \\ \mathbf{X }_2&=\partial _r \quad \mathbf{X }_3=-2A\partial _A+B\partial _B, \end{aligned}$$
(15)

The Noether integrals for the above symmetries are \(I_2=-E_{{\mathcal {L}}}=0\) and

$$\begin{aligned} I_1&=2\alpha n f_0\sqrt{A}BR^{n-1}\nonumber \\&\quad \times \left[ -\frac{B'}{B}+(n-1)\frac{A'}{A}-(2n-1)(n-1)\frac{R'}{R}\right] , \nonumber \\ I_3&=\alpha n f_0\sqrt{A}BR^{n-1}\left[ \frac{B'}{B}-\frac{A'}{A}\right] . \end{aligned}$$
(16)

Thus, (16) with the help of the constants of motion, the following expression is obtained.

$$\begin{aligned} A =A_0 B^\frac{I_1+I_3}{I_1+(n-1)I_3} R^\frac{I_3(2n-1)(n-1))}{I_1+(n-1)I_3} , \end{aligned}$$
(17)

where \(A_0\) is the integration constant for this case.

Here, when the \(n=1\) condition is examined, it is seen that the solution is obtained independently from R, as in the previous case.

$$\begin{aligned} A =A_0 B^{1+\frac{I_3}{I_1} } , \end{aligned}$$
(18)

2.2 Static plane symmetric space time

The plane-symmetrical space-time metric is expressed as follows,

$$\begin{aligned} ds^2=A(x)dt^2-B(x)dx^2-Y(x)( dy^2 + dz^2), \end{aligned}$$
(19)

where AB, and Y are functions that depend on x. Then, the following Lagrangian is obtained with the help of the lagrange multiplier and ingration by parts methods.

$$\begin{aligned} {\mathcal {L}}&=-2f_{RR}\sqrt{ \frac{A }{B}}R'Y'-f_{RR} \frac{Y }{\sqrt{AB}}A'R' -f_{R}\frac{1}{\sqrt{AB}}A'Y' \nonumber \\&\quad -\frac{f_{R}}{2}\sqrt{\frac{A}{B}}{Y'^2} -\sqrt{AB}Y[Rf_{R}-f+\kappa \rho _{0} A^{-\frac{1+w}{2w}}], \nonumber \\&\quad \times (w \ne 0) \end{aligned}$$
(20)

According to the conservation law of \({T^{ab}}_{;b}=0\), the energy density expression is determined as \(\rho =\rho _{0}A^\frac{-(1+w)}{2w}\). Then, the following field equations are obtained for the theory of gravity expressed by the (20) Lagrangian.

$$\begin{aligned}&\frac{f}{2}B-\frac{f_{R}}{4}\,\left( 2\frac{A''}{A}-2\frac{A'Y'}{AY}-\frac{A'^2}{A^2}-\frac{A'B'}{AB}\right) \nonumber \\&\quad +\frac{f_{RR} R'}{2}\,\left( 2\frac{Y'}{Y}-\frac{B'}{B}\right) +f_{RR}R'' +f_{RRR}R'^2\nonumber \\&\quad +\kappa \rho _0BA^{-\frac{1+w}{2w}}=0, \nonumber \\&\quad \frac{f}{2}B+\frac{f_{R}}{4}\,\left( -2\frac{A''}{A}+\frac{A'^2}{A^2}-4\frac{Y''}{Y}+\frac{A'B'}{AB} +2\frac{Y'B'}{YB}\right) \nonumber \\&\quad +\frac{f_{RR} R' }{2}\,\left( \frac{A'}{A}+2\frac{Y'}{Y}\right) +\frac{\kappa }{2}\rho _0BA^{-\frac{1+w}{2w}}=0,\nonumber \\&\frac{f}{2}B-\frac{f_{R}}{4}\,\left( 2\frac{Y''}{Y}-\frac{B'Y'}{BY}-\frac{A'Y'}{AY}\right) \nonumber \\&\quad +\frac{f_{RR} R' }{2}\,\left( \frac{A'}{A}-\frac{B'}{B}+\frac{Y'}{Y}\right) +f_{RR}R''+f_{RRR}R'^2 \nonumber \\&\quad + \kappa \rho _0BA^{-\frac{1+w}{2w}}=0, \end{aligned}$$
(21)

where, taking the variation of the Lagrangian (20) according to the metric coefficients A, B and Y above field equations and variation according to R Ricci scalar expression is obtained. Also, the energy function for the (20) Lagrangian is obtained in the following form.

$$\begin{aligned} E_{\mathcal {L}}= & {} \frac{f B}{2} + \frac{f_{R}}{4}\,\left( -\frac{2 A''}{A} + \frac{A'^2}{A^2} - \frac{4 Y''}{Y} + \frac{A'B'}{AB} + \frac{2 Y'B'}{YB}\right) \nonumber \\&+\frac{f'_{R}}{2}\,\left( \frac{A'}{A} + \frac{2 Y'}{Y}\right) +\frac{\kappa \rho _0}{2} B A^{-\frac{1+w}{2w}} , \end{aligned}$$
(22)

where it is defined as \(f'_R=f_{RR}R'\). Since this expression corresponds to the field equation above, it should be \(E_{\mathcal {L}}=0\). In order to find solutions to the equations of this theory, the Noether symmetry approach will be used.

After this stage, to find a solution to the above system of differential equations, Noether symmetries will be examined choosing the function as \( f(R)=f_0R^n \), with the matter case and the cosmological constant dominated non-matter case.

2.2.1 \( f(R)=f_0R^n \), \(f_0, \rho _0 >0\) case

Here, the search for solutions based on Noether symmetry for the \(f(R)=f_0R^n\) model with matter is considered. Using the Noether symmetric expressions giving Appendix B.2-B.2.1, the Noether symmetries are determined as follows,

$$\begin{aligned} \mathbf{X }_1&=F(x)\partial _x-2 F_x\partial _B, \nonumber \\ \mathbf{X }_2&=\frac{4wn}{2n-w-1}A\partial _A+\frac{2(w+1)}{2n-w-1}B\partial _B+Y\partial _Y\nonumber \\&\quad -\frac{2(w+1)}{2n-w-1}R\partial _R, \qquad . \end{aligned}$$
(23)

The corresponding Noether integrals for each Noether symmetry are obtained as follows.

$$\begin{aligned} I_1&=-F(x)E_{{\mathcal {L}}}-2 F_x\frac{\partial _{{\mathcal {L}}}}{\partial _{B'}}=0,\nonumber \\ I_2&=\frac{f_0nR^{n-1}}{2n-w-1}\sqrt{\frac{A}{B}}Y\nonumber \\&\quad \times \Big [(2n-w-1)\frac{A'}{A}-2(n-1)(2n-1)(w+1)\nonumber \\&\quad \times \frac{R'}{R}+[2n-3(w+1)]\frac{Y'}{Y}\Big ], \end{aligned}$$
(24)

Using the \(I_2\) Noether integral given by (24), the following expression is obtained.

$$\begin{aligned} A= A_0 Y^{-\frac{2n -3(w+1)}{(2n-w-1)}}R^{\frac{-2(n-1)(2n-1)(w+1)}{(2n-w-1)}}+e^{\frac{I_2}{nf_0}\int {\sqrt{\frac{B}{A}}\frac{dx}{R^{n-1}Y}}},\nonumber \\ \end{aligned}$$
(25)

where \(A_0\) is the integration constant for this case.

Once again, it is obvious that in the case of \(n=1\) the solution is independent of R, and if \(w=-1\) is taken, the solution will be obtained in the same order as in the next case.

$$\begin{aligned} A=A_0 Y^{-\frac{(3w+1)}{(1-w)}}+e^{\frac{I_2}{f_0}\int {\sqrt{\frac{B}{A}}\frac{dx}{Y}}} \end{aligned}$$
(26)

2.2.2 \( f(R)=f_0R^n \), \(w=-1\), \(f_0, \rho _0 >0\) case:

Here, the solutions for \(f(R)=f_0R^n\) in cosmological constant dominated vacuum case is investigated. The components of the Noether symmetry vectors are given in Appendex B.2.2. Thus, the Noether symmetries are determined as follows,

$$\begin{aligned} \mathbf{X }_1&=F(x)\partial _x+2 B F_x \partial _B, \nonumber \\ \mathbf{X }_2&=\frac{2B}{2n-1} \partial _B +Y\partial _Y+\frac{-2R}{2n-1}\partial _R \nonumber \\ \mathbf{X }_3&=\left( 2(2n-1)A \ln {R} -\frac{2n-3}{n-1}A\ln {Y}+\frac{A}{n-1}\ln {A}\right) \nonumber \\&\quad \times \partial _A -Y\left( (2n-1)\ln {R}-\ln {A}+\frac{1}{n-1}\ln {Y}\right) \partial _Y\nonumber \\&\quad +\frac{B}{n-1}\ln {\frac{A}{Y}}\partial _B-\frac{R}{n-1}\ln {\frac{A}{Y}}\partial _R \nonumber \\ \mathbf{X }_4&=A\partial _A +\frac{B}{2n-1}\partial _B -\frac{R}{2n-1}\partial _R. \end{aligned}$$
(27)

Then, for each Noether symmetry above, the corresponding Noether integrals are obtained as follows,

$$\begin{aligned} I_1&=-E_{{\mathcal {L}}}=0, \nonumber \\ I_2&=-\sqrt{\frac{A}{B}}YnR^{n-1}\left[ \frac{A'}{A}+\frac{Y'}{Y}-\frac{2(n-1)}{2n-1}\left( \frac{A'}{A}+2\frac{Y'}{Y}\right) \right. \nonumber \\&\quad \left. +(n-1)\frac{R'}{R}\right] ,\nonumber \\ I_3&=\sqrt{\frac{A}{B}}YnR^{n-1} \left[ \left( \ln {\frac{Y^2A^{\frac{n-1}{n}}}{R^{2n-1}}}\frac{Y'}{Y}+\ln {\frac{Y^{n-1}R^{2n-1}}{A}}\frac{A'}{A}\right) \right. \nonumber \\&\quad \left. +(n-1)\ln {\frac{A}{Y}}\left( -(2n-1)\frac{R'}{R}+2\frac{Y'}{Y}+\frac{A'}{A}\right) \right] ,\nonumber \\ I_4&=-\sqrt{\frac{A}{B}}YnR^{n-1}\left[ \frac{Y'}{Y}+(n-1)\frac{R'}{R} \right. \nonumber \\&\quad \left. -\frac{(n-1)}{2n-1}\left( \frac{A'}{A}+\frac{Y'}{Y}\right) \right] . \end{aligned}$$
(28)

Using the conservative quantities \(I_2\) and \(I_4\) above, the general solution is determined as follows.

$$\begin{aligned} A=A_0 Y^{\frac{-I_2(n-1)+I_4(2n-3)}{I_2(n-1)+I_4}}R^{\frac{(I_2-I_4)(n-1)(2n-1)}{I_2(n-1)+I_4}}, \end{aligned}$$
(29)

where \(A_0\) is the integration constant for this case.

In the General Relativity limit where \(n = 1\), the solution is as follows.

$$\begin{aligned} A=A_0Y^{-1}, \end{aligned}$$
(30)

3 Conclusions

In this study, within the scope of f(R) gravity theory, general solutions for static cylindrical and plane symmetric space-times were investigated and the Noether symmetry method was used to obtain exact solutions. As novel research compared to relevant studies in the past, we wanted to determine general solutions instead of compact objects or gravitational wave analysis, which are handled with various approaches.

First, in Sect. 1, we have constructed the theory and written the Lagrangian (3) in static cylindrically background. Then, the field equations of the theory have been obtained as (4), (5) and (6). The Noether symmetry method has been explained in Appendex A. In this way, the Noether symmetries (7) and first integrals (8) have been obtained. Then the solutions for A(r) and B(r) metric coefficient (10) have been obtained in \(w=-1\) with \(f_0, \rho _0 >0\) condition by using the relation between the first integrals. These solutions are obtained in \(f(R) = f_0 R\), namely, in GR case. We wanted to mention this case because this study is an ongoing part of our previous work and for doing a complete analysis. Then, taking \(f(R)=f_0R^n\), the solutions for the cosmological constant dominant case \(w=-1\) are in the form of (13) general expressions.

The next part of this study, is studied within the scope of plane symmetrical space-time. We constructed the theory and written the Lagrangian (20) in this background. Again, in case of \(f(R)=f_0R^n\) selection and \(\rho _0 >0\) (25 ) general solutions are determined. Then, the \(w=-1\) situation is examined and the general solution expressions (29) were determined.

In addition, the n=1 GR limits of the solutions are examined and it is seen that they were compatible with the literature.

These obtained solutions point to general expressions obtained with the help of the Noether symmetry method under various conditions. Thus, one can examine these results for various analyses such as compact objects. In this sense, our study is remarkable in terms of its inclusive nature.