Finding the centroid of a semi-circle using integration