1 Introduction

Topological defects in the spacetime fabric are stable configurations of matter that are believed to be formed during the rapid expansion and cooling process at the phase transitions in the very early universe [1, 2]. The type of the topological defect is determined by the symmetry properties of the matter and the nature of the phase transition. Domain walls [3, 4] (two-dimensional objects formed when a discrete symmetry is broken), cosmic strings [4,5,6,7,8] (one-dimensional objects formed when cylindrical symmetry is broken), and global monopoles (GM) [2, 5, 8, 9] (zero-dimensional objects formed when spherical symmetry is broken), are among such feasible topological defects, to mention a few. Cosmic strings are the topological defects of our interest in the current study.

Rainbow gravity (RG), on the other hand, has inspired research studies for years [10,11,12,13,14], for being a semi classical extension of the doubly special relativity. In the ultra high energy regime (i.e., ultraviolet limit), nevertheless, RG suggests that the energy of the probe particle affects the spacetime background, in the sense that the corresponding spacetime metric (using the units \(c=\hbar =8\pi G=1\)) takes the energy-dependent form [10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]

$$\begin{aligned} ds^{2}= & {} -\frac{1}{g_{_{0}}\left( y\right) ^{2}}dt^{2}+\frac{1}{g_{_{1}}\left( y\right) ^{2}}\left( dr^{2}+\alpha ^{2}\,r^{2}d\varphi ^{2}+dz^{2}\right) ;\,\,\nonumber \\ 0\le & {} \left( y=E/E_{p}\right) \le 1. \end{aligned}$$
(1)

Where \(0<\alpha ^2=1-\eta /2\pi <1 \) is a constant related to the deficit angle of the conical spacetime, G is the Newton’s constant, \(\eta \) is the linear mass density of the cosmic string, and \(g_{_{k}}(y), k=0,1\), are called the rainbow functions. The corresponding metric tensor \(g_{\mu \nu }\) is given by

$$\begin{aligned} g_{\mu \nu }= & {} diag\left( -\frac{1}{g_{_{0}}\left( y\right) ^{2}},\frac{1}{ g_{_{1}}\left( y\right) ^{2}},\frac{\alpha ^{2}\,r^{2}}{g_{_{1}}\left( y\right) ^{2}},\frac{1}{g_{_{1}}\left( y\right) ^{2}}\right) ;\;\nonumber \\ \mu , \nu= & {} t,r,\varphi ,z, \end{aligned}$$
(2)

with

$$\begin{aligned} \det \left( g_{\mu \nu }\right)= & {} -\frac{\alpha ^{2}\,r^{2}}{g_{_{0}}\left( y\right) ^{2}g_{_{1}}\left( y\right) ^{6}}\Longrightarrow g^{\mu \nu }\nonumber \\= & {} diag\left( -g_{_{0}}\left( y\right) ^{2},g_{_{1}}\left( y\right) ^{2}, \frac{g_{_{1}}\left( y\right) ^{2}}{\alpha ^{2}\,r^{2}},g_{_{1}}\left( y\right) ^{2}\right) . \nonumber \\ \end{aligned}$$
(3)

Under RG model, however, the Planck energy \(E_{p}\) represents a threshold that separates quantum from classical mechanical descriptions and introduces itself as another invariant energy scale, in addition to the speed of light. RG justifies, therefore, the modified relativistic energy-momentum dispersion relation

$$\begin{aligned} E^{2}g_{_{0}}\left( y\right) ^{2}-p^{2}c^{2}g_{_{1}}\left( y\right) ^{2}=m^{2}c^{4};\;0\le \left( y=E/E_{p}\right) \le 1, \nonumber \\ \end{aligned}$$
(4)

where \(mc^{2}\) is its rest mass energy. Such a modification is significant in the high energy regime and is restricted to retrieve the standard general relativity dispersion relation in the infrared limit so that

$$\begin{aligned} \lim \limits _{y\rightarrow 0}g_{_{k}}\left( y\right) =1;\;k=0,1. \end{aligned}$$
(5)

At this point, one should observe that the rainbow function variable y satisfies \(0\le \left( y=E/E_{p}\right) \le 1\) This would, in turn, suggest that as long as relativistic quantum particles (\(E=+|E|=E_+\)) and anti-particles (\(E=-|E|=E_-\)) are in point, it is mandatory to use a fine tuned rainbow function variable \(y=|E|/E_p\). Using such a fine tuned rainbow function variable, we have very recently shown [30, 31] that rainbow gravity works on relativistic particles and anti-particles alike. Otherwise, rainbow gravity shows its effect on particles only and anti-particles would have indefinitely unbounded energies. Violating, therefore, the intended characteristic of rainbow gravity that the Planck energy \(E_{p}\) is the maximum possible energy for particles and anti-particles, i.e., \(|E|=E_p\), as observed in [18, 19, 21,22,23, 29], to mention a few. We have found [30, 31] that the loop quantum gravity motivated [32, 33] fine tuned rainbow functions pair

$$\begin{aligned} g_0(y)= & {} 1,\,\, g_1(y)=\sqrt{1-\epsilon \, y^n}\nonumber \\= & {} \sqrt{1-\epsilon \left( \frac{|E|}{E_p}\right) ^n};\,\, n=1,2, \end{aligned}$$
(6)

