Let $S$ be a part of the cone $z = \sqrt{x^2+y^2} $ above circle $\ x^2+y^2 \leq 2x$. Let $f(x,y,z) = x^2+y^2 + z^2 $. Evaluate: $\iint_S f(x,y,z)dS$
I have evaluated it by converting it to spherical coordinates as $3\sqrt2\pi $. I want to confirm if my answer is correct or not.
I got the same result by using polar coordinates: $$\iint_S (x^2+y^2+z^2)dS=\sqrt{2}\iint_{(x-1)^2+y^2\leq 1}(x^2+y^2+(x^2+y^2))\,dxdy\\ =2\sqrt{2}\int_{-\pi/2}^{\pi/2}\left(\int_0^{2\cos(\theta)}\rho^3 d\rho\right)d\theta=3\sqrt{2}\pi.$$