1 Introduction

In the paper, magnetostatic solutions of Einstein–Maxwell field equations are constructed from the stationary two-soliton solutions of Einstein’s vacuum field equations in general relativity. For this purpose we first construct diagonal two-soliton solutions for a stationary axially symmetric space-time using the soliton technique of Belinskii and Zakharov [1, 2]. The generated stationary gravitational solutions are then used to construct static magnetovac solutions of Einstein–Maxwell field equations. We have also investigated some properties of the generated stationary gravitational two-soliton metric. The solutions are found to be asymptotically flat containing monopole, dipole and other higher mass multipoles. Under some restrictions on the constants, it is shown that the solutions reduce to the Schwarzschild [3], Kerr [4] and Kerr-NUT [5] metrics. When no such restrictions are imposed, the solutions may be interpreted as the nonlinear superposition of the Kerr metric with an external gravitational field. Our solution possesses an event horizon. The surface area of the horizon is evaluated.

Magnetostatic solutions are then constructed from the generated stationary gravitational two-soliton metric using the simple transformation of Das and Chaudhuri [6]. To relate the metric coefficients obtained by the soliton technique and those of the static magnetovac solutions, we have used a second transformation presented by Chaudhuri [7] by which magnetostatic solutions are obtained in a straightforward way from the gravitational two-soliton solutions.

The mass and the magnetic dipole moment of the source are evaluated. It may be mentioned here that the method followed in the paper to construct magnetostatic solutions deserves attention, although the transformation techniques are already known. The use of the second transformation makes our procedure of obtaining magnetostatic solutions from stationary gravitational two-soliton solutions very simple and probably was not used before in the literature for the purpose. The results are obtained in a compact form. It is expected that this is indeed an addition to the list of new solution generating techniques of Einstein/Einstein–Maxwell field equations.

In Sect. 2, the soliton technique of Belinskii and Zakharov [1, 2] is briefly described. In Sect. 3, stationary axially symmetric vacuum solutions using the soliton technique are generated. Magnetostatic solutions corresponding to the generated stationary gravitational solutions are constructed in Sect. 4. Our conclusion follows in Sect. 5.

2 The soliton technique

The soliton technique discovered by Belinskii and Zakharav (BZ) [1, 2] is a very useful method of generating exact solutions of Einstein’s gravitational field equations. Several authors have presented a number of exact solutions of Einstein’s field equations using this technique. Since the method of BZ is well known in the literature, here we describe the technique in brief. For a detailed study of the soliton technique one may consult references [1, 2, 8,9,10,11,12].

A general stationary axially symmetric line element in (rz) coordinates may be represented by

$$\begin{aligned} \mathrm{d}s^{2}=g_{ab} \mathrm{d}x^{a}\mathrm{d}x^{b}+e^{\nu }( {\mathrm{d}r^{2}+\mathrm{d}z^{2}}), \end{aligned}$$
(1)

where ab take values 1, 2 and \(t,\phi =x^{1},\;x^{2}\), respectively. The metric coefficients \(g_{ab} \) and \(\nu \) are functions of rz only.

The Einstein field equations for the metric (1) are [2]

$$\begin{aligned} U_r +V_z =0, \end{aligned}$$
(2)
$$\begin{aligned} \nu _r =-r^{-1}+( {4r} )^{-1}Tr( {U^{2}-V^{2}} ), \end{aligned}$$
(3)
$$\begin{aligned} \nu _z =( {2r} )^{-1}Tr( {UV} ), \end{aligned}$$
(4)
$$\begin{aligned} \mathrm{where}\quad U=rg_r g^{-1}\quad \mathrm{and}\quad V=rg_z g^{-1} \end{aligned}$$
(5)

The subscripts rz denote partial differentiations. The metric coefficient \(\nu \) can be determined from Eqs. (3) and (4) once g is known and the integrability condition of \(\nu \) is Eq. (2). For physically acceptable solutions we have the supplementary condition [9]

$$\begin{aligned} \det \;g_o =-r^{2}, \end{aligned}$$
(6)

where \(g_0 \) is a (\(2\times 2\)) matrix associated with \(g_{ab} \). Soliton solutions to Eq. (2) are obtained by solving the following two differential equations [1, 2]:

$$\begin{aligned} \left( {\partial _r +\frac{2\lambda r}{\lambda ^{2}+r^{2}}\partial _\lambda } \right) \Omega =\frac{rU+\lambda V}{\lambda ^{2}+r^{2}}\Omega , \end{aligned}$$
(7)
$$\begin{aligned} \left( {\partial _z -\frac{2\lambda ^{2}}{\lambda ^{2}+r^{2}}\partial _\lambda } \right) \Omega =\frac{rV-\lambda U}{\lambda ^{2}+r^{2}}\Omega , \end{aligned}$$
(8)

where \(\lambda \) is a complex spectral parameter and the eigenfunction \(\Omega \) is a two-dimensional matrix which satisfies the relation

