1 Introduction

Magnetic strings/branes may be interpreted as topological defects that were formed during a phase transition of the early universe [1, 2]. These defects contain information regarding the early structure of the universe and also its evolution [39]. On the other hand, considering the AdS/CFT correspondence, these horizonless magnetic solutions in the presence of negative cosmological constant may contain information regarding a quantum field theory on the boundary of the AdS spacetime [1013]. These topological defects have wide variety of applications in quantum gravity and has been studied in different context such as hadron dynamics [14], anti-ferromagnetic crystals [15], Yang–Mills plasma [16] and also, in studying quantum criticality [17]. These magnetic branes/strings have been studied in some papers and their properties for different cases of gravity and nonlinear electromagnetic fields have been derived [1825]. Motivated by these facts, we study magnetic branes in the presence of the two corrections mentioned and investigate the effects of these two corrections on the properties of the magnetic branes.

From the other point of view, Einstein (EN) gravity has been a successful theory for describing many phenomena, whereas in some aspects it confronts some fundamental problems [2628]. In order to overcome these problems, alternative theories of gravity or a generalization of EN gravity have been introduced [2939]. One of these theories is the generalization of the EN gravity to the well-known Gauss–Bonnet (GB) theory. This generalization solves some of the shortcomings of EN gravity and gives a renewed view and properties in a gravitational context [4051]. This theory of gravity has been studied for different astrophysical objects [5256]. The properties of GB gravity, may attract one to the idea of not to consider GB gravity as a generalization, but as a correction to EN gravity. In other words, one can consider the first order of the GB parameter, \(\alpha \), as a correction and study its effects on the properties of the solutions. This fact shows that one can take small values of the GB parameter into account and interpret the effects of the GB correction as a perturbation to EN gravity. This consideration enables us to study the effects of the GB parameter in more detail. In this paper, we consider GB gravity not as a generalization but as a correction or perturbation to EN theory [57].

Naturally, most of the systems that we are studying are nonlinear or they have nonlinear properties. In order to have more realistic results, one should take into account the nonlinear behavior of these systems. The Maxwell theory of electrodynamics is a linear theory which works well in many aspects but fails regarding some important issues. In order to overcome its problems, different theories of nonlinear electrodynamics (NED) were introduced [5862]. Among them, Born–Infeld (BI) type ones are quite interesting due to their properties and the fact that these theories may arise from the low energy limits of the effective string theory [6368]. For large values of the nonlinearity parameter, these BI type theories lead to the same behavior as Maxwell theory. In order to avoid the complexity that nonlinear electromagnetic fields pose, one can consider the effects of nonlinearity as a correction to the Maxwell field. In other words, one can add the quadratic Maxwell invariant to the Lagrangian of the Maxwell theory [57, 69, 70] to obtain NED as a correction. On the other hand, it is arguable that in order to obtain physical results that are consistent with experiments, one should consider the weak effects of nonlinearity. Using the series expansion of BI type theories in the weak field limit, one finds that the first term is the Lagrangian of the Maxwell theory and the second term is proportional to the quadratic Maxwell invariant [71]. Therefore, in this paper, we are considering a quadratic Maxwell invariant as a correction of the Maxwell electrodynamics and study its effects on the properties of solution.

The structure of the paper will be as follows. In the next section, we will present the field equations and obtain the metric function for the case of magnetic branes. We will plot some graphs in order to study the effects of the corrections on the metric function. Also we will study the geometrical structure of the obtained solutions and investigate the effects of different parameters on the deficit angle and conical structure of the magnetic branes through graphs. The last section is devoted to closing remarks.

2 Static solutions

In order to study horizonless magnetic branes, we consider the following metric for d dimensions [72]:

$$\begin{aligned} \mathrm{d}s^{2}=-\frac{\rho ^{2}}{l^{2}}\mathrm{d}t^{2}+\frac{\text {d}\rho ^{2}}{f(\rho )} +l^{2}f(\rho )\text {d}\phi ^{2}+\frac{\rho ^{2}}{l^{2}}\text {d}X^{2}, \end{aligned}$$
(1)

where l is a scale factor related to the cosmological constant, \(f(\rho )\) is a function of the coordinate \(\rho \), and \(\mathrm{d}X^{2}=\sum _{i=1}^{d-3}\mathrm{d}x_{i}^{2}\) is the Euclidean metric on the \((d-3)\)-dimensional submanifold. The angular coordinate \(\phi \) is dimensionless and ranges in \([0,2\pi ]\), while \(x_{i}\) ranges in \((-\infty ,\infty )\). Due to the fact that we are interested in solutions that contain GB gravity and a correction to Maxwell field, we consider the following field equations [57, 69]:

