Place the semicircle in a coordinate system with the center at the origin.

The equation of the circle is so

A slice parallel to the x-axis that is a distance y above the x-axiswill have approximate volume

Density = ky

Mass = (Density)(Volume)

Integrate from y = 0 to y = r