Say I have a function $f(x,y)$ with $x$ and $y$ in some domains. How do I find the subdomain in $y$ for which $f$ does not depend on $x$.
My special case one could consider as an example:
I have a Spherical Harmonics $Y_{l,m}(\theta,\phi)$. I want to find constraints on $l,m,\theta$ that would imply a non-dependence upon $\phi$. I know this independence because of physical reasons Mathematica could not infer.
How can I tell Mathematica something like:
$\qquad \mathsf{Solve}[Y_{l,m}(\theta,\phi)==Y_{l,m}(\theta,\phi^\prime)\ \forall\phi,\phi^\prime\in[0,2\pi]]$
I know the answer in this case:
$\qquad Y_{l,m}(\theta,\phi)=Y_{l,m}(\theta,\phi^\prime)\ \forall\phi,\phi^\prime\in[0,2\pi] \rightarrow m=0$
Note: Mathematica knows SphericalHarmonicY[l, m, theta, phi]
.
In reference to a comment by @patrick-stevens: one could differentiate the function. Nevertheless, it is not the case in general and I am looking for other methods.
FindInstance[ SphericalHarmonicY[l, m, theta, RandomReal[]] == SphericalHarmonicY[l, m, theta, RandomReal[]], {l, m, theta}, Integers, 10]
$\endgroup$