$$\begin{aligned}&\partial _{\mu }\left( \sqrt{-g}\mathcal {L}_{\mathcal {F}}F^{\mu \nu }\right) =0, \end{aligned}$$
(2)
$$\begin{aligned}&\Lambda g_{\mu \nu }+G_{\mu \nu }^{(1)}+\alpha G_{\mu \nu }^{(2)}+O\left( \alpha ^{2}\right) \nonumber \\&\qquad =\frac{1}{2}g_{\mu \nu }\mathcal {L}(\mathcal {F})-2 \mathcal {L}_{\mathcal {F}}F_{\mu \lambda }F_{\nu }^{\lambda }, \end{aligned}$$
(3)

where \(\mathcal {L}_{\mathcal {F}}=\frac{\text {d}\mathcal {L}(\mathcal {F})}{\text {d}\mathcal {F }}\), in which \(\mathcal {L}(\mathcal {F})\) is the Lagrangian of NED; \(\Lambda =-\frac{(d-1)(d-2)}{2l^{2}}\) and \(G_{\mu \nu }^{(1)}=R_{\mu \nu }-\frac{1}{2} g_{\mu \nu }R\) are, respectively the cosmological constant and the EN tensor; \(\alpha \) is the GB coefficient and

$$\begin{aligned} G_{\mu \nu }^{(2)}= & {} 2(R_{\mu \sigma \kappa \tau }R_{\nu }^{ \sigma \kappa \tau }-2R_{\mu \rho \nu \sigma }R^{\rho \sigma }-2R_{\mu \sigma }R_{\nu }^{\sigma }+RR_{\mu \nu })\nonumber \\&-\frac{\mathcal {L}^{(2)}}{2}g_{\mu \nu }, \end{aligned}$$
(4)

where \(\mathcal {L}^{(2)}\) denotes the Lagrangian of GB gravity, given as

$$\begin{aligned} \mathcal {L}^{(2)}=R_{\mu \nu \gamma \delta }R^{\mu \nu \gamma \delta }-4R_{\mu \nu }R^{\mu \nu }+R^{2}. \end{aligned}$$
(5)

We consider the following Lagrangian for the electromagnetic field [57, 69, 70]:

$$\begin{aligned} \mathcal {L}(\mathcal {F})=-\mathcal {F+}\beta \mathcal {F}^{2}+O\left( \beta ^{2}\right) , \end{aligned}$$
(6)

where \(\beta \) is nonlinearity parameter and the Maxwell invariant \( \mathcal {F}=F_{\mu \nu }F^{\mu \nu }\), in which \(F_{\mu \nu }=\partial _{\mu }A_{\nu }-\partial _{\nu }A_{\mu }\) is the electromagnetic field tensor, and \( A_{\mu }\) is the gauge potential. It is easy to show that the electric field comes from the time component of the vector potential (\(A_{t}\)), while the magnetic field is associated with the angular component (\(A_{\phi }\)). The black hole solutions of GB gravity in the presence of this nonlinear electromagnetic field were obtained previously [57]. In this paper we are looking for horizonless solutions with a conical singularity which are not interpreted as black holes but as magnetic brane solutions. Since we are looking for the magnetic solutions, we consider the following form of the gauge potential:

$$\begin{aligned} A_{\mu }=h(\rho )\delta _{\mu }^{\phi }. \end{aligned}$$
(7)

Using Eq. (7) with the mentioned NED, one can show that the electromagnetic field equation, (2), reduces to the following differential equation:

$$\begin{aligned}&\left[ \left( d-2\right) E+E^{\prime }\rho \right] l^{2}+4E^{2}\left[ \left( d-2\right) E+3E^{\prime 2}\rho \right] \beta \nonumber \\&\quad +O(\beta ^{2})=0, \end{aligned}$$
(8)

where a prime denotes the first derivative with respect to \(\rho \) and \( E=h^{\prime }(\rho )\). Solving Eq. (8), one obtains

$$\begin{aligned} E(\rho )=\frac{2ql^{2}}{\rho ^{d-2}}-\frac{32q^{3}l^{4}\beta }{\rho ^{3\left( d-2\right) }}+O\left( \beta ^{2}\right) , \end{aligned}$$
(9)

