Find the moment of inertia about $x$-axis of the region bounded by $y=x^2$ and $y=x$, if the density is proportional to the distance from the $x$-axis. And the answer should represented by the mass of the region.
I tried first let the density $$\rho=ky$$ Then the moment of inertia is $$\int^1_0\int^x_{x^2}y^2\cdot ky \ dy dx=\frac{k}{45}$$ Then calculate the mass of the region as $$M=\int^1_0\int^x_{x^2}ky \ dydx=\frac{k}{15}$$ So the moment of inertia is $$\frac{M}{3}$$ But the answer is $$\frac{M}{8}$$ There is no detailed solution so I don't know where I got wrong...