Why Does Mathematica Give a Different Result for Spherical Harmonics?

Click For Summary
The discussion centers on the discrepancy in results for spherical harmonics between manual calculations and Mathematica's output. For the case of \( \ell = m = 1 \), the expected result is derived as \( \frac{1}{2}\sqrt{\frac{3}{2\pi}}e^{i\varphi}\sin \theta \), while Mathematica provides \( -\frac{1}{2} e^{i\varphi} \sqrt{\frac{3}{2\pi}} \sin\theta \). This difference may stem from varying definitions and conventions used for associated Legendre functions, particularly the inclusion of a factor of \( (-1)^m \). Users are encouraged to verify the definitions on Mathematica's official site, as special functions can have non-standard definitions across different sources. Understanding these conventions is crucial for reconciling such discrepancies in spherical harmonics calculations.
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
3K
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
29
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K