Solution to Associate Legendre's Eq

  • Context: Mathematica 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Associate
Click For Summary
SUMMARY

The discussion centers on solving the associated Legendre's equation using Mathematica. The user inputs the differential equation and finds that the output is a linear combination of the first and second associated Legendre polynomials, specifically yielding non-trivial solutions only for \(m=1\). When specifying \(m\) beforehand, Mathematica provides a solution but fails to express it as a function of \(m\) for \(m \geq 2\). The consensus is that while analytical solutions may not exist for general \(m\), numerical solutions can be obtained using Mathematica's NDSolve or ParametricNDSolve functions.

PREREQUISITES
  • Familiarity with associated Legendre polynomials
  • Understanding of differential equations
  • Proficiency in using Mathematica for symbolic and numerical computations
  • Knowledge of boundary value problems
NEXT STEPS
  • Explore the use of Mathematica's NDSolve for numerical solutions of differential equations
  • Research the properties and applications of associated Legendre polynomials
  • Learn about boundary value problems and their numerical methods
  • Investigate the implications of varying \(m\) in associated Legendre's equation
USEFUL FOR

Mathematicians, physicists, and engineers dealing with differential equations, particularly those interested in associated Legendre polynomials and numerical methods for solving boundary value problems.

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
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
(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?
 
Physics news on Phys.org
The associated Legendre equation reads,
$$g''(\theta)+\cot(\theta)g'(\theta)+[l(l+1)-m^2\frac{1}{\sin^2\theta}]g(\theta)=0,$$ where ##m=-l,-l+1,...,l##.
So, in your case you have ##l=1##. The solutions are as you found the associated legendre polynomials. However, I cannot see why you want the solutions for other values of ##m##. It doesn't make sense. For general values of ##m##, I don't think you will have a analytical solution.
You can of course still solve it numerically. In Mathematica, I guess you can use NDSolve or ParametricNDSolve. The routine you used, I believe is for analytical solutions.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K