where q is an integration constant related to the electric charge. We should note that for small values of \(\beta \) all relations reduce to the corresponding relations of Maxwell theory.

In order to obtain the metric function, \(f(\rho )\), one should solve all components of the gravitational field equation (3) simultaneously. After cumbersome calculations, we find that there are two different differential equations with the following explicit forms:

$$\begin{aligned}&e_{\rho \rho }=\mathcal {K}_{1}+\alpha \mathcal {K}_{2}=0, \end{aligned}$$
(10)
$$\begin{aligned}&e_{tt}=\mathcal {K}_{11}+\alpha \mathcal {K}_{22}=0, \end{aligned}$$
(11)

where

$$\begin{aligned}&\mathcal {K}_{1} =\Lambda +\frac{(d-2)(d-3)}{2\rho ^{2}}f+\frac{4q^{2}l^{2} }{\rho ^{2d-4}}\\&\quad +\frac{(d-2)f^{\prime }}{2\rho }-\frac{32l^{4}q^{4}\beta }{ \rho ^{4d-8}}+O(\beta ^{2}), \\&\mathcal {K}_{2}=-\frac{(d-2)(d-3)(d-4)ff^{\prime }}{\rho ^{3}}\\&\quad -\frac{(d-2)(d-3)(d-4)(d-5)f^{2}}{2\rho ^{4}}, \\&\mathcal {K}_{11} =-\Lambda -\frac{(d-3)(d-4)f}{2\rho ^{2}}-\frac{ (d-3)f^{\prime }}{\rho }\nonumber \\&\quad -\frac{f^{\prime \prime }}{2}+\frac{4l^{2}q^{2}}{ \rho ^{2d-8}}-\frac{96l^{4}q^{4}\beta }{2\rho ^{4d-12}}+O(\beta ^{2}), \\&\mathcal {K}_{22} =\frac{(d-3)(d-4)(d-5)}{2\rho ^{4}}\nonumber \\&\quad \left( (d-6)f^{2}+4\rho ff^{\prime \prime }+\frac{2\rho ^{2}}{d-5}\left( f^{\prime }{}^{2}+ff^{\prime \prime }\right) \right) . \end{aligned}$$

Equations (10) and (11) correspond to the \(\rho \rho \) and tt components of the gravitational field equation (3). It is easy to show that the \(\phi \phi \) and \(x_{i}x_{i}\) components of Eq. (3) are, respectively, similar to \(e_{\rho \rho }\) and \(e_{tt}\), and therefore, it is sufficient to solve Eqs. (10) and (11), simultaneously. Since we desire to obtain higher dimensional magnetic brane solutions with GB as a correction for EN gravity and the quadratic Maxwell invariant as a correction to the Maxwell theory, we ignored \(\alpha \beta \), \(\alpha ^{2}\), and \(\beta ^{2} \) terms and higher orders. Interestingly, the results for consideration of these two corrections will be as follows:

$$\begin{aligned} f(\rho )= & {} f_\mathrm{EN}-\frac{64q^{4}l^{4}}{\left( d-2\right) \left( 3d-7\right) \rho ^{4d-10}}\beta \nonumber \\&+\frac{\left( d-3\right) \left( d-4\right) f_\mathrm{EN}^{2}}{ \rho ^{2}}\alpha +O\left( \alpha \beta ,\alpha ^{2},\beta ^{2}\right) , \end{aligned}$$
(12)

with

$$\begin{aligned} f_\mathrm{EN}= & {} \frac{2ml^{3}}{\rho ^{d-3}}-\frac{2\Lambda }{\left( d-1\right) \left( d-2\right) }\rho ^{2}\nonumber \\&+\frac{8q^{2}l^{2}}{\left( d-2\right) \left( d-3\right) \rho ^{2d-6}}, \end{aligned}$$
(13)

where m is an integration constant related to the mass. As one can see for the case of \(\alpha =\beta =0\), the effects of corrections are canceled and the obtained results will be magnetic solutions of EN gravity. In order to study the effects of these two corrections on the obtained metric function, we plot some graphs in the presence (absence) of these two corrections (see Fig. 1).

Fig. 1
figure 1