$$\begin{aligned} \Omega \left. {(r,z,\lambda )} \right| _{\lambda =0} =g_0 (r,z). \end{aligned}$$
(9)

Once \(\Omega \) is known, the generated metric coefficients are obtained from the following relations [2, 9, 12]:

$$\begin{aligned} {g}'_{ab} =( {g_o } )_{ab} -\sum _{k,l=1}^N {N_a^l ( {\Gamma ^{-1}} )_{lk}} N_b^k \mu _k^{-1} \mu _l^{-1}, \end{aligned}$$
(10)
$$\begin{aligned} \Gamma _{kl} =m_c^k ( {g_o } )_{ca} m_a^l ( {\mu _k \mu _l +r^{2}} )^{-1}, \end{aligned}$$
(11)
$$\begin{aligned} m_a^k =m_{oc}^k [ {\Omega ^{-1}( {r,z,\lambda =\mu _k } )} ]_{ca}, \end{aligned}$$
(12)
$$\begin{aligned} N_a^k =m_b^k ( {g_o } )_{ba}, \end{aligned}$$
(13)
$$\begin{aligned} \mu _k =\omega _k -z+[ {( {\omega _k -z} )^{2}+r^{2}} ]^{1/2}, \end{aligned}$$
(14)

where \(m_{oc}^k \) and \(\omega _k \) are arbitrary constants and \(\mu _k\)’s are the pole trajectories. The indices k and l can take values from 1 to N. Here N is the number of solitons i.e. the number of poles that appears in the scattering matrix. For \(N = 1\), it is called one-soliton solutions, \(N = 2\), is the two-soliton solutions and so on.

The new metric \(g^{\prime }_{ab} \) given by Eq. (10) is a solution to Eq. (2) but, in general, it does not satisfy Eq. (6). A physically acceptable \(g=g_{ab}^{ph} \) is defined by the relation [9]

