# Triple integral over a sphere in rectangular coordinates

1. Homework Statement

Evaluate the following integral:

$$\iiint \,x\,y\,z\,dV$$

Where the boundaries are given by a sphere in the first octant with radius 2.

The question asks for this to be done using rectangular, spherical, and cylindrical coordinates.

I did this fairly easily in spherical and rectangular coordinates, except for the fact that I got two different answers and I can't figure out where I went wrong! That's not a problem though because I can fix that.

3. The Attempt at a Solution

How would I do this problem in rectangular coordinates? My integral would look like this:

$$\int_{0}^{{\sqrt{4-x^2-y^2}}}\int_{0}^{{\sqrt{4-x^2-z^2}}}\int_{0}^{{\sqrt{4-z^2-y^2}}}xyz\,dz\,dy\,dx$$

Which, without some clever transformations and an extremely messy Jacobian calculation, looks unsolvable.

Related Calculus and Beyond Homework Help News on Phys.org
I think you need to rethink your bounds on that one...

How does this look then?

$$\int_{0}^{2}\int_{0}^{2}\int_{0}^{{\sqrt{4-z^2-y^2}}}xyz\,dz\,dy\,dx$$

Hmm, MATLAB tells me that's zero.

Dick
Homework Helper
Your dy limit should depend on x.

HallsofIvy
$$\int_{0}^{2}\int_{0}^{2}\int_{0}^{{\sqrt{4-z^2-y^2}}}xyz\,dz\,dy\,dx$$
Projecting the sphere into the xy-plane gives you the quarter circle x2+ y2= 4, with $0\le x\le 2$, $0\le y\le 2$. You can let x go from 0 to 2 but then, for each x, y ranges from 0 to $\sqrt{4- x^2}$.