f(\(\rho \)) versus \(\rho \) for \(m=0.1\), \(q=2\), \(l=1 \), and \(d=5\). Left diagram: \(\alpha =0.01\), \(\beta =0\) (bold line), \(\beta =0.015\) (dotted line), \(\beta =0.025\) (dashed line) and \(\beta =0.030\) (continuous line). Middle diagram: \(\beta =0.05\), \(\alpha =0\) (bold line), \(\alpha =0.01\) (dotted line), \(\alpha =0.02\) (dashed line) and \(\alpha =0.03\) (continuous line). Right diagram: \(\beta =0\) and \(\alpha =0\)

As one can see, in the absence of Maxwell and GB corrections, the plotted graph for the metric function versus \(\rho \) is quite different comparing to when one of the considered corrections (GB or Maxwell) is present. We consider that at least one of these corrections will modify the behavior of the metric function. This modification is more evident and stronger for small values of \(\rho \). The metric function will have root(s) for specific value of \(\rho \) (namely \(\rho _{0}\)). The function \(f\left( \rho \right) \) has two extrema at \(\rho _{\mathrm{ext}_{1}}\) and \(\rho _{\mathrm{ext}_{2}}\) (\(\rho _{\mathrm{ext}_{1}}<\rho _{\mathrm{ext}_{2}}\)) in which for \(\rho _{0}\le \rho \le \rho _{\mathrm{ext}_{1}}\), the metric function is an increasing function of \(\rho \). For \(\rho _{\mathrm{ext}_{1}}\le \rho \le \rho _{\mathrm{ext}_{2}}\), \(f\left( \rho \right) \) is a decreasing function of \(\rho \) and finally, in the case of \(\rho \ge \rho _{\mathrm{ext}_{2}}\), it is an increasing function of radial coordinate (Fig. 1; left and middle). The root of \(f(\rho )\) is an increasing (or decreasing) function of the \(\beta \) (or the \(\alpha \)) parameter (Fig. 1; left and middle). \(\rho _{\mathrm{ext}_{1}}\) is a decreasing function of the GB parameter and \(f(\rho _{\mathrm{ext}_{1}})\) is increasing functions of the GB parameter. As for the nonlinearity parameter, \(\rho _{\mathrm{ext}_{1}}\) is an increasing function of \(\beta \), but interestingly \(f(\rho _{\mathrm{ext}_{1}})\) is a decreasing function of it. It is worthwhile to mention that the variations of \(\alpha \) and \(\beta \) do not have a reasonable effect on \(\rho _{\mathrm{ext}_{2}}\) and \(f(\rho _{\mathrm{ext}_{2}})\). It is notable that for small values of the nonlinearity parameter the metric function has no root. Contrary to this effect, for large values of the GB parameter, the metric function will be without any root. It simply shows the fact that GB and nonlinearity parameters have opposite effects on the behavior of the metric function.

Next, we are going to discuss the geometric properties of the solutions. To do this, we look for possible black hole solutions on obtaining the curvature singularities and their horizons. We usually calculate the Kretschmann scalar, \(R_{\alpha \beta \gamma \delta }R^{\alpha \beta \gamma \delta }\), to achieve the essential singularity. Considering the mentioned spacetime, it is easy to show that

$$\begin{aligned} R_{\alpha \beta \gamma \delta }R^{\alpha \beta \gamma \delta }= & {} f^{\prime \prime 2}+2\left( d-2\right) \left( \frac{f^{\prime }}{\rho }\right) ^{2}\nonumber \\&+2\left( d-2\right) \left( d-3\right) \left( \frac{f}{\rho ^{2}}\right) ^{2}. \end{aligned}$$
(14)

Inserting the metric function, \(f(\rho )\), in Eq. (14) and using a numerical analysis, one finds that the Kretschmann scalar diverges at \(\rho =0\) and it is finite for \(\rho >0\) and naturally one may think that there is a curvature singularity located at \(\rho =0\). In what follows, we state an important point, in which one confirms that the spacetime never reaches \(\rho =0\). As one can easily see, the metric function has a positive value for \( \rho >r_{+}\). So two cases may occur. For the first case, \(f(\rho )\) is a positive definite function with no root and therefore the singularity is called a naked singularity, which we are not interested in. We consider the second case, in which the metric function has one or more real positive root(s). We denote \(r_{+}\) as the largest real positive root of \(f(\rho )\). The metric function is negative for \(\rho <r_{+}\) and positive for \(\rho >r_{+}\) and hence the metric signature may change from (\(-+++++\cdots +\)) to (\(---+++\cdots +\)) in the range \(\rho <r_{+}\).

