I want to find the moment of inertia about the axis perpendicular to the base and passing through the center of mass (z-axis?). Mass is M and height is H and base has sides $a$.
I know I can take a slab of the pyramid and take the volume of the slab dv = $b^2$ x dH where $b$ is the length of the slab and dH is the height and then get the mass dm = $\rho$ x dv = $\rho$ x $b^2$ x dh. I'm stuck at this point and would appreciate any help.