In cosmology, magnetic fields have become more important since the wealth of observations of magnetic fields in the universe [29, 30]. Magnetic fields are ubiquitous in understanding the mysteries of the universe. The action of General Relativity (GR) coupled with NMM fields is given by
$$\begin{aligned} S=\int \mathrm{d}^{4}x\sqrt{-g}\left[ \frac{M_{pl}^{2}}{2} R+\alpha {\mathcal {L}}_{EM}+{\mathcal {L}}_{NMM}\right] , \end{aligned}$$
(1)
where \(M_{Pl}\) is the reduced Planck mass, R is the Ricci scalar, and \(\alpha \) is the fine-tuning parameter of \({\mathcal {L}}_{EM}\) Maxwell fields. \({\mathcal {L}}_{NMM}\) is the Lagrangian of the NMM fields. From a conceptual point of view, this action has the advantage that it does not invoke any unobserved entities such as scalar fields, higher dimensions, or brane worlds. Furthermore, we can ignore the Maxwell fields (\(\alpha =0\)), because they are weak compared to the dominant NMM fields in the very early epochs and inflation. However, in the literature there are many proposals of cosmological solutions based on the Maxwell fields plus corrections [11, 12, 16, 17, 24,25,26]. Herein, our main aim is to use this method to show that it yields an accelerated expansion phase for the evolution of the universe in the NMM field regime. The new ingredient we add is a modification of the electrodynamics, which has no Maxwell limit. The Einstein field equation and the NMM field equation are derived from the action
$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}g_{\mu \nu }R=-\kappa ^{2}T_{\mu \nu }, \end{aligned}$$
(2)
where \(\kappa ^{-1}=M_{Pl}\), and
$$\begin{aligned} \partial _{\mu }\left( \sqrt{-g}\frac{\partial {\mathcal {L}}_{NMM}}{\partial {\mathcal {F}}}F^{\mu \nu }\right) =0. \end{aligned}$$
(3)
Note that Maxwell invariant is \({\mathcal {F}}=F_{\mu \nu }F^{\mu \nu }=(B^{2}-E^{2})/2>0\), and \(F_{\mu \nu }\) is the field strength tensor. The magnetic field two-form is \(F=P\sin (\theta )^{2}\mathrm{d}\theta \wedge \mathrm{d}\phi \) or \(F_{\theta \phi }=P\sin (\theta )^{2}\) where P is the magnetic monopole charge. Furthermore, it is noted that in the weak field limit the NMM Lagrangian does not yield the linear Maxwell Lagrangian [31]. In this work, following a standard procedure, we consider the pure magnetic field under the following NMM field Lagrangian suggested in Ref. [31]:
$$\begin{aligned} {\mathcal {L}}_{NMM}=-\frac{6}{l^{2}\left( 1+\left( {\frac{\beta }{{\mathcal {F}}}} \right) ^{3/4}\right) ^{2}}\, \end{aligned}$$
(4)
where \(\beta \) and l are the positive constants. The constant parameter \(\beta \) will be fixed according to other parameters. The NMM field Lagrangian is folded into the homogeneous and isotropic FRW spacetime
$$\begin{aligned} \mathrm{d}s^{2}=-\mathrm{d}t^{2}+a(t)^{2}(\mathrm{d}x^{2}+\mathrm{d}y^{2}+\mathrm{d}z^{2}) \end{aligned}$$
(5)
or it can be written as follows:
$$\begin{aligned} \mathrm{d}s^{2}=-\mathrm{d}t^{2}+a(t)^{2}[\mathrm{d}r^{2}+r^{2}( \mathrm{d}\theta ^{2}+\sin (\theta )^{2}\mathrm{d}\phi ^{2})] \end{aligned}$$
(6)
where a is a scale factor, to investigate the effects on the acceleration of the universe.
The energy momentum tensor
$$\begin{aligned} T^{\mu \nu }=K^{\mu \lambda }F_{\lambda }^{\nu }-g^{\mu \nu }{\mathcal {L}}_{NMM} \end{aligned}$$
(7)
with
$$\begin{aligned} K^{\mu \lambda }=\frac{\partial {\mathcal {L}}_{NMM}}{\partial {\mathcal {F}}}F^{\mu \lambda } \end{aligned}$$
(8)
can be used to obtain the general form of the energy density \(\rho \) and the pressure p by varying the action as follows:
$$\begin{aligned} \rho =-{\mathcal {L}}_{NMM}+E^{2}\frac{\partial {\mathcal {L}}_{NMM}}{\partial {\mathcal {F}}} \end{aligned}$$
(9)
and
$$\begin{aligned} p={\mathcal {L}}_{NMM}-\frac{\left( 2B^{2}-E^{2}\right) }{3}\frac{\partial {\mathcal {L}}_{NMM} }{\partial {\mathcal {F}}}. \end{aligned}$$
(10)
Here, it is assumed that the curvature is much larger than the wavelength of the electromagnetic waves, because the electromagnetic fields are the stochastic background. The average of the EM fields that are sources in GR have been used to obtain the isotropic FRW spacetime [32]. For this reason, one uses the average values of the EM fields as follows:
$$\begin{aligned}&\langle \mathbf {E}\rangle =\langle \mathbf {B}\rangle =0,\quad \langle E_{i}B_{j}\rangle =0,\nonumber \\&\langle E_{i}E_{j}\rangle =\frac{1}{3}E^{2}g_{ij},\quad \langle B_{i}B_{j}\rangle =\frac{1}{3}B^{2}g_{ij}. \end{aligned}$$
(11)
Note that later we omit the averaging brackets \(\langle \)
\(\rangle \) for simplicity. The most interesting case of this method occurs only when the average of the magnetic field is not zero [32]. The universe has a magnetic property that the magnetic field is frozen in the cosmology where the charged primordial plasma screens the electric field. It is, in the pure nonlinear magnetic monopole case, clear that \(E^{2}=0.\) Then Eqs. (9) and (10) reduce to the simple following form:
$$\begin{aligned} \rho =-{\mathcal {L}}_{NMM} \end{aligned}$$
(12)
and
$$\begin{aligned} p={\mathcal {L}}_{NMM}-\frac{2B^{2}}{3}\frac{\partial {\mathcal {L}}_{NMM}}{\partial \mathcal {F }}. \end{aligned}$$
(13)
Then the FRW metric given in Eq. (5) is used to obtain Friedmann’s equation as follows:
$$\begin{aligned} 3\frac{\ddot{a}}{a}=-\frac{\kappa ^{2}}{2}\left( \rho +3p\right) , \end{aligned}$$
(14)
where “.” over the a denotes the derivatives with respect to the cosmic time. The most important condition for the accelerated universe is \(\rho +3p<0\). Here, the NMM field is used as the main source of gravity. Using Eqs. (9) and (10), it is found that
$$\begin{aligned} \rho +3p= & {} 2{\mathcal {L}}_{NMM}-2B^{2}\frac{\partial {\mathcal {L}}_{NMM}}{\partial {\mathcal {F}}}.\end{aligned}$$
(15)
$$\begin{aligned}= & {} \frac{12\,\left( 2^{7/4}\left( {\frac{\beta }{{B}^{2}}}\right) ^{3/4}-1\right) }{{l}^{2}\left( 1+{2}^{3/4}\left( {\frac{\beta }{{B}^{2}}} \right) ^{3/4}\right) ^{3}}. \end{aligned}$$
(16)
Thus, the requirement \(\rho +3p<0\) for the accelerating universe is satisfied at (\(({\frac{\beta }{{B}^{2}}}) ^{3/4}<\frac{1}{2^{7/4}}\)), where there is a strong magnetic monopole field in the early stages of the universe to force it to accelerate. By using the conservation of the energy-momentum tensor,
$$\begin{aligned} \nabla ^{\mu }T_{\mu \nu }=0, \end{aligned}$$
(17)
for the FRW metric given in Eq. (5), it is found that
$$\begin{aligned} \dot{\rho }+3\frac{\dot{a}}{a}(\rho +p) =0. \end{aligned}$$
(18)
Replacing \(\rho \) and p from Eqs. (12) and (13), and integrating, the evolution of the magnetic field under the change of the scale factor is obtained as follows:
$$\begin{aligned} B(t)=\frac{B_{0}}{a(t)^{2}}. \end{aligned}$$
(19)
Then, by using Eqs. (12) and (13), the energy density \(\rho \) and the pressure \(\ p\) can be written in the form of
$$\begin{aligned}&\rho =\frac{6}{\,{l}^{2}(\Phi )^{2}},\end{aligned}$$
(20)
$$\begin{aligned}&p=-\frac{6}{\,{l}^{2}\left( \Phi \right) ^{2}}+\frac{12\,{a}^{4}{2} ^{3/4}\beta }{{l}^{2}{ B }^{2}\left( \Phi \right) ^{3}}{\frac{1}{\root 4 \of {{\frac{\beta \,{a}^{4}}{{ B }^{2}}}}}}, \end{aligned}$$
(21)
where
$$\begin{aligned} \Phi =1+{2}^{3/4}\left( {\frac{\beta \,{a}^{4}}{{ B }^{2}}}\right) ^{3/4}. \end{aligned}$$
(22)
Note that from Eqs. (20) and (21), we obtain the energy density \(\rho \) and the pressure p, but there is no singularity point at \(a(t)\rightarrow 0\) and \(a(t)\rightarrow \infty \). Hence, one finds that, as shown in Fig. 1,
$$\begin{aligned}&\lim _{a(t)\rightarrow 0}\rho (t)=\frac{6}{l^{2}},\quad \lim _{a(t)\rightarrow 0}p(t)=-\frac{6}{l^{2}},\end{aligned}$$
(23)
$$\begin{aligned}&\lim _{a(t)\rightarrow \infty }\rho (t)=\lim _{a(t)\rightarrow \infty }p(t)=0. \end{aligned}$$
(24)
From Eqs. (23) and (24), it is concluded that the energy density \(\rho \) is equal to the negative of the pressure p (\(\rho =-p)\) at the beginning of the universe (\(a=0\)), similarly to a model of the \( \Lambda \)CDM. The absence of singularities is also shown in the literature [16, 17] by using a different model of nonlinear electrodynamics.
The Ricci scalar, which represents the curvature of spacetime, is calculated by using Einstein’s field equation (2) and the energy-momentum tensor,
$$\begin{aligned} R=\kappa ^{2}(\rho -3p). \end{aligned}$$
(25)
The Ricci tensor squared \(R_{\mu \nu }R^{\mu \nu }\) and the Kretschmann scalar \(R_{\mu \nu \alpha \beta }R^{\mu \nu \alpha \beta }\) are also obtained:
$$\begin{aligned}&R_{\mu \nu }R^{\mu \nu }=\kappa ^{4}(\rho ^{2}+3p^{2}),\end{aligned}$$
(26)
$$\begin{aligned}&R_{\mu \nu \alpha \beta }R^{\mu \nu \alpha \beta }=\kappa ^{4}\left( \frac{5 }{3}\rho ^{2}+2\rho p+3p^{2}\right) . \end{aligned}$$
(27)
We study the Ricci scalar depending on the scale factor from Eq. (19) and take the limit of Eq. (25) to show that the nonsingular curvature, the Ricci tensor, and the Kretschmann scalar when the universe accelerates at \(a(t)\rightarrow 0\) and at \(a(t)\rightarrow \infty \).
$$\begin{aligned}&\lim _{a(t)\rightarrow 0}R(t)=\frac{24\kappa ^{2}}{l^{2}},\end{aligned}$$
(28)
$$\begin{aligned}&\lim _{a(t)\rightarrow 0}R_{\mu \nu }R^{\mu \nu }=\frac{144\kappa ^{4}}{l^{4}},\end{aligned}$$
(29)
$$\begin{aligned}&\lim _{a(t)\rightarrow 0}R_{\mu \nu \alpha \beta }R^{\mu \nu \alpha \beta }= \frac{96\kappa ^{4}}{l^{4}},\end{aligned}$$
(30)
$$\begin{aligned}&\lim _{a(t)\rightarrow \infty }R(t)=\lim _{a(t)\rightarrow \infty }R_{\mu \nu }R^{\mu \nu }=\lim _{a(t)\rightarrow \infty }R_{\mu \nu \alpha \beta }R^{\mu \nu \alpha \beta }=0.\nonumber \\ \end{aligned}$$
(31)
In the future, the acceleration of the universe will stop at an infinite time, and then the spacetime will become flat, without any singularities. The critical scale factor to show the boundary of the universe acceleration is obtained using Eqs. (15) and (19) as follows: \(a(t)<a_{c}=\frac{1}{ 2^{7/12}}\frac{\sqrt{B_{0}}}{\root 4 \of {\beta }}\). Hence, the acceleration of the universe is zero at the critical value of the scale factor \(a=a_{c}\), and at the early time we show that the universe accelerates until the critical scale factor \(a=a_{c}\), which is suggested by the model describing inflation without singularities.