We should note that this situation is different from that of black hole solutions. Consider a typical d-dimensional black hole metric \(\text {d}s^{2}=-f(\rho )\text {d}t^{2}+\frac{\text {d}\rho ^{2}}{f(\rho )}+\rho ^{2}\text {d}\Omega ^{2}\) with \((-+++++\cdots +)\) signature. Denoting \(r_{+}\) as largest real positive root of \(f(\rho )\), we know that for \(\rho >r_{+}\) the metric function is positive definite and the signature does not change. For \(\rho <r_{+}\), although the mentioned signature changes to \((+-++++\cdots +)\), the number of positive and negative signs remains unchanged. In other words, for the entire spacetime, the black hole metric has one negative (temporal coordinate) sign and \((d-1)\) positive (spatial coordinates) signs. In this case, the change in sign merely signifies that this is not the right coordinate system to study the \(\rho <r_{+}\) region. But for our magnetic metric, Eq. (1), the number of positive and negative signs will change for \(\rho <r_{+}\). Taking into account this apparent change of signature of the metric, we conclude that one cannot extend the spacetime to \(\rho <r_{+}\). In order to get rid of this incorrect extension, one may use the following suitable transformation on introducing a new radial coordinate r:

$$\begin{aligned}&r^{2}=\rho ^{2}-r_{+}^{2}, \nonumber \\&\rho \ge r_{+}\Longleftrightarrow r\ge 0. \end{aligned}$$
(15)

Using the mentioned transformation with \(\text {d}\rho =\frac{r}{\sqrt{ r^{2}+r_{+}^{2}}}\text {d}r\), one finds that the metric (1) should change to

$$\begin{aligned} \text {d}s^{2}= & {} -\frac{r^{2}+r_{+}^{2}}{l^{2}}\text {d}t^{2}+\frac{r^{2}}{\left( r^{2}+r_{+}^{2}\right) f(r)}\text {d}r^{2}\nonumber \\&+l^{2}f(r)\text {d}\phi ^{2}+\frac{r^{2}+r_{+}^{2} }{l^{2}}\text {d}X^{2}. \end{aligned}$$
(16)

It is worthwhile to mention that with this new coordinate, the metric function will be of the following form:

$$\begin{aligned} f(r)= & {} f_\mathrm{EN}-\frac{64q^{4}l^{4}}{\left( d-2\right) \left( 3d-7\right) \left( r^{2}+r_{+}^{2}\right) ^{2d-5}}\beta \nonumber \\&+\frac{\left( d-3\right) \left( d-4\right) f_\mathrm{EN}^{2}}{r^{2}+r_{+}^{2}}\alpha +O\left( \alpha \beta , \alpha ^{2},\beta ^{2}\right) , \end{aligned}$$
(17)

where

$$\begin{aligned} f_\mathrm{EN}= & {} \frac{2ml^{3}}{\left( r^{2}+r_{+}^{2}\right) ^{\frac{d-3}{2}}}-\frac{2\Lambda }{\left( d-1\right) \left( d-2\right) }\left( r^{2}+r_{+}^{2}\right) \nonumber \\&+\frac{8q^{2}l^{2}}{\left( d-2\right) \left( d-3\right) \left( r^{2}+r_{+}^{2}\right) ^{d-3}}. \end{aligned}$$
(18)

We should note that the function f(r) given in Eq. (17) is a non-negative function in the whole spacetime. Although the Kretschmann scalar does not diverge in the range \(0\le r<\infty \), one can show that there is a conical singularity at \(r=0\). One can investigate the conic geometry by using the circumference/radius ratio. Using the Taylor expansion, in the vicinity of \(r=0\), we find

$$\begin{aligned} f(r)= & {} f(r)\left| _{r=0}\right. +\left( \frac{\text {d}f}{\text {d}r}\left| _{r=0}\right. \right) r\nonumber \\&+\frac{1}{2}\left( \frac{\text {d}^{2}f}{\text {d}r^{2}}\left| _{r=0}\right. \right) r^{2}+O(r^{3})+\cdots , \end{aligned}$$
(19)

where