completely complies with the rainbow gravity model and secures Planck energy \(E_{p}\) as the maximum energy for particles and anti-particles. Whereas, the rainbow function pairs \(g_0(y)=g_1(y)=(1-\epsilon y)^{-1}\) used in resolving the horizon problem [24, 34], and \(g_0(y)=(e^{\epsilon y}-1)/\epsilon y\), \(g_1(y)=1\) obtained from the spectra of gamma-ray bursts [15] have only partially complied with the intended rainbow gravity effect. Hereby, we shall use the loop quantum gravity motivated pairs in (6) in the current study.

Yet, the inclusion of a 4-vector potential \(A_\mu =(0, 0,A_\varphi ,0)\) [35], with \(A_\varphi =A_{1,\varphi }+A_{2,\varphi }=B_1 r^2/2+B_2 r\) would introduce a magnetic field \({{\textbf {B}}}=B_z {\hat{z}}\), where

$$\begin{aligned} B_z^2= & {} \frac{1}{2}F_{\mu \nu }F^{\mu \nu }=g^{rr}g^{\varphi \varphi }(\partial _r A_\varphi -\partial _\varphi A_r)^2\Rightarrow B_z\nonumber \\= & {} \frac{g_1(y)^2}{\alpha }\left[ B_1+\frac{B_2}{r}\right] . \end{aligned}$$
(7)

Obviously, in no rainbow gravity (i.e., \(\epsilon =0\rightarrow g_1(y)=1\)), the first term would identify \(B_1\) as the strength of the uniform magnetic field part, and the second term would identify \(B_2\) as the strength of the non-uniform (i.e., r-dependent) magnetic field part. Yet, \(B_2\) can be identified as the strength of a uniform magnetic field (i.e., constant) at every specific value of r. The magnetic fields produced by \(A_{1,\varphi }\) and \(A_{2,\varphi }\) are readily discussed in some details in [35] (the reader is advised to refer to for more details). However, under rainbow gravity, we observe that both parts of the magnetic field in (7) are dependent on the energy of the probe particle/anti-particle. The classifications of uniform and/or non-uniform magnetic fields is a matter of perspective. We shall adopt the simple notion of a mixed magnetic field hereinafter, therefore.

Rainbow gravity, nevertheless, has been a subject of different studies. To mention a few, thermodynamical properties of black holes in RG [36,37,38,39,40,41,42,43], stability of neutron stars [44], TeV photons [27], and f(R) theories [45]. On the relativistic and non-relativistic quantum mechanical side, moreover, studies are carried out, for example, on Landau levels [19], Aharonov–Bohm effects on Dirac oscillators [46, 47], KG-Coulombic particles [29, 30], DKP-particles by Hosseinpour et al. [14], etc.

In the current methodical proposal, we shall investigate KG-particles in a cosmic string rainbow gravity spacetime in a mixed magnetic fields. In Sect. 2, we start with KG-particles in cosmic string fine tuned rainbow gravity spacetime and in a mixed magnetic field given by (7). In the same section, we consider the KG-oscillators and bring the corresponding KG equation into the one-dimensional Schrödinger oscillator form. The resulting Schrödinger form consequently includes a harmonic oscillator, a Coulombic-like, and a linear type interaction potential terms. The solution of which is usually given in terms of the biconfluent Heun functions \(H_B(\alpha , \beta , \gamma , \delta , z)\) that are truncated to a polynomial of order \(n_r\ge 0\) when \(\gamma =2(n_r+1)+\alpha \). However, in the current methodical proposal, we shall truncate the biconfluent Heun functions to a polynomial of order \(n_r+1\) and introduce a new condition that not only facilitates conditional exact solvability of the problem at hand but also retrieves the condition \(\gamma =2(n_r+1)+\alpha \). We do so in Sect. 3. Therein, we report and discuss the most intriguing observation of the current study, represented by energy levels crossings that flip the spectra of the KG-oscillators upside down. This effect is a consequence of the structure of the mixed magnetic field used (and has nothings to do with RG). In Sect. 4 we discuss Landau-like signatures on the spectroscopic structure of the KG-oscillators. Our concluding remarks are given in Sect. 5.

2 KG-particles in cosmic string rainbow gravity spacetime and a mixed magnetic field

In the cosmic string rainbow gravity spacetime background (1), a KG-particle of charge e in the 4-vector potential \(A_\mu =(0,0,A_\varphi ,0)\), with \(A_\varphi =B_1 r^2/2+B_2 r\) is described (in \(c=\hbar =1\) units) by the KG-equation

$$\begin{aligned}{} & {} \frac{1}{\sqrt{-g}}{\tilde{D}}_{\mu }\left( \sqrt{-g}g^{\mu \nu }{\tilde{D}} _{\nu }\right) \Psi \nonumber \\{} & {} \quad =m_\circ ^{2}\Psi \Longrightarrow \frac{1}{\sqrt{-g}}\left( D_{\mu }+{\mathcal {F}}_{\mu }\right) \nonumber \\{} & {} \qquad \times \sqrt{-g}g^{\mu \nu }\left( D_{\nu }- {\mathcal {F}}_{\nu }\right) \Psi =m_\circ ^{2}\Psi . \end{aligned}$$
(8)

where \(D_{\mu }\) is the gauge-covariant derivative given by \(D_{\mu }=\partial _{\mu }-ieA_{\mu }\) and admits minimal coupling, \(m_\circ \) is the rest mass energy of the KG-particle, and \({\mathcal {F}}_\mu \) is usually used to incorporate KG-oscillators [48, 49]. This equation would, in a straightforward manner, imply, with

$$\begin{aligned} \Psi \left( t,r,\varphi ,z\right) =\exp \left( i\left[ m \varphi +kz-Et\right] \right) \phi \left( r\right) , \end{aligned}$$
(9)

