I am formatting an equation and my code is:
\begin{equation}
\begin{split}
&\bra{[\mu]_n+e_j}\bra{[\mu] _{n-1}+e_{j^\prime}} \Phi \ket{[\mu]_n}\ket{[\mu]_{n-1}}\\
&= \begin{cases}S(j^\prime - j) \left[\frac{\prod \limits_{s \in [d-1]\backslash j^\prime}(\tilde{\mu}_{j,n}-\tilde{\mu}_{s,n-1})\prod\limits_{t \in [d]\backslash j}(\tilde{\mu}_{j^\prime,n-1}- \tilde{\mu}_{t,n}+1) }{\prod \limits_{s \in [d-1]\backslash j^\prime}(\tilde{\mu}_{j^\prime,n-1}-\tilde{\mu}_{s,n-1}+1) \prod\limits_{t \in [d]\backslash j}(\tilde{\mu}_{j,n}-\tilde{\mu}_{s,n})}\right]^{\frac{1}{2} } & \text { if } j^{\prime} \in\{1, \ldots, d-1\} . \\
S(d-j) \left[\frac{\prod_{s \in [d-1]} (\tilde{\mu}_{j,n}-\tilde{\mu}_{s,n-1})}{\prod_{t \in [d]\backslash j}(\tilde{\mu}_{j,n}-\tilde{\mu}_{s,n})} \right]^{\frac{1}{2}} & \text { if } j^{\prime}=0 .\end{cases}
\end{split}
\end{equation}
and the output is:
It is overfull when put in a double folded format (actually I don't know how to call such a format and you can see the picture):
I try to split the formula and my solution is split it before "if". But the result is strange and confused. I don't know how to deal with this problem.