Why Does Mathematica Give a Different Result for Spherical Harmonics?

Click For Summary
SUMMARY

The discussion centers on the discrepancies in the results for spherical harmonics when computed in Mathematica versus manual calculations. Specifically, for the case of \( \ell = m = 1 \), the expected result is \( \frac{1}{2}\sqrt{\frac{3}{2\pi}}e^{i\varphi}\sin \theta \), while Mathematica outputs \( -\frac{1}{2} e^{i\varphi} \sqrt{\frac{3}{2\pi}} \sin\theta \). This difference arises from varying definitions of the associated Legendre functions, particularly the inclusion of a factor of \( (-1)^m \) in some conventions. Users are advised to consult the definitions on the Wolfram Functions site for clarity.

PREREQUISITES
  • Understanding of spherical harmonics and their mathematical formulation
  • Familiarity with associated Legendre functions and their definitions
  • Basic knowledge of Mathematica software and its function definitions
  • Concept of phase factors in complex exponentials
NEXT STEPS
  • Review the definitions of associated Legendre functions on the Wolfram Functions site
  • Study the mathematical properties of spherical harmonics in detail
  • Explore the impact of phase factors in quantum mechanics and wave functions
  • Learn how to use Mathematica for computing special functions accurately
USEFUL FOR

Mathematicians, physicists, and students studying quantum mechanics or mathematical physics, particularly those working with spherical harmonics and special functions.

Dustinsfl
Messages
2,217
Reaction score
5
$$
Y_{\ell}^m = \sqrt{\frac{(2\ell + 1)(\ell - m)!}{4\pi(\ell + m)!}}P^m_{\ell}(\cos\theta)e^{im\varphi}
$$

For ##\ell = m = 1##, we have
$$
\sqrt{\frac{(2 + 1)(0)!}{4\pi(2)!}}P^1_{1}(\cos\theta)e^{i\varphi} = \frac{1}{2}\sqrt{\frac{3}{2\pi}}e^{i\varphi}\sin \theta
$$

But Mathematica is telling me the solution is
$$
-\frac{1}{2} e^{i\varphi} \sqrt{\frac{3}{2\pi}} \sin\theta
$$

What is going wrong?
 
Physics news on Phys.org
Have you checked the definitions/conventions for the associated Legendre functions ? The definitions for Mathematica you can find on the functions.wolfram.com website. Unfortunately, it's difficult to say that special functions theory is a unitary process with unique definitions.
 
dextercioby said:
Have you checked the definitions/conventions for the associated Legendre functions ? The definitions for Mathematica you can find on the functions.wolfram.com website. Unfortunately, it's difficult to say that special functions theory is a unitary process with unique definitions.

Some are defined with a (-1)^m which is weird my professor was using that definition since we were not in class.
 

Similar threads

Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
29
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K