that

$$\begin{aligned}{} & {} \left\{ {\tilde{E}}^2+\left[ \partial _{r}^{2}+\frac{1}{r}\partial _{r}-M\left( r\right) -\frac{1}{\alpha ^{2}\,r^{2}}\left( m-eA_{\varphi }\right) ^{2}\right] \right\} \nonumber \\{} & {} \quad \phi \left( r\right) =0, \end{aligned}$$
(10)

where \(m=0,\pm 1,\pm 2,\ldots \) is the magnetic quantum number,

$$\begin{aligned} {\tilde{E}}^2= & {} \frac{g_0(y)^2 E^2-m_\circ ^2-g_1(y)^2k^2}{g_1(y)}, \end{aligned}$$
(11)

and

$$\begin{aligned} M\left( r\right) ={\mathcal {F}}_{r}^{\prime }+\frac{{\mathcal {F}}_{r}}{r}+ {\mathcal {F}}_{r}^{2}, \end{aligned}$$
(12)

We now substitute \(A_\varphi =B_1 r^2/2+B_2 r\), and \({\mathcal {F}}_r=\Omega r\) (to incorporate KG-oscillators [48, 49] in the process), to obtain

$$\begin{aligned}{} & {} \left\{ \partial _{r}^{2}+\frac{1}{r}\partial _{r} -\frac{{\tilde{m}}^{2}}{r^{2}}-{\tilde{\Omega }}^{2}r^{2}+\frac{2{\tilde{m}}{\tilde{B}}_2}{r}-{\tilde{B}}_1{\tilde{B}}_2 r+\lambda ^2 \right\} \nonumber \\{} & {} \quad \times \phi \left( r\right) =0, \end{aligned}$$
(13)

where

$$\begin{aligned} \lambda ^2= & {} {\tilde{E}}^2-({\tilde{B}}_2^2-{\tilde{m}}{\tilde{B}}_1)-2\Omega ;\;\nonumber \\ {\tilde{\Omega }}^2= & {} \Omega ^2+\frac{{\tilde{B}}_1^2}{4}\,,\;{\tilde{m}}=\frac{m }{\alpha },\;{\tilde{B}}_i=\frac{ eB_{i}}{\alpha }. \end{aligned}$$
(14)

Moreover, with \(\phi \left( r\right) =U\left( r\right) /\sqrt{r}\) we obtain the two-dimensional radial KG-oscillators

$$\begin{aligned}{} & {} \left\{ \partial _{r}^{2}-\frac{\left( {\tilde{m}}^{2}-1/4\right) }{r^{2}} -{\tilde{\Omega }}^{2}r^{2}\right. \nonumber \\{} & {} \left. \quad +\frac{2{\tilde{m}}{\tilde{B}}_2}{r}-{\tilde{B}}_1{\tilde{B}}_2 r+\lambda ^2 \right\} U\left( r\right) =0. \end{aligned}$$
(15)

This equation is known to admit a solution in the form of biconfluent Heun functions so that

$$\begin{aligned} U(r)= & {} r^{|{\tilde{m}}|+\frac{1}{2}}\, e^{\left( -\frac{{\tilde{\Omega }}r^2}{2}-\frac{{\tilde{B}}_1{\tilde{B}}_2 r}{2{\tilde{\Omega }}}\right) }\, \nonumber \\{} & {} \times H_B \left( 2|{\tilde{m}}|,\frac{{\tilde{B}}_1{\tilde{B}}_2 }{{\tilde{\Omega }}^{3/2}}, \frac{{\tilde{B}}_1^2{\tilde{B}}_2^2+4\lambda ^2{\tilde{\Omega }}^2}{4{\tilde{\Omega }}^3},\right. \nonumber \\ {}{} & {} \quad \left. -\frac{4|{\tilde{m}}|{\tilde{B}}_2}{\sqrt{{\tilde{\Omega }}}},\sqrt{{\tilde{\Omega }}} r\right) . \end{aligned}$$
(16)

The biconfluent Heun function \(H_B(\alpha , \beta , \gamma , \delta , z)\) is truncated to a polynomial of order \(n_r\ge 0\) for \(\gamma =2(n_r+1)+\alpha \) to imply that

$$\begin{aligned} \lambda ^2=2 {\tilde{\Omega }} (n_r+|{\tilde{m}}|+1)-\frac{{\tilde{B}}_1^2{\tilde{B}}_2^2}{4{\tilde{\Omega }}^2}. \end{aligned}$$
(17)

This truncation condition is to be accompanied by additional conditions that facilitate a so called conditional exact solvability of the problem at hand. One of such additional conditions is discussed by Ronveaux [50], some other conditions on the confluent Heun functions are discussed by Ishkhanyan et al. [51], and very recently a quit handy condition is introduced by Mustafa et al. [52]. The later is to be adopted and followed in the current methodical proposal to obtain a conditional exact solution, as well as retrieve the results of some special examples, to be illustrated below.

3 Conditionally exact energies for KG-oscillators in cosmic string rainbow gravity spacetime and a mixed magnetic field

We recollect Eq. (13) and use the substitution

$$\begin{aligned} \phi \left( r\right) =exp\left( -\frac{{\tilde{\Omega }}r^2}{2}-\frac{{\tilde{B}}_1{\tilde{B}}_2 r}{2{\tilde{\Omega }}}\right) \,\frac{R(r)}{\sqrt{r}}, \end{aligned}$$
(18)

