I want to write the exponent, but my equation exponent is too long and cannot write in one line it cut from page.
\begin{multline*}
\phi_{m}(\mathcal{K}_{1}\mathcal{K}_{2},C_{2})=\phi((\\g^{\theta
d_{1}^{*} (\alpha + r_{1}^{i}
(ID_{i}+(ID_{1}+ID_{2}+\dots+ID_{i-1}+ID_{i+1}+\dots
ID_{m}))+((r_{1}^{1}ID_{1}+r_{1}^{2}ID_{2}+\dots+r_{1}^{i-1}ID_{i-1}+ID_{i}+r_{1}^{i+1}ID_{i+1}+\dots+r_{1}^{m}ID_{m})))}\\g^{\theta d_{2}^{*}(-r_{1}^{i}-{(r_{1}^{1}+r_{1}^{2}+\dots+r_{1}^{i-1}+r_{1}^{i+1}+\dots+r_{1}^{m})})}\\g^{\sigma
d_{3}^{*}(r_{2}^{i}(
ID_{i}+(r_{2}^{1}ID_{1}+r_{2}^{2}ID_{2}+\dots+r_{2}^{i-1}ID_{i-1}+ID_{i}+r_{2}^{i+1}ID_{i+1}+\dots+r_{2}^{m}ID_{m})+(ID_{1}+ID_{2}+\dots+ID_{i-1}+ID_{i+1}+\dots+ID_{m}))}\\g^{\sigma
d_{4}^{*}(-r_{2}^{i}-(r_{2}^{1}+r_{2}^{2}+\dots+r_{2}^{i-1}+r_{2}^{i+1}+\dots+r_{2}^{m}))} ,(g^{s_{1}d_{1}+s_{1}(ID_{1},ID_{2},\dots,ID_{m})d_{2}+s_{2}d_{3}+s_{2}(ID_{1},ID_{2},\dots,ID_{m})d_{4}})
) \end{multline*}
Here the first power of g cannot completed in one line. Please help me in doing this.
