Lets say I've a sphere $x^2+y^2+z^2=1$ and I need to solve an integral $\iint_S\vec F\cdot\vec ndS$. while $S$ is the sphere.
And I can't use gauss law because $\vec F$ is not continuous at some point inside $S$. I had
$$\vec F=\left(\frac{x}{\sqrt{x^2+y^2+z^2}},\frac{y}{\sqrt{x^2+y^2+z^2}},\frac{z}{\sqrt{x^2+y^2+z^2}}\right).$$
So I went and tried to go for it normally using ball coordinates $$\vec r(\theta,\phi)=(\cos\theta \sin\phi, \sin\theta \sin\phi, \cos\phi).$$ And I found that $$r_{\theta}\times r_{\phi}=(-\cos\theta \sin^2\phi,-\sin\theta \sin^2\phi,-\sin\phi \cos\phi).$$ Now I know that this could be the normal pointing inside the ball or outside of it.
In order to try to check, I tried to reach a point $(1,0,0)$ on it, and check if the "$x$" part of the normal is positive or negative in that point.
But I got lost trying to find $\phi,\theta$ which satisfy that, and wanted to know if there's any better way to decide in what direction the normal I found is pointing.
Any feedback is appreciated, thanks in advance!