$$\begin{aligned}&\left. f(r)\right| _{_{r=0}}=\left. \frac{\text {d}f}{\text {d}r}\right| _{_{r=0}}=0, \end{aligned}$$
(20)
$$\begin{aligned}&\left. \frac{\text {d}^{2}f}{\text {d}r^{2}}\right| _{_{r=0}}\equiv f^{\prime \prime }= \frac{-2\Lambda }{d-2}-\frac{8l^{2}q^{2}}{(d-2)r_{+}^{2d-4}}\nonumber \\&\qquad +\frac{64l^{4}q^{4}}{(d-2)r_{+}^{4d-8}}\beta +O(\beta ^{2}), \end{aligned}$$
(21)

and hence

$$\begin{aligned} \lim _{r\longrightarrow 0^{+}}\frac{1}{r}\sqrt{\frac{g_{\phi \phi }}{g_{rr}}}= & {} \lim _{r\longrightarrow 0^{+}}\frac{\sqrt{r^{2}+r_{+}^{2}}lf(r)}{r^{2}}\nonumber \\= & {} \frac{lr_{+}}{2}f^{\prime \prime }\ne 1, \end{aligned}$$
(22)

which confirms that as the radius r tends to zero, the limit of the circumference/radius ratio is not \(2\pi \) and, therefore, the spacetime has a conical singularity at \(r=0\). This conical singularity may be removed if one identifies the coordinate \(\phi \) with the period

$$\begin{aligned} \text {Period}_{\phi }=2\pi \left( \lim _{r\longrightarrow 0}\frac{1}{r}\sqrt{ \frac{g_{\phi \phi }}{g_{rr}}}\right) ^{-1}=2\pi \left( 1-4\mu \right) , \end{aligned}$$
(23)

where \(\mu \) is given by

$$\begin{aligned} \mu =\frac{1}{4}\left( 1-\frac{2}{lr_{+}f^{\prime \prime }}\right) . \end{aligned}$$
(24)

In other words, the near origin limit of the metric (16) describes a locally flat spacetime which has a conical singularity at \(r=0\) with a deficit angle \(\delta \phi =8\pi \mu \). Using the Vilenkin procedure, one can interpret \(\mu \) as the mass per unit volume of the magnetic brane [73]. It is obvious that the nonlinearity of electrodynamics can change the value of the deficit angle \(\delta \phi \). Taking into account Eqs. (21) and (24), we can write

$$\begin{aligned} \frac{\text {d}\left( \delta \phi \right) }{\text {d}\beta }=\frac{-4\pi }{lr_{+}}\frac{ \text {d}\left( f^{\prime \prime -1}\right) }{\text {d}\beta }=\frac{256\pi l^{3}q^{4}}{ (d-2)r_{+}^{4d-7}f^{\prime \prime 2}}>0. \end{aligned}$$
(25)

Equation (25) indicates that \(\delta \phi \) is an increasing function of \(\beta \). In addition, considering Eqs. (21) and (24), one finds that the deficit angle does not depend on the GB coefficient. In order to investigate the effects of nonlinearity, \(r_{+},\) q, l, and dimensionality, we plot \(\delta \phi \) versus \(\beta \) and \(r_{+}\).

As one can see, the deficit angle can be affected by changing the values of q, \(\beta \), d, and \(r_{+}\). In order to provide additional clarification, we plot Figs. 2, 3 and 4. Considering these figures, the left panels indicate the variation of the deficit angle versus \(\beta \), whereas the right panels correspond to the behavior of the deficit angle with respect to \( r_{+}\). The left panels of Figs. 2, 3 and 4 confirm that the deficit angle is an increasing function of \(\beta \). Moreover, Fig. 2 (left) shows that for \(\beta \longrightarrow 0\) (Maxwell case), the deficit angle is a decreasing function of q. In addition, there is a \(q_{c}\), in which for \(q>q_{c}\) the deficit angle is negative for \(\beta =0\) (one can obtain \(q_{c}\) in such a way that \(\delta \phi \left| _{\beta =0,q=qc}\right. =0\)).

Fig. 2
figure 2

\(\delta \phi \)/\(\pi \) versus \(\beta \) (left) and \(\delta \phi \)/\(\pi \) versus \(r_{+}\) (right) for \(d=5\) and \(l=1\). Left diagram: \(r_{+}=2\), \(q=8\) (dotted line), \(q=8.5\) (continuous line) and \(q=9 \) (dashed line). Right diagram: \(\beta =0.05\), \(q=0.4\) (dotted line), \(q=0.73\) (continuous line), and \(q=1\) (dashed line)

Fig. 3
figure 3

