So I have to evaluate $$\iiint_S \! (y^2+z^2)\ \mathrm{d}x\ \mathrm{d}y\ \mathrm{d}z$$ where $S$ is a right circular cone of altitude $h$ with its base, of radius $a$, in the $xy$-plane and its axis along the $z$-axis, in cylindrical coordinates. Switching to cylindrical coordinates, we clearly have $0 \leq \theta \leq 2\pi$ and $0 \leq z \leq h$. I imagine a cross section of the cone as a right triangle with $\rho$ from the origin to the hypotenuse and a horizontal line at $z$ intersecting $\rho$ at the hypotenuse. Then $\rho=\sqrt{z^2+x^2}$, where $x$ is the length of the horizontal line. The horizontal line forms another triangle similar to the first, and so its length should be $$\frac{x}{h-z}=\frac{a}{h}$$ $$x=\frac{a(h-z)}{h}$$ so I have the inequality $$0 \leq \rho \leq \sqrt{\left(\frac{a(h-z)}{h}\right)^2+z^2}$$ but when I try to evaluate the integral with this bound, it ends up very wrong. I assume I've done something wrong finding the bounds for $\rho$, but I can't figure out what it is so I was hoping someone could tell me what I'm doing wrong. I tried doing another substitution that mapped the cone to the cone with $h=1$ and $a=1$, but that didn't really help. The book has the answer as $\frac{1}{60}\pi a^2h(3a^2+2h^2)$, but I'd like to know how to get there. Thanks for the help!
