https://numbas.mathcentre.ac.uk/question/72249/centroid-by-integration-upper-and-lower-bounds-are-functions/embed/