Centroid calculation: U-shape

A simply supported beam carries the loads shown.