Find the volume of the solid inside the cylinder $x^2+y^2-2ay = 0$ and between the plane $z = 0$ and the cone $x^2+y^2 = z^2$.
I tried solving this problem as follows:
Equation of the cylinder $x^2+(y-a)^2 = a^2$. Now, if we are able to find the volume $V$ between the plane $z = 0$ and $z = \sqrt{x^2+y^2}$, then the required volume is $2V$.
Let $E = \{ (x,y,z) \in \Bbb R^3: (x,y) \in D \text{ and } 0 \leq z \leq \sqrt{x^2+y^2} \}$ , where $D$ is the disk $x^2+(y-a)^2 = a^2$.
To find $V$ we note that, $V = \iiint_EdV=\iint_D\int_{0}^{\sqrt{x^2+y^2}}dzdA = \iint_D\sqrt{x^2+y^2}dA$.
Converting to polar coordinates we have, $V = \int_0^{2\pi}\int_0^{2a\sin\theta}r^2drd\theta = 0$.
So, the total volume is $2V=0$.
Now, this is clearly wrong. However, if we evaluate the same integral as follows:
$V = 2\int_0^{\pi}\int_0^{2a\sin\theta}r^2drd\theta$.
Then $2V$ gives the required volume.
But $D$ consists of the whole circle and so taking the limits $[0,2\pi]$ and multiplying with $2$ or $[0,\pi]$ and multiplying by $4$ shouldn't make any difference. I want to know the reason behind this strange anomaly.
