I have a real-valued function of four variables, namely L[\phi, m0, m1, m2]. I am interested in taking the partial derivative \partial_{\phi}L thereof and setting the partial derivative to zero, that is \partial_{\phi}L = 0. Then solving for \phi \in [0,2\pi] in terms of $m0, m1, m2 \in
\mathbb{N}{0}. I have reached the point in the attached code where I have generated the partial derivative \partial{\phi}L$, but I am having difficulty setting the partial derivative to zero and getting an analytic expression for \phi in terms of the other variables m0,~m1 and m2. Please advise if there is a clear way of doing this analytically and numerically.
Just a note that the function L[\phi, m0, m1, m2] is defined in terms of probabilities P1, P2 and P3, hence it has a real-valued output for any \phi \in \mathbb{R}. Link to related Mathematica SE post.