\(\delta \phi \)/\(\pi \) versus \(\beta \) (left) and \(\delta \phi \)/\(\pi \) versus \(r_{+}\) (right) for \(d=5\), \(l=1\), and \(q=1 \). Left diagram: \(r_{+}=1\) (continuous line), \(r_{+}=1.04\) (dotted line) and \(r_{+}=1.1\) (dashed line), respectively. Right diagram: \(\beta =0.005\) (continuous line), \(\beta =0.01\) (dotted line), and \(\beta =0.05\) (dashed line), respectively

Fig. 4
figure 4

\(\delta \phi \)/\(\pi \) versus \(\beta \) (left) and \(\delta \phi \)/\(\pi \) versus \(r_{+}\) (right) for \(q=1\) and \(l=1\). Left diagram: \(r_{+}=1\), \(d=5\) (continuous line), \(d=6\) (dotted line), and \(d=7\) (dashed line). Right diagram: \(\beta =0.05\), \(d=5\) (continuous line), \(d=6\) (dotted line), and \(d=7\) (dashed line)

In the case of the deficit angle versus \(r_{+}\) for different values of the charge parameter (Fig. 2, right), the plotted graph is divided into three distinguishable regions. We find that variations of q, \(\beta \), and q do not affect, significantly, the behavior of the deficit angle for sufficiently small (large) \(r_{+}\) (see right panel of Figs. 2, 3 and 4). In addition Fig. 2 (right) shows that there is an extremum point \(r_{+_\mathrm{ext}}\), in which for \( r_{+}\le r_{+_\mathrm{ext}}\) (\(r_{+_\mathrm{ext}}\le r_{+}\)), the deficit angle is a decreasing (an increasing) function of \(r_{+}\). The mentioned \(r_{+_\mathrm{ext}}\) and its corresponding deficit angle are increasing functions of the charge parameter. In other words, for adequately small charge the minimum value of the deficit angle is negative (Fig. 2, right). By increasing the charge the region of negativity and hence the distance between the roots of the deficit angle decreases.

Now, we plot the deficit angle versus \(r_{+}\) for various \(\beta \) (Fig. 3, right) to show an interesting behavior. This figure indicates two divergencies for the deficit angle when \(\beta <\beta _{c}\). In other words, these singularities, \(r_{+_{1}}\) and \(r_{+_{2}}\) (\(r_{+_{1}}<r_{+_{2}}\)) can be removed by increasing \(\beta \). For \(\beta >\beta _{c}\), the deficit angle has a minimum and for \(\beta <\beta _{c}\), we cannot obtain a physical (\(\delta \phi \le 2\pi \)) deficit angle for \(r_{+_{1}}<r_{+}<r_{+_{2}}\). The deficit angle before the first singular point is a decreasing function of \(r_{+}\), whereas it is an increasing function after the second singular point. Variation of the nonlinearity parameter changes the distance between these two singular points. In other words, increasing \(\beta \) leads to a decrease of the mentioned interval. Figure 3 (left) indicates that the deficit angle is an increasing function of \(r_{+}\) in this parameter region.

Finally, we consider the effects of the dimensions on the deficit angle (Fig. 4). As one can see, for certain dimensions, there is a region for \(\beta \) where the deficit angle is negative (Fig. 4, left) and increasing dimensions leads to vanishing of this region. Figure 4 shows that the deficit angle is an increasing function of the dimensions in this parameter region. As for the deficit angle versus \(r_{+}\) (Fig. 4, right), there is a similar behavior to Fig. 2 (right) and the deficit angle has a minimum.

In order to explain the negative deficit angle, we first describe a positive one. Cut a segment of a certain angular size of a two dimensional plane and then sewing together the edges to obtain a conical surface. This conical space is flat but has a singular point corresponding to the apex of the cone. The segment deleted from the plane is known as a deficit angle with positive values. According to the previous statement, here we imagine a new situation: that a segment is added to the new plane to obtain a flat surface with a saddle-like cone (for more details see Fig. 2 in Ref. [74]). This added segment corresponds to a negative deficit angle (or surplus angle).

It is worthwhile to mention that although the deleted segment is bounded by the value of \(2\pi \) the added segment is unbounded. Therefore, one can conclude that the range of deficit angles is from \(-\infty \) to \(2\pi \). Positive/negative deficit angles may be related to the positive/negative torsion of the space or attractive-type/repulsive-type gravitational potentials; more details of a negative deficit angle with its physical interpretations can be found in [7479].

