Projecting the sphere [itex]x^2+ y^2+ z<br />
^2= r^2[/itex] into the xy-plane, z= 0, gives the circle [itex]x^2+ y^2= r^2[/itex]. The point of the limits of integration is to "cover" that disk. If you want to use x as the outer variable of integration then x will have to vary from -r to r. for each x, then, since [itex]x^2+ y^2= r^2[/itex], [itex]y= \pm\sqrt{r^2- x^2}[/itex]. The limits you give will only cover the first quadrant of the circle (because of symmetry you can multiply by 4.)
The integral will be
[tex]\int_{x=-r}^r\int_{y= -\sqrt{r^2- x^2}}^{\sqrt{r^2- x^2}} f(x,y)dydx[/tex]
Of course, you have to have the correct "differential of surface area". One way to do that is this: Think of [itex]F(x,y,z)= x^2+ y^2+ z^2= r^2[/itex] as a level surface for the function F(x,y,z). Then the gradient, [itex]\nabla F(x,y,z)= 2x\vec{i}+ 2y\vec{j}+ 2z\vec{k}[/itex] is a vector perpendicular to the sphere at each point and is a "vector differential of area". Since you want to integrate in the xy-plane, "normalize" by making the z component 1: divide the vector by 2z to get [itex]\frac{x}{z}\vec{i}+ \frac{y}{z}\vec{j}+ \vec{k}[/itex]. Now find the length of that:
[tex]\sqrt{\frac{x^2}{z^2}+ \frac{y^2}{z^2}+ 1}= \sqrt{\frac{x^2+ y^2+ z^2}{z^2}}= \frac{r}{z}[/tex]
The differential of surface area is [itex]\frac{r}{z}dydx[/itex]. Since [itex]z= \pm\sqrt{r^2- x^2- y^2}[/itex], use the positive z and multiply by 2:
[tex]2\int_{x=-r}^r\int_{y=-\sqrt{r^2- x^2}}^{\sqrt{r^2-x^2}}\frac{r}{\sqrt{r^2- x^2- y^2}} dydx[/tex]
You are going to need a couple of complicated trig substitutions to do that. (Added: Well, one complicated trig substitution and then everything reduces nicely!) A better way is to use parametric equations for the surface of the sphere.
Use polar coordinates with [itex]\rho[/itex] set to the constant r:
[itex]x= rcos(\theta)sin(\phi)[/itex], [itex]y= rsin(\theta)sin(\phi)[/itex], [itex]z= rcos(\phi)[/itex]. Then the position vector of a point on the surface of the sphere is
[tex]rcos(\theta)sin(\phi)\vec{i}+rsin(\theta)sin(\phi)\vec{j}+z= rcos(\phi)\vec{k}[/tex]
Differentiate that with respect to [itex]\theta[/itex]:
[tex]-rsin(\theta)sin(\phi)\vec{i}+rcos(\theta)sin(\phi)\vec{j}[/tex]
and with respect to [itex]\phi[/tex]:<br />
[tex]rcos(\theta)cos(\phi)\vec{i}+ rsin(\theta)cos(\phi)\vec{j}- rsin(\phi)\vec{k}[/tex]<br />
<br />
The "fundamental vector product" of the surface is the cross product of those two vectors: <br />
[tex]r^2cos(\theta)sin^2(\phi)\vec{i}+r^2sin(\theta)sin^2(\phi)\vec{j}+r^2sin(\phi)cos(\phi)\vec{k}[/tex]<br />
and the length of that is [itex]r^2sin(\phi)[/itex]. The "differential of surface area" in those parameters is [itex]r^2sin(\phi)d\theta d\phi[/itex].<br />
<br />
To cover the entire surface, [itex]\theta[/itex] must vary from 0 to [itex]2\pi[/itex] and [itex]\phi[/itex] must vary from 0 to [itex]\pi[/itex]. The surface area is:<br />
[tex]r^2\int_{\theta= 0}^{2\pi}\int_{\phi=0}^\pi sin(\phi) d\phi d\theta[/tex]<br />
a much simpler integral.[/itex]