to obtain

$$\begin{aligned}{} & {} -\frac{{\tilde{\Omega }}^2r^2}{2}R^{\prime \prime }(r)+{\tilde{\Omega }}r^2\left( {\tilde{\Omega }}^2r+ \frac{{\tilde{B}}_1{\tilde{B}}_2}{2}\right) R^\prime (r)\nonumber \\{} & {} \quad -\frac{1}{2}(P_1 r^2+P_2 r-P_3)R(r)=0, \end{aligned}$$
(19)

where

$$\begin{aligned} P_1= & {} \lambda ^2{\tilde{\Omega }}^2+\frac{{\tilde{B}}_1^2{\tilde{B}}_2^2}{4}-{\tilde{\Omega }}^3,\,\, P_2=2{\tilde{m}}{\tilde{B}}_2{\tilde{\Omega }}^2,\,\,\nonumber \\ P_3= & {} {\tilde{\Omega }}^2\left( {\tilde{m}}^2-\frac{1}{4}\right) . \end{aligned}$$
(20)

We now use a power series expansion in the form of

$$\begin{aligned} R(r)=r^\nu \sum \limits _{j=0}^{\infty }A_j\, r^j, \end{aligned}$$
(21)

to obtain

$$\begin{aligned}{} & {} \sum \limits _{j=0}^{\infty }\left\{ A_j\,\left[ {\tilde{\Omega }}^3(j+\nu )-\frac{P_1}{2}\right] \right. \nonumber \\{} & {} \quad +A_{j+1}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}}{2}\left( j+\nu +1\right) -\frac{P_2}{2}\right] \nonumber \\{} & {} \quad \left. +A_{j+2}\left[ \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\left( j+\nu +1\right) \left( j+\nu +2\right) \right] \right\} r^{j+\nu +2} \nonumber \\{} & {} \quad +\left\{ A_{0}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}\nu }{2} -\frac{P_2}{2}\right] \right. \nonumber \\{} & {} \quad \left. +A_{1}\left[ \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\nu \left( \nu +1\right) \right] \right\} r^{\nu +1} \nonumber \\{} & {} \quad +A_{0}\left[ \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\nu \left( \nu -1\right) \right] r^{\nu }=0. \end{aligned}$$
(22)

Which would suggest that since \(A_0\ne 0\) we get

$$\begin{aligned}{} & {} \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\nu \left( \nu -1\right) =0 \Rightarrow \nu =|{\tilde{m}}|+\frac{1}{2}, \end{aligned}$$
(23)
$$\begin{aligned}{} & {} A_{0}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}\nu }{2} -\frac{P_2}{2}\right] \nonumber \\{} & {} \qquad +A_{1}\left[ \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\nu \left( \nu +1\right) \right] =0 \nonumber \\{} & {} \quad \Rightarrow A_{1}=\frac{{\tilde{B}}_2\left[ \frac{{\tilde{B}}_1}{2}\left( |{\tilde{m}}|+\frac{1}{2}\right) -{\tilde{m}}{\tilde{\Omega }}\right] }{{\tilde{\Omega }}\left( |{\tilde{m}}|+\frac{1}{2}\right) }A_0, \end{aligned}$$
(24)

and

$$\begin{aligned}{} & {} A_j\,\left[ {\tilde{\Omega }}^3(j+\nu )-\frac{P_1}{2}\right] \nonumber \\{} & {} \quad +A_{j+1}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}}{2}\left( j+\nu +1\right) -\frac{P_2}{2}\right] \nonumber \\{} & {} \quad +A_{j+2}\left[ \frac{P_3}{2}-\frac{{\tilde{\Omega }}^2}{2}\left( j+\nu +1\right) \left( j+\nu +2\right) \right] =0. \end{aligned}$$
(25)

Consequently, one obtains, for \(j=0,1,2,\ldots \),

$$\begin{aligned} A_{2}= & {} \frac{A_0\,\left[ {\tilde{\Omega }}^3(\nu )-\frac{P_1}{2}\right] +A_{1}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}}{2}\left( \nu +1\right) -\frac{P_2}{2}\right] }{\left[ \frac{{\tilde{\Omega }}^2}{2}\left( \nu +1\right) \left( \nu +2\right) -\frac{P_3}{2}\right] }, \end{aligned}$$
(26)
$$\begin{aligned} A_{3}= & {} \frac{A_1\,\left[ {\tilde{\Omega }}^3(\nu +1)-\frac{P_1}{2}\right] +A_{2}\left[ \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}}{2}\left( \nu +2\right) -\frac{P_2}{2}\right] }{\left[ \frac{{\tilde{\Omega }}^2}{2}\left( \nu +2\right) \left( \nu +3\right) -\frac{P_3}{2}\right] }, \nonumber \\ \end{aligned}$$
(27)

and so on. At this point, we suggest a new truncation condition that facilitates conditional exact solvability of the problem at hand and, at the same time, retrieves the result in (17).

Fig. 1
figure 1

The energy levels for the KG-oscillators in cosmic string rainbow gravity and a mixed magnetic field with the rainbow functions pair \(g_0(y)=1,\, g_1(y)=\sqrt{1-\eta |E|}\), given by Eq. (35), plotted at \(\alpha =0.5,\, m_\circ =1=q=k\) for \(n_r=0,1,2,3,\) and \(m=1\), where a E against \(B_1\) for \(\eta =0\) (no rainbow gravity) and \(B_2=1\), b E against \(B_1\) for \(\eta =0.1\) and \(B_2=1\), and c E against the KG-oscillator frequency \(\Omega \) for \(\eta =0.1\) and \(B_2=1\)

