Bending stresses in a flanged shape

To find the location of the centroid in the vertical direction, begin by establishing a reference axis parallel to the z direction at some convenient location.