Let us consider a homogenous sphere of mass M and radius R. Its moment of inertia about diametrical axis shown in the figure may be calculated as follows.
Let us consider the sphere to be made up of disc like slices one of which is located at position z. Its thickness is dz and radius is √(R2 - z2).
The MI of this elementary disc is