Fig. 2
figure 2

The energy levels for the KG-oscillators in cosmic string rainbow gravity and a mixed magnetic field with the rainbow functions pair \(g_0(y)=1,\, g_1(y)=\sqrt{1-\eta |E|}\), given by Eq. (35), plotted at \(\alpha =0.5,\, m_\circ =1=q=k\) for different \((n_r,m)\)-states, where a E against \(B_1\) for \(\eta =0\) (no rainbow gravity) and \(B_2=1\), b E against the KG-oscillator frequency \(\Omega \) for \(\eta =0.1\) and \(B_2=1\), c E against \(B_2\) for \(\eta =0\) (no rainbow gravity) and \(\Omega =1\), and d E against \(B_2\) for \(\eta =0.1\) and \(\Omega =1\)

Fig. 3
figure 3

The energy levels for the KG-oscillators in cosmic string rainbow gravity and a mixed magnetic field with the rainbow functions pair \(g_0(y)=1,\, g_1(y)=\sqrt{1-\eta E^2}\), given by Eq. (36), plotted at \(\alpha =0.5,\, m_\circ =1=q=k\) for \(n_r=0,1,2,3,\) and \(m=1\), where a E against \(B_1\) for \(\eta =0\) (no rainbow gravity) and \(B_2=1\), b E against \(B_1\) for \(\eta =0.1\) and \(B_2=1\), and c E against the KG-oscillator frequency \(\Omega \) for \(\eta =0.1\) and \(B_2=1\)

Our three terms recursion relation (25) allows us to use a valid/viable truncation condition so that \(\forall {j}=n_r\) we may assume that \(A_{n_r+2}=0\), \(A_{n_r+1}\ne 0\), and \(A_{n_r}\ne 0\). The first, \(A_{n_r+2}=0\), would truncate the power series to a polynomial of order \((n_r+1)\ge 1\). The second and the third would, in turn, validate the assumption that their coefficients identically vanish. That is, \(\forall {j}=n_r\), we have

$$\begin{aligned}{} & {} \frac{{\tilde{B}}_1{\tilde{B}}_2 {\tilde{\Omega }}}{2}\left( n_r+\nu +1\right) -\frac{P_2}{2}=0 \Rightarrow \Omega ^2\nonumber \\{} & {} \quad =\frac{{\tilde{B}}_1^2}{4{\tilde{m}}^2}\left[ \left( n_r+|{\tilde{m}}|+\frac{3}{2}\right) ^2-{\tilde{m}}^2\right] , \end{aligned}$$
(28)

and

$$\begin{aligned}{} & {} {\tilde{\Omega }}^3(n_r+\nu )-\frac{P_1}{2}=0 \Rightarrow \lambda ^2\nonumber \\{} & {} \quad =2 {\tilde{\Omega }} (n_r+|{\tilde{m}}|+1)-\frac{{\tilde{B}}_1^2{\tilde{B}}_2^2}{4{\tilde{\Omega }}^2}. \end{aligned}$$
(29)

Notably, while the result in (29) is consistent with that in (17), the result in (28) provides a parametric correlation between the magnetic fields \(B_{1,z}={g_1(y)^2B_1/\alpha }\) and the KG-oscillator’s frequency \(\Omega \). This correlation is clearly mandatory (and is an alternative to the condition provided by Ronveaux [50]) for the condition used to obtain the result in (17). Our result in (29) would consequently yield

$$\begin{aligned} g_0(y)^2 E^2-m_\circ ^2=g_1(y)^2{\mathcal {G}}_{n_r,m}, \end{aligned}$$
(30)

where

$$\begin{aligned} {\mathcal {G}}_{n_r,m}= & {} 2 {\tilde{\Omega }} (n_r+|{\tilde{m}}|+1)-\frac{{\tilde{B}}_1^2{\tilde{B}}_2^2}{4{\tilde{\Omega }}^2}\nonumber \\{} & {} +k^2+({\tilde{B}}_2^2-{\tilde{m}}{\tilde{B}}_1)+2\Omega . \end{aligned}$$
(31)

We start with the rainbow functions pair \(g_0(y)=1,\,\, g_1(y)=\sqrt{1-\epsilon y}=\sqrt{1-\eta |E|}\), where \(\eta =\epsilon /E_p\). In this case, our result in (30) would imply

$$\begin{aligned} E^2+\eta \, {\mathcal {G}}_{n_r,m}\,|E|-\left( m_\circ ^2+{\mathcal {G}}_{n_r,m}\right) =0. \end{aligned}$$
(32)
Fig. 4
figure 4

The energy levels for the KG-oscillators in cosmic string rainbow gravity and a mixed magnetic field with the rainbow functions pair \(g_0(y)=1,\, g_1(y)=\sqrt{1-\eta |E|}\), given by Eq. (36), plotted at \(\alpha =0.5,\, m_\circ =1=q=k\) for different \((n_r,m)\)-states, where a E against \(B_1\) for \(\eta =0\) (no rainbow gravity) and \(B_2=1\), b E against the KG-oscillator frequency \(\Omega \) for \(\eta =0.1\) and \(B_2=1\), c E against \(B_2\) for \(\eta =0\) (no rainbow gravity) and \(\Omega =1\), and d E against \(B_2\) for \(\eta =0.1\) and \(\Omega =1\)

Which would read

