I am trying to solve for volume below a plane bounded by a sphere given by
$$x^2+y^2+z^2 = 9$$ below a plane z $\in$ [-3,3] using a double integral with polar coordinates. If the plane is given by z=c, should the integral be
$$\int_0^{2\pi}\int_0^{\sqrt{9-c^2}} (c-2\sqrt{9-x^2-y^2})r drd\theta$$ ? I am wondering how to set up the double integral so that it handles the fact that z could be both positive and negative. Thanks in advance!
EDIT: I ended up taking the volume $36\pi - \int_0^{2\pi}\int_0^{\sqrt{9-c^2}}\sqrt{9-x^2-y^2} - cr$ $drd\theta$ and got $\pi(18 + 9a - \frac{a^3}{3})$ which according to the text book is the right answer.
I actually ended up taking the volume of the entire sphere and subtracted the volume of the spherical cap bounded by the part above the plane and below the sphere!
I ended up taking the volume and got $\pi(18+9a-\frac{a^{3}}{3})$ which according to the text book is the right answer.