First we compute the area A of the shape. This is given by
The coordinates of the centroid are computed using the formulas
and
We will compute first.
The first integral is zero because the function is odd. For the second we can use integration by parts.
That means if we plug in the limits for the definite integral we get
Now we compute
To compute this we note
Hence
Thus the centroid is