I was trying to prove myself the moment of inertia of a solid sphere. Here's it,
Let us consider a sphere in $3$-dimensions with radius $R$ and mass $M$. Moment of inertia is the product of mass with its perpendicular distance from the axis of rotation.
Let us consider a hollow sphere inside our original sphere with radius $r\lt R$ with infinitesimal thickness and infinitesimal mass $dm$. Assuming that the body is uniform I can state that, $$\frac{M}{4\pi R^{2}}=\frac{dm}{dV} $$
$$\frac{dV}{dr}=4\pi r^{2}$$ $$dV=4\pi r^{2} dr$$ Putting it back in the equation we get,
$$\frac{M}{4\pi R^{2}}=\frac{dm}{4\pi r^{2}dr}$$ $$dm=\frac{3Mr^{2}dr}{R^{3}}$$
From the definition of moment of Inertia we know that, $$I=\int_{}^{}r^{2}dm$$ $$I=\int_{0}^{R}\frac{3Mr^{4}}{R^{3}}dr$$
Solving it we get, $$I=\frac{3}{5}MR^{2}$$
But textbook says that the moment of Inertia of solid sphere is $\frac{2}{5}MR^{2}$
My question:-
$(1)$- Obviously there is some mistake in the proof, but I don't understand where the mistake is?