$$\begin{aligned}{} & {} E_+^2+\eta \, {\mathcal {G}}_{n_r,m}\, E_+ -\left( m_\circ +{\mathcal {G}}_{n_r,m}\right) =0 \nonumber \\{} & {} \quad \Rightarrow E_+ =-\frac{\eta \, {\mathcal {G}}_{n_r,m}}{2} +\sqrt{\frac{\eta ^2 \, {\mathcal {G}}_{n_r,m}^2}{4}+\left( m_\circ ^2+{\mathcal {G}}_{n_r,m}\right) },\nonumber \\ \end{aligned}$$
(33)

for \(E=+E_+=+|E|\), and

$$\begin{aligned}{} & {} E_-^2-\eta \, {\mathcal {G}}_{n_r,m}\, E_- -(m_\circ +{\mathcal {G}}_{n_r,m})=0\nonumber \\{} & {} \quad \Rightarrow E_-= +\frac{\eta \, {\mathcal {G}}_{n_r,m}}{2} -\sqrt{\frac{\eta ^2 \, {\mathcal {G}}_{n_r,m}^2}{4}+(m_\circ ^2+{\mathcal {G}}_{n_r,m})},\nonumber \\ \end{aligned}$$
(34)

for \(E=E_-=-|E|\). This would eventually yield

$$\begin{aligned} E_\pm ={\mp }\frac{\eta \, {\mathcal {G}}_{n_r,m}}{2}\pm \sqrt{\frac{\eta ^2 \, {\mathcal {G}}_{n_r,m}^2}{4}+\left( m_\circ ^2+{\mathcal {G}}_{n_r,m}\right) }. \end{aligned}$$
(35)

In Fig. 1, we plot the energy levels for the KG-oscillators given by Eq. (35), for \((n_r,m)\)-states with \(n_r=0,1,2,3,\) and magnetic quantum number \(m=1\) (i.e., the minimum allowed m value as mandated by the correlation in (28)). To observe rainbow gravity effect, we compare the energy levels, in Fig. 1a, E against \(B_1\) at \(\eta =0\) (no rainbow gravity) and \(B_2=1\), with those in Fig. 1b for \(\eta =0.1\). Moreover, the rainbow gravity effect is also observed in Fig. 1c for E against the KG-oscillator frequency \(\Omega \) with \(\eta =0.1\). In Fig. 2, we plot the energy levels for different \((n_r,m)\)-states, namely, states labeled (2, 1), (3, 2), (4, 3), (5, 4). Where, the comparison between Fig. 2a, with no rainbow gravity, and Fig. 2b, with rainbow gravity, would clearly identify the rainbow gravity effect. In Fig. 2b, without rainbow gravity, and Fig. 2c, with rainbow gravity, we plot E against \(B_2\) and observe, along with rainbow gravity effect, energy levels crossings. Such energy levels crossings may very well be identified as occasional degeneracies due to the structure of \({\mathcal {G}}_{n_r,m}\) in (31) and has nothings to do with rainbow gravity (as documented in Fig. 2c), but such degeneracies are rather manifestly introduced by the two \(B_2\) competing terms of \({\mathcal {G}}_{n_r,m}\) (i.e., the second and the fourth terms in (31)). These energy levels crossing are consequences of the effect of \(B_2\), therefore. Such energy levels crossings turn the spectra of the KG-oscillator upside down, as \(B_2\) grows up passing the crossing points. In both Figs. 1 and 2, we observe that under rainbow gravity, the maximum allowed energy is given by \(|E|_{max}=1/\eta =E_p\) for \(\epsilon =1\). This is made obvious in the related figures as \(|E|_{max}\approx 10\) for \(\eta =0.1\) value used therein.

Next, we consider the rainbow functions pair \(g_0(y)=1,\,\, g_1(y)=\sqrt{1-\epsilon y^2}=\sqrt{1-\zeta E^2}\), where \(\zeta =\epsilon /E_p^2\) in (30) to obtain

$$\begin{aligned} E^2\,\left( 1+\zeta \,{\mathcal {G}}_{n_r,m}\right)= & {} m_\circ ^2+{\mathcal {G}}_{n_r,m} \Rightarrow E\nonumber \\= & {} E_\pm =\pm \sqrt{\frac{m_\circ ^2+{\mathcal {G}}_{n_r,m}}{\left( 1+\zeta \,{\mathcal {G}}_{n_r,m}\right) }}. \end{aligned}$$
(36)

In Figs. 3 and 4, we plot the energy levels we plot the energy levels for (36) for \((n_r,m)\)-states with \(n_r=0,1,2,3,\) and magnetic quantum number \(m=1\) (i.e., the minimum allowed m value as mandated by the correlation in (28)). We observe the rainbow gravity effects through the comparison between the energy levels, in Fig. 3a, against \(B_1\) at \(\eta =0\) (no rainbow gravity) and \(B_2=1\), with those in Fig. 3b against \(B_1\) and in Fig. 3c against the KG-oscillator frequency \(\Omega \) for \(\eta =0.1\). In Fig. 4, we plot the energy levels for different \((n_r,m)\)-states, namely, states labeled (2, 1), (3, 2), (4, 3), (5, 4). Where, the comparison between the energy levels in Fig. 4a against \(B_1\), in no rainbow gravity, and in Fig. 4b against \(B_1\), in rainbow gravity, clearly documents the rainbow gravity effect. In Fig. 4c against \(B_2\), without rainbow gravity, and Fig. 4d against \(B_2\), with rainbow gravity, and again observe, along with rainbow gravity effect, energy levels crossings (such energy levels crossings, again, turn the spectra of the KG-oscillator upside down, in this case. ). Yet again in both Figs. 3 and 4, we observe that under, rainbow gravity, the maximum allowed energy is given by \(|E|_{max}=1/\sqrt{\zeta }=E_p\) for \(\epsilon =1\). This is reflected on the related rainbow gravity Figs. 3 and 4 as \(|E|_{max}\approx 3.16\) for \(\zeta =0.1\) value used therein.