3 Closing remarks

In this paper, we have considered two different kinds of corrections to both matter and gravitational fields. For the gravitational aspect, we have considered GB gravity as a correction to EN gravity whereas for the electromagnetic aspect, we have regarded a quadratic power Maxwell invariant in addition to the Maxwell Lagrangian as a correction to the electromagnetic field. Remarkably it was seen that, in the absence of these two corrections, the behavior of the metric function is completely different comparing to a consideration of at least one of them.

Interestingly, the root(s) of the metric function was (were) also modified by considering these corrections. The place of this (these) root(s) was a decreasing (an increasing) function of the GB (nonlinearity) parameter. For small values of the nonlinearity parameter and large values of the GB parameter, the behavior of the metric function was similar to the case of Einstein–Maxwell. In addition, we found that the contribution of the considered matter field was opposite to the gravitational field. We found that for large values of the radial coordinate these corrections do not have a significant effect on the metric function. In other words, the dominant region in which these two corrections modify the metric function meaningfully was for small values of \(\rho \).

Next, in order to avoid a change of signature, we used a suitable radial transformation and found that there is no curvature singularity through the whole of spacetime, but there is a conical singularity located at the origin. We have studied the behavior of the deficit angle and the effects of different parameters on it. We have plotted two kinds of diagrams. One is for the deficit angle versus \(\beta \) and the other one is the deficit angle versus \( r_{+}\). For the case of the deficit angle versus \(\beta \), due to the fact that we considered the nonlinearity as a correction, we only have taken small values of it into account. In general the behavior of the left graphs were monotonic and the calculated deficit angles were increasing functions of the nonlinearity parameter. As for the deficit angle versus \(r_{+}\), interestingly, the behavior was completely different from the other case. In this case, for the variation of q and d, we found that for sufficiently small or large \(r_{+}\) the deficit angle is independent of the value of other parameters. In addition, we showed that there is a minimum value for the deficit angle in a specific \(r_{+}\). Moreover, we found that the only parameter that modified the general behavior of these graphs significantly was the nonlinearity parameter. For small values of \(\beta \) two singular points were seen. Interestingly, as one increases the nonlinearity parameter the distance between these two singular points decreases. In other words, by increasing the nonlinearity parameter, a compactification occurs which decreases the region between two singular points to a level that the mentioned singularities vanish. This behavior shows the fact that small values of \(\beta \) have a stronger contribution comparing to other parameters drastically.

The existence of a root, the region of negativity and divergency for the deficit angle are other important issues that must be taken into account. In studying the deficit angle, we consider a second order derivation of the metric function with respect to the radial coordinate. Considering the fact that the metric function could be interpreted as a potential (see for example chapter 9 of Ref. [80]), it is arguable that the singular point may be indicated as a phase transition. On the other hand, the geometrical structure of the solutions in the case of positive and negative values of the deficit angle is different. In the case of a positive deficit angle, the geometrical structure of the object is cone-like with a deficit angle whereas in the case of the negative angle the structure will be saddle-like with a surplus angle. We found that for a positive deficit angle, there is an upper limit, whereas for a negative deficit angle there is no limit. Therefore, one may state that due to these differences in the structure of the solutions, the root of the deficit angle may represent a phase transition. These two arguments could be discussed in more detail if the physical concept of a negative deficit angle has become more clear. Moreover, we should note that spacetime has no deficit angle for vanishing \(\delta \phi \). In other words, the geometrical structure of the solutions in this case represents no defect. Therefore, one may argue that these cases represent the magnetic brane without conical structure.

Finally, we will be interested in analyzing the theory of gravity that was proposed in this paper in more detail and calculating the conserved quantities of this theory. Also one can consider higher orders of the Lovelock gravity as corrections to the EN gravity and study their effects on magnetic branes and their deficit angle [81, 82]. Phase transitions, structural properties, and physical behavior of different objects have been studied through these defects. Since the obtained solutions are asymptotically AdS, it is worthwhile to consider these solutions in the context of the AdS/CFT correspondence and study different phenomena through these solutions. In addition, one can make some modifications regarding the geometry of the solutions and remove the mentioned conical singularity, and then use the copy-and-paste method to obtain geodesically complete spacetime with a minimum value for \(\rho _\mathrm{min}=r_{+}\) as a throat [8387]. We left these issues for future work.