I need to calculate the following in cylindrical coordinates:
$$\iiint_K \sqrt{x^2+y^2+z^2}\,dx\,dy\,dz$$
$K$ is bounded by the plane $z=3$ and by the cone $x^2+y^2=z^2$.
I know that:
$x=r\cos{\theta}$
$y=r\sin{\theta}$
$z=z$
So I get the following: $$\iiint r\sqrt{r^2+z^2}\,d\theta\, dr\,dz$$
The problem I have is finding from where to where I need to integrate.
I tried the following which was wrong:
$$\int_0^{2\pi}\,d\theta \int_0^3\,dz \int_0^z r\sqrt{r^2+z^2}\,dr$$
This gave me the following result:
$\frac{24}{5}\sqrt{3}\pi$
Which is wrong according to my coursebook.