4 Landau-like signature on the KG-oscillators energies

Complementary to the above discussion, one may set \(B_2=0\). In this case, the coefficients of \(A_{n_r+1}\) would readily disappear and our correlation in (28) cease to exist (by the LHS part definition of the said correlation). As a result, our solution would be now classified as an exact solution with our \({\mathcal {G}}_{n_r,m}\) in (31) now reads

$$\begin{aligned} {{\mathcal {G}}}_{n_r,m}=2 {\tilde{\Omega }} (n_r+|{\tilde{m}}|+1)+k^2-{\tilde{m}}{\tilde{B}}_1+2\Omega . \end{aligned}$$
(37)

Obviously, a Landau-like signature on the energy levels is introduced by the third term, \({\tilde{m}}{\tilde{B}}_1\). Our energy levels reported in (35) and (36) remain the same but with our new \({\mathcal {G}}_{n_r,m}\) in (37). In the absence of rainbow gravity, for example, the KG-oscillators’ Landau-like energy levels are given by

$$\begin{aligned} E_\pm =\pm \sqrt{m_\circ ^2+2 {\tilde{\Omega }} (n_r+|{\tilde{m}}|+1)+k^2-{\tilde{m}}{\tilde{B}}_1+2\Omega }.\nonumber \\ \end{aligned}$$
(38)

Of course, such Landau-like signatures can also be traced in the spectra of the KG-oscillators discussed in the preceding section in the mixed magnetic field used.

At this point, one should observe that the same result in (38) is also obtainable using the intimate relation between the biconfluent Heun function and the confluent hypergeometric functions \(H_B(\alpha , 0, \gamma , 0, z)=\,_1F_1\left( \frac{1}{2}+\frac{\alpha }{4}-\frac{\gamma }{4},1+\frac{\alpha }{2},z^2\right) \) in (16) and the related truncation condition for the confluent hypergeometric function to a polynomial of order \(n_r\ge 0\) (i.e., \(\gamma =4n_r+2+\alpha \) so that our \(\alpha =2|{\tilde{m}}|\), \(\gamma =\lambda ^2/{\tilde{\Omega }}\), and \(z=\sqrt{{\tilde{\Omega }}}r\) ).

5 Concluding remarks

In this paper, we have studied and investigated KG-oscillators in cosmic string rainbow gravity spacetime in a mixed magnetic field generated by the 4-vector potential \(A_\varphi =A_{1,\varphi }+A_{2,\varphi }=B_1 r^2/2+B_2 r\). Such a 4-vector potential structure would introduce a magnetic field \({{\textbf {B}}}={{\textbf {B}}}_1+{{\textbf {B}}}_2={\hat{z}}\, B_z\), representing the superposition of two magnetic fields such that \(A_{1,\varphi }\Rightarrow {{\textbf {B}}}_1={\hat{z}}\,{g_1(y)^2}B_1/{\alpha }\) and \(A_{2,\varphi }\Rightarrow {{\textbf {B}}}_2={\hat{z}}\,{g_1(y)^2}B_2/{\alpha r}\) to yield the total magnetic field given in (7). Obviously, in no rainbow gravity (i.e., \(g_1(y)=1\)), \({{\textbf {B}}}_1\) is considered to be a uniform magnetic field, whereas \({{\textbf {B}}}_2\) is considered as a non-uniform one. Hence, the superposition of the two would be classified as non-uniform. At this point, the reader should be reminded that \({{\textbf {B}}}_1\) satisfies the homogeneous Maxwell equations whereas \({{\textbf {B}}}_2\) satisfies the inhomogeneous Maxwell equations in the non-null electrovacuum. The later could only be generated by a non-zero current \(J_\varphi =g_{\varphi \varphi } J^\varphi =-B_2\,g_1(y)^2/\mu _\circ r\) manifestly introduced by a string at \(r=0\), at which the current is divergent. Both magnetic fields, moreover, satisfy the two fundamental invariants of the electromagnetic fields (as discussed in more details in [35]). Under rainbow gravity, however, the two magnetic fields (each at a time or both at the same time) become probe particle/anti-particle energy-dependent magnetic fields. Interestingly, rainbow gravity does not only affect the spectroscopic structure of the quantum mechanical system at hand but also affects the magnetic field structure.

The mixed magnetic field setting is used for the first time in the current proposal, to the best of our knowledge. Therefore, in order to clearly distinguish between the effects of rainbow gravity and the effects of the mixed magnetic field, we sought some rainbow functions pairs that fully comply with the intended rainbow gravity characteristic (i.e., \(|E_{max}|\le E_p\) ), for both particles and anti-particles alike. Our experience in [30, 31] has left us with no doubt that the loop quantum gravity motivated [32, 33] rainbow functions, (6), are the most suitable ones to use herein above. Only under such a sample model one may do healthful analysis, in our opinion. One may, nevertheless, wish to investigate, within the current methodical proposal setting, the rainbow function pair \(g_0(y)=(e^{\epsilon y}-1)/\epsilon y\), \(g_1(y)=1\) associated with gamma-ray bursts [15]. and/or use the the pair \(g_0(y)=g_1(y)=(1-\epsilon y)^{-1}\) associated with the horizon problem [24, 34]. The use of which already lies far beyond the scope of the current study.

In the light of our experience above, the energy levels of the KG-oscillators in cosmic string rainbow gravity are observed to fully comply with rainbow gravity and secure their maximum possible energies to remain below the Planck energy scale, i.e., \(|E_\pm |\le E_p\), for the loop quantum gravity motivated rainbow functions in (6). Such rainbow gravity effect is readily documented in the figures reported above.

Fig. 5
figure 5

Equation (39) for different values of \(B_2\) using the corresponding values used in Fig. 2(c)

Notably, the correlation (28) that facilitates the conditional exact solvability constraints our magnetic quantum number to satisfy \(m\ge 1\). The quantum states with \(m=0\) are left unfortunate, therefore. This is the price one has to pay in the absence of exact solvability of quantum mechanical systems, However, we have reported a significant set of quantum states that allowed us to adequately study/analyse the effects of the gravitational field of the cosmic string on the KG-oscillators under rainbow gravity settings and in a mixed magnetic field. The most intriguing observation of the current study, nevertheless, are the energy levels crossings (or may very well be identified as occasional degeneracies) that are manifested in the process of increasing the magnetic field strength \(B_2\). The energy levels crossings have flipped over the spectra in such away that the KG-oscillators’ spectra is turned upside down. This effect is in fact a consequence of the structure of \({\mathcal {G}}_{n_r,m}\) in (31) (and has nothings to do with rainbow gravity as documented in 2(c)). That is, in terms of \(\tilde{B_1}\) and \(\tilde{B_2}\) one may rewrite \({\mathcal {G}}_{n_r,m}\) of (31)), using the correlation (28), as

$$\begin{aligned} {\mathcal {G}}_{n_r,m}= & {} \frac{\tilde{B_1}}{|{\tilde{m}}|} (n_r+|{\tilde{m}}|+1) \left( n_r+|{\tilde{m}}|+\frac{3}{2}\right) \nonumber \\{} & {} -\frac{{\tilde{m}}^2{\tilde{B}}_2^2}{(n_r+|{\tilde{m}}|+\frac{3}{2})^2} +{\tilde{B}}_2^2-{\tilde{m}}{\tilde{B}}_1\nonumber \\{} & {} +\frac{\tilde{B_1}}{|{\tilde{m}}|}\sqrt{(n_r+|{\tilde{m}}|+\frac{3}{2})^2-{\tilde{m}}^2}+ k^2, \end{aligned}$$
(39)

where, by the correlation (28), we have used

$$\begin{aligned} \tilde{B_1}=\frac{2|{\tilde{m}}|\Omega }{\sqrt{(n_r+|{\tilde{m}}|+\frac{3}{2})^2-{\tilde{m}}^2}}. \end{aligned}$$
(40)

Therefore, the implicit competition between the two magnetic fields in (39) shapes the spectroscopic structure and yields energy levels crossing that consequently turns the spectra upside down as \(B_2\) increases. In Fig. 5, we plot \({\mathcal {G}}_{n_r,m}\) of (39) against \(B_2\) for the corresponding values used in Fig. 2c. Figure 5 clearly indicates that the behavior of \({\mathcal {G}}_{n_r,m}\) against \(B_2\) is inherited by the energy levels against \(B_2\) plotted and reported above. One should clearly observe that the contribution of the second term in (39) decreases for larger quantum numbers while the third term remains the same, for a given \(B_2\).

Our new truncation approach of the biconfluent Heun function to a polynomial of order \((n_r+1)\ge 1\) (and not to a polynomial of order \(n_r\ge 0\)) has manifestly introduced a new alternative condition to those described by Ronveaux [50] and/or by Ishkhanyan et al. [51]. Such a new truncation recipe retrieves the results of Ronveaux [50] and/or Ishkhanyan et al. [51] on the truncation of biconfluent Heun function \(H_B(\alpha , \beta , \gamma , \delta , z)\) to a polynomial of order \(n_r\ge 0\) (and not of order \((n_r+1)\ge 0\)) for \(\gamma =2(n_r+1)+\alpha \). We have rather used the new truncation conditions so that \(\forall {j}=n_r\) we may assume that \(A_{n_r+2}=0\), \(A_{n_r+1}\ne 0\), and \(A_{n_r}\ne 0\). Whilst the first, \(A_{n_r+2}=0\), would truncate the power series into a polynomial of order \((n_r+1)\ge 1\), the vanishing coefficients of the second, \(A_{n_r+1}\ne 0\), would yield that \(\delta --\beta (2n_r+\alpha +3)\) as an alternative recipe (the details on such recipe of the solution of the biconfluent Heun equation are discussed in the Appendix below).

Finally, our analysis above provides a brute force documentation that supports the argument of Bezerra et al. [19] on that rainbow gravity is not merely a mathematical time-coordinate rescaling. We have clearly observed that rainbow gravity not only significantly affects the spectroscopic structure of the quantum particles but also renders the magnetic field to be energy-dependent. To the best of our knowledge, KG-oscillators in a cosmic string rainbow gravity in the above mixed magnetic field have never been discussed elsewhere. Yet, the current methodical proposal provides a set of conditionally exactly solvable models that are very frequently used to study the gravitational fields effects that are of interest in not only quantum gravity but also in condense matter physics.