This may be a bit of a basic question, but I am finding a lot of contradictory info online.
Basically I am trying to write a couple of quantum mechanics scripts with python. This involves doing a lot of 3d integrals on spherical functions and using the laplace operator $ ∇^2 $.
In cartesian coordinates, writing lazily: $$ ∇^2 = d/dx^2 + d/dy^2 + d/dz^2 $$
In spherical coordinates: http://mathworld.wolfram.com/images/equations/Laplacian/Inline12.gif
The issue I see in some sources (both online and in textbooks) that sometimes $\theta$ and $\phi$ are switched. I understand that this is because sometimes one is used for the azimuthal angle and sometimes not.
When I do my 3d integrals, my convention is to use the jacobian $ r^2 * \theta $ and integrate theta from 0 to $\pi$, and integrate $\phi$ from 0 to $2\pi$. I use $tan( \theta ) = y/x$ and $cos(\phi) = z/r$. My question is... which laplacian convention would that be? I think my convention is the opposite of the one in the linked image, but I'm not 100% sure. Am I mixing up my jacobian as well? Sometimes I see sources define $\phi$ and $\theta$ opposite to me (in terms of the angles with x, y, z and r) but use the same integrals (as in, which goes to $\pi$ and which goes to $2\pi$.)