- #1
member 428835
Hi PF!
I'm trying to find solutions to $$g''(\theta) + \cot\theta g'(\theta) +\left( 2-\frac{m^2}{\sin\theta}\right)g(\theta)=0 : m\in\mathbb N\\
g'(\pi/2) = 0.$$
I input this into Mathematica as
(with ##m## being cleared) and output is a linear combination of the first and second associated Legendre polynomials. If you plot the output (ignoring the constant from integration) from ##[0,\pi/2]## we see this only gives non-trivial solutions for ##m=1##.
However, if I specify ##m## beforehand Mathematica outputs a good solution, but it does not output a solution as a function of ##m## for all ##m\geq 2##. I know one has to exist. Does anyone know the solution and also how to find it in Mathematica?
I'm trying to find solutions to $$g''(\theta) + \cot\theta g'(\theta) +\left( 2-\frac{m^2}{\sin\theta}\right)g(\theta)=0 : m\in\mathbb N\\
g'(\pi/2) = 0.$$
I input this into Mathematica as
Matlab:
DSolve[{g''[\[Theta]] +
Cot[\[Theta]] g'[\[Theta]] + (2 - m^2/
Sin[\[Theta]]^2) g[\[Theta]] == 0, g'[\[Pi]/2] == 0},
g[\[Theta]], \[Theta]] // FullSimplify
However, if I specify ##m## beforehand Mathematica outputs a good solution, but it does not output a solution as a function of ##m## for all ##m\geq 2##. I know one has to exist. Does anyone know the solution and also how to find it in Mathematica?