My physics textbook said that the moment of inertia of a sphere is $\frac25mr^2$ where $m$ and $r$ are the mass and the radius of the sphere respectively. I wanted to verify the result by finding it myself, however, I always end up with $\frac35mr^2$ instead of $\frac25mr^2$. What is wrong with my method?
My approach involved cutting up a sphere into an infinite amount of hollow sphere shells, each of which having volume $4\pi r^2dr$. Then, calling $d$ the density of the sphere and $R$ the radius, the moment of inertia should be: $$\int_{0}^{R}4\pi r^2\cdot d\cdot r^2\cdot dr$$ Calculating this integral gives the following: $$4\pi d\frac{R^5}5$$ Using $m=d\cdot\frac43\pi r^3$, we can simplify this to: $$\frac35mR^2$$
This is clearly not the correct answer. Where have I gone wrong in my method? Is cutting the sphere into hollow shells conceptually wrong in the first place?
It did not came clear from the other answers why your approach is wrong. Remember that you calculate the moment of inertia for rotation around an axis not around a point. So if you choose for example the vertical axis, you notice that the points on spherical shell are at a constant distance from the center of the sphere, but they are at different distances from the vertical axis. You can use either point like masses, or cylinders along the vertical direction. You need to compute $$\frac{m}{\frac{4}{3}\pi r^3}\iiint_S(x^2+y^2)dxdydz$$ What you did was instead computing the integral of $x^2+y^2+z^2$.