$$\begin{aligned} g_{ab}^{ph} =-r( {-\det {g}'} )^{-1/2}{g}'_{ab}, \end{aligned}$$
(15)
$$\begin{aligned} \mathrm{where},\quad \det {g}'=(-1)^{N}r^{2N}\left( {\prod _{k=1}^N {( {\mu _k^2 } )^{-1}} } \right) \det g_o. \end{aligned}$$
(16)

For general N-soliton solutions the function \(\nu \) is given by [9, 12]

$$\begin{aligned} \nu _N= & {} \nu _0 +\ln \Bigg [r^{{-N^{2}}/2}\nonumber \\&\times \,\left( {\prod _{k=1}^N {\mu _k } } \right) ^{N+1}\left( {\prod _{ \begin{array}{l} k,l=1 \\ k \rangle l \\ \end{array}} ^N {( {\mu _k -\mu _l } )} ^{2}} \right) ^{-2}\nonumber \\&\times \,\det \Gamma _{kl} \Bigg ]+\ln C_N, \end{aligned}$$
(17)

where \(C_{N}\) are arbitrary constants and \(\nu _{0}\) is the \(\nu \)-function of the static metric. The expression for \(\nu _{0}\) is given in Sect. 3.

3 The generated stationary gravitational solutions

In this section, two-soliton solutions of Einstein’s vacuum field equations for an axially symmetric stationary metric are constructed using a Laplace’s solution as seed. The solutions are found to be asymptotically flat and contain monopole, dipole and other higher mass multipoles.

We consider a general static axially symmetric metric

$$\begin{aligned} \mathrm{d}s^{2}=e^{\nu _0 }(\mathrm{d}r^{2}+\mathrm{d}z^{2})+r^{2}e^{-\psi }\mathrm{d}\phi ^{2}-e^{\psi }\mathrm{d}t^{2}, \end{aligned}$$
(18)

where \(\psi =\psi (r,z)\) is a Laplace solution and \(\nu _{0}\), the \(\nu \)-function of the static metric, is given by [9]

$$\begin{aligned} \nu _0 (\psi )=-\psi +\frac{1}{2}\int {\big [ {r\big \{ {\big ( {\psi _r ^{2}-\psi _z ^{2}} \big )\mathrm{d}r+2\psi _r \psi _z \mathrm{d}z} \big \}} \big ]}, \end{aligned}$$
(19)

where the subscripts r and z denote partial differentiations.

We take Laplace’s solution \(\psi \) as seed in the general static metric and assume \(g_0 \) as

$$\begin{aligned} g_o =\left( {{ \begin{array}{ll} {-e^{\psi }}&{} 0 \\ 0&{} {r^{2}e^{-\psi }} \\ \end{array} }} \right) , \end{aligned}$$
(20)

satisfying Eq. (6).

Since the seed solution is diagonal, we take the eigenfunction \(\Omega \) as a \(2\times 2\) diagonal matrix and write \(\Omega \) in the form

$$\begin{aligned} \Omega =\left( {{ \begin{array}{lc} {-e^{F_k }}&{} 0 \\ 0&{} {( {r^{2}-2\lambda z-\lambda ^{2}} )e^{-F_k }} \\ \end{array} }} \right) , \end{aligned}$$
(21)

such that \(F_{k}=\psi \) when \(\lambda \) = 0.

The function \(F_{k }= F_{k}({r,z,\lambda })\) satisfies the following relations [9]:

$$\begin{aligned} \left( {r\frac{\partial }{\partial r}-\lambda \frac{\partial }{\partial z}+2\lambda \frac{\partial }{\partial \lambda }} \right) F_k =r\frac{\partial \psi }{\partial r}, \end{aligned}$$
$$\begin{aligned} \left( {r\frac{\partial }{\partial \lambda }+\lambda \frac{\partial }{\partial r}} \right) F_k =r\frac{\partial \psi }{\partial z}. \end{aligned}$$
(22)

For two-soliton solutions there are two poles \({\mu _{1}}\) and \({\mu _{2}}\). Since the solutions are required along the pole trajectories \({\lambda =\mu _{k}}\), \(F_{k,}\) should have two values, \(F_{1}\) and \(F_{2}\).

In prolate spheroidal coordinates (xy) defined by

$$\begin{aligned} r^{2}=K^{2}( {x^{2}-1} )( {1-y^{2}} ), \quad z=z_1 +Kxy, \end{aligned}$$
(23)

we take the Laplace solution \(\psi \) in the form

$$\begin{aligned} \psi =\alpha _0 xy( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}, \end{aligned}$$
(24)

where K, \(z_1 \) and \(\alpha _0 \) are constants.

Assuming that the arbitrary constant \(\omega _k \) appearing in Eq. (14) is real having values \(\omega _1 \) and \(\omega _2 \) for two-soliton solutions, the poles \({\mu _{1}}\) and \({\mu _{2}}\) in (xy) coordinates are found to be

$$\begin{aligned} \begin{aligned}&\mu _1 =K( {x+1} )( {1-y} ),\\&\mu _2 =K( {x-1} )( {1-y} ). \end{aligned} \end{aligned}$$
(25)

With \(\psi \) given by Eq. (24), \(F_{1}\) and \(F_{2}\), in prolate spheroidal coordinates, are obtained:

$$\begin{aligned} F_1 =-\frac{1}{2}\alpha _0 ( {x^{3}-xy-x+y-y^{3}} )( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}, \end{aligned}$$
(26)
$$\begin{aligned} F_2 =-\frac{1}{2}\alpha _0 ( {x^{3}-xy-x-y+y^{3}} )( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}. \end{aligned}$$
(27)

Using Eqs. (10)–(17) and after cumbersome mathematical calculations, physically acceptable metric coefficients \(g_{ab} ^{ph}\) are found to be

$$\begin{aligned}&g_{11} ^{ph}=-\exp \Big [ {\alpha _0 xy( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}} \Big ] \left[ { \begin{array}{l} c_1 ^{2}( {1-y^{2}} )e^{-2f_1 }+c_2 ^{2}( {1-y^{2}} )e^{2f_1 }-c_3 ^{2}( {x^{2}-1} )e^{-2f_2 } \\ -\,c_4 ^{2}( {x^{2}-1} )e^{2f_2 }+2c_1 c_2 ( {x^{2}-y^{2}} ) \\ \end{array}} \right] D^{-1},\end{aligned}$$
(28)
$$\begin{aligned}&g_{22} ^{ph}=K^{2}( {x^{2}-1} )( {1-y^{2}} ) \exp \Big [ {\alpha _0 xy( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}} \Big ]\nonumber \\&\qquad \qquad \times \left[ { \begin{array}{l} c_1 ^{2}( {1+y} )^{3}( {1-y} )^{-1}e^{-2f_1 }+c_2 ^{2}( {1-y} )^{3}( {1+y} )^{-1}e^{2f_1 } - c_3 ^{2}( {x-1} )^{3}( {x+1} )^{-1}e^{2f_2 } \\ -\,c_4 ^{2}( {x+1} )^{3}( {x-1} )^{-1}e^{2f_2 }+2c_1 c_2 ( {x^{2}-y^{2}} ) \\ \end{array}} \right] D^{-1}, \end{aligned}$$
(29)
$$\begin{aligned}&g_{12} ^{ph}=g_{21} ^{ph}=2KD^{-1}\left[ { \begin{array}{l} \left( {x+y} \right) \left\{ {c_1 c_3 \left( {x-1} \right) \left( {1+y} \right) e^{2u}-c_2 c_4 \left( {x+1} \right) \left( {1-y} \right) e^{-2u}} \right\} \\ -\,\left( {x-y} \right) \left\{ {c_1 c_4 \left( {x+1} \right) \left( {1+y} \right) e^{2v}-c_2 c_3 \left( {x-1} \right) \left( {1-y} \right) e^{-2v}} \right\} \\ \end{array}} \right] , \end{aligned}$$
(30)
$$\begin{aligned}&\nu _2 =\nu _0 +\ln D-\ln \big [ {16K^{2}( {x^{2}-y^{2}} )} \big ]+\ln C_2,\end{aligned}$$
(31)
$$\begin{aligned}&\nu _0 =-\frac{1}{4}\alpha _0 ( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}\bigg [ 4xy-\alpha _0 \bigg \{( {x^{2}+y^{2}-1} )^{2}\nonumber \\&\quad \qquad -\,10x^{2}y^{2}( {x^{2}+y^{2}-1} )+9x^{4}y^{4} \bigg \}( {x^{2}+y^{2}-1} )^{-\frac{5}{2}} \bigg ],\nonumber \\ \end{aligned}$$
(32)
$$\begin{aligned} D= & {} c_1 ^{2}( {1+y} )^{2}e^{-2f_1 }+c_2 ^{2}( {1-y} )^{2}e^{2f_1 }+c_3 ^{2}( {x-1} )^{2}e^{-2f_2 }\nonumber \\&+\,c_4 ^{2}( {x+1} )^{2}e^{2f_2 }-2c_1 c_2 ( {x^{2}-y^{2}} ), \end{aligned}$$
(33)
$$\begin{aligned} f_1 =\alpha _0 x( {x^{2}-1} )( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}, \end{aligned}$$
(34)
$$\begin{aligned} f_2 =\alpha _0 y( {1-y^{2}} )( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}, \end{aligned}$$
(35)
$$\begin{aligned}&2u=-( {f_1 +f_2 } ),\nonumber \\&2v=( {f_1 +f_2 } ), \end{aligned}$$
(36)
$$\begin{aligned}&c_1 =m^{1}_{02} m^{2}_{02} ( {4\omega _1 \omega _2 } )^{-1}, \quad c_2 =m^{1}_{01} m^{2}_{01}\nonumber \\&c_3 =-m^{1}_{02} m^{2}_{01} ( {2\omega _1 } )^{-1},\quad c_4 =-m^{2}_{02} m^{1}_{01} ( {2\omega _2 } )^{-1} . \end{aligned}$$
(37)

The stationary metric (1) is thus completely given by Eqs. (28)–(37).

The asymptotic expansion of \(g_{11} ^{ph}\) is obtained:

$$\begin{aligned} g_{11} ^{ph}=1+\frac{2a_2 }{a_1 }.\frac{1}{x}+\frac{a_3 }{a_1 ^{2}}.\frac{1}{x^{2}}+\cdots \end{aligned}$$
(38)

where

$$\begin{aligned}&a_1 =( {c_3 -c_4 } )^{2}, \quad a_2 =c_3 ^{2}-c_4 ^{2}, \quad a_3 =a_4 -a_1 ^{2}( {1-\alpha _0 y} ),\nonumber \\&a_4 =4a_2 ^{2}-a_1 \big [a_5 +2y\big ( {c_1 ^{2}\beta _1 -c_2 ^{2}\beta _2 } \big )\nonumber \\&\quad \qquad +\,y^{2}\big ( {c_1 ^{2}\beta _1 +c_2 ^{2}\beta _2 -2c_1 c_2 } \big )\big ],\nonumber \\&a_5 =c_1 ^{2}\beta _1 +c_2 ^{2}\beta _2 +c_3 ^{2}+c_4 ^{2},\nonumber \\&\beta _1 =1+2\alpha _0 ( {1+\alpha _0 } ), \quad \beta _2 =1-2\alpha _0 ( {1-\alpha _0 } ). \end{aligned}$$
(39)

The static limit of the solutions (28)–(30) is obtained with

$$\begin{aligned} m^{2}_{01} =0, \quad m^{1}_{02} =0. \end{aligned}$$

In the static limit one obtains

$$\begin{aligned} g_{11} ^{ph}=\left( {\frac{x-1}{x+1}} \right) \exp \Big [ {\alpha _0 xy( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}} \Big ]. \end{aligned}$$
(40)

This may be interpreted as the Schwarzschild metric embedded in an external gravitational field. When the parameter \(\alpha _0 \), representing the strength of the external field, vanishes, i.e. \(\alpha _0 =0\), one recovers the Schwarzschild solution [3]

$$\begin{aligned} g_{11} ^{ph}( {Sch} )=\left( {\frac{x-1}{x+1}} \right) . \end{aligned}$$
(41)

If we redefine the constants by

$$\begin{aligned} c_3 -c_4 =k, \quad c_3 +c_4 =-m, \quad c_1 +c_2 =a, \quad c_1 -c_2 =h, \end{aligned}$$
(42)

and substitute \(\alpha _0 =0\) in Eq. (28), we obtain

$$\begin{aligned} g_{11} ^{ph}=\frac{k^{2}x^{2}+a^{2}y^{2}-( {m^{2}+h^{2}} )}{( {kx+m} )^{2}+( {ay+h} )^{2}}. \end{aligned}$$
(43)

Equation (43) is the Kerr-NUT solution [5] with NUT parameter h. Its reduction to the Kerr metric [4] is only a trivial task and can be obtained by substituting \(h =0,\)

$$\begin{aligned} g_{11} ^{ph}( \mathrm{Kerr} )=\frac{p^{2}x^{2}+q^{2}y^{2}-1}{( {px+1} )^{2}+q^{2}y^{2}}, \end{aligned}$$
(44)

where p and q are defined by

$$\begin{aligned} p=\frac{k}{m}, \quad q=\frac{a}{m},\quad \mathrm{and}\quad p^{2}+q^{2}=1. \end{aligned}$$
(45)

The generated solutions presented in Eqs. (28)–(33) may thus be interpreted as the nonlinear superposition of a Kerr metric with an external gravitational field. The parameter \(\alpha _0 \) is related to the strength of the external gravitational field.

The event horizon of the constructed stationary metric is at \(x=x_h =1\). The infinite red shift surface (i.r.s.) depends on the values of y i.e. \(x_\mathrm{i.r.s.} =x( y )\) and in general, \(x_\mathrm{i.r.s.} > x_h \). At the poles \(( {y=\pm 1} )\), these two surfaces coincide. The event horizon is thus always surrounded by the infinite red shift surface similar to the Kerr metric.

The surface area of the event horizon is found to be

$$\begin{aligned} S=16\pi K^{2}c_4 ( {c_4 -c_3 } )^{-1}\exp ( {-\alpha _0 } ). \end{aligned}$$
(46)

In the absence of any external field, if one substitutes \(c_{3} = 0\) and \(K = m,\) one obtains the area of the event horizon corresponding to the Schwarzschild metric.

4 Static magnetic dipole solution

The static magnetic dipole solution corresponding to the generated two-soliton stationary metric (28)–(33) may be obtained using the technique of Das and Chaudhuri [6]. In the following we describe in brief the technique of Das and Chaudhuri to generate magnetostatic solutions from stationary gravitational fields.

In cylindrical coordinates (rz), an axially symmetric static line element is represented by [13]

$$\begin{aligned} \mathrm{d}s^{2}=e^{2\beta }\mathrm{d}t^{2}-e^{-2\beta }\big [ {e^{2\gamma ^{m}}( {\mathrm{d}r^{2}+\mathrm{d}z^{2}} )+r^{2}\mathrm{d}\phi ^{2}} \big ], \end{aligned}$$
(47)

where the metric coefficients \(\beta \) and \(\gamma ^{m}\) are functions of rz only.

The Einstein–Maxwell field equations corresponding to the metric (47) can be written as [13, 14]

$$\begin{aligned} \beta ,_{rr} +r^{-1}\beta ,_r +\beta ,_{zz} =e^{2\beta }r^{-2}\big ( {A_{3,r}^2 +A_{3,z}^2 } \big ), \end{aligned}$$
(48)
$$\begin{aligned} A_{3, rr}{-r}^{-1}A_{3,r}^ +A_{3,zz} =-2( {\beta ,_r A_{3,r} +\beta ,_z A_{3,z} } ), \end{aligned}$$
(49)
$$\begin{aligned} \gamma ,_r^m =r\big ( {\beta ,_r^2 -\beta ,_z^2 } \big )+e^{2\beta }r^{-2}\big ( {A_{3,r}^2 -A_{3,z}^2 } \big ), \end{aligned}$$
(50)
$$\begin{aligned} \gamma ,_z^m =2r\big [ {\beta ,_r \beta ,_z +e^{2\beta }r^{-2}A_{3,r}A_{3,z}} \big ], \end{aligned}$$
(51)

where the comma represents partial differentiation, \(A_{3}\) is the true magnetic component of the electromagnetic 4-potential and is related to the pseudo magnetic potential \({A}'_3 \) by [14]

$$\begin{aligned}&{A}'_{3,r} =r^{-1}e^{2\beta }A_{3,z},\nonumber \\&{A}'_{3,z} =-r^{-1}e^{2\beta }A_{3,r}. \end{aligned}$$
(52)

Now consider an axially symmetric stationary metric in (rz) coordinates [13],

$$\begin{aligned} \mathrm{d}s^{2}=e^{u}( {\mathrm{d}t-\omega \mathrm{d}\phi } )^{2}-e^{-u}\big [ {e^{2\gamma ^{s}}( {\mathrm{d}r^{2}+\mathrm{d}z^{2}} )+r^{2}\mathrm{d}\phi ^{2}} \big ]. \end{aligned}$$
(53)

The metric coefficients u, \(\omega \) and \(\gamma ^{s}\) are functions of r and z only. The vacuum Einstein’s field equations are [6, 13]

$$\begin{aligned} u,_{rr} +u,_{zz} +r^{-1}u,_r =-e^{2u}r^{-2}\big ( {\omega ,_r^2 +\omega ,_z^2 } \big ), \end{aligned}$$
(54)
$$\begin{aligned} \omega ,_{rr} +\omega ,_{zz} -r^{-1}\omega ,_r =-2\big ( {u,_r^ \omega ,_r +u,_z \omega ,_z } \big ), \end{aligned}$$
(55)
$$\begin{aligned} 4\gamma ,_r^s =r\big ( {u,_r^2 -u,_z^2 } \big )-e^{2u}r^{-2}\big ( {\omega ,_r^2 -\omega ,_z^2 } \big ), \end{aligned}$$
(56)
$$\begin{aligned} 2\gamma ,_z^s =r\big [ {u,_r u,_z -e^{2u}r^{-2}\omega ,_r \omega ,_z } \big ]. \end{aligned}$$
(57)

The superscripts m and s refer to the magnetovac and stationary cases, respectively.

Comparing the magnetostatic field equations (48)–(51) of the metric (47) with the stationary gravitational field equations (54)–(57) corresponding to the metric (53), one readily finds that static magnetovac solutions may be generated from the stationary axisymmetric vacuum solutions and vice versa via the transformations

$$\begin{aligned} \beta =u,\quad A_3 =i\omega ,\quad \gamma ^{m}=4\gamma ^{s}. \end{aligned}$$
(58)

To obtain physically acceptable solutions, the imaginary quantity i in Eq. (58) is eliminated by the parameter change technique of Das and Banerji [15, 16]. The generation of magnetostatic solutions from stationary gravitational fields is thus complete.

From Eq. (58), it appears that once \(\omega \) is known, \(A_{3}\) can be evaluated. Since the metric (1) does not contain any term involving \(\omega \), it is very difficult to evaluate \(\omega \) directly from the soliton solutions of Belinskii and Zakharov. However, one can find \(\omega \) from the solutions of BZ as follows.

We consider a stationary metric

$$\begin{aligned} \mathrm{d}s^{2}=f^{-1}\big [ {e^{2\gamma ^{s}}( {\mathrm{d}r^{2}+\mathrm{d}z^{2}} )+r^{2}\mathrm{d}\phi ^{2}} \big ]-f( {\mathrm{d}t-\omega \mathrm{d}\phi } )^{2}, \end{aligned}$$
(59)

where \(f,\omega \) and \(\gamma ^{s}\) are the metric coefficients.

Chaudhuri has shown that the metric coefficients f and \(\omega \) for the line element (59) are related to the metric coefficients \(g_{ab} \) of the metric (1) by [7]

$$\begin{aligned} f=-g_{11} , \end{aligned}$$
(60)
$$\begin{aligned} \omega =-( {2g_{11} } )^{-1}( {g_{12} +g_{21} }). \end{aligned}$$
(61)

For a diagonal metric, \(( {\Omega _0 } )_{12} =( {\Omega _0 } )_{21} \), and we have \(g_{12} =g_{21} \). One thus obtains

$$\begin{aligned} \omega =-g_{12} ( {g_{11} } )^{-1} \end{aligned}$$
(62)

and

$$\begin{aligned} g_{12} =g_{21} =f\omega . \end{aligned}$$
(63)

The metric coefficient \(g_{22} \) is found to be

$$\begin{aligned} g_{22} =K^{2}f^{-1}( {x^{2}-1} )( {1-y^{2}} )-f\omega ^{2}. \end{aligned}$$
(64)

From Eqs. (60), (63), (64) and under the coordinate transformation (23), it is easy to show that \(\det g_0 =-r^{2}\). This satisfies the supplementary condition (6).

From Eq. (60) and considering the line elements (53) and (59) we obtain the expression for \(e^{u}\):

$$\begin{aligned}&e^{u}=\exp \Big [ {\alpha _0 xy( {x^{2}+y^{2}-1} )^{-\frac{3}{2}}} \Big ]\nonumber \\&\quad \times \left[ { \begin{array}{l} c_1 ^{2}( {1-y^{2}} )e^{-2f_1 }+c_2 ^{2}( {1-y^{2}} )e^{2f_1 }-c_3 ^{2}( {x^{2}-1} )e^{-2f_2 } \\ -\,c_4 ^{2}( {x^{2}-1} )e^{2f_2 }+2c_1 c_2 ( {x^{2}-y^{2}} ) \\ \end{array}} \right] D^{-1}.\nonumber \\ \end{aligned}$$
(65)

The other metric coefficient \(\omega \) is obtained from Eq. (62) and is found to be

$$\begin{aligned}&\omega =2Ke^{-\psi }\nonumber \\&\quad \qquad \times \frac{\left[ { \begin{array}{l} \left( {x+y} \right) \{c_1 c_3 \left( {x-1} \right) \left( {1+y} \right) e^{2p}-c_2 c_4 \left( {x+1} \right) \left( {1-y} \right) e^{-2p}\}-\left( {x-y} \right) \{c_1 c_4 \left( {x+1} \right) \left( {1+y} \right) e^{2q} \\ -\,c_2 c_3 \left( {x-1} \right) \left( {1-y} \right) e^{-2q}\} \\ \end{array}} \right] }{\left[ {c_1 ^{2}\left( {1-y^{2}} \right) e^{-2f_1 }+c_2 ^{2}\left( {1-y^{2}} \right) e^{2f_1 }-c_3 ^{2}\left( {x^{2}-1} \right) e^{-2f_2 }-c_4 ^{2}\left( {x^{2}-1} \right) e^{2f_2 }+2c_1 c_2 \left( {x^{2}-y^{2}} \right) } \right] }, \end{aligned}$$
(66)

where D is given by Eq. (33).

In order to get real magnetostatic solutions we make the substitutions \(c_{1 \rightarrow ic_{1}}\) and \(c_{2}\rightarrow ic_{2}\) in Eqs. (65) and (66), and using the transformation (58) we obtain

$$\begin{aligned}&e^{2\beta }=\exp \big [ {\alpha _0 xy( {x^{2}+y^{2}-1} )^{-3}} \big ]\nonumber \\&\quad \times \left[ {\begin{array}{l} c_1 ^{2}( {1-y^{2}} )e^{-2f_1 }+c_2 ^{2}( {1-y^{2}} )e^{2f_1 }+c_3 ^{2}( {x^{2}-1} )e^{-2f_2 } \\ +\,c_4 ^{2}( {x^{2}-1} )e^{2f_2 }+2c_1 c_2 ( {x^{2}-y^{2}} ) \\ \end{array}} \right] ^{2}D_1 ^{-2},\nonumber \\ \end{aligned}$$
(67)
$$\begin{aligned}&A_3 =2Ke^{-\psi }\nonumber \\&\qquad \quad \times \frac{\left[ {\begin{array}{l} \left( {x+y} \right) \{c_1 c_3 \left( {x-1} \right) \left( {1+y} \right) e^{2p}-c_2 c_4 \left( {x+1} \right) \left( {1-y} \right) e^{-2p}\}-\left( {x-y} \right) \{c_1 c_4 \left( {x+1} \right) \left( {1+y} \right) e^{2q} \\ -c_2 c_3 \left( {x-1} \right) \left( {1-y} \right) e^{-2q}\} \\ \end{array}} \right] }{\big [ {\big \{c_1 ^{2}( {1-y^{2}} )e^{-2f_1 }+c_2 ^{2}( {1-y^{2}} )e^{2f_1 }\big \}+\big \{c_3 ^{2}( {x^{2}-1} )e^{-2f_2 }+c_4 ^{2}( {x^{2}-1} )e^{2f_2 }+2c_1 c_2 ( {x^{2}-y^{2}} )\big \}} \big ]}, \end{aligned}$$
(68)

where

$$\begin{aligned}&D_1 =-\big [c_1 ^{2}( {1+y} )^{2}e^{-2f_1 }+c_2 ^{2}( {1-y} )^{2}e^{2f_1 }\nonumber \\&\quad -\,c_3 ^{2}( {x-1} )^{2}e^{-2f_2 }-c_4 ^{2}( {x+1} )^{2}e^{2f_2 }-2c_1 c_2 ( {x^{2}-y^{2}} )\big ].\nonumber \\ \end{aligned}$$
(69)

The asymptotic expansions of \(e^{2\beta }\) and \(A_3 \) are found to be

$$\begin{aligned} e^{2\beta }=1-\frac{4n_1 }{x}+\frac{2n_2 }{x^{2}}+\cdots \end{aligned}$$
(70)
$$\begin{aligned} A_3= & {} 2Kn_5 \bigg [\frac{( {1-y^{2}} )}{n_1 x}-\frac{1}{2}\Big \{n_6 y+n_7 ( {1-y^{2}} )\nonumber \\&-\,2\alpha _0 ( {n_8 +3y} )y^{2} \Big \}.\frac{1}{x^{2}}+\cdots \bigg ], \end{aligned}$$
(71)

where

$$\begin{aligned} n_1 =\frac{( {c_4 -c_3 } )}{( {c_4 +c_3 } )}, \quad n_2 =n_3 +n_4, \end{aligned}$$
$$\begin{aligned} n_3 =2\big [ {( {c_1 -c_2 } )^{2}+( {c_4 -c_3 } )^{2}} \big ]( {c_4 +c_3 } )^{-2}, \end{aligned}$$
$$\begin{aligned} n_4 =\big [ {4( {c_1 ^{2}-c_2 ^{2}} )( {c_4 +c_3 } )^{-2}+\alpha _0 } \big ]y, \end{aligned}$$
$$\begin{aligned} n_5 =( {c_1 +c_2 } )( {c_3 -c_4 } )( {c_3 +c_4 } )^{-2}, \end{aligned}$$
$$\begin{aligned} n_6 =3\alpha _0 +4n_8, \end{aligned}$$
$$\begin{aligned} n_7 =\alpha _0 n_8 +n_9 -2, \end{aligned}$$
$$\begin{aligned} n_8 =\left( {\frac{c_1 -c_2 }{c_1 +c_2 }} \right) , \end{aligned}$$
$$\begin{aligned} n_9^ =\left( {\frac{c_1 +c_2 }{c_4 +c_3 }} \right) ^{2}. \end{aligned}$$
(72)

The solutions are thus asymptotically flat at spatial infinity.

In Boyer–Lindquist coordinates \((R,\theta )\) defined by

$$\begin{aligned} Kx=R-m,\quad \mathrm{and}\quad y=\cos \theta , \end{aligned}$$
(73)

the asymptotic expansions of \(e^{2\beta }\) and \(A_{3}\) are obtained:

$$\begin{aligned} e^{2\beta }=1-\frac{4Kn_1 }{R}+2K( {Kn_2 -2mn_1 } ).\frac{1}{R^{2}}+\cdots \end{aligned}$$
(74)
$$\begin{aligned} A_3= & {} 2Kn_5 \left[ {\frac{K\cos ^{2}\theta }{n_1 R}} \right] \nonumber \\&+\,\frac{1}{2}\bigg \{Kn_6 +K\left( {\frac{2Km}{n_1 }+Kn_7 } \right) \cos \theta \nonumber \\&-\,2\alpha _0 K( {n_8 +3\cos \theta } )\cos \theta \bigg \}+\cdots . \end{aligned}$$
(75)

From the asymptotic expansions of \(e^{2\beta }\) and \(A_{3}\) (i.e. from Eqs. (74) and (75)), the mass (M) and the dipole moment (\(\mu \)) of the source are found to be

$$\begin{aligned} M=2K\frac{( {c_4 -c_3 } )}{( {c_4 +c_3 } )}, \end{aligned}$$
(76)
$$\begin{aligned} \mu =2K^{2}\frac{( {c_1 +c_2} )}{( {c_4 +c_3 } )}. \end{aligned}$$
(77)

If one substitutes \(c_1 =c_2 =\sqrt{c_3 }=\alpha \) (here \(\alpha \) is any parameter) and \(c_4 =1\) then from Eqs. (76) and (77)

$$\begin{aligned} M=2K\frac{( {1-\alpha ^{2}} )}{( {1+\alpha ^{2}} )}, \end{aligned}$$
(78)
$$\begin{aligned} \mu =4K^{2}\frac{\alpha }{( {1+\alpha ^{2}})}. \end{aligned}$$
(79)

It follows that, if \(\alpha = 0\), the dipole moment vanishes. One can thus identify \(\alpha \) as the magnetic parameter.

If we set \(\alpha = 1\), it is evident from Eqs. (78) and (79) that M = 0 and \({\mu = 2K}^{2}.\) One thus obtains the dipole moment of a massless source.

The dipole moment to mass ratio is obtained:

$$\begin{aligned} \frac{\mu }{M}=\frac{2K\alpha }{( {1-\alpha ^{2}} )}. \end{aligned}$$
(80)

In the absence of the magnetic parameter i.e. for \(\alpha \) = 0, if we put \(K = m,\) we have \(M = 2m.\) This is not the Schwarzschild solution, but it refers to a mass with monopole moment 2m. Bonnor [17] constructed a similar solution having the same monopole moment \(M = 2m.\)

5 Conclusion

The solutions (28)–(36) presented in the paper describe a Kerr body embedded in an external gravitational field. Under some restrictions on the constants, the solutions reduce to the Schwarzschild, Kerr and Kerr-NUT metrics. The constructed solutions are well behaved at spatial infinity containing monopole, dipole and other higher mass multipole moments. The area of the event horizon is also evaluated.

Magnetostatic solutions corresponding to the stationary gravitational solutions (28)–(36) are constructed in Eqs. (67)–(69). The asymptotic behaviour of the solutions is also discussed. In the absence of a magnetic field the solutions do not correspond to the Schwarzschild metric in a pure vacuum limit; rather one obtains a mass monopole term \(M = 2m\). Bonnor also presented a magnetostatic solution [17] by his own method which also does not reduce to the Schwarzschild form in the absence of the magnetic parameter. The elegance of our technique is that a stationary gravitational two-soliton solution directly goes over to a static magnetovac solution and vice versa by two simple transformations, and the solutions are obtained in a compact form.

For a particular value of the magnetic parameter \(\alpha \) (i.e. \(\alpha = 1\)), the mass of the source vanishes and one obtains the dipole moment of a massless source. This corresponds to a finite current loop at large distances. The magnetic dipole moment directly depends on the strength of the current loop. Thus the study on magnetic dipole moment bears some relevance for the analysis of real astrophysical objects which are assumed to be usually charged due to a significant charge separation during their evolution.