This came up in my physics class.
Suppose a uniform hemispherical shell has a thickness of 0 and a mass of M and a surface density of $\sigma =M/(2\pi r^2)$. My class derived two ways to integrate it: the first way was to horizontally slice the shell into concentric circles with radius of $(r^2 - y^2)^.5$ and integrate as: $$ y(com) = ((\int_0^r \sigma 2\pi ((r^2-y^2)^.5)dy)y)/M $$ Doing this method gives an answer of $y(com) = r/3$. However, doing the other method of integrating as a function of $\theta$ is: $$ y(com) = ((\int_0^(\pi/2) \sigma 2 \pi (rcos\theta ) rd\theta)rsin\theta)/M $$ Doing this method gives an answer of $y(com) = r/2$
My entire class combined could not find any math errors in either